agent-ide 0.1.10 → 0.3.3
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 +28 -278
- package/dist/application/events/event-bus.d.ts.map +1 -1
- package/dist/application/events/event-bus.js.map +1 -1
- package/dist/application/index.d.ts +3 -1
- package/dist/application/index.d.ts.map +1 -1
- package/dist/application/index.js +10 -5
- package/dist/application/index.js.map +1 -1
- package/dist/application/services/cache-coordinator.service.d.ts.map +1 -1
- package/dist/application/services/cache-coordinator.service.js.map +1 -1
- package/dist/application/services/error-handler.service.d.ts.map +1 -1
- package/dist/application/services/error-handler.service.js.map +1 -1
- package/dist/application/services/module-coordinator.service.d.ts +13 -3
- package/dist/application/services/module-coordinator.service.d.ts.map +1 -1
- package/dist/application/services/module-coordinator.service.js +65 -25
- package/dist/application/services/module-coordinator.service.js.map +1 -1
- package/dist/application/services/session-manager.service.d.ts.map +1 -1
- package/dist/application/services/session-manager.service.js.map +1 -1
- package/dist/application/services/workflow-engine.service.d.ts +1 -1
- package/dist/application/services/workflow-engine.service.d.ts.map +1 -1
- package/dist/application/services/workflow-engine.service.js.map +1 -1
- package/dist/application/state/state-manager.d.ts +3 -3
- package/dist/application/state/state-manager.d.ts.map +1 -1
- package/dist/application/state/state-manager.js +3 -3
- package/dist/application/state/state-manager.js.map +1 -1
- package/dist/application/types.d.ts.map +1 -1
- package/dist/application/workflows/analysis-workflow.d.ts +1 -1
- package/dist/application/workflows/analysis-workflow.d.ts.map +1 -1
- package/dist/application/workflows/analysis-workflow.js +1 -1
- package/dist/application/workflows/analysis-workflow.js.map +1 -1
- package/dist/application/workflows/base-workflow.d.ts.map +1 -1
- package/dist/application/workflows/base-workflow.js.map +1 -1
- package/dist/application/workflows/index.d.ts +2 -2
- package/dist/application/workflows/index.d.ts.map +1 -1
- package/dist/application/workflows/index.js +2 -2
- package/dist/application/workflows/index.js.map +1 -1
- package/dist/application/workflows/refactor-workflow.d.ts +1 -1
- package/dist/application/workflows/refactor-workflow.d.ts.map +1 -1
- package/dist/application/workflows/refactor-workflow.js +1 -1
- package/dist/application/workflows/refactor-workflow.js.map +1 -1
- package/dist/core/dependency/cycle-detector.d.ts +1 -1
- package/dist/core/dependency/cycle-detector.d.ts.map +1 -1
- package/dist/core/dependency/cycle-detector.js +1 -1
- package/dist/core/dependency/cycle-detector.js.map +1 -1
- package/dist/core/dependency/dependency-analyzer.d.ts +3 -1
- package/dist/core/dependency/dependency-analyzer.d.ts.map +1 -1
- package/dist/core/dependency/dependency-analyzer.js +35 -24
- package/dist/core/dependency/dependency-analyzer.js.map +1 -1
- package/dist/core/dependency/types.d.ts.map +1 -1
- package/dist/core/indexing/file-index.d.ts.map +1 -1
- package/dist/core/indexing/file-index.js +1 -1
- package/dist/core/indexing/file-index.js.map +1 -1
- package/dist/core/indexing/file-watcher.d.ts +4 -2
- package/dist/core/indexing/file-watcher.d.ts.map +1 -1
- package/dist/core/indexing/file-watcher.js +10 -6
- package/dist/core/indexing/file-watcher.js.map +1 -1
- package/dist/core/indexing/index-engine.d.ts +7 -1
- package/dist/core/indexing/index-engine.d.ts.map +1 -1
- package/dist/core/indexing/index-engine.js +49 -16
- package/dist/core/indexing/index-engine.js.map +1 -1
- package/dist/core/indexing/symbol-index.d.ts +4 -0
- package/dist/core/indexing/symbol-index.d.ts.map +1 -1
- package/dist/core/indexing/symbol-index.js +17 -0
- package/dist/core/indexing/symbol-index.js.map +1 -1
- package/dist/core/indexing/types.d.ts.map +1 -1
- package/dist/core/search/engines/text-engine.d.ts +3 -0
- package/dist/core/search/engines/text-engine.d.ts.map +1 -1
- package/dist/core/search/engines/text-engine.js +8 -7
- package/dist/core/search/engines/text-engine.js.map +1 -1
- package/dist/core/search/service.d.ts +2 -1
- package/dist/core/search/service.d.ts.map +1 -1
- package/dist/core/search/service.js +3 -3
- package/dist/core/search/service.js.map +1 -1
- package/dist/core/search/types.d.ts.map +1 -1
- package/dist/core/snapshot/index.d.ts +7 -0
- package/dist/core/snapshot/index.d.ts.map +1 -0
- package/dist/core/snapshot/index.js +6 -0
- package/dist/core/snapshot/index.js.map +1 -0
- package/dist/core/snapshot/snapshot-generator.d.ts +66 -0
- package/dist/core/snapshot/snapshot-generator.d.ts.map +1 -0
- package/dist/core/snapshot/snapshot-generator.js +258 -0
- package/dist/core/snapshot/snapshot-generator.js.map +1 -0
- package/dist/core/snapshot/types.d.ts +67 -0
- package/dist/core/snapshot/types.d.ts.map +1 -0
- package/dist/core/snapshot/types.js +25 -0
- package/dist/core/snapshot/types.js.map +1 -0
- package/dist/core/transform/index.d.ts +10 -0
- package/dist/core/transform/index.d.ts.map +1 -0
- package/dist/core/transform/index.js +21 -0
- package/dist/core/transform/index.js.map +1 -0
- package/dist/core/transform/location/index.d.ts +8 -0
- package/dist/core/transform/location/index.d.ts.map +1 -0
- package/dist/core/transform/location/index.js +9 -0
- package/dist/core/transform/location/index.js.map +1 -0
- package/dist/core/{move → transform/location/move-file}/import-resolver.d.ts +1 -1
- package/dist/core/transform/location/move-file/import-resolver.d.ts.map +1 -0
- package/dist/core/{move → transform/location/move-file}/import-resolver.js +19 -12
- package/dist/core/transform/location/move-file/import-resolver.js.map +1 -0
- package/dist/core/{move → transform/location/move-file}/index.d.ts +2 -2
- package/dist/core/transform/location/move-file/index.d.ts.map +1 -0
- package/dist/core/{move → transform/location/move-file}/index.js +2 -2
- package/dist/core/transform/location/move-file/index.js.map +1 -0
- package/dist/core/{move → transform/location/move-file}/move-service.d.ts +5 -3
- package/dist/core/transform/location/move-file/move-service.d.ts.map +1 -0
- package/dist/core/{move → transform/location/move-file}/move-service.js +74 -92
- package/dist/core/transform/location/move-file/move-service.js.map +1 -0
- package/dist/core/{move → transform/location/move-file}/types.d.ts +1 -1
- package/dist/core/transform/location/move-file/types.d.ts.map +1 -0
- package/dist/core/transform/location/move-file/types.js.map +1 -0
- package/dist/core/transform/location/move-member/index.d.ts +10 -0
- package/dist/core/transform/location/move-member/index.d.ts.map +1 -0
- package/dist/core/transform/location/move-member/index.js +12 -0
- package/dist/core/transform/location/move-member/index.js.map +1 -0
- package/dist/core/transform/location/move-member/member-extractor.d.ts +96 -0
- package/dist/core/transform/location/move-member/member-extractor.d.ts.map +1 -0
- package/dist/core/transform/location/move-member/member-extractor.js +439 -0
- package/dist/core/transform/location/move-member/member-extractor.js.map +1 -0
- package/dist/core/transform/location/move-member/move-member-service.d.ts +87 -0
- package/dist/core/transform/location/move-member/move-member-service.d.ts.map +1 -0
- package/dist/core/transform/location/move-member/move-member-service.js +412 -0
- package/dist/core/transform/location/move-member/move-member-service.js.map +1 -0
- package/dist/core/transform/location/move-member/types.d.ts +182 -0
- package/dist/core/transform/location/move-member/types.d.ts.map +1 -0
- package/dist/core/transform/location/move-member/types.js +75 -0
- package/dist/core/transform/location/move-member/types.js.map +1 -0
- package/dist/core/transform/location/shift/file-generator.d.ts +45 -0
- package/dist/core/transform/location/shift/file-generator.d.ts.map +1 -0
- package/dist/core/transform/location/shift/file-generator.js +94 -0
- package/dist/core/transform/location/shift/file-generator.js.map +1 -0
- package/dist/core/transform/location/shift/index.d.ts +11 -0
- package/dist/core/transform/location/shift/index.d.ts.map +1 -0
- package/dist/core/transform/location/shift/index.js +13 -0
- package/dist/core/transform/location/shift/index.js.map +1 -0
- package/dist/core/transform/location/shift/line-extractor.d.ts +55 -0
- package/dist/core/transform/location/shift/line-extractor.d.ts.map +1 -0
- package/dist/core/transform/location/shift/line-extractor.js +123 -0
- package/dist/core/transform/location/shift/line-extractor.js.map +1 -0
- package/dist/core/transform/location/shift/shift-service.d.ts +57 -0
- package/dist/core/transform/location/shift/shift-service.d.ts.map +1 -0
- package/dist/core/transform/location/shift/shift-service.js +199 -0
- package/dist/core/transform/location/shift/shift-service.js.map +1 -0
- package/dist/core/transform/location/shift/types.d.ts +195 -0
- package/dist/core/transform/location/shift/types.d.ts.map +1 -0
- package/dist/core/transform/location/shift/types.js +89 -0
- package/dist/core/transform/location/shift/types.js.map +1 -0
- package/dist/core/transform/shared/code-editor.d.ts +70 -0
- package/dist/core/transform/shared/code-editor.d.ts.map +1 -0
- package/dist/core/transform/shared/code-editor.js +206 -0
- package/dist/core/transform/shared/code-editor.js.map +1 -0
- package/dist/core/transform/shared/index.d.ts +7 -0
- package/dist/core/transform/shared/index.d.ts.map +1 -0
- package/dist/core/transform/shared/index.js +7 -0
- package/dist/core/transform/shared/index.js.map +1 -0
- package/dist/core/transform/shared/symbol-finder.d.ts +154 -0
- package/dist/core/transform/shared/symbol-finder.d.ts.map +1 -0
- package/dist/core/transform/shared/symbol-finder.js +433 -0
- package/dist/core/transform/shared/symbol-finder.js.map +1 -0
- package/dist/core/transform/structure/extract/extract-function.d.ts.map +1 -0
- package/dist/core/{refactor → transform/structure/extract}/extract-function.js +1 -1
- package/dist/core/transform/structure/extract/extract-function.js.map +1 -0
- package/dist/core/transform/structure/extract/index.d.ts +7 -0
- package/dist/core/transform/structure/extract/index.d.ts.map +1 -0
- package/dist/core/transform/structure/extract/index.js +9 -0
- package/dist/core/transform/structure/extract/index.js.map +1 -0
- package/dist/core/transform/structure/extract/swift-extractor.d.ts +98 -0
- package/dist/core/transform/structure/extract/swift-extractor.d.ts.map +1 -0
- package/dist/core/transform/structure/extract/swift-extractor.js +283 -0
- package/dist/core/transform/structure/extract/swift-extractor.js.map +1 -0
- package/dist/core/transform/structure/index.d.ts +8 -0
- package/dist/core/transform/structure/index.d.ts.map +1 -0
- package/dist/core/transform/structure/index.js +8 -0
- package/dist/core/transform/structure/index.js.map +1 -0
- package/dist/core/transform/structure/inline/index.d.ts +6 -0
- package/dist/core/transform/structure/inline/index.d.ts.map +1 -0
- package/dist/core/transform/structure/inline/index.js +6 -0
- package/dist/core/transform/structure/inline/index.js.map +1 -0
- package/dist/core/transform/structure/inline/inline-function.d.ts.map +1 -0
- package/dist/core/{refactor → transform/structure/inline}/inline-function.js +37 -26
- package/dist/core/transform/structure/inline/inline-function.js.map +1 -0
- package/dist/core/transform/structure/patterns/design-patterns.d.ts.map +1 -0
- package/dist/core/transform/structure/patterns/design-patterns.js.map +1 -0
- package/dist/core/transform/structure/patterns/index.d.ts +6 -0
- package/dist/core/transform/structure/patterns/index.d.ts.map +1 -0
- package/dist/core/transform/structure/patterns/index.js +6 -0
- package/dist/core/transform/structure/patterns/index.js.map +1 -0
- package/dist/core/transform/symbol/change-signature/change-signature-service.d.ts +94 -0
- package/dist/core/transform/symbol/change-signature/change-signature-service.d.ts.map +1 -0
- package/dist/core/transform/symbol/change-signature/change-signature-service.js +544 -0
- package/dist/core/transform/symbol/change-signature/change-signature-service.js.map +1 -0
- package/dist/core/transform/symbol/change-signature/index.d.ts +10 -0
- package/dist/core/transform/symbol/change-signature/index.d.ts.map +1 -0
- package/dist/core/transform/symbol/change-signature/index.js +12 -0
- package/dist/core/transform/symbol/change-signature/index.js.map +1 -0
- package/dist/core/transform/symbol/change-signature/signature-parser.d.ts +76 -0
- package/dist/core/transform/symbol/change-signature/signature-parser.d.ts.map +1 -0
- package/dist/core/transform/symbol/change-signature/signature-parser.js +387 -0
- package/dist/core/transform/symbol/change-signature/signature-parser.js.map +1 -0
- package/dist/core/transform/symbol/change-signature/types.d.ts +244 -0
- package/dist/core/transform/symbol/change-signature/types.d.ts.map +1 -0
- package/dist/core/transform/symbol/change-signature/types.js +73 -0
- package/dist/core/transform/symbol/change-signature/types.js.map +1 -0
- package/dist/core/transform/symbol/index.d.ts +7 -0
- package/dist/core/transform/symbol/index.d.ts.map +1 -0
- package/dist/core/transform/symbol/index.js +7 -0
- package/dist/core/transform/symbol/index.js.map +1 -0
- package/dist/core/transform/symbol/rename/index.d.ts +9 -0
- package/dist/core/transform/symbol/rename/index.d.ts.map +1 -0
- package/dist/core/{rename → transform/symbol/rename}/index.js +5 -3
- package/dist/core/transform/symbol/rename/index.js.map +1 -0
- package/dist/core/{rename → transform/symbol/rename}/reference-updater.d.ts +2 -2
- package/dist/core/transform/symbol/rename/reference-updater.d.ts.map +1 -0
- package/dist/core/{rename → transform/symbol/rename}/reference-updater.js +16 -8
- package/dist/core/transform/symbol/rename/reference-updater.js.map +1 -0
- package/dist/core/{rename → transform/symbol/rename}/rename-engine.d.ts +2 -2
- package/dist/core/transform/symbol/rename/rename-engine.d.ts.map +1 -0
- package/dist/core/{rename → transform/symbol/rename}/rename-engine.js +3 -3
- package/dist/core/transform/symbol/rename/rename-engine.js.map +1 -0
- package/dist/core/{rename → transform/symbol/rename}/scope-analyzer.d.ts +3 -3
- package/dist/core/transform/symbol/rename/scope-analyzer.d.ts.map +1 -0
- package/dist/core/{rename → transform/symbol/rename}/scope-analyzer.js +2 -2
- package/dist/core/transform/symbol/rename/scope-analyzer.js.map +1 -0
- package/dist/core/{rename → transform/symbol/rename}/types.d.ts +2 -2
- package/dist/core/transform/symbol/rename/types.d.ts.map +1 -0
- package/dist/core/transform/symbol/rename/types.js.map +1 -0
- package/dist/core/transform/types.d.ts +185 -0
- package/dist/core/transform/types.d.ts.map +1 -0
- package/dist/core/transform/types.js +150 -0
- package/dist/core/transform/types.js.map +1 -0
- package/dist/infrastructure/cache/cache-manager.d.ts +1 -1
- package/dist/infrastructure/cache/cache-manager.d.ts.map +1 -1
- package/dist/infrastructure/cache/cache-manager.js +1 -1
- package/dist/infrastructure/cache/cache-manager.js.map +1 -1
- package/dist/infrastructure/cache/memory-cache.js +1 -1
- package/dist/infrastructure/cache/memory-cache.js.map +1 -1
- package/dist/infrastructure/cache/strategies.d.ts +1 -1
- package/dist/infrastructure/cache/strategies.d.ts.map +1 -1
- package/dist/infrastructure/cache/strategies.js +1 -1
- package/dist/infrastructure/cache/strategies.js.map +1 -1
- package/dist/infrastructure/formatters/diff-generator.d.ts +11 -0
- package/dist/infrastructure/formatters/diff-generator.d.ts.map +1 -0
- package/dist/infrastructure/formatters/diff-generator.js +217 -0
- package/dist/infrastructure/formatters/diff-generator.js.map +1 -0
- package/dist/infrastructure/formatters/index.d.ts +11 -0
- package/dist/infrastructure/formatters/index.d.ts.map +1 -0
- package/dist/infrastructure/formatters/index.js +13 -0
- package/dist/infrastructure/formatters/index.js.map +1 -0
- package/dist/infrastructure/formatters/preview-converter.d.ts +85 -0
- package/dist/infrastructure/formatters/preview-converter.d.ts.map +1 -0
- package/dist/infrastructure/formatters/preview-converter.js +209 -0
- package/dist/infrastructure/formatters/preview-converter.js.map +1 -0
- package/dist/infrastructure/formatters/preview-formatter.d.ts +61 -0
- package/dist/infrastructure/formatters/preview-formatter.d.ts.map +1 -0
- package/dist/infrastructure/formatters/preview-formatter.js +208 -0
- package/dist/infrastructure/formatters/preview-formatter.js.map +1 -0
- package/dist/infrastructure/formatters/query-formatter.d.ts +63 -0
- package/dist/infrastructure/formatters/query-formatter.d.ts.map +1 -0
- package/dist/infrastructure/formatters/query-formatter.js +218 -0
- package/dist/infrastructure/formatters/query-formatter.js.map +1 -0
- package/dist/infrastructure/formatters/query-types.d.ts +165 -0
- package/dist/infrastructure/formatters/query-types.d.ts.map +1 -0
- package/dist/infrastructure/formatters/query-types.js +30 -0
- package/dist/infrastructure/formatters/query-types.js.map +1 -0
- package/dist/infrastructure/formatters/types.d.ts +153 -0
- package/dist/infrastructure/formatters/types.d.ts.map +1 -0
- package/dist/infrastructure/formatters/types.js +27 -0
- package/dist/infrastructure/formatters/types.js.map +1 -0
- package/dist/infrastructure/parser/analysis-types.d.ts +198 -0
- package/dist/infrastructure/parser/analysis-types.d.ts.map +1 -0
- package/dist/infrastructure/parser/analysis-types.js +6 -0
- package/dist/infrastructure/parser/analysis-types.js.map +1 -0
- package/dist/infrastructure/parser/base.d.ts +37 -1
- package/dist/infrastructure/parser/base.d.ts.map +1 -1
- package/dist/infrastructure/parser/base.js +73 -1
- package/dist/infrastructure/parser/base.js.map +1 -1
- package/dist/infrastructure/parser/factory.d.ts +3 -3
- package/dist/infrastructure/parser/factory.d.ts.map +1 -1
- package/dist/infrastructure/parser/factory.js +1 -1
- package/dist/infrastructure/parser/factory.js.map +1 -1
- package/dist/infrastructure/parser/index.d.ts +1 -0
- package/dist/infrastructure/parser/index.d.ts.map +1 -1
- package/dist/infrastructure/parser/index.js.map +1 -1
- package/dist/infrastructure/parser/interface.d.ts +64 -1
- package/dist/infrastructure/parser/interface.d.ts.map +1 -1
- package/dist/infrastructure/parser/interface.js +11 -1
- package/dist/infrastructure/parser/interface.js.map +1 -1
- package/dist/infrastructure/parser/registry.d.ts +1 -1
- package/dist/infrastructure/parser/registry.d.ts.map +1 -1
- package/dist/infrastructure/parser/registry.js +1 -1
- package/dist/infrastructure/parser/registry.js.map +1 -1
- package/dist/infrastructure/parser/types.d.ts.map +1 -1
- package/dist/infrastructure/storage/file-system.d.ts +2 -1
- package/dist/infrastructure/storage/file-system.d.ts.map +1 -1
- package/dist/infrastructure/storage/file-system.interface.d.ts +69 -0
- package/dist/infrastructure/storage/file-system.interface.d.ts.map +1 -0
- package/dist/infrastructure/storage/file-system.interface.js +6 -0
- package/dist/infrastructure/storage/file-system.interface.js.map +1 -0
- package/dist/infrastructure/storage/file-system.js.map +1 -1
- package/dist/infrastructure/storage/index.d.ts +2 -2
- package/dist/infrastructure/storage/index.d.ts.map +1 -1
- package/dist/infrastructure/storage/index.js +1 -6
- package/dist/infrastructure/storage/index.js.map +1 -1
- package/dist/infrastructure/storage/mem-file-system.d.ts +44 -0
- package/dist/infrastructure/storage/mem-file-system.d.ts.map +1 -0
- package/dist/infrastructure/storage/mem-file-system.js +105 -0
- package/dist/infrastructure/storage/mem-file-system.js.map +1 -0
- package/dist/infrastructure/storage/path-utils.d.ts +1 -1
- package/dist/infrastructure/storage/path-utils.d.ts.map +1 -1
- package/dist/interfaces/cli/cli.d.ts +13 -70
- package/dist/interfaces/cli/cli.d.ts.map +1 -1
- package/dist/interfaces/cli/cli.js +65 -1186
- package/dist/interfaces/cli/cli.js.map +1 -1
- package/dist/interfaces/cli/commands/analyze.command.d.ts +11 -0
- package/dist/interfaces/cli/commands/analyze.command.d.ts.map +1 -0
- package/dist/interfaces/cli/commands/analyze.command.js +460 -0
- package/dist/interfaces/cli/commands/analyze.command.js.map +1 -0
- package/dist/interfaces/cli/commands/change-signature.command.d.ts +11 -0
- package/dist/interfaces/cli/commands/change-signature.command.d.ts.map +1 -0
- package/dist/interfaces/cli/commands/change-signature.command.js +299 -0
- package/dist/interfaces/cli/commands/change-signature.command.js.map +1 -0
- package/dist/interfaces/cli/commands/deps.command.d.ts +11 -0
- package/dist/interfaces/cli/commands/deps.command.d.ts.map +1 -0
- package/dist/interfaces/cli/commands/deps.command.js +143 -0
- package/dist/interfaces/cli/commands/deps.command.js.map +1 -0
- package/dist/interfaces/cli/commands/extract.command.d.ts +11 -0
- package/dist/interfaces/cli/commands/extract.command.d.ts.map +1 -0
- package/dist/interfaces/cli/commands/extract.command.js +314 -0
- package/dist/interfaces/cli/commands/extract.command.js.map +1 -0
- package/dist/interfaces/cli/commands/index.d.ts +16 -0
- package/dist/interfaces/cli/commands/index.d.ts.map +1 -0
- package/dist/interfaces/cli/commands/index.js +15 -0
- package/dist/interfaces/cli/commands/index.js.map +1 -0
- package/dist/interfaces/cli/commands/inline.command.d.ts +11 -0
- package/dist/interfaces/cli/commands/inline.command.d.ts.map +1 -0
- package/dist/interfaces/cli/commands/inline.command.js +208 -0
- package/dist/interfaces/cli/commands/inline.command.js.map +1 -0
- package/dist/interfaces/cli/commands/move-member.command.d.ts +11 -0
- package/dist/interfaces/cli/commands/move-member.command.d.ts.map +1 -0
- package/dist/interfaces/cli/commands/move-member.command.js +194 -0
- package/dist/interfaces/cli/commands/move-member.command.js.map +1 -0
- package/dist/interfaces/cli/commands/move.command.d.ts +11 -0
- package/dist/interfaces/cli/commands/move.command.d.ts.map +1 -0
- package/dist/interfaces/cli/commands/move.command.js +220 -0
- package/dist/interfaces/cli/commands/move.command.js.map +1 -0
- package/dist/interfaces/cli/commands/refactor.command.d.ts +11 -0
- package/dist/interfaces/cli/commands/refactor.command.d.ts.map +1 -0
- package/dist/interfaces/cli/commands/refactor.command.js +414 -0
- package/dist/interfaces/cli/commands/refactor.command.js.map +1 -0
- package/dist/interfaces/cli/commands/rename.command.d.ts +11 -0
- package/dist/interfaces/cli/commands/rename.command.d.ts.map +1 -0
- package/dist/interfaces/cli/commands/rename.command.js +272 -0
- package/dist/interfaces/cli/commands/rename.command.js.map +1 -0
- 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 +409 -0
- package/dist/interfaces/cli/commands/search.command.js.map +1 -0
- package/dist/interfaces/cli/commands/shift.command.d.ts +11 -0
- package/dist/interfaces/cli/commands/shift.command.d.ts.map +1 -0
- package/dist/interfaces/cli/commands/shift.command.js +143 -0
- package/dist/interfaces/cli/commands/shift.command.js.map +1 -0
- package/dist/interfaces/cli/commands/snapshot.command.d.ts +11 -0
- package/dist/interfaces/cli/commands/snapshot.command.d.ts.map +1 -0
- package/dist/interfaces/cli/commands/snapshot.command.js +68 -0
- package/dist/interfaces/cli/commands/snapshot.command.js.map +1 -0
- package/dist/interfaces/cli/commands/types.d.ts +18 -0
- package/dist/interfaces/cli/commands/types.d.ts.map +1 -0
- package/dist/interfaces/cli/commands/types.js +5 -0
- package/dist/interfaces/cli/commands/types.js.map +1 -0
- package/dist/interfaces/cli/index.d.ts +1 -1
- package/dist/interfaces/cli/index.d.ts.map +1 -1
- package/dist/interfaces/cli/index.js +1 -1
- package/dist/interfaces/cli/index.js.map +1 -1
- package/dist/interfaces/cli/preview-output-handler.d.ts +53 -0
- package/dist/interfaces/cli/preview-output-handler.d.ts.map +1 -0
- package/dist/interfaces/cli/preview-output-handler.js +73 -0
- package/dist/interfaces/cli/preview-output-handler.js.map +1 -0
- package/dist/interfaces/cli/unified-output-handler.d.ts +77 -0
- package/dist/interfaces/cli/unified-output-handler.d.ts.map +1 -0
- package/dist/interfaces/cli/unified-output-handler.js +140 -0
- package/dist/interfaces/cli/unified-output-handler.js.map +1 -0
- package/dist/plugins/javascript/index.d.ts +2 -2
- package/dist/plugins/javascript/index.d.ts.map +1 -1
- package/dist/plugins/javascript/index.js +1 -1
- package/dist/plugins/javascript/index.js.map +1 -1
- package/dist/plugins/javascript/parser.d.ts +41 -0
- package/dist/plugins/javascript/parser.d.ts.map +1 -1
- package/dist/plugins/javascript/parser.js +284 -0
- package/dist/plugins/javascript/parser.js.map +1 -1
- package/dist/plugins/javascript/types.d.ts.map +1 -1
- package/dist/plugins/javascript/types.js.map +1 -1
- package/dist/plugins/python/analyzers/complexity-analyzer.d.ts +50 -0
- package/dist/plugins/python/analyzers/complexity-analyzer.d.ts.map +1 -0
- package/dist/plugins/python/analyzers/complexity-analyzer.js +172 -0
- package/dist/plugins/python/analyzers/complexity-analyzer.js.map +1 -0
- package/dist/plugins/python/analyzers/duplication-detector.d.ts +39 -0
- package/dist/plugins/python/analyzers/duplication-detector.d.ts.map +1 -0
- package/dist/plugins/python/analyzers/duplication-detector.js +146 -0
- package/dist/plugins/python/analyzers/duplication-detector.js.map +1 -0
- package/dist/plugins/python/analyzers/error-handling-checker.d.ts +28 -0
- package/dist/plugins/python/analyzers/error-handling-checker.d.ts.map +1 -0
- package/dist/plugins/python/analyzers/error-handling-checker.js +143 -0
- package/dist/plugins/python/analyzers/error-handling-checker.js.map +1 -0
- package/dist/plugins/python/analyzers/naming-checker.d.ts +56 -0
- package/dist/plugins/python/analyzers/naming-checker.d.ts.map +1 -0
- package/dist/plugins/python/analyzers/naming-checker.js +220 -0
- package/dist/plugins/python/analyzers/naming-checker.js.map +1 -0
- package/dist/plugins/python/analyzers/pattern-detector.d.ts +44 -0
- package/dist/plugins/python/analyzers/pattern-detector.d.ts.map +1 -0
- package/dist/plugins/python/analyzers/pattern-detector.js +222 -0
- package/dist/plugins/python/analyzers/pattern-detector.js.map +1 -0
- package/dist/plugins/python/analyzers/security-checker.d.ts +56 -0
- package/dist/plugins/python/analyzers/security-checker.d.ts.map +1 -0
- package/dist/plugins/python/analyzers/security-checker.js +279 -0
- package/dist/plugins/python/analyzers/security-checker.js.map +1 -0
- package/dist/plugins/python/analyzers/type-safety-checker.d.ts +44 -0
- package/dist/plugins/python/analyzers/type-safety-checker.d.ts.map +1 -0
- package/dist/plugins/python/analyzers/type-safety-checker.js +177 -0
- package/dist/plugins/python/analyzers/type-safety-checker.js.map +1 -0
- package/dist/plugins/python/analyzers/unused-symbol-detector.d.ts +37 -0
- package/dist/plugins/python/analyzers/unused-symbol-detector.d.ts.map +1 -0
- package/dist/plugins/python/analyzers/unused-symbol-detector.js +141 -0
- package/dist/plugins/python/analyzers/unused-symbol-detector.js.map +1 -0
- package/dist/plugins/python/dependency-analyzer.d.ts +86 -0
- package/dist/plugins/python/dependency-analyzer.d.ts.map +1 -0
- package/dist/plugins/python/dependency-analyzer.js +252 -0
- package/dist/plugins/python/dependency-analyzer.js.map +1 -0
- package/dist/plugins/python/index.d.ts +17 -0
- package/dist/plugins/python/index.d.ts.map +1 -0
- package/dist/plugins/python/index.js +23 -0
- package/dist/plugins/python/index.js.map +1 -0
- package/dist/plugins/python/parser.d.ts +150 -0
- package/dist/plugins/python/parser.d.ts.map +1 -0
- package/dist/plugins/python/parser.js +476 -0
- package/dist/plugins/python/parser.js.map +1 -0
- package/dist/plugins/python/symbol-extractor.d.ts +108 -0
- package/dist/plugins/python/symbol-extractor.d.ts.map +1 -0
- package/dist/plugins/python/symbol-extractor.js +389 -0
- package/dist/plugins/python/symbol-extractor.js.map +1 -0
- package/dist/plugins/python/tree-sitter-bridge.d.ts +57 -0
- package/dist/plugins/python/tree-sitter-bridge.d.ts.map +1 -0
- package/dist/plugins/python/tree-sitter-bridge.js +267 -0
- package/dist/plugins/python/tree-sitter-bridge.js.map +1 -0
- package/dist/plugins/python/types.d.ts +179 -0
- package/dist/plugins/python/types.d.ts.map +1 -0
- package/dist/plugins/python/types.js +252 -0
- package/dist/plugins/python/types.js.map +1 -0
- package/dist/plugins/swift/analyzers/complexity-analyzer.d.ts +41 -0
- package/dist/plugins/swift/analyzers/complexity-analyzer.d.ts.map +1 -0
- package/dist/plugins/swift/analyzers/complexity-analyzer.js +206 -0
- package/dist/plugins/swift/analyzers/complexity-analyzer.js.map +1 -0
- package/dist/plugins/swift/analyzers/duplication-detector.d.ts +89 -0
- package/dist/plugins/swift/analyzers/duplication-detector.d.ts.map +1 -0
- package/dist/plugins/swift/analyzers/duplication-detector.js +271 -0
- package/dist/plugins/swift/analyzers/duplication-detector.js.map +1 -0
- package/dist/plugins/swift/analyzers/error-handling-checker.d.ts +34 -0
- package/dist/plugins/swift/analyzers/error-handling-checker.d.ts.map +1 -0
- package/dist/plugins/swift/analyzers/error-handling-checker.js +135 -0
- package/dist/plugins/swift/analyzers/error-handling-checker.js.map +1 -0
- package/dist/plugins/swift/analyzers/naming-checker.d.ts +47 -0
- package/dist/plugins/swift/analyzers/naming-checker.d.ts.map +1 -0
- package/dist/plugins/swift/analyzers/naming-checker.js +161 -0
- package/dist/plugins/swift/analyzers/naming-checker.js.map +1 -0
- package/dist/plugins/swift/analyzers/pattern-detector.d.ts +78 -0
- package/dist/plugins/swift/analyzers/pattern-detector.d.ts.map +1 -0
- package/dist/plugins/swift/analyzers/pattern-detector.js +247 -0
- package/dist/plugins/swift/analyzers/pattern-detector.js.map +1 -0
- package/dist/plugins/swift/analyzers/security-checker.d.ts +38 -0
- package/dist/plugins/swift/analyzers/security-checker.d.ts.map +1 -0
- package/dist/plugins/swift/analyzers/security-checker.js +135 -0
- package/dist/plugins/swift/analyzers/security-checker.js.map +1 -0
- package/dist/plugins/swift/analyzers/type-safety-checker.d.ts +41 -0
- package/dist/plugins/swift/analyzers/type-safety-checker.d.ts.map +1 -0
- package/dist/plugins/swift/analyzers/type-safety-checker.js +121 -0
- package/dist/plugins/swift/analyzers/type-safety-checker.js.map +1 -0
- package/dist/plugins/swift/analyzers/unused-symbol-detector.d.ts +38 -0
- package/dist/plugins/swift/analyzers/unused-symbol-detector.d.ts.map +1 -0
- package/dist/plugins/swift/analyzers/unused-symbol-detector.js +211 -0
- package/dist/plugins/swift/analyzers/unused-symbol-detector.js.map +1 -0
- package/dist/plugins/swift/dependency-analyzer.d.ts +33 -0
- package/dist/plugins/swift/dependency-analyzer.d.ts.map +1 -0
- package/dist/plugins/swift/dependency-analyzer.js +95 -0
- package/dist/plugins/swift/dependency-analyzer.js.map +1 -0
- package/dist/plugins/swift/index.d.ts +14 -0
- package/dist/plugins/swift/index.d.ts.map +1 -0
- package/dist/plugins/swift/index.js +19 -0
- package/dist/plugins/swift/index.js.map +1 -0
- package/dist/plugins/swift/parser.d.ts +160 -0
- package/dist/plugins/swift/parser.d.ts.map +1 -0
- package/dist/plugins/swift/parser.js +670 -0
- package/dist/plugins/swift/parser.js.map +1 -0
- package/dist/plugins/swift/swift-bridge/swift-parser +0 -0
- package/dist/plugins/swift/symbol-extractor.d.ts +46 -0
- package/dist/plugins/swift/symbol-extractor.d.ts.map +1 -0
- package/dist/plugins/swift/symbol-extractor.js +187 -0
- package/dist/plugins/swift/symbol-extractor.js.map +1 -0
- package/dist/plugins/swift/types.d.ts +137 -0
- package/dist/plugins/swift/types.d.ts.map +1 -0
- package/dist/plugins/swift/types.js +212 -0
- package/dist/plugins/swift/types.js.map +1 -0
- package/dist/plugins/typescript/analyzers/complexity-analyzer.d.ts +39 -0
- package/dist/plugins/typescript/analyzers/complexity-analyzer.d.ts.map +1 -0
- package/dist/plugins/typescript/analyzers/complexity-analyzer.js +196 -0
- package/dist/plugins/typescript/analyzers/complexity-analyzer.js.map +1 -0
- package/dist/{core/analysis → plugins/typescript/analyzers}/duplication-detector.d.ts +34 -3
- package/dist/plugins/typescript/analyzers/duplication-detector.d.ts.map +1 -0
- package/dist/plugins/typescript/analyzers/duplication-detector.js +695 -0
- package/dist/plugins/typescript/analyzers/duplication-detector.js.map +1 -0
- package/dist/plugins/typescript/analyzers/error-handling-checker.d.ts +26 -0
- package/dist/plugins/typescript/analyzers/error-handling-checker.d.ts.map +1 -0
- package/dist/plugins/typescript/analyzers/error-handling-checker.js +84 -0
- package/dist/plugins/typescript/analyzers/error-handling-checker.js.map +1 -0
- package/dist/plugins/typescript/analyzers/naming-checker.d.ts +30 -0
- package/dist/plugins/typescript/analyzers/naming-checker.d.ts.map +1 -0
- package/dist/plugins/typescript/analyzers/naming-checker.js +116 -0
- package/dist/plugins/typescript/analyzers/naming-checker.js.map +1 -0
- package/dist/plugins/typescript/analyzers/pattern-detector.d.ts +80 -0
- package/dist/plugins/typescript/analyzers/pattern-detector.d.ts.map +1 -0
- package/dist/plugins/typescript/analyzers/pattern-detector.js +267 -0
- package/dist/plugins/typescript/analyzers/pattern-detector.js.map +1 -0
- package/dist/plugins/typescript/analyzers/security-checker.d.ts +34 -0
- package/dist/plugins/typescript/analyzers/security-checker.d.ts.map +1 -0
- package/dist/plugins/typescript/analyzers/security-checker.js +126 -0
- package/dist/plugins/typescript/analyzers/security-checker.js.map +1 -0
- package/dist/plugins/typescript/analyzers/type-safety-checker.d.ts +32 -0
- package/dist/plugins/typescript/analyzers/type-safety-checker.d.ts.map +1 -0
- package/dist/plugins/typescript/analyzers/type-safety-checker.js +86 -0
- package/dist/plugins/typescript/analyzers/type-safety-checker.js.map +1 -0
- package/dist/plugins/typescript/analyzers/unused-symbol-detector.d.ts +47 -0
- package/dist/plugins/typescript/analyzers/unused-symbol-detector.d.ts.map +1 -0
- package/dist/plugins/typescript/analyzers/unused-symbol-detector.js +152 -0
- package/dist/plugins/typescript/analyzers/unused-symbol-detector.js.map +1 -0
- package/dist/plugins/typescript/parser.d.ts +41 -0
- package/dist/plugins/typescript/parser.d.ts.map +1 -1
- package/dist/plugins/typescript/parser.js +348 -3
- package/dist/plugins/typescript/parser.js.map +1 -1
- package/dist/plugins/typescript/symbol-extractor.d.ts.map +1 -1
- package/dist/plugins/typescript/symbol-extractor.js +12 -0
- package/dist/plugins/typescript/symbol-extractor.js.map +1 -1
- package/dist/plugins/typescript/types.d.ts.map +1 -1
- package/dist/plugins/typescript/types.js +10 -0
- package/dist/plugins/typescript/types.js.map +1 -1
- package/dist/shared/errors/config-error.d.ts +1 -1
- package/dist/shared/errors/config-error.d.ts.map +1 -1
- package/dist/shared/errors/config-error.js +1 -1
- package/dist/shared/errors/config-error.js.map +1 -1
- package/dist/shared/errors/file-error.d.ts +1 -1
- package/dist/shared/errors/file-error.d.ts.map +1 -1
- package/dist/shared/errors/file-error.js +1 -1
- package/dist/shared/errors/file-error.js.map +1 -1
- package/dist/shared/errors/index.d.ts +1 -1
- package/dist/shared/errors/index.d.ts.map +1 -1
- package/dist/shared/errors/index.js +4 -4
- package/dist/shared/errors/index.js.map +1 -1
- package/dist/shared/errors/parser-error.d.ts +1 -1
- package/dist/shared/errors/parser-error.d.ts.map +1 -1
- package/dist/shared/errors/parser-error.js +1 -1
- package/dist/shared/errors/parser-error.js.map +1 -1
- package/dist/shared/errors/validation-error.d.ts +1 -1
- package/dist/shared/errors/validation-error.d.ts.map +1 -1
- package/dist/shared/errors/validation-error.js +1 -1
- package/dist/shared/errors/validation-error.js.map +1 -1
- package/dist/shared/types/ast.d.ts +1 -1
- package/dist/shared/types/ast.d.ts.map +1 -1
- package/dist/shared/types/ast.js +1 -1
- package/dist/shared/types/ast.js.map +1 -1
- package/dist/shared/types/symbol.d.ts +8 -2
- package/dist/shared/types/symbol.d.ts.map +1 -1
- package/dist/shared/types/symbol.js +8 -2
- package/dist/shared/types/symbol.js.map +1 -1
- package/dist/shared/utils/index.d.ts +5 -5
- package/dist/shared/utils/index.d.ts.map +1 -1
- package/dist/shared/utils/index.js +5 -5
- package/dist/shared/utils/index.js.map +1 -1
- package/package.json +21 -9
- package/bin/mcp-server.js +0 -20
- package/dist/core/analysis/complexity-analyzer.d.ts +0 -81
- package/dist/core/analysis/complexity-analyzer.d.ts.map +0 -1
- package/dist/core/analysis/complexity-analyzer.js +0 -255
- package/dist/core/analysis/complexity-analyzer.js.map +0 -1
- package/dist/core/analysis/dead-code-detector.d.ts +0 -152
- package/dist/core/analysis/dead-code-detector.d.ts.map +0 -1
- package/dist/core/analysis/dead-code-detector.js +0 -351
- package/dist/core/analysis/dead-code-detector.js.map +0 -1
- package/dist/core/analysis/duplication-detector.d.ts.map +0 -1
- package/dist/core/analysis/duplication-detector.js +0 -433
- package/dist/core/analysis/duplication-detector.js.map +0 -1
- package/dist/core/analysis/index.d.ts +0 -9
- package/dist/core/analysis/index.d.ts.map +0 -1
- package/dist/core/analysis/index.js +0 -13
- package/dist/core/analysis/index.js.map +0 -1
- package/dist/core/analysis/quality-metrics.d.ts +0 -158
- package/dist/core/analysis/quality-metrics.d.ts.map +0 -1
- package/dist/core/analysis/quality-metrics.js +0 -442
- package/dist/core/analysis/quality-metrics.js.map +0 -1
- package/dist/core/move/import-resolver.d.ts.map +0 -1
- package/dist/core/move/import-resolver.js.map +0 -1
- package/dist/core/move/index.d.ts.map +0 -1
- package/dist/core/move/index.js.map +0 -1
- package/dist/core/move/move-service.d.ts.map +0 -1
- package/dist/core/move/move-service.js.map +0 -1
- package/dist/core/move/types.d.ts.map +0 -1
- package/dist/core/move/types.js.map +0 -1
- package/dist/core/refactor/design-patterns.d.ts.map +0 -1
- package/dist/core/refactor/design-patterns.js.map +0 -1
- package/dist/core/refactor/extract-function.d.ts.map +0 -1
- package/dist/core/refactor/extract-function.js.map +0 -1
- package/dist/core/refactor/index.d.ts +0 -8
- package/dist/core/refactor/index.d.ts.map +0 -1
- package/dist/core/refactor/index.js +0 -11
- package/dist/core/refactor/index.js.map +0 -1
- package/dist/core/refactor/inline-function.d.ts.map +0 -1
- package/dist/core/refactor/inline-function.js.map +0 -1
- package/dist/core/rename/index.d.ts +0 -9
- package/dist/core/rename/index.d.ts.map +0 -1
- package/dist/core/rename/index.js.map +0 -1
- package/dist/core/rename/reference-updater.d.ts.map +0 -1
- package/dist/core/rename/reference-updater.js.map +0 -1
- package/dist/core/rename/rename-engine.d.ts.map +0 -1
- package/dist/core/rename/rename-engine.js.map +0 -1
- package/dist/core/rename/scope-analyzer.d.ts.map +0 -1
- package/dist/core/rename/scope-analyzer.js.map +0 -1
- package/dist/core/rename/types.d.ts.map +0 -1
- package/dist/core/rename/types.js.map +0 -1
- package/dist/interfaces/mcp/index.d.ts +0 -7
- package/dist/interfaces/mcp/index.d.ts.map +0 -1
- package/dist/interfaces/mcp/index.js +0 -6
- package/dist/interfaces/mcp/index.js.map +0 -1
- package/dist/interfaces/mcp/mcp-server.d.ts +0 -34
- package/dist/interfaces/mcp/mcp-server.d.ts.map +0 -1
- package/dist/interfaces/mcp/mcp-server.js +0 -162
- package/dist/interfaces/mcp/mcp-server.js.map +0 -1
- package/dist/interfaces/mcp/mcp.d.ts +0 -52
- package/dist/interfaces/mcp/mcp.d.ts.map +0 -1
- package/dist/interfaces/mcp/mcp.js +0 -853
- package/dist/interfaces/mcp/mcp.js.map +0 -1
- /package/dist/core/{move → transform/location/move-file}/types.js +0 -0
- /package/dist/core/{refactor → transform/structure/extract}/extract-function.d.ts +0 -0
- /package/dist/core/{refactor → transform/structure/inline}/inline-function.d.ts +0 -0
- /package/dist/core/{refactor → transform/structure/patterns}/design-patterns.d.ts +0 -0
- /package/dist/core/{refactor → transform/structure/patterns}/design-patterns.js +0 -0
- /package/dist/core/{rename → transform/symbol/rename}/types.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ast.js","sourceRoot":"","sources":["../../../src/shared/types/ast.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAmB,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ast.js","sourceRoot":"","sources":["../../../src/shared/types/ast.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAmB,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAiC3E;;GAEG;AACH,MAAM,UAAU,aAAa,CAC3B,IAAY,EACZ,KAAY,EACZ,aAAkC,EAAE,EACpC,WAAsB,EAAE;IAExB,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC;QACjB,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAC;IACpC,CAAC;IAED,mBAAmB;IACnB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C,KAAK,EAAE,QAAQ,CAAC,CAAC;QAC5D,IAAI,MAAM,EAAE,CAAC;YACX,OAAO,MAAM,CAAC;QAChB,CAAC;IACH,CAAC;IAED,oBAAoB;IACpB,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;GAEG;AACH,SAAS,wBAAwB,CAAC,IAAa,EAAE,IAAY,EAAE,MAAiB;IAC9E,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC;QACvB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;IAED,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;QAClC,wBAAwB,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAS,sBAAsB,CAAC,IAAa,EAAE,MAAgB;IAC7D,iBAAiB;IAChB,IAAY,CAAC,MAAM,GAAG,MAAM,CAAC;IAE9B,oBAAoB;IACpB,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;QAClC,sBAAsB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACtC,CAAC;AACH,CAAC"}
|
|
@@ -2,16 +2,19 @@
|
|
|
2
2
|
* Symbol 相關型別定義
|
|
3
3
|
* 包含 SymbolType、Symbol、Reference、Dependency 等型別
|
|
4
4
|
*/
|
|
5
|
-
import { Location } from '
|
|
5
|
+
import { Location } from '../types/core.js';
|
|
6
6
|
/**
|
|
7
7
|
* Symbol 類型列舉
|
|
8
8
|
*/
|
|
9
9
|
export declare enum SymbolType {
|
|
10
10
|
Class = "class",
|
|
11
11
|
Interface = "interface",
|
|
12
|
+
Protocol = "protocol",
|
|
13
|
+
Struct = "struct",
|
|
12
14
|
Function = "function",
|
|
13
15
|
Variable = "variable",
|
|
14
16
|
Constant = "constant",
|
|
17
|
+
Property = "property",
|
|
15
18
|
Type = "type",
|
|
16
19
|
Enum = "enum",
|
|
17
20
|
Module = "module",
|
|
@@ -38,6 +41,9 @@ export interface Symbol {
|
|
|
38
41
|
readonly location: Location;
|
|
39
42
|
readonly scope: Scope | undefined;
|
|
40
43
|
readonly modifiers: readonly string[];
|
|
44
|
+
readonly attributes?: readonly string[];
|
|
45
|
+
readonly superclass?: string;
|
|
46
|
+
readonly implements?: readonly string[];
|
|
41
47
|
}
|
|
42
48
|
/**
|
|
43
49
|
* Reference 類型列舉
|
|
@@ -79,7 +85,7 @@ export declare function createScope(type: ScopeType, name?: string, parent?: Sco
|
|
|
79
85
|
/**
|
|
80
86
|
* 建立 Symbol 的工廠函式
|
|
81
87
|
*/
|
|
82
|
-
export declare function createSymbol(name: string, type: SymbolType, location: Location, scope?: Scope, modifiers?: string[]): Symbol;
|
|
88
|
+
export declare function createSymbol(name: string, type: SymbolType, location: Location, scope?: Scope, modifiers?: string[], attributes?: string[], superclass?: string, implementsProtocols?: string[]): Symbol;
|
|
83
89
|
/**
|
|
84
90
|
* 建立 Reference 的工廠函式
|
|
85
91
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"symbol.d.ts","sourceRoot":"","sources":["../../../src/shared/types/symbol.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"symbol.d.ts","sourceRoot":"","sources":["../../../src/shared/types/symbol.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD;;GAEG;AACH,oBAAY,UAAU;IACpB,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,SAAS,cAAc;CACxB;AAED;;GAEG;AACH,M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AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAUrE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,EAAE,CAcnD"}
|
|
@@ -9,9 +9,12 @@ export var SymbolType;
|
|
|
9
9
|
(function (SymbolType) {
|
|
10
10
|
SymbolType["Class"] = "class";
|
|
11
11
|
SymbolType["Interface"] = "interface";
|
|
12
|
+
SymbolType["Protocol"] = "protocol";
|
|
13
|
+
SymbolType["Struct"] = "struct";
|
|
12
14
|
SymbolType["Function"] = "function";
|
|
13
15
|
SymbolType["Variable"] = "variable";
|
|
14
16
|
SymbolType["Constant"] = "constant";
|
|
17
|
+
SymbolType["Property"] = "property";
|
|
15
18
|
SymbolType["Type"] = "type";
|
|
16
19
|
SymbolType["Enum"] = "enum";
|
|
17
20
|
SymbolType["Module"] = "module";
|
|
@@ -52,7 +55,7 @@ export function createScope(type, name, parent) {
|
|
|
52
55
|
/**
|
|
53
56
|
* 建立 Symbol 的工廠函式
|
|
54
57
|
*/
|
|
55
|
-
export function createSymbol(name, type, location, scope, modifiers = []) {
|
|
58
|
+
export function createSymbol(name, type, location, scope, modifiers = [], attributes, superclass, implementsProtocols) {
|
|
56
59
|
if (!name.trim()) {
|
|
57
60
|
throw new Error('Symbol 名稱不能為空');
|
|
58
61
|
}
|
|
@@ -66,7 +69,10 @@ export function createSymbol(name, type, location, scope, modifiers = []) {
|
|
|
66
69
|
type,
|
|
67
70
|
location,
|
|
68
71
|
scope: scope || undefined,
|
|
69
|
-
modifiers: [...modifiers]
|
|
72
|
+
modifiers: [...modifiers],
|
|
73
|
+
...(attributes && attributes.length > 0 ? { attributes: [...attributes] } : {}),
|
|
74
|
+
...(superclass ? { superclass } : {}),
|
|
75
|
+
...(implementsProtocols && implementsProtocols.length > 0 ? { implements: [...implementsProtocols] } : {})
|
|
70
76
|
};
|
|
71
77
|
}
|
|
72
78
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"symbol.js","sourceRoot":"","sources":["../../../src/shared/types/symbol.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH;;GAEG;AACH,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"symbol.js","sourceRoot":"","sources":["../../../src/shared/types/symbol.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH;;GAEG;AACH,MAAM,CAAN,IAAY,UAaX;AAbD,WAAY,UAAU;IACpB,6BAAe,CAAA;IACf,qCAAuB,CAAA;IACvB,mCAAqB,CAAA;IACrB,+BAAiB,CAAA;IACjB,mCAAqB,CAAA;IACrB,mCAAqB,CAAA;IACrB,mCAAqB,CAAA;IACrB,mCAAqB,CAAA;IACrB,2BAAa,CAAA;IACb,2BAAa,CAAA;IACb,+BAAiB,CAAA;IACjB,qCAAuB,CAAA;AACzB,CAAC,EAbW,UAAU,KAAV,UAAU,QAarB;AA8BD;;GAEG;AACH,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,0CAAyB,CAAA;IACzB,gCAAe,CAAA;IACf,4CAA2B,CAAA;AAC7B,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;AAWD;;GAEG;AACH,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,qCAAmB,CAAA;IACnB,qCAAmB,CAAA;AACrB,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB;AAYD;;GAEG;AACH,MAAM,UAAU,WAAW,CACzB,IAAe,EACf,IAAa,EACb,MAAc;IAEd,MAAM,UAAU,GAAgB,CAAC,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IAEhG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;QAC/B,MAAM,IAAI,KAAK,CAAC,cAAc,CAAC,CA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AI,CAAC,CAAC;QAClC,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QAClC,CAAC;QACD,YAAY,GAAG,YAAY,CAAC,MAAM,CAAC;IACrC,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -23,10 +23,10 @@ export { sleep, retry, timeout, debounce, throttle, parallel, sequential, race,
|
|
|
23
23
|
* const chunks = ArrayUtils.chunk([1, 2, 3, 4], 2);
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
|
-
import * as StringUtils from '
|
|
27
|
-
import * as ArrayUtils from '
|
|
28
|
-
import * as PathUtils from '
|
|
29
|
-
import * as ObjectUtils from '
|
|
30
|
-
import * as AsyncUtils from '
|
|
26
|
+
import * as StringUtils from '../utils/string.js';
|
|
27
|
+
import * as ArrayUtils from '../utils/array.js';
|
|
28
|
+
import * as PathUtils from '../utils/path.js';
|
|
29
|
+
import * as ObjectUtils from '../utils/object.js';
|
|
30
|
+
import * as AsyncUtils from '../utils/async.js';
|
|
31
31
|
export { StringUtils, ArrayUtils, PathUtils, ObjectUtils, AsyncUtils };
|
|
32
32
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACL,UAAU,EACV,SAAS,EACT,SAAS,EACT,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,OAAO,EACR,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,KAAK,EACL,OAAO,EACP,MAAM,EACN,UAAU,EACV,YAAY,EACZ,SAAS,EACT,OAAO,EACP,MAAM,EACN,OAAO,EACP,OAAO,EACR,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,UAAU,EACV,SAAS,EACT,QAAQ,EACR,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,SAAS,EACT,UAAU,EACV,aAAa,EACd,MAAM,WAAW,CAAC;AAGnB,OAAO,EACL,SAAS,EACT,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,OAAO,EACP,GAAG,EACH,GAAG,EACH,GAAG,EACH,SAAS,EACV,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,KAAK,EACL,KAAK,EACL,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,IAAI,EACJ,KAAK,EACL,KAAK,EACN,MAAM,YAAY,CAAC;AAEpB;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,WAAW,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACL,UAAU,EACV,SAAS,EACT,SAAS,EACT,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,OAAO,EACR,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,KAAK,EACL,OAAO,EACP,MAAM,EACN,UAAU,EACV,YAAY,EACZ,SAAS,EACT,OAAO,EACP,MAAM,EACN,OAAO,EACP,OAAO,EACR,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,UAAU,EACV,SAAS,EACT,QAAQ,EACR,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,SAAS,EACT,UAAU,EACV,aAAa,EACd,MAAM,WAAW,CAAC;AAGnB,OAAO,EACL,SAAS,EACT,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,OAAO,EACP,GAAG,EACH,GAAG,EACH,GAAG,EACH,SAAS,EACV,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,KAAK,EACL,KAAK,EACL,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,IAAI,EACJ,KAAK,EACL,KAAK,EACN,MAAM,YAAY,CAAC;AAEpB;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,WAAW,MAAM,yBAAyB,CAAC;AACvD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAC;AACnD,OAAO,KAAK,WAAW,MAAM,yBAAyB,CAAC;AACvD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAErD,OAAO,EACL,WAAW,EACX,UAAU,EACV,SAAS,EACT,WAAW,EACX,UAAU,EACX,CAAC"}
|
|
@@ -28,10 +28,10 @@ export { sleep, retry, timeout, debounce, throttle, parallel, sequential, race,
|
|
|
28
28
|
* const chunks = ArrayUtils.chunk([1, 2, 3, 4], 2);
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
|
-
import * as StringUtils from '
|
|
32
|
-
import * as ArrayUtils from '
|
|
33
|
-
import * as PathUtils from '
|
|
34
|
-
import * as ObjectUtils from '
|
|
35
|
-
import * as AsyncUtils from '
|
|
31
|
+
import * as StringUtils from '../utils/string.js';
|
|
32
|
+
import * as ArrayUtils from '../utils/array.js';
|
|
33
|
+
import * as PathUtils from '../utils/path.js';
|
|
34
|
+
import * as ObjectUtils from '../utils/object.js';
|
|
35
|
+
import * as AsyncUtils from '../utils/async.js';
|
|
36
36
|
export { StringUtils, ArrayUtils, PathUtils, ObjectUtils, AsyncUtils };
|
|
37
37
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/shared/utils/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,SAAS;AACT,OAAO,EACL,UAAU,EACV,SAAS,EACT,SAAS,EACT,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,OAAO,EACR,MAAM,aAAa,CAAC;AAErB,SAAS;AACT,OAAO,EACL,KAAK,EACL,OAAO,EACP,MAAM,EACN,UAAU,EACV,YAAY,EACZ,SAAS,EACT,OAAO,EACP,MAAM,EACN,OAAO,EACP,OAAO,EACR,MAAM,YAAY,CAAC;AAEpB,SAAS;AACT,OAAO,EACL,UAAU,EACV,SAAS,EACT,QAAQ,EACR,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,SAAS,EACT,UAAU,EACV,aAAa,EACd,MAAM,WAAW,CAAC;AAEnB,SAAS;AACT,OAAO,EACL,SAAS,EACT,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,OAAO,EACP,GAAG,EACH,GAAG,EACH,GAAG,EACH,SAAS,EACV,MAAM,aAAa,CAAC;AAErB,SAAS;AACT,OAAO,EACL,KAAK,EACL,KAAK,EACL,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,IAAI,EACJ,KAAK,EACL,KAAK,EACN,MAAM,YAAY,CAAC;AAEpB;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,WAAW,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/shared/utils/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,SAAS;AACT,OAAO,EACL,UAAU,EACV,SAAS,EACT,SAAS,EACT,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,OAAO,EACR,MAAM,aAAa,CAAC;AAErB,SAAS;AACT,OAAO,EACL,KAAK,EACL,OAAO,EACP,MAAM,EACN,UAAU,EACV,YAAY,EACZ,SAAS,EACT,OAAO,EACP,MAAM,EACN,OAAO,EACP,OAAO,EACR,MAAM,YAAY,CAAC;AAEpB,SAAS;AACT,OAAO,EACL,UAAU,EACV,SAAS,EACT,QAAQ,EACR,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,SAAS,EACT,UAAU,EACV,aAAa,EACd,MAAM,WAAW,CAAC;AAEnB,SAAS;AACT,OAAO,EACL,SAAS,EACT,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,OAAO,EACP,GAAG,EACH,GAAG,EACH,GAAG,EACH,SAAS,EACV,MAAM,aAAa,CAAC;AAErB,SAAS;AACT,OAAO,EACL,KAAK,EACL,KAAK,EACL,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,IAAI,EACJ,KAAK,EACL,KAAK,EACN,MAAM,YAAY,CAAC;AAEpB;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,WAAW,MAAM,yBAAyB,CAAC;AACvD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAC;AACnD,OAAO,KAAK,WAAW,MAAM,yBAAyB,CAAC;AACvD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAErD,OAAO,EACL,WAAW,EACX,UAAU,EACV,SAAS,EACT,WAAW,EACX,UAAU,EACX,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-ide",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "程式碼智能工具集 for AI Agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/shared/index.js",
|
|
7
7
|
"types": "dist/shared/index.d.ts",
|
|
8
8
|
"bin": {
|
|
9
|
-
"agent-ide": "./bin/agent-ide.js"
|
|
10
|
-
"agent-ide-mcp": "./bin/mcp-server.js"
|
|
9
|
+
"agent-ide": "./bin/agent-ide.js"
|
|
11
10
|
},
|
|
12
11
|
"scripts": {
|
|
13
|
-
"
|
|
14
|
-
"
|
|
12
|
+
"build": "tsc && tsc-alias && npm run postbuild",
|
|
13
|
+
"postbuild": "mkdir -p dist/plugins/swift/swift-bridge && cp src/plugins/swift/swift-bridge/swift-parser dist/plugins/swift/swift-bridge/ 2>/dev/null || true",
|
|
14
|
+
"pretest": "bash scripts/cleanup-vitest.sh",
|
|
15
15
|
"test": "NODE_OPTIONS='--expose-gc --max-old-space-size=4096' npx vitest run",
|
|
16
16
|
"test:watch": "NODE_OPTIONS='--expose-gc --max-old-space-size=4096' npx vitest --watch",
|
|
17
17
|
"test:coverage": "NODE_OPTIONS='--expose-gc --max-old-space-size=4096' npx vitest run --coverage",
|
|
18
|
-
"test:single": "NODE_OPTIONS='--expose-gc --max-old-space-size=2048' npx vitest run
|
|
18
|
+
"test:single": "TEST_SINGLE_FORK=true NODE_OPTIONS='--expose-gc --max-old-space-size=2048' npx vitest run",
|
|
19
19
|
"test:bail": "NODE_OPTIONS='--expose-gc --max-old-space-size=4096' npx vitest run --bail=1",
|
|
20
20
|
"typecheck": "tsc --noEmit",
|
|
21
21
|
"lint": "eslint 'src/**/*.ts' 'tests/**/*.{ts,js}' --fix",
|
|
@@ -39,20 +39,31 @@
|
|
|
39
39
|
"url": "https://github.com/vivalalova/agent-ide/issues"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
+
"@commitlint/cli": "^20.1.0",
|
|
43
|
+
"@commitlint/config-conventional": "^20.0.0",
|
|
44
|
+
"@eslint/js": "^9.39.1",
|
|
45
|
+
"@lova/mem-vfs": "^0.1.0",
|
|
46
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
47
|
+
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
48
|
+
"@semantic-release/git": "^10.0.1",
|
|
49
|
+
"@semantic-release/github": "^12.0.0",
|
|
50
|
+
"@semantic-release/npm": "^13.1.1",
|
|
51
|
+
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
42
52
|
"@types/babel__generator": "^7.27.0",
|
|
43
53
|
"@types/babel__traverse": "^7.28.0",
|
|
44
54
|
"@types/minimatch": "^6.0.0",
|
|
45
55
|
"@types/node": "^24.3.1",
|
|
46
56
|
"@typescript-eslint/eslint-plugin": "^8.44.1",
|
|
47
57
|
"@typescript-eslint/parser": "^8.44.1",
|
|
48
|
-
"@vitest/coverage-v8": "^
|
|
58
|
+
"@vitest/coverage-v8": "^4.0.0",
|
|
49
59
|
"chokidar": "^4.0.3",
|
|
50
60
|
"eslint": "^9.36.0",
|
|
51
61
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
52
62
|
"eslint-plugin-import": "^2.32.0",
|
|
53
|
-
"
|
|
63
|
+
"semantic-release": "^25.0.1",
|
|
64
|
+
"tsc-alias": "^1.8.16",
|
|
54
65
|
"tsx": "^4.20.5",
|
|
55
|
-
"vitest": "^
|
|
66
|
+
"vitest": "^4.0.0"
|
|
56
67
|
},
|
|
57
68
|
"engines": {
|
|
58
69
|
"node": ">=20.0.0"
|
|
@@ -70,6 +81,7 @@
|
|
|
70
81
|
"commander": "^12.1.0",
|
|
71
82
|
"glob": "^11.0.3",
|
|
72
83
|
"minimatch": "^10.0.3",
|
|
84
|
+
"tree-sitter-python": "^0.25.0",
|
|
73
85
|
"typescript": "^5.0.0",
|
|
74
86
|
"web-tree-sitter": "^0.25.10"
|
|
75
87
|
}
|
package/bin/mcp-server.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Agent IDE MCP Server 入口點
|
|
5
|
-
* 提供 stdio-based MCP Server 供 Claude Code 等 AI 工具使用
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { MCPServer } from '../dist/interfaces/mcp/mcp-server.js';
|
|
9
|
-
|
|
10
|
-
async function main() {
|
|
11
|
-
try {
|
|
12
|
-
const server = new MCPServer();
|
|
13
|
-
await server.start();
|
|
14
|
-
} catch (error) {
|
|
15
|
-
console.error('MCP Server 啟動失敗:', error.message);
|
|
16
|
-
process.exit(1);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
main();
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 程式碼複雜度分析器
|
|
3
|
-
* 提供循環複雜度和認知複雜度分析功能
|
|
4
|
-
*/
|
|
5
|
-
export interface ASTNode {
|
|
6
|
-
type: string;
|
|
7
|
-
children?: ASTNode[];
|
|
8
|
-
operator?: string;
|
|
9
|
-
default?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface ComplexityResult {
|
|
12
|
-
cyclomaticComplexity: number;
|
|
13
|
-
cognitiveComplexity: number;
|
|
14
|
-
evaluation: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* 循環複雜度分析器
|
|
18
|
-
* 基於 McCabe 複雜度計算方法
|
|
19
|
-
*/
|
|
20
|
-
export declare class CyclomaticComplexityAnalyzer {
|
|
21
|
-
/**
|
|
22
|
-
* 計算循環複雜度
|
|
23
|
-
* @param ast AST 節點
|
|
24
|
-
* @returns 複雜度數值
|
|
25
|
-
*/
|
|
26
|
-
calculate(ast: ASTNode): number;
|
|
27
|
-
/**
|
|
28
|
-
* 評估複雜度等級
|
|
29
|
-
* @param complexity 複雜度數值
|
|
30
|
-
* @returns 複雜度等級
|
|
31
|
-
*/
|
|
32
|
-
evaluate(complexity: number): string;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* 認知複雜度分析器
|
|
36
|
-
* 考慮巢狀深度對程式碼理解難度的影響
|
|
37
|
-
*/
|
|
38
|
-
export declare class CognitiveComplexityAnalyzer {
|
|
39
|
-
private nestingLevel;
|
|
40
|
-
/**
|
|
41
|
-
* 計算認知複雜度
|
|
42
|
-
* @param ast AST 節點
|
|
43
|
-
* @returns 認知複雜度數值
|
|
44
|
-
*/
|
|
45
|
-
calculate(ast: ASTNode): number;
|
|
46
|
-
/**
|
|
47
|
-
* 檢查是否為遞歸調用
|
|
48
|
-
*/
|
|
49
|
-
private isRecursive;
|
|
50
|
-
/**
|
|
51
|
-
* 評估認知複雜度等級
|
|
52
|
-
*/
|
|
53
|
-
evaluate(complexity: number): string;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* 綜合複雜度分析器
|
|
57
|
-
* 整合循環複雜度和認知複雜度分析
|
|
58
|
-
*/
|
|
59
|
-
export declare class ComplexityAnalyzer {
|
|
60
|
-
private cyclomaticAnalyzer;
|
|
61
|
-
private cognitiveAnalyzer;
|
|
62
|
-
/**
|
|
63
|
-
* 分析程式碼複雜度
|
|
64
|
-
* @param code 程式碼字串
|
|
65
|
-
* @returns 複雜度分析結果
|
|
66
|
-
*/
|
|
67
|
-
analyzeCode(code: string): Promise<ComplexityResult>;
|
|
68
|
-
/**
|
|
69
|
-
* 簡化的程式碼解析為 AST
|
|
70
|
-
* 實際實作中應該使用完整的 TypeScript 或 JavaScript parser
|
|
71
|
-
*/
|
|
72
|
-
private parseCodeToAST;
|
|
73
|
-
/**
|
|
74
|
-
* 批次分析多個檔案的複雜度
|
|
75
|
-
*/
|
|
76
|
-
analyzeFiles(files: string[]): Promise<Array<{
|
|
77
|
-
file: string;
|
|
78
|
-
complexity: ComplexityResult;
|
|
79
|
-
}>>;
|
|
80
|
-
}
|
|
81
|
-
//# sourceMappingURL=complexity-analyzer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"complexity-analyzer.d.ts","sourceRoot":"","sources":["../../../src/core/analysis/complexity-analyzer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAGD,MAAM,WAAW,gBAAgB;IAC/B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,qBAAa,4BAA4B;IACvC;;;;OAIG;IACH,SAAS,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM;IAmC/B;;;;OAIG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM;CAWrC;AAED;;;GAGG;AACH,qBAAa,2BAA2B;IACtC,OAAO,CAAC,YAAY,CAAK;IAEzB;;;;OAIG;IACH,SAAS,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM;IA2D/B;;OAEG;IACH,OAAO,CAAC,WAAW;IAKnB;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM;CAWrC;AAED;;;GAGG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,kBAAkB,CAAsC;IAChE,OAAO,CAAC,iBAAiB,CAAqC;IAE9D;;;;OAIG;IACG,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IA2B1D;;;OAGG;IACH,OAAO,CAAC,cAAc;IAqCtB;;OAEG;IACG,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC;QACjD,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,gBAAgB,CAAC;KAC9B,CAAC,CAAC;CA4BJ"}
|
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 程式碼複雜度分析器
|
|
3
|
-
* 提供循環複雜度和認知複雜度分析功能
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* 循環複雜度分析器
|
|
7
|
-
* 基於 McCabe 複雜度計算方法
|
|
8
|
-
*/
|
|
9
|
-
export class CyclomaticComplexityAnalyzer {
|
|
10
|
-
/**
|
|
11
|
-
* 計算循環複雜度
|
|
12
|
-
* @param ast AST 節點
|
|
13
|
-
* @returns 複雜度數值
|
|
14
|
-
*/
|
|
15
|
-
calculate(ast) {
|
|
16
|
-
let complexity = 1; // 基礎路徑
|
|
17
|
-
const traverse = (node) => {
|
|
18
|
-
switch (node.type) {
|
|
19
|
-
case 'IfStatement':
|
|
20
|
-
case 'ConditionalExpression':
|
|
21
|
-
case 'ForStatement':
|
|
22
|
-
case 'WhileStatement':
|
|
23
|
-
case 'DoWhileStatement':
|
|
24
|
-
case 'CatchClause':
|
|
25
|
-
complexity++;
|
|
26
|
-
break;
|
|
27
|
-
case 'SwitchCase':
|
|
28
|
-
if (!node.default) {
|
|
29
|
-
complexity++;
|
|
30
|
-
}
|
|
31
|
-
break;
|
|
32
|
-
case 'LogicalExpression':
|
|
33
|
-
if (node.operator === '||' || node.operator === '&&') {
|
|
34
|
-
complexity++;
|
|
35
|
-
}
|
|
36
|
-
break;
|
|
37
|
-
}
|
|
38
|
-
// 遍歷子節點
|
|
39
|
-
if (node.children) {
|
|
40
|
-
node.children.forEach(traverse);
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
traverse(ast);
|
|
44
|
-
return complexity;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* 評估複雜度等級
|
|
48
|
-
* @param complexity 複雜度數值
|
|
49
|
-
* @returns 複雜度等級
|
|
50
|
-
*/
|
|
51
|
-
evaluate(complexity) {
|
|
52
|
-
if (complexity <= 5) {
|
|
53
|
-
return 'simple';
|
|
54
|
-
}
|
|
55
|
-
else if (complexity <= 10) {
|
|
56
|
-
return 'moderate';
|
|
57
|
-
}
|
|
58
|
-
else if (complexity <= 20) {
|
|
59
|
-
return 'complex';
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
return 'very-complex';
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* 認知複雜度分析器
|
|
68
|
-
* 考慮巢狀深度對程式碼理解難度的影響
|
|
69
|
-
*/
|
|
70
|
-
export class CognitiveComplexityAnalyzer {
|
|
71
|
-
nestingLevel = 0;
|
|
72
|
-
/**
|
|
73
|
-
* 計算認知複雜度
|
|
74
|
-
* @param ast AST 節點
|
|
75
|
-
* @returns 認知複雜度數值
|
|
76
|
-
*/
|
|
77
|
-
calculate(ast) {
|
|
78
|
-
let complexity = 0;
|
|
79
|
-
this.nestingLevel = 0;
|
|
80
|
-
const traverse = (node) => {
|
|
81
|
-
switch (node.type) {
|
|
82
|
-
case 'IfStatement':
|
|
83
|
-
case 'ForStatement':
|
|
84
|
-
case 'WhileStatement':
|
|
85
|
-
case 'DoWhileStatement':
|
|
86
|
-
complexity += 1 + this.nestingLevel;
|
|
87
|
-
this.nestingLevel++;
|
|
88
|
-
if (node.children) {
|
|
89
|
-
node.children.forEach(traverse);
|
|
90
|
-
}
|
|
91
|
-
this.nestingLevel--;
|
|
92
|
-
return; // 避免重複遍歷子節點
|
|
93
|
-
case 'CallExpression':
|
|
94
|
-
if (this.isRecursive(node)) {
|
|
95
|
-
complexity += 1;
|
|
96
|
-
}
|
|
97
|
-
break;
|
|
98
|
-
case 'FunctionExpression':
|
|
99
|
-
case 'ArrowFunctionExpression':
|
|
100
|
-
this.nestingLevel++;
|
|
101
|
-
if (node.children) {
|
|
102
|
-
node.children.forEach(traverse);
|
|
103
|
-
}
|
|
104
|
-
this.nestingLevel--;
|
|
105
|
-
return;
|
|
106
|
-
case 'CatchClause':
|
|
107
|
-
complexity += 1 + this.nestingLevel;
|
|
108
|
-
break;
|
|
109
|
-
case 'SwitchStatement':
|
|
110
|
-
complexity += 1 + this.nestingLevel;
|
|
111
|
-
this.nestingLevel++;
|
|
112
|
-
if (node.children) {
|
|
113
|
-
node.children.forEach(traverse);
|
|
114
|
-
}
|
|
115
|
-
this.nestingLevel--;
|
|
116
|
-
return;
|
|
117
|
-
case 'ConditionalExpression':
|
|
118
|
-
case 'LogicalExpression':
|
|
119
|
-
if (node.operator === '&&' || node.operator === '||') {
|
|
120
|
-
complexity += 1;
|
|
121
|
-
}
|
|
122
|
-
break;
|
|
123
|
-
}
|
|
124
|
-
// 遍歷子節點
|
|
125
|
-
if (node.children) {
|
|
126
|
-
node.children.forEach(traverse);
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
traverse(ast);
|
|
130
|
-
return complexity;
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* 檢查是否為遞歸調用
|
|
134
|
-
*/
|
|
135
|
-
isRecursive(node) {
|
|
136
|
-
// 簡化實作,實際應該檢查調用的函式名稱
|
|
137
|
-
return false;
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* 評估認知複雜度等級
|
|
141
|
-
*/
|
|
142
|
-
evaluate(complexity) {
|
|
143
|
-
if (complexity <= 5) {
|
|
144
|
-
return 'simple';
|
|
145
|
-
}
|
|
146
|
-
else if (complexity <= 10) {
|
|
147
|
-
return 'moderate';
|
|
148
|
-
}
|
|
149
|
-
else if (complexity <= 15) {
|
|
150
|
-
return 'complex';
|
|
151
|
-
}
|
|
152
|
-
else {
|
|
153
|
-
return 'very-complex';
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* 綜合複雜度分析器
|
|
159
|
-
* 整合循環複雜度和認知複雜度分析
|
|
160
|
-
*/
|
|
161
|
-
export class ComplexityAnalyzer {
|
|
162
|
-
cyclomaticAnalyzer = new CyclomaticComplexityAnalyzer();
|
|
163
|
-
cognitiveAnalyzer = new CognitiveComplexityAnalyzer();
|
|
164
|
-
/**
|
|
165
|
-
* 分析程式碼複雜度
|
|
166
|
-
* @param code 程式碼字串
|
|
167
|
-
* @returns 複雜度分析結果
|
|
168
|
-
*/
|
|
169
|
-
async analyzeCode(code) {
|
|
170
|
-
// 輸入驗證
|
|
171
|
-
if (typeof code !== 'string') {
|
|
172
|
-
throw new Error('程式碼必須是字串類型');
|
|
173
|
-
}
|
|
174
|
-
if (code.length === 0) {
|
|
175
|
-
return {
|
|
176
|
-
cyclomaticComplexity: 1,
|
|
177
|
-
cognitiveComplexity: 0,
|
|
178
|
-
evaluation: 'simple'
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
// 簡化的 AST 生成(實際應該使用真正的 parser)
|
|
182
|
-
const ast = this.parseCodeToAST(code);
|
|
183
|
-
const cyclomaticComplexity = this.cyclomaticAnalyzer.calculate(ast);
|
|
184
|
-
const cognitiveComplexity = this.cognitiveAnalyzer.calculate(ast);
|
|
185
|
-
return {
|
|
186
|
-
cyclomaticComplexity,
|
|
187
|
-
cognitiveComplexity,
|
|
188
|
-
evaluation: this.cyclomaticAnalyzer.evaluate(cyclomaticComplexity)
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* 簡化的程式碼解析為 AST
|
|
193
|
-
* 實際實作中應該使用完整的 TypeScript 或 JavaScript parser
|
|
194
|
-
*/
|
|
195
|
-
parseCodeToAST(code) {
|
|
196
|
-
// 簡化實作:根據程式碼內容建立模擬的 AST
|
|
197
|
-
const children = [];
|
|
198
|
-
// 檢測條件語句
|
|
199
|
-
const ifMatches = code.match(/if\s*\(/g) || [];
|
|
200
|
-
ifMatches.forEach(() => {
|
|
201
|
-
children.push({ type: 'IfStatement', children: [] });
|
|
202
|
-
});
|
|
203
|
-
// 檢測迴圈
|
|
204
|
-
const forMatches = code.match(/for\s*\(/g) || [];
|
|
205
|
-
forMatches.forEach(() => {
|
|
206
|
-
children.push({ type: 'ForStatement', children: [] });
|
|
207
|
-
});
|
|
208
|
-
const whileMatches = code.match(/while\s*\(/g) || [];
|
|
209
|
-
whileMatches.forEach(() => {
|
|
210
|
-
children.push({ type: 'WhileStatement', children: [] });
|
|
211
|
-
});
|
|
212
|
-
// 檢測邏輯運算子
|
|
213
|
-
const logicalMatches = code.match(/(\|\||&&)/g) || [];
|
|
214
|
-
logicalMatches.forEach((operator) => {
|
|
215
|
-
children.push({
|
|
216
|
-
type: 'LogicalExpression',
|
|
217
|
-
operator: operator,
|
|
218
|
-
children: []
|
|
219
|
-
});
|
|
220
|
-
});
|
|
221
|
-
return {
|
|
222
|
-
type: 'Program',
|
|
223
|
-
children
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* 批次分析多個檔案的複雜度
|
|
228
|
-
*/
|
|
229
|
-
async analyzeFiles(files) {
|
|
230
|
-
if (!Array.isArray(files)) {
|
|
231
|
-
throw new Error('檔案列表必須是陣列');
|
|
232
|
-
}
|
|
233
|
-
const results = await Promise.all(files.map(async (file) => {
|
|
234
|
-
try {
|
|
235
|
-
// 讀取檔案內容
|
|
236
|
-
const fs = await import('fs/promises');
|
|
237
|
-
const code = await fs.readFile(file, 'utf-8');
|
|
238
|
-
const complexity = await this.analyzeCode(code);
|
|
239
|
-
return { file, complexity };
|
|
240
|
-
}
|
|
241
|
-
catch (error) {
|
|
242
|
-
return {
|
|
243
|
-
file,
|
|
244
|
-
complexity: {
|
|
245
|
-
cyclomaticComplexity: 0,
|
|
246
|
-
cognitiveComplexity: 0,
|
|
247
|
-
evaluation: 'error'
|
|
248
|
-
}
|
|
249
|
-
};
|
|
250
|
-
}
|
|
251
|
-
}));
|
|
252
|
-
return results;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
//# sourceMappingURL=complexity-analyzer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"complexity-analyzer.js","sourceRoot":"","sources":["../../../src/core/analysis/complexity-analyzer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAiBH;;;GAGG;AACH,MAAM,OAAO,4BAA4B;IACvC;;;;OAIG;IACH,SAAS,CAAC,GAAY;QACpB,IAAI,UAAU,GAAG,CAAC,CAAC,CAAC,OAAO;QAE3B,MAAM,QAAQ,GAAG,CAAC,IAAa,EAAE,EAAE;YACjC,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;gBACpB,KAAK,aAAa,CAAC;gBACnB,KAAK,uBAAuB,CAAC;gBAC7B,KAAK,cAAc,CAAC;gBACpB,KAAK,gBAAgB,CAAC;gBACtB,KAAK,kBAAkB,CAAC;gBACxB,KAAK,aAAa;oBAChB,UAAU,EAAE,CAAC;oBACb,MAAM;gBACR,KAAK,YAAY;oBACf,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE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