agent-ide 0.13.6 → 0.13.7
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/README.md +14 -7
- package/dist/core/call-hierarchy/call-hierarchy-analyzer.d.ts +11 -2
- package/dist/core/call-hierarchy/call-hierarchy-analyzer.d.ts.map +1 -1
- package/dist/core/call-hierarchy/call-hierarchy-analyzer.js +233 -25
- package/dist/core/call-hierarchy/call-hierarchy-analyzer.js.map +1 -1
- package/dist/core/change-signature/call-site-updater.d.ts +0 -1
- package/dist/core/change-signature/call-site-updater.d.ts.map +1 -1
- package/dist/core/change-signature/call-site-updater.js +0 -2
- package/dist/core/change-signature/call-site-updater.js.map +1 -1
- package/dist/core/change-signature/change-signature-engine.d.ts +9 -1
- package/dist/core/change-signature/change-signature-engine.d.ts.map +1 -1
- package/dist/core/change-signature/change-signature-engine.js +190 -5
- package/dist/core/change-signature/change-signature-engine.js.map +1 -1
- package/dist/core/change-signature/signature-parser.d.ts +0 -5
- package/dist/core/change-signature/signature-parser.d.ts.map +1 -1
- package/dist/core/change-signature/signature-parser.js +6 -34
- package/dist/core/change-signature/signature-parser.js.map +1 -1
- package/dist/core/deadcode/file-operations.d.ts.map +1 -1
- package/dist/core/deadcode/file-operations.js +3 -1
- package/dist/core/deadcode/file-operations.js.map +1 -1
- package/dist/core/deadcode/import-cleaner.d.ts.map +1 -1
- package/dist/core/deadcode/import-cleaner.js +3 -1
- package/dist/core/deadcode/import-cleaner.js.map +1 -1
- package/dist/core/deadcode/range-expander.d.ts +9 -1
- package/dist/core/deadcode/range-expander.d.ts.map +1 -1
- package/dist/core/deadcode/range-expander.js +115 -41
- package/dist/core/deadcode/range-expander.js.map +1 -1
- package/dist/core/foundations/file-utils.d.ts.map +1 -1
- package/dist/core/foundations/file-utils.js +6 -3
- package/dist/core/foundations/file-utils.js.map +1 -1
- package/dist/core/foundations/indexing/file-index.d.ts +5 -2
- package/dist/core/foundations/indexing/file-index.d.ts.map +1 -1
- package/dist/core/foundations/indexing/file-index.js +11 -3
- package/dist/core/foundations/indexing/file-index.js.map +1 -1
- package/dist/core/foundations/indexing/index-cache-serializer.d.ts +133 -0
- package/dist/core/foundations/indexing/index-cache-serializer.d.ts.map +1 -0
- package/dist/core/foundations/indexing/index-cache-serializer.js +217 -0
- package/dist/core/foundations/indexing/index-cache-serializer.js.map +1 -0
- package/dist/core/foundations/indexing/index-engine.d.ts +11 -5
- package/dist/core/foundations/indexing/index-engine.d.ts.map +1 -1
- package/dist/core/foundations/indexing/index-engine.js +31 -22
- package/dist/core/foundations/indexing/index-engine.js.map +1 -1
- package/dist/core/foundations/indexing/index.d.ts +4 -1
- package/dist/core/foundations/indexing/index.d.ts.map +1 -1
- package/dist/core/foundations/indexing/index.js +2 -1
- package/dist/core/foundations/indexing/index.js.map +1 -1
- package/dist/core/foundations/indexing/symbol-index.d.ts +7 -1
- package/dist/core/foundations/indexing/symbol-index.d.ts.map +1 -1
- package/dist/core/foundations/indexing/symbol-index.js +54 -3
- package/dist/core/foundations/indexing/symbol-index.js.map +1 -1
- package/dist/core/foundations/indexing/types.d.ts +3 -2
- package/dist/core/foundations/indexing/types.d.ts.map +1 -1
- package/dist/core/foundations/indexing/types.js +8 -6
- package/dist/core/foundations/indexing/types.js.map +1 -1
- package/dist/core/foundations/symbol-finder/call-site-parser.d.ts.map +1 -1
- package/dist/core/foundations/symbol-finder/call-site-parser.js +3 -1
- package/dist/core/foundations/symbol-finder/call-site-parser.js.map +1 -1
- package/dist/core/foundations/symbol-finder/symbol-finder.d.ts +0 -2
- package/dist/core/foundations/symbol-finder/symbol-finder.d.ts.map +1 -1
- package/dist/core/foundations/symbol-finder/symbol-finder.js +15 -11
- package/dist/core/foundations/symbol-finder/symbol-finder.js.map +1 -1
- package/dist/core/impact/dependency-extractor.d.ts +11 -3
- package/dist/core/impact/dependency-extractor.d.ts.map +1 -1
- package/dist/core/impact/dependency-extractor.js +149 -34
- package/dist/core/impact/dependency-extractor.js.map +1 -1
- package/dist/core/impact/file-scanner.d.ts.map +1 -1
- package/dist/core/impact/file-scanner.js +3 -2
- package/dist/core/impact/file-scanner.js.map +1 -1
- package/dist/core/impact/impact-analyzer.d.ts +8 -1
- package/dist/core/impact/impact-analyzer.d.ts.map +1 -1
- package/dist/core/impact/impact-analyzer.js +27 -8
- package/dist/core/impact/impact-analyzer.js.map +1 -1
- package/dist/core/impact/path-resolver.d.ts.map +1 -1
- package/dist/core/impact/path-resolver.js +11 -10
- package/dist/core/impact/path-resolver.js.map +1 -1
- package/dist/core/impact/types.d.ts.map +1 -1
- package/dist/core/impact/types.js +2 -1
- package/dist/core/impact/types.js.map +1 -1
- package/dist/core/move/file-scanner.d.ts +12 -0
- package/dist/core/move/file-scanner.d.ts.map +1 -1
- package/dist/core/move/file-scanner.js +58 -30
- package/dist/core/move/file-scanner.js.map +1 -1
- package/dist/core/move/glob-move-planner.d.ts +29 -0
- package/dist/core/move/glob-move-planner.d.ts.map +1 -0
- package/dist/core/move/glob-move-planner.js +48 -0
- package/dist/core/move/glob-move-planner.js.map +1 -0
- package/dist/core/move/index.d.ts +2 -0
- package/dist/core/move/index.d.ts.map +1 -1
- package/dist/core/move/index.js +1 -0
- package/dist/core/move/index.js.map +1 -1
- package/dist/core/move/move-engine.js +2 -2
- package/dist/core/move/move-engine.js.map +1 -1
- package/dist/core/move/path-calculator.d.ts +2 -0
- package/dist/core/move/path-calculator.d.ts.map +1 -1
- package/dist/core/move/path-calculator.js +36 -16
- package/dist/core/move/path-calculator.js.map +1 -1
- package/dist/core/move/path-utils.d.ts +2 -1
- package/dist/core/move/path-utils.d.ts.map +1 -1
- package/dist/core/move/path-utils.js +18 -28
- package/dist/core/move/path-utils.js.map +1 -1
- package/dist/core/move-member/change-applier.d.ts.map +1 -1
- package/dist/core/move-member/change-applier.js +3 -1
- package/dist/core/move-member/change-applier.js.map +1 -1
- package/dist/core/move-member/extractors/typescript-extractor.d.ts.map +1 -1
- package/dist/core/move-member/extractors/typescript-extractor.js +32 -28
- package/dist/core/move-member/extractors/typescript-extractor.js.map +1 -1
- package/dist/core/move-member/file-change-preparer.d.ts +5 -0
- package/dist/core/move-member/file-change-preparer.d.ts.map +1 -1
- package/dist/core/move-member/file-change-preparer.js +51 -11
- package/dist/core/move-member/file-change-preparer.js.map +1 -1
- package/dist/core/move-member/member-extractor.d.ts +0 -2
- package/dist/core/move-member/member-extractor.d.ts.map +1 -1
- package/dist/core/move-member/member-extractor.js +13 -22
- package/dist/core/move-member/member-extractor.js.map +1 -1
- package/dist/core/move-member/move-member-engine.d.ts +0 -1
- package/dist/core/move-member/move-member-engine.d.ts.map +1 -1
- package/dist/core/move-member/move-member-engine.js +0 -2
- package/dist/core/move-member/move-member-engine.js.map +1 -1
- package/dist/core/move-member/reference-updater.d.ts.map +1 -1
- package/dist/core/move-member/reference-updater.js +7 -10
- package/dist/core/move-member/reference-updater.js.map +1 -1
- package/dist/core/rename/reference-updater.d.ts +1 -0
- package/dist/core/rename/reference-updater.d.ts.map +1 -1
- package/dist/core/rename/reference-updater.js +48 -46
- package/dist/core/rename/reference-updater.js.map +1 -1
- package/dist/core/rename/rename-engine.d.ts +0 -1
- package/dist/core/rename/rename-engine.d.ts.map +1 -1
- package/dist/core/rename/rename-engine.js +9 -22
- package/dist/core/rename/rename-engine.js.map +1 -1
- package/dist/infrastructure/cache/cache-manager.d.ts.map +1 -1
- package/dist/infrastructure/cache/cache-manager.js +4 -5
- package/dist/infrastructure/cache/cache-manager.js.map +1 -1
- package/dist/infrastructure/cache/index-disk-cache.d.ts +46 -0
- package/dist/infrastructure/cache/index-disk-cache.d.ts.map +1 -0
- package/dist/infrastructure/cache/index-disk-cache.js +150 -0
- package/dist/infrastructure/cache/index-disk-cache.js.map +1 -0
- package/dist/infrastructure/cache/index.d.ts.map +1 -1
- package/dist/infrastructure/cache/index.js +1 -0
- package/dist/infrastructure/cache/index.js.map +1 -1
- package/dist/infrastructure/cache/memory-cache.d.ts.map +1 -1
- package/dist/infrastructure/cache/memory-cache.js +3 -1
- package/dist/infrastructure/cache/memory-cache.js.map +1 -1
- package/dist/infrastructure/formatters/index.d.ts +1 -2
- package/dist/infrastructure/formatters/index.d.ts.map +1 -1
- package/dist/infrastructure/formatters/index.js +1 -2
- package/dist/infrastructure/formatters/index.js.map +1 -1
- package/dist/infrastructure/formatters/query-formatter.d.ts.map +1 -1
- package/dist/infrastructure/formatters/query-formatter.js +9 -18
- package/dist/infrastructure/formatters/query-formatter.js.map +1 -1
- package/dist/infrastructure/formatters/query-types.d.ts +15 -145
- package/dist/infrastructure/formatters/query-types.d.ts.map +1 -1
- package/dist/infrastructure/formatters/query-types.js +3 -18
- package/dist/infrastructure/formatters/query-types.js.map +1 -1
- package/dist/infrastructure/formatters/strategies/base-formatter.d.ts +1 -20
- package/dist/infrastructure/formatters/strategies/base-formatter.d.ts.map +1 -1
- package/dist/infrastructure/formatters/strategies/base-formatter.js +0 -8
- package/dist/infrastructure/formatters/strategies/base-formatter.js.map +1 -1
- package/dist/infrastructure/formatters/strategies/call-hierarchy-formatter.d.ts.map +1 -1
- package/dist/infrastructure/formatters/strategies/call-hierarchy-formatter.js +7 -0
- package/dist/infrastructure/formatters/strategies/call-hierarchy-formatter.js.map +1 -1
- package/dist/infrastructure/formatters/strategies/cycles-formatter.d.ts +15 -0
- package/dist/infrastructure/formatters/strategies/cycles-formatter.d.ts.map +1 -0
- package/dist/infrastructure/formatters/strategies/cycles-formatter.js +29 -0
- package/dist/infrastructure/formatters/strategies/cycles-formatter.js.map +1 -0
- package/dist/infrastructure/formatters/strategies/impact-formatter.d.ts +15 -0
- package/dist/infrastructure/formatters/strategies/impact-formatter.d.ts.map +1 -0
- package/dist/infrastructure/formatters/strategies/impact-formatter.js +31 -0
- package/dist/infrastructure/formatters/strategies/impact-formatter.js.map +1 -0
- package/dist/infrastructure/formatters/strategies/index.d.ts +3 -4
- package/dist/infrastructure/formatters/strategies/index.d.ts.map +1 -1
- package/dist/infrastructure/formatters/strategies/index.js +3 -4
- package/dist/infrastructure/formatters/strategies/index.js.map +1 -1
- package/dist/infrastructure/logging/index.d.ts +2 -0
- package/dist/infrastructure/logging/index.d.ts.map +1 -0
- package/dist/infrastructure/logging/index.js +2 -0
- package/dist/infrastructure/logging/index.js.map +1 -0
- package/dist/infrastructure/logging/logger.d.ts +25 -0
- package/dist/infrastructure/logging/logger.d.ts.map +1 -0
- package/dist/infrastructure/logging/logger.js +54 -0
- package/dist/infrastructure/logging/logger.js.map +1 -0
- package/dist/infrastructure/parser/analysis-types.d.ts.map +1 -1
- package/dist/infrastructure/parser/base.d.ts +1 -6
- package/dist/infrastructure/parser/base.d.ts.map +1 -1
- package/dist/infrastructure/parser/base.js +4 -16
- package/dist/infrastructure/parser/base.js.map +1 -1
- package/dist/infrastructure/parser/index.d.ts +2 -2
- package/dist/infrastructure/parser/index.d.ts.map +1 -1
- package/dist/infrastructure/parser/index.js +1 -1
- package/dist/infrastructure/parser/index.js.map +1 -1
- package/dist/infrastructure/parser/interface.d.ts +0 -7
- package/dist/infrastructure/parser/interface.d.ts.map +1 -1
- package/dist/infrastructure/parser/interface.js +0 -1
- package/dist/infrastructure/parser/interface.js.map +1 -1
- package/dist/infrastructure/parser/registry.d.ts.map +1 -1
- package/dist/infrastructure/parser/registry.js +2 -1
- package/dist/infrastructure/parser/registry.js.map +1 -1
- package/dist/infrastructure/parser/types.d.ts +12 -3
- package/dist/infrastructure/parser/types.d.ts.map +1 -1
- package/dist/infrastructure/parser/types.js +7 -2
- package/dist/infrastructure/parser/types.js.map +1 -1
- package/dist/infrastructure/storage/file-system.d.ts.map +1 -1
- package/dist/infrastructure/storage/file-system.js +5 -1
- package/dist/infrastructure/storage/file-system.js.map +1 -1
- package/dist/interfaces/cli/cached-index-engine.d.ts +25 -0
- package/dist/interfaces/cli/cached-index-engine.d.ts.map +1 -0
- package/dist/interfaces/cli/cached-index-engine.js +59 -0
- package/dist/interfaces/cli/cached-index-engine.js.map +1 -0
- package/dist/interfaces/cli/cli.d.ts +1 -0
- package/dist/interfaces/cli/cli.d.ts.map +1 -1
- package/dist/interfaces/cli/cli.js +33 -19
- package/dist/interfaces/cli/cli.js.map +1 -1
- package/dist/interfaces/cli/command-utils.d.ts +17 -1
- package/dist/interfaces/cli/command-utils.d.ts.map +1 -1
- package/dist/interfaces/cli/command-utils.js +53 -3
- package/dist/interfaces/cli/command-utils.js.map +1 -1
- package/dist/interfaces/cli/commands/call-hierarchy.command.d.ts.map +1 -1
- package/dist/interfaces/cli/commands/call-hierarchy.command.js +57 -17
- package/dist/interfaces/cli/commands/call-hierarchy.command.js.map +1 -1
- package/dist/interfaces/cli/commands/change-signature.command.d.ts +12 -0
- package/dist/interfaces/cli/commands/change-signature.command.d.ts.map +1 -1
- package/dist/interfaces/cli/commands/change-signature.command.js +131 -12
- package/dist/interfaces/cli/commands/change-signature.command.js.map +1 -1
- package/dist/interfaces/cli/commands/cycles.command.d.ts +1 -1
- package/dist/interfaces/cli/commands/cycles.command.d.ts.map +1 -1
- package/dist/interfaces/cli/commands/cycles.command.js +13 -11
- package/dist/interfaces/cli/commands/cycles.command.js.map +1 -1
- package/dist/interfaces/cli/commands/deadcode.command.d.ts.map +1 -1
- package/dist/interfaces/cli/commands/deadcode.command.js +18 -19
- package/dist/interfaces/cli/commands/deadcode.command.js.map +1 -1
- package/dist/interfaces/cli/commands/find-references.command.d.ts.map +1 -1
- package/dist/interfaces/cli/commands/find-references.command.js +35 -11
- package/dist/interfaces/cli/commands/find-references.command.js.map +1 -1
- package/dist/interfaces/cli/commands/impact.command.d.ts +1 -1
- package/dist/interfaces/cli/commands/impact.command.js +6 -13
- package/dist/interfaces/cli/commands/impact.command.js.map +1 -1
- package/dist/interfaces/cli/commands/index.d.ts +1 -1
- package/dist/interfaces/cli/commands/index.d.ts.map +1 -1
- package/dist/interfaces/cli/commands/index.js +1 -1
- package/dist/interfaces/cli/commands/index.js.map +1 -1
- package/dist/interfaces/cli/commands/move-command-options.d.ts +14 -0
- package/dist/interfaces/cli/commands/move-command-options.d.ts.map +1 -0
- package/dist/interfaces/cli/commands/move-command-options.js +2 -0
- package/dist/interfaces/cli/commands/move-command-options.js.map +1 -0
- package/dist/interfaces/cli/commands/move-glob-command-handler.d.ts +8 -0
- package/dist/interfaces/cli/commands/move-glob-command-handler.d.ts.map +1 -0
- package/dist/interfaces/cli/commands/move-glob-command-handler.js +186 -0
- package/dist/interfaces/cli/commands/move-glob-command-handler.js.map +1 -0
- package/dist/interfaces/cli/commands/move.command.d.ts.map +1 -1
- package/dist/interfaces/cli/commands/move.command.js +62 -241
- package/dist/interfaces/cli/commands/move.command.js.map +1 -1
- package/dist/interfaces/cli/commands/rename.command.d.ts.map +1 -1
- package/dist/interfaces/cli/commands/rename.command.js +40 -26
- package/dist/interfaces/cli/commands/rename.command.js.map +1 -1
- package/dist/interfaces/cli/commands/search.command.d.ts +11 -0
- package/dist/interfaces/cli/commands/search.command.d.ts.map +1 -0
- package/dist/interfaces/cli/commands/search.command.js +110 -0
- package/dist/interfaces/cli/commands/search.command.js.map +1 -0
- package/dist/interfaces/cli/unified-output-handler.d.ts +5 -0
- package/dist/interfaces/cli/unified-output-handler.d.ts.map +1 -1
- package/dist/interfaces/cli/unified-output-handler.js +8 -1
- package/dist/interfaces/cli/unified-output-handler.js.map +1 -1
- package/dist/plugins/javascript/declaration-analyzer.d.ts.map +1 -1
- package/dist/plugins/javascript/declaration-analyzer.js +5 -2
- package/dist/plugins/javascript/declaration-analyzer.js.map +1 -1
- package/dist/plugins/javascript/parser.d.ts +6 -4
- package/dist/plugins/javascript/parser.d.ts.map +1 -1
- package/dist/plugins/javascript/parser.js +97 -15
- package/dist/plugins/javascript/parser.js.map +1 -1
- package/dist/plugins/javascript/reference-finder.d.ts.map +1 -1
- package/dist/plugins/javascript/reference-finder.js +3 -1
- package/dist/plugins/javascript/reference-finder.js.map +1 -1
- package/dist/plugins/javascript/types.js +10 -10
- package/dist/plugins/javascript/types.js.map +1 -1
- package/dist/plugins/shared/constants.d.ts +1 -1
- package/dist/plugins/shared/constants.d.ts.map +1 -1
- package/dist/plugins/shared/constants.js +7 -1
- package/dist/plugins/shared/constants.js.map +1 -1
- package/dist/plugins/shared/parser-helpers.d.ts.map +1 -1
- package/dist/plugins/shared/parser-helpers.js +1 -0
- package/dist/plugins/shared/parser-helpers.js.map +1 -1
- package/dist/plugins/shared/utils/memory-monitor.d.ts.map +1 -1
- package/dist/plugins/shared/utils/memory-monitor.js +3 -2
- package/dist/plugins/shared/utils/memory-monitor.js.map +1 -1
- package/dist/plugins/shared/utils/object.d.ts.map +1 -1
- package/dist/plugins/shared/utils/object.js +8 -12
- package/dist/plugins/shared/utils/object.js.map +1 -1
- package/dist/plugins/typescript/declaration-analyzer.d.ts.map +1 -1
- package/dist/plugins/typescript/declaration-analyzer.js +9 -4
- package/dist/plugins/typescript/declaration-analyzer.js.map +1 -1
- package/dist/plugins/typescript/language-service.js +1 -1
- package/dist/plugins/typescript/language-service.js.map +1 -1
- package/dist/plugins/typescript/parser.d.ts +1 -6
- package/dist/plugins/typescript/parser.d.ts.map +1 -1
- package/dist/plugins/typescript/parser.js +7 -33
- package/dist/plugins/typescript/parser.js.map +1 -1
- package/dist/plugins/typescript/pattern-analyzer.d.ts.map +1 -1
- package/dist/plugins/typescript/pattern-analyzer.js +3 -1
- package/dist/plugins/typescript/pattern-analyzer.js.map +1 -1
- package/dist/plugins/typescript/reference-finder.d.ts.map +1 -1
- package/dist/plugins/typescript/reference-finder.js +3 -1
- package/dist/plugins/typescript/reference-finder.js.map +1 -1
- package/dist/plugins/typescript/tsconfig-loader.d.ts.map +1 -1
- package/dist/plugins/typescript/tsconfig-loader.js +162 -24
- package/dist/plugins/typescript/tsconfig-loader.js.map +1 -1
- package/dist/plugins/typescript/types.js +3 -3
- package/dist/plugins/typescript/types.js.map +1 -1
- package/dist/shared/errors/diagnostic-collector.d.ts +47 -0
- package/dist/shared/errors/diagnostic-collector.d.ts.map +1 -0
- package/dist/shared/errors/diagnostic-collector.js +89 -0
- package/dist/shared/errors/diagnostic-collector.js.map +1 -0
- package/dist/shared/errors/index.d.ts +3 -0
- package/dist/shared/errors/index.d.ts.map +1 -1
- package/dist/shared/errors/index.js +5 -1
- package/dist/shared/errors/index.js.map +1 -1
- package/dist/shared/types/index.d.ts +1 -0
- package/dist/shared/types/index.d.ts.map +1 -1
- package/dist/shared/types/index.js +2 -0
- package/dist/shared/types/index.js.map +1 -1
- package/dist/shared/types/source-file-extensions.d.ts +14 -0
- package/dist/shared/types/source-file-extensions.d.ts.map +1 -0
- package/dist/shared/types/source-file-extensions.js +42 -0
- package/dist/shared/types/source-file-extensions.js.map +1 -0
- package/dist/shared/types/symbol.d.ts +1 -0
- package/dist/shared/types/symbol.d.ts.map +1 -1
- package/dist/shared/types/symbol.js.map +1 -1
- package/package.json +18 -12
- package/dist/application/events/event-bus.d.ts +0 -107
- package/dist/application/events/event-bus.d.ts.map +0 -1
- package/dist/application/events/event-bus.js +0 -369
- package/dist/application/events/event-bus.js.map +0 -1
- package/dist/application/events/event-types.d.ts +0 -195
- package/dist/application/events/event-types.d.ts.map +0 -1
- package/dist/application/events/event-types.js +0 -36
- package/dist/application/events/event-types.js.map +0 -1
- package/dist/application/events/index.d.ts +0 -6
- package/dist/application/events/index.d.ts.map +0 -1
- package/dist/application/events/index.js +0 -6
- package/dist/application/events/index.js.map +0 -1
- package/dist/application/index.d.ts +0 -76
- package/dist/application/index.d.ts.map +0 -1
- package/dist/application/index.js +0 -127
- package/dist/application/index.js.map +0 -1
- package/dist/application/services/cache-coordinator.service.d.ts +0 -69
- package/dist/application/services/cache-coordinator.service.d.ts.map +0 -1
- package/dist/application/services/cache-coordinator.service.js +0 -251
- package/dist/application/services/cache-coordinator.service.js.map +0 -1
- package/dist/application/services/error-handler.service.d.ts +0 -56
- package/dist/application/services/error-handler.service.d.ts.map +0 -1
- package/dist/application/services/error-handler.service.js +0 -273
- package/dist/application/services/error-handler.service.js.map +0 -1
- package/dist/application/services/index.d.ts +0 -8
- package/dist/application/services/index.d.ts.map +0 -1
- package/dist/application/services/index.js +0 -8
- package/dist/application/services/index.js.map +0 -1
- package/dist/application/services/module-coordinator.service.d.ts +0 -55
- package/dist/application/services/module-coordinator.service.d.ts.map +0 -1
- package/dist/application/services/module-coordinator.service.js +0 -185
- package/dist/application/services/module-coordinator.service.js.map +0 -1
- package/dist/application/services/session-manager.service.d.ts +0 -86
- package/dist/application/services/session-manager.service.d.ts.map +0 -1
- package/dist/application/services/session-manager.service.js +0 -321
- package/dist/application/services/session-manager.service.js.map +0 -1
- package/dist/application/state/application-state.d.ts +0 -164
- package/dist/application/state/application-state.d.ts.map +0 -1
- package/dist/application/state/application-state.js +0 -290
- package/dist/application/state/application-state.js.map +0 -1
- package/dist/application/state/index.d.ts +0 -15
- package/dist/application/state/index.d.ts.map +0 -1
- package/dist/application/state/index.js +0 -15
- package/dist/application/state/index.js.map +0 -1
- package/dist/application/state/session-state.d.ts +0 -114
- package/dist/application/state/session-state.d.ts.map +0 -1
- package/dist/application/state/session-state.js +0 -188
- package/dist/application/state/session-state.js.map +0 -1
- package/dist/application/state/state-manager.d.ts +0 -122
- package/dist/application/state/state-manager.d.ts.map +0 -1
- package/dist/application/state/state-manager.js +0 -234
- package/dist/application/state/state-manager.js.map +0 -1
- package/dist/application/types.d.ts +0 -217
- package/dist/application/types.d.ts.map +0 -1
- package/dist/application/types.js +0 -5
- package/dist/application/types.js.map +0 -1
- package/dist/core/find-references/index.d.ts +0 -12
- package/dist/core/find-references/index.d.ts.map +0 -1
- package/dist/core/find-references/index.js +0 -14
- package/dist/core/find-references/index.js.map +0 -1
- package/dist/core/find-references/reference-finder-engine.d.ts +0 -75
- package/dist/core/find-references/reference-finder-engine.d.ts.map +0 -1
- package/dist/core/find-references/reference-finder-engine.js +0 -87
- package/dist/core/find-references/reference-finder-engine.js.map +0 -1
- package/dist/core/find-references/types.d.ts +0 -6
- package/dist/core/find-references/types.d.ts.map +0 -1
- package/dist/core/find-references/types.js +0 -7
- package/dist/core/find-references/types.js.map +0 -1
- package/dist/core/snapshot/index.d.ts +0 -9
- package/dist/core/snapshot/index.d.ts.map +0 -1
- package/dist/core/snapshot/index.js +0 -7
- package/dist/core/snapshot/index.js.map +0 -1
- package/dist/core/snapshot/snapshot-cache.d.ts +0 -103
- package/dist/core/snapshot/snapshot-cache.d.ts.map +0 -1
- package/dist/core/snapshot/snapshot-cache.js +0 -249
- package/dist/core/snapshot/snapshot-cache.js.map +0 -1
- package/dist/core/snapshot/snapshot-generator.d.ts +0 -79
- package/dist/core/snapshot/snapshot-generator.d.ts.map +0 -1
- package/dist/core/snapshot/snapshot-generator.js +0 -381
- package/dist/core/snapshot/snapshot-generator.js.map +0 -1
- package/dist/core/snapshot/types.d.ts +0 -67
- package/dist/core/snapshot/types.d.ts.map +0 -1
- package/dist/core/snapshot/types.js +0 -25
- package/dist/core/snapshot/types.js.map +0 -1
- package/dist/core/snapshot/utils/bracket-balancer.d.ts +0 -27
- package/dist/core/snapshot/utils/bracket-balancer.d.ts.map +0 -1
- package/dist/core/snapshot/utils/bracket-balancer.js +0 -70
- package/dist/core/snapshot/utils/bracket-balancer.js.map +0 -1
- package/dist/core/snapshot/utils/factory-pattern-detector.d.ts +0 -22
- package/dist/core/snapshot/utils/factory-pattern-detector.d.ts.map +0 -1
- package/dist/core/snapshot/utils/factory-pattern-detector.js +0 -70
- package/dist/core/snapshot/utils/factory-pattern-detector.js.map +0 -1
- package/dist/core/snapshot/utils/index.d.ts +0 -7
- package/dist/core/snapshot/utils/index.d.ts.map +0 -1
- package/dist/core/snapshot/utils/index.js +0 -7
- package/dist/core/snapshot/utils/index.js.map +0 -1
- package/dist/core/snapshot/utils/symbol-formatter.d.ts +0 -37
- package/dist/core/snapshot/utils/symbol-formatter.d.ts.map +0 -1
- package/dist/core/snapshot/utils/symbol-formatter.js +0 -89
- package/dist/core/snapshot/utils/symbol-formatter.js.map +0 -1
- package/dist/infrastructure/formatters/diff-utils.d.ts +0 -24
- package/dist/infrastructure/formatters/diff-utils.d.ts.map +0 -1
- package/dist/infrastructure/formatters/diff-utils.js +0 -104
- package/dist/infrastructure/formatters/diff-utils.js.map +0 -1
- package/dist/infrastructure/formatters/preview-converter.d.ts +0 -148
- package/dist/infrastructure/formatters/preview-converter.d.ts.map +0 -1
- package/dist/infrastructure/formatters/preview-converter.js +0 -329
- package/dist/infrastructure/formatters/preview-converter.js.map +0 -1
- package/dist/infrastructure/formatters/strategies/analyze-formatter.d.ts +0 -24
- package/dist/infrastructure/formatters/strategies/analyze-formatter.d.ts.map +0 -1
- package/dist/infrastructure/formatters/strategies/analyze-formatter.js +0 -102
- package/dist/infrastructure/formatters/strategies/analyze-formatter.js.map +0 -1
- package/dist/infrastructure/formatters/strategies/deps-formatter.d.ts +0 -15
- package/dist/infrastructure/formatters/strategies/deps-formatter.d.ts.map +0 -1
- package/dist/infrastructure/formatters/strategies/deps-formatter.js +0 -47
- package/dist/infrastructure/formatters/strategies/deps-formatter.js.map +0 -1
- package/dist/infrastructure/formatters/strategies/snapshot-formatter.d.ts +0 -20
- package/dist/infrastructure/formatters/strategies/snapshot-formatter.d.ts.map +0 -1
- package/dist/infrastructure/formatters/strategies/snapshot-formatter.js +0 -101
- package/dist/infrastructure/formatters/strategies/snapshot-formatter.js.map +0 -1
- package/dist/interfaces/cli/commands/snapshot.command.d.ts +0 -11
- package/dist/interfaces/cli/commands/snapshot.command.d.ts.map +0 -1
- package/dist/interfaces/cli/commands/snapshot.command.js +0 -86
- package/dist/interfaces/cli/commands/snapshot.command.js.map +0 -1
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Application Services 層型別定義
|
|
3
|
-
*/
|
|
4
|
-
import type { Position, Range } from '../shared/types/core.js';
|
|
5
|
-
import type { BaseError } from '../shared/errors/base-error.js';
|
|
6
|
-
export interface ModuleStatus {
|
|
7
|
-
moduleId: string;
|
|
8
|
-
name: string;
|
|
9
|
-
status: 'idle' | 'loading' | 'ready' | 'error';
|
|
10
|
-
lastActivity?: Date;
|
|
11
|
-
errorCount: number;
|
|
12
|
-
metadata?: Record<string, unknown>;
|
|
13
|
-
}
|
|
14
|
-
export interface RefactorOptions {
|
|
15
|
-
type: 'extract-function' | 'inline-function' | 'rename';
|
|
16
|
-
selection?: Range;
|
|
17
|
-
newName?: string;
|
|
18
|
-
preview?: boolean;
|
|
19
|
-
}
|
|
20
|
-
export interface RefactorResult {
|
|
21
|
-
success: boolean;
|
|
22
|
-
changes: CodeChange[];
|
|
23
|
-
preview?: string;
|
|
24
|
-
error?: BaseError;
|
|
25
|
-
}
|
|
26
|
-
export interface CodeChange {
|
|
27
|
-
filePath: string;
|
|
28
|
-
oldContent: string;
|
|
29
|
-
newContent: string;
|
|
30
|
-
range?: Range;
|
|
31
|
-
}
|
|
32
|
-
export interface RenameOperation {
|
|
33
|
-
filePath: string;
|
|
34
|
-
position: Position;
|
|
35
|
-
oldName: string;
|
|
36
|
-
newName: string;
|
|
37
|
-
}
|
|
38
|
-
export interface RenameResult {
|
|
39
|
-
success: boolean;
|
|
40
|
-
filesChanged: number;
|
|
41
|
-
changes: CodeChange[];
|
|
42
|
-
error?: BaseError;
|
|
43
|
-
}
|
|
44
|
-
export interface MoveResult {
|
|
45
|
-
success: boolean;
|
|
46
|
-
from: string;
|
|
47
|
-
to: string;
|
|
48
|
-
filesUpdated: number;
|
|
49
|
-
importUpdates: CodeChange[];
|
|
50
|
-
error?: BaseError;
|
|
51
|
-
}
|
|
52
|
-
export interface Session {
|
|
53
|
-
id: string;
|
|
54
|
-
userId?: string;
|
|
55
|
-
startTime: Date;
|
|
56
|
-
lastActivity: Date;
|
|
57
|
-
state: SessionState;
|
|
58
|
-
metadata?: Record<string, unknown>;
|
|
59
|
-
}
|
|
60
|
-
export interface SessionState {
|
|
61
|
-
id: string;
|
|
62
|
-
userId?: string;
|
|
63
|
-
status: 'active' | 'inactive' | 'expired';
|
|
64
|
-
context: SessionContext;
|
|
65
|
-
operationHistory: OperationHistory[];
|
|
66
|
-
createdAt: Date;
|
|
67
|
-
updatedAt: Date;
|
|
68
|
-
}
|
|
69
|
-
export interface SessionContext {
|
|
70
|
-
workingDirectory?: string;
|
|
71
|
-
currentFile?: string;
|
|
72
|
-
environment?: Record<string, string>;
|
|
73
|
-
preferences?: Record<string, unknown>;
|
|
74
|
-
}
|
|
75
|
-
export interface OperationHistory {
|
|
76
|
-
id: string;
|
|
77
|
-
operationType: string;
|
|
78
|
-
timestamp: Date;
|
|
79
|
-
parameters: Record<string, unknown>;
|
|
80
|
-
result?: unknown;
|
|
81
|
-
error?: BaseError;
|
|
82
|
-
duration?: number;
|
|
83
|
-
}
|
|
84
|
-
export interface CacheStrategy {
|
|
85
|
-
type: 'lru' | 'lfu' | 'ttl' | 'custom';
|
|
86
|
-
maxSize?: number;
|
|
87
|
-
maxAge?: number;
|
|
88
|
-
customStrategy?: (key: string, value: unknown) => boolean;
|
|
89
|
-
}
|
|
90
|
-
export interface CacheStats {
|
|
91
|
-
totalRequests: number;
|
|
92
|
-
hits: number;
|
|
93
|
-
misses: number;
|
|
94
|
-
hitRate: number;
|
|
95
|
-
size: number;
|
|
96
|
-
maxSize: number;
|
|
97
|
-
evictions: number;
|
|
98
|
-
lastReset: Date;
|
|
99
|
-
moduleStats: Map<string, ModuleCacheStats>;
|
|
100
|
-
}
|
|
101
|
-
export interface ModuleCacheStats {
|
|
102
|
-
moduleId: string;
|
|
103
|
-
requests: number;
|
|
104
|
-
hits: number;
|
|
105
|
-
misses: number;
|
|
106
|
-
hitRate: number;
|
|
107
|
-
size: number;
|
|
108
|
-
}
|
|
109
|
-
export interface ErrorContext {
|
|
110
|
-
module: string;
|
|
111
|
-
operation: string;
|
|
112
|
-
parameters?: Record<string, unknown>;
|
|
113
|
-
userId?: string;
|
|
114
|
-
sessionId?: string;
|
|
115
|
-
timestamp: Date;
|
|
116
|
-
}
|
|
117
|
-
export interface HandledError extends BaseError {
|
|
118
|
-
handled: boolean;
|
|
119
|
-
context: ErrorContext;
|
|
120
|
-
recovery?: RecoveryStrategy;
|
|
121
|
-
userMessage?: string;
|
|
122
|
-
}
|
|
123
|
-
export interface RetryOptions {
|
|
124
|
-
maxAttempts: number;
|
|
125
|
-
backoff?: 'linear' | 'exponential';
|
|
126
|
-
initialDelay?: number;
|
|
127
|
-
maxDelay?: number;
|
|
128
|
-
shouldRetry?: (error: Error, attempt: number) => boolean;
|
|
129
|
-
}
|
|
130
|
-
export interface RecoveryStrategy {
|
|
131
|
-
type: 'retry' | 'fallback' | 'ignore' | 'manual';
|
|
132
|
-
action?: () => Promise<unknown>;
|
|
133
|
-
fallbackValue?: unknown;
|
|
134
|
-
retryOptions?: RetryOptions;
|
|
135
|
-
}
|
|
136
|
-
export interface RecoveryResult {
|
|
137
|
-
success: boolean;
|
|
138
|
-
recoveryType: string;
|
|
139
|
-
result?: unknown;
|
|
140
|
-
error?: BaseError;
|
|
141
|
-
}
|
|
142
|
-
export interface ErrorStats {
|
|
143
|
-
totalErrors: number;
|
|
144
|
-
handledErrors: number;
|
|
145
|
-
recoveredErrors: number;
|
|
146
|
-
errorsByModule: Map<string, number>;
|
|
147
|
-
errorsByType: Map<string, number>;
|
|
148
|
-
recentErrors: ErrorContext[];
|
|
149
|
-
}
|
|
150
|
-
export interface IModuleCoordinatorService {
|
|
151
|
-
analyzeAndRefactor(filePath: string, options: RefactorOptions): Promise<RefactorResult>;
|
|
152
|
-
batchRename(operations: RenameOperation[]): Promise<RenameResult[]>;
|
|
153
|
-
smartMove(source: string, target: string): Promise<MoveResult>;
|
|
154
|
-
getModuleStatus(): Promise<ModuleStatus[]>;
|
|
155
|
-
}
|
|
156
|
-
export interface ISessionManager {
|
|
157
|
-
createSession(userId?: string): Promise<Session>;
|
|
158
|
-
getSession(sessionId: string): Promise<Session | null>;
|
|
159
|
-
updateSession(sessionId: string, updates: Partial<SessionState>): Promise<void>;
|
|
160
|
-
cleanup(): Promise<void>;
|
|
161
|
-
getHistory(sessionId: string): Promise<OperationHistory[]>;
|
|
162
|
-
}
|
|
163
|
-
export interface ICacheCoordinator {
|
|
164
|
-
configureCache(moduleId: string, strategy: CacheStrategy): Promise<void>;
|
|
165
|
-
invalidateAll(): Promise<void>;
|
|
166
|
-
invalidateModule(moduleId: string): Promise<void>;
|
|
167
|
-
getStats(): Promise<CacheStats>;
|
|
168
|
-
warmup(modules: string[]): Promise<void>;
|
|
169
|
-
}
|
|
170
|
-
export interface IErrorHandler {
|
|
171
|
-
handle(error: Error, context: ErrorContext): Promise<HandledError>;
|
|
172
|
-
retry<T>(operation: () => Promise<T>, options: RetryOptions): Promise<T>;
|
|
173
|
-
recover(error: HandledError): Promise<RecoveryResult>;
|
|
174
|
-
getErrorStats(): Promise<ErrorStats>;
|
|
175
|
-
}
|
|
176
|
-
export interface ApplicationEvent {
|
|
177
|
-
type: string;
|
|
178
|
-
timestamp: Date;
|
|
179
|
-
payload: unknown;
|
|
180
|
-
source?: string;
|
|
181
|
-
sessionId?: string;
|
|
182
|
-
}
|
|
183
|
-
export interface StateChangeEvent extends ApplicationEvent {
|
|
184
|
-
type: 'state-change';
|
|
185
|
-
payload: {
|
|
186
|
-
stateType: 'session' | 'application';
|
|
187
|
-
stateId: string;
|
|
188
|
-
changes: Record<string, unknown>;
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
export interface ModuleEvent extends ApplicationEvent {
|
|
192
|
-
type: 'module-event';
|
|
193
|
-
payload: {
|
|
194
|
-
moduleId: string;
|
|
195
|
-
eventType: string;
|
|
196
|
-
data: unknown;
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
export interface CacheEvent extends ApplicationEvent {
|
|
200
|
-
type: 'cache-event';
|
|
201
|
-
payload: {
|
|
202
|
-
eventType: 'hit' | 'miss' | 'eviction' | 'invalidation' | 'warmup';
|
|
203
|
-
moduleId?: string;
|
|
204
|
-
key?: string;
|
|
205
|
-
stats?: Partial<CacheStats>;
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
export interface ErrorEvent extends ApplicationEvent {
|
|
209
|
-
type: 'error-event';
|
|
210
|
-
payload: {
|
|
211
|
-
error: BaseError;
|
|
212
|
-
context: ErrorContext;
|
|
213
|
-
handled: boolean;
|
|
214
|
-
recovered?: boolean;
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/application/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAI9D,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC;IAC/C,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,kBAAkB,GAAG,iBAAiB,GAAG,QAAQ,CAAC;IACxD,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KA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ACnE,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;KAC7B,CAAC;CACH;AAED,MAAM,WAAW,UAAW,SAAQ,gBAAgB;IAClD,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,EAAE;QACP,KAAK,EAAE,SAAS,CAAC;QACjB,OAAO,EAAE,YAAY,CAAC;QACtB,OAAO,EAAE,OAAO,CAAC;QACjB,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB,CAAC;CACH"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/application/types.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 符號引用查找模組
|
|
3
|
-
* 提供跨檔案符號引用查找功能
|
|
4
|
-
*
|
|
5
|
-
* 注意:核心實作位於 @core/foundations/symbol-finder
|
|
6
|
-
* 本模組提供 CLI 介面的簡化包裝
|
|
7
|
-
*/
|
|
8
|
-
export { ReferenceFinderEngine, createReferenceFinderEngine } from './reference-finder-engine.js';
|
|
9
|
-
export { SymbolReferenceType, ClassMemberType, symbolToKey, serializeSymbolKey, deserializeSymbolKey } from './types.js';
|
|
10
|
-
export type { SymbolReference, CallSite, CallSiteArgument, ClassMember, SymbolDefinition, SymbolKey } from './types.js';
|
|
11
|
-
export { SymbolFinder, createSymbolFinder } from '../foundations/symbol-finder/index.js';
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/find-references/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAGlG,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,WAAW,EACX,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,eAAe,EACf,QAAQ,EACR,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,SAAS,EACV,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 符號引用查找模組
|
|
3
|
-
* 提供跨檔案符號引用查找功能
|
|
4
|
-
*
|
|
5
|
-
* 注意:核心實作位於 @core/foundations/symbol-finder
|
|
6
|
-
* 本模組提供 CLI 介面的簡化包裝
|
|
7
|
-
*/
|
|
8
|
-
// 主引擎
|
|
9
|
-
export { ReferenceFinderEngine, createReferenceFinderEngine } from './reference-finder-engine.js';
|
|
10
|
-
// 型別定義(從 types.ts 重新匯出)
|
|
11
|
-
export { SymbolReferenceType, ClassMemberType, symbolToKey, serializeSymbolKey, deserializeSymbolKey } from './types.js';
|
|
12
|
-
// 向後相容:重新匯出 SymbolFinder 和 createSymbolFinder
|
|
13
|
-
export { SymbolFinder, createSymbolFinder } from '../foundations/symbol-finder/index.js';
|
|
14
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/find-references/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM;AACN,OAAO,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAElG,wBAAwB;AACxB,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,WAAW,EACX,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,YAAY,CAAC;AAWpB,8CAA8C;AAC9C,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 符號引用查找引擎
|
|
3
|
-
* 提供跨檔案符號引用查找的高階 API
|
|
4
|
-
*
|
|
5
|
-
* 注意:核心實作位於 @core/foundations/symbol-finder
|
|
6
|
-
* 本引擎提供 CLI 介面的簡化包裝
|
|
7
|
-
*/
|
|
8
|
-
import type { Symbol } from '../../shared/types/symbol.js';
|
|
9
|
-
import type { ParserRegistry } from '../../infrastructure/parser/registry.js';
|
|
10
|
-
import type { IFileSystem } from '../../infrastructure/storage/file-system.interface.js';
|
|
11
|
-
import type { ScopedFindReferencesOptions } from '../../infrastructure/parser/interface.js';
|
|
12
|
-
import { type SymbolReference, type CallSite, type ClassMember, type SymbolDefinition } from '../foundations/symbol-finder/index.js';
|
|
13
|
-
/**
|
|
14
|
-
* 符號引用查找引擎
|
|
15
|
-
* 封裝 SymbolFinder 提供更簡潔的 API
|
|
16
|
-
*/
|
|
17
|
-
export declare class ReferenceFinderEngine {
|
|
18
|
-
private readonly symbolFinder;
|
|
19
|
-
constructor(parserRegistry: ParserRegistry, fileSystem: IFileSystem);
|
|
20
|
-
/**
|
|
21
|
-
* 查找符號定義
|
|
22
|
-
* @param filePath 檔案路徑
|
|
23
|
-
* @param symbolName 符號名稱
|
|
24
|
-
* @returns 符號定義資訊
|
|
25
|
-
*/
|
|
26
|
-
findDefinition(filePath: string, symbolName: string): Promise<SymbolDefinition | null>;
|
|
27
|
-
/**
|
|
28
|
-
* 查找符號的所有引用
|
|
29
|
-
* @param symbolName 符號名稱
|
|
30
|
-
* @param projectFiles 專案檔案列表
|
|
31
|
-
* @param options 作用域查找選項
|
|
32
|
-
* @returns 符號引用陣列
|
|
33
|
-
*/
|
|
34
|
-
findReferences(symbolName: string, projectFiles: readonly string[], options?: ScopedFindReferencesOptions): Promise<SymbolReference[]>;
|
|
35
|
-
/**
|
|
36
|
-
* 使用完整符號資訊查找引用
|
|
37
|
-
* 可區分不同作用域的同名符號
|
|
38
|
-
*
|
|
39
|
-
* @param symbol 完整的符號資訊
|
|
40
|
-
* @param projectFiles 專案檔案列表
|
|
41
|
-
* @returns 符號引用陣列
|
|
42
|
-
*/
|
|
43
|
-
findReferencesWithSymbol(symbol: Symbol, projectFiles: readonly string[]): Promise<SymbolReference[]>;
|
|
44
|
-
/**
|
|
45
|
-
* 批次查找多個符號的引用
|
|
46
|
-
* 優化效能:一次遍歷所有檔案查找多個符號
|
|
47
|
-
*
|
|
48
|
-
* @param symbols 要查找的符號陣列
|
|
49
|
-
* @param projectFiles 專案檔案列表
|
|
50
|
-
* @returns Map<序列化的SymbolKey, 引用列表>
|
|
51
|
-
*/
|
|
52
|
-
findReferencesMultiple(symbols: ReadonlyArray<Symbol>, projectFiles: readonly string[]): Promise<Map<string, SymbolReference[]>>;
|
|
53
|
-
/**
|
|
54
|
-
* 查找函式的所有呼叫點
|
|
55
|
-
* @param functionName 函式名稱
|
|
56
|
-
* @param projectFiles 專案檔案列表
|
|
57
|
-
* @returns 呼叫點陣列
|
|
58
|
-
*/
|
|
59
|
-
findCallSites(functionName: string, projectFiles: readonly string[]): Promise<CallSite[]>;
|
|
60
|
-
/**
|
|
61
|
-
* 查找類別成員
|
|
62
|
-
* @param filePath 檔案路徑
|
|
63
|
-
* @param className 類別名稱
|
|
64
|
-
* @returns 類別成員陣列
|
|
65
|
-
*/
|
|
66
|
-
findClassMembers(filePath: string, className: string): Promise<ClassMember[]>;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* 建立引用查找引擎實例
|
|
70
|
-
* @param parserRegistry Parser 註冊表
|
|
71
|
-
* @param fileSystem 檔案系統
|
|
72
|
-
* @returns 引用查找引擎實例
|
|
73
|
-
*/
|
|
74
|
-
export declare function createReferenceFinderEngine(parserRegistry: ParserRegistry, fileSystem: IFileSystem): ReferenceFinderEngine;
|
|
75
|
-
//# sourceMappingURL=reference-finder-engine.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reference-finder-engine.d.ts","sourceRoot":"","sources":["../../../src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AAQ,EAAE,CAAC;IAItB;;;;;OAKG;IACG,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;CAGpF;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,WAAW,GACtB,qBAAqB,CAEvB"}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 符號引用查找引擎
|
|
3
|
-
* 提供跨檔案符號引用查找的高階 API
|
|
4
|
-
*
|
|
5
|
-
* 注意:核心實作位於 @core/foundations/symbol-finder
|
|
6
|
-
* 本引擎提供 CLI 介面的簡化包裝
|
|
7
|
-
*/
|
|
8
|
-
import { createSymbolFinder } from '../foundations/symbol-finder/index.js';
|
|
9
|
-
/**
|
|
10
|
-
* 符號引用查找引擎
|
|
11
|
-
* 封裝 SymbolFinder 提供更簡潔的 API
|
|
12
|
-
*/
|
|
13
|
-
export class ReferenceFinderEngine {
|
|
14
|
-
symbolFinder;
|
|
15
|
-
constructor(parserRegistry, fileSystem) {
|
|
16
|
-
this.symbolFinder = createSymbolFinder(parserRegistry, fileSystem);
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* 查找符號定義
|
|
20
|
-
* @param filePath 檔案路徑
|
|
21
|
-
* @param symbolName 符號名稱
|
|
22
|
-
* @returns 符號定義資訊
|
|
23
|
-
*/
|
|
24
|
-
async findDefinition(filePath, symbolName) {
|
|
25
|
-
return this.symbolFinder.findDefinition(filePath, symbolName);
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* 查找符號的所有引用
|
|
29
|
-
* @param symbolName 符號名稱
|
|
30
|
-
* @param projectFiles 專案檔案列表
|
|
31
|
-
* @param options 作用域查找選項
|
|
32
|
-
* @returns 符號引用陣列
|
|
33
|
-
*/
|
|
34
|
-
async findReferences(symbolName, projectFiles, options) {
|
|
35
|
-
return this.symbolFinder.findScopedReferences(symbolName, projectFiles, options);
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* 使用完整符號資訊查找引用
|
|
39
|
-
* 可區分不同作用域的同名符號
|
|
40
|
-
*
|
|
41
|
-
* @param symbol 完整的符號資訊
|
|
42
|
-
* @param projectFiles 專案檔案列表
|
|
43
|
-
* @returns 符號引用陣列
|
|
44
|
-
*/
|
|
45
|
-
async findReferencesWithSymbol(symbol, projectFiles) {
|
|
46
|
-
return this.symbolFinder.findReferencesWithSymbol(symbol, projectFiles);
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* 批次查找多個符號的引用
|
|
50
|
-
* 優化效能:一次遍歷所有檔案查找多個符號
|
|
51
|
-
*
|
|
52
|
-
* @param symbols 要查找的符號陣列
|
|
53
|
-
* @param projectFiles 專案檔案列表
|
|
54
|
-
* @returns Map<序列化的SymbolKey, 引用列表>
|
|
55
|
-
*/
|
|
56
|
-
async findReferencesMultiple(symbols, projectFiles) {
|
|
57
|
-
return this.symbolFinder.findReferencesMultiple(symbols, projectFiles);
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* 查找函式的所有呼叫點
|
|
61
|
-
* @param functionName 函式名稱
|
|
62
|
-
* @param projectFiles 專案檔案列表
|
|
63
|
-
* @returns 呼叫點陣列
|
|
64
|
-
*/
|
|
65
|
-
async findCallSites(functionName, projectFiles) {
|
|
66
|
-
return this.symbolFinder.findCallSites(functionName, projectFiles);
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* 查找類別成員
|
|
70
|
-
* @param filePath 檔案路徑
|
|
71
|
-
* @param className 類別名稱
|
|
72
|
-
* @returns 類別成員陣列
|
|
73
|
-
*/
|
|
74
|
-
async findClassMembers(filePath, className) {
|
|
75
|
-
return this.symbolFinder.findClassMembers(filePath, className);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* 建立引用查找引擎實例
|
|
80
|
-
* @param parserRegistry Parser 註冊表
|
|
81
|
-
* @param fileSystem 檔案系統
|
|
82
|
-
* @returns 引用查找引擎實例
|
|
83
|
-
*/
|
|
84
|
-
export function createReferenceFinderEngine(parserRegistry, fileSystem) {
|
|
85
|
-
return new ReferenceFinderEngine(parserRegistry, fileSystem);
|
|
86
|
-
}
|
|
87
|
-
//# sourceMappingURL=reference-finder-engine.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reference-finder-engine.js","sourceRoot":"","sources":["../../../src/core/find-references/reference-finder-engine.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,OAAO,EAEL,kBAAkB,EAKnB,MAAM,0CAA0C,CAAC;AAElD;;;GAGG;AACH,MAAM,OAAO,qBAAqB;IACf,YAAY,CAAe;IAE5C,YACE,cAA8B,EAC9B,UAAuB;QAEvB,IAAI,CAAC,YAAY,GAAG,kBAAkB,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;IACrE,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAAC,QAAgB,EAAE,UAAkB;QACvD,OAAO,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,cAAc,CAClB,UAAkB,EAClB,YAA+B,EAC/B,OAAqC;QAErC,OAAO,IAAI,CAAC,YAAY,CAAC,oBAAoB,CAAC,UAAU,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,wBAAwB,CAC5B,MAAc,EACd,YAA+B;QAE/B,OAAO,IAAI,CAAC,YAAY,CAAC,wBAAwB,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,sBAAsB,CAC1B,OAA8B,EAC9B,YAA+B;QAE/B,OAAO,IAAI,CAAC,YAAY,CAAC,sBAAsB,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IACzE,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,aAAa,CACjB,YAAoB,EACpB,YAA+B;QAE/B,OAAO,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;IACrE,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,gBAAgB,CAAC,QAAgB,EAAE,SAAiB;QACxD,OAAO,IAAI,CAAC,YAAY,CAAC,gBAAgB,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IACjE,CAAC;CACF;AAED;;;;;GAKG;AACH,MAAM,UAAU,2BAA2B,CACzC,cAA8B,EAC9B,UAAuB;IAEvB,OAAO,IAAI,qBAAqB,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;AAC/D,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 符號引用查找模組型別定義
|
|
3
|
-
* 從 @core/foundations/symbol-finder 重新匯出核心型別
|
|
4
|
-
*/
|
|
5
|
-
export { SymbolReferenceType, ClassMemberType, type SymbolReference, type CallSite, type CallSiteArgument, type ClassMember, type SymbolDefinition, type SymbolKey, symbolToKey, serializeSymbolKey, deserializeSymbolKey } from '../foundations/symbol-finder/index.js';
|
|
6
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/core/find-references/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,WAAW,EACX,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,0CAA0C,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 符號引用查找模組型別定義
|
|
3
|
-
* 從 @core/foundations/symbol-finder 重新匯出核心型別
|
|
4
|
-
*/
|
|
5
|
-
// 從 symbol-finder 重新匯出型別
|
|
6
|
-
export { SymbolReferenceType, ClassMemberType, symbolToKey, serializeSymbolKey, deserializeSymbolKey } from '../foundations/symbol-finder/index.js';
|
|
7
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/core/find-references/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,yBAAyB;AACzB,OAAO,EACL,mBAAmB,EACnB,eAAe,EAOf,WAAW,EACX,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,0CAA0C,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Snapshot 模組統一匯出
|
|
3
|
-
*/
|
|
4
|
-
export { SnapshotGenerator } from './snapshot-generator.js';
|
|
5
|
-
export { SnapshotCacheManager } from './snapshot-cache.js';
|
|
6
|
-
export type { ModuleSnapshot, ProjectSnapshot, SnapshotResult, PrivateInfo, SnapshotOptions } from './types.js';
|
|
7
|
-
export type { SnapshotVersion, SnapshotCache, IncrementalSnapshot, SnapshotDelta, DeltaSymbol } from './snapshot-cache.js';
|
|
8
|
-
export { SnapshotScope, isProjectSnapshot, isModuleSnapshot } from './types.js';
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/snapshot/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,YAAY,EACV,cAAc,EACd,eAAe,EACf,cAAc,EACd,WAAW,EACX,eAAe,EAChB,MAAM,YAAY,CAAC;AACpB,YAAY,EACV,eAAe,EACf,aAAa,EACb,mBAAmB,EACnB,aAAa,EACb,WAAW,EACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Snapshot 模組統一匯出
|
|
3
|
-
*/
|
|
4
|
-
export { SnapshotGenerator } from './snapshot-generator.js';
|
|
5
|
-
export { SnapshotCacheManager } from './snapshot-cache.js';
|
|
6
|
-
export { SnapshotScope, isProjectSnapshot, isModuleSnapshot } from './types.js';
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/snapshot/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAe3D,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Snapshot 快取管理器
|
|
3
|
-
* 儲存和比對快照版本,支援增量快照功能
|
|
4
|
-
*/
|
|
5
|
-
import type { IFileSystem } from '../../infrastructure/storage/index.js';
|
|
6
|
-
import type { ModuleSnapshot, ProjectSnapshot, SnapshotResult } from './types.js';
|
|
7
|
-
/**
|
|
8
|
-
* 快照版本資訊
|
|
9
|
-
*/
|
|
10
|
-
export interface SnapshotVersion {
|
|
11
|
-
/** 版本時間戳(ISO 格式) */
|
|
12
|
-
readonly timestamp: string;
|
|
13
|
-
/** 整體內容 checksum */
|
|
14
|
-
readonly checksum: string;
|
|
15
|
-
/** 各模組的 checksum */
|
|
16
|
-
readonly moduleChecksums: Record<string, string>;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* 快取結構
|
|
20
|
-
*/
|
|
21
|
-
export interface SnapshotCache {
|
|
22
|
-
/** 版本資訊 */
|
|
23
|
-
readonly version: SnapshotVersion;
|
|
24
|
-
/** 快照內容 */
|
|
25
|
-
readonly snapshot: ModuleSnapshot | ProjectSnapshot;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* 增量快照結果
|
|
29
|
-
*/
|
|
30
|
-
export interface IncrementalSnapshot {
|
|
31
|
-
/** 當前版本時間戳 */
|
|
32
|
-
readonly version: string;
|
|
33
|
-
/** 基準版本時間戳 */
|
|
34
|
-
readonly baseVersion: string;
|
|
35
|
-
/** 變更內容 */
|
|
36
|
-
readonly delta: SnapshotDelta;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* 快照差異
|
|
40
|
-
*/
|
|
41
|
-
export interface SnapshotDelta {
|
|
42
|
-
readonly added: {
|
|
43
|
-
readonly modules: Record<string, ModuleSnapshot>;
|
|
44
|
-
readonly symbols: readonly DeltaSymbol[];
|
|
45
|
-
};
|
|
46
|
-
readonly modified: {
|
|
47
|
-
readonly modules: readonly string[];
|
|
48
|
-
readonly symbols: readonly DeltaSymbol[];
|
|
49
|
-
};
|
|
50
|
-
readonly removed: {
|
|
51
|
-
readonly modules: readonly string[];
|
|
52
|
-
readonly symbols: readonly DeltaSymbol[];
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* 差異符號
|
|
57
|
-
*/
|
|
58
|
-
export interface DeltaSymbol {
|
|
59
|
-
readonly module: string;
|
|
60
|
-
readonly name: string;
|
|
61
|
-
readonly signature?: string;
|
|
62
|
-
readonly type: 'class' | 'function' | 'interface' | 'type' | 'factory';
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* 快取管理器
|
|
66
|
-
*/
|
|
67
|
-
export declare class SnapshotCacheManager {
|
|
68
|
-
private readonly fileSystem;
|
|
69
|
-
private readonly basePath;
|
|
70
|
-
private readonly cachePath;
|
|
71
|
-
constructor(fileSystem: IFileSystem, basePath: string);
|
|
72
|
-
/**
|
|
73
|
-
* 載入快取
|
|
74
|
-
* @returns 快取內容,若不存在或損壞則返回 null
|
|
75
|
-
*/
|
|
76
|
-
load(): Promise<SnapshotCache | null>;
|
|
77
|
-
/**
|
|
78
|
-
* 儲存快取
|
|
79
|
-
*/
|
|
80
|
-
save(snapshot: SnapshotResult): Promise<SnapshotVersion>;
|
|
81
|
-
/**
|
|
82
|
-
* 計算快照 checksum(使用 SHA-256)
|
|
83
|
-
*/
|
|
84
|
-
computeChecksum(data: unknown): string;
|
|
85
|
-
/**
|
|
86
|
-
* 計算各模組的 checksum
|
|
87
|
-
*/
|
|
88
|
-
private computeModuleChecksums;
|
|
89
|
-
/**
|
|
90
|
-
* 比對兩個快照,產生差異
|
|
91
|
-
* @throws Error 當快照類型不匹配時
|
|
92
|
-
*/
|
|
93
|
-
computeDelta(baseSnapshot: ModuleSnapshot | ProjectSnapshot, currentSnapshot: ModuleSnapshot | ProjectSnapshot): SnapshotDelta;
|
|
94
|
-
/**
|
|
95
|
-
* 計算模組內符號差異
|
|
96
|
-
*/
|
|
97
|
-
private computeModuleSymbolDelta;
|
|
98
|
-
/**
|
|
99
|
-
* 比對記錄並產生差異符號
|
|
100
|
-
*/
|
|
101
|
-
private compareRecords;
|
|
102
|
-
}
|
|
103
|
-
//# sourceMappingURL=snapshot-cache.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot-cache.d.ts","sourceRoot":"","sources":["../../../src/core/snapshot/snapshot-cache.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAGlF;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,oBAAoB;IACpB,QAAQ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