vibecodingmachine-core 2026.3.14-1528 → 2026.6.17-1835
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/package.json +7 -2
- package/src/agents/Agent.js +1 -1
- package/src/agents/AgentAdditionService.js +1 -1
- package/src/agents/AgentCheckDiscoveryService.js +2 -2
- package/src/agents/AgentCheckService.js +16 -16
- package/src/agents/AgentCheckStatisticsService.js +11 -11
- package/src/agents/AgentInstallationService.js +6 -6
- package/src/agents/AgentSetupService.js +15 -15
- package/src/agents/AgentStatus.js +8 -8
- package/src/agents/AgentVerificationService.js +39 -39
- package/src/agents/ConfigurationSchemaValidator.js +8 -8
- package/src/agents/EnvironmentConfigurationManager.js +28 -28
- package/src/agents/InstallationErrorHandler.js +11 -11
- package/src/agents/InstallationLog.js +18 -18
- package/src/agents/InstallationMethod.js +1 -1
- package/src/agents/InstallationOrchestrator.js +37 -37
- package/src/agents/InstallationProgressReporter.js +13 -13
- package/src/agents/InstallationRetryManager.js +20 -20
- package/src/agents/InstallationType.js +14 -14
- package/src/agents/OperationTypes.js +12 -12
- package/src/agents/PerformanceMetricsCollector.js +59 -59
- package/src/agents/SecurityValidationService.js +17 -17
- package/src/agents/SimpleAgentCheckService.js +79 -74
- package/src/agents/VerificationTest.js +26 -26
- package/src/agents/VerificationType.js +5 -5
- package/src/agents/WindowsPermissionHandler.js +30 -30
- package/src/agents/config/AgentDefaultsRegistry.js +3 -3
- package/src/agents/config-managers/ConfigUtils.js +5 -5
- package/src/agents/config-managers/DefaultConfig.js +1 -1
- package/src/agents/config-managers/EnvVarLoader.js +7 -7
- package/src/agents/config-managers/FileConfigLoader.js +22 -22
- package/src/agents/config-managers/TypeConverters.js +1 -1
- package/src/agents/config-managers/VariableMappings.js +7 -7
- package/src/agents/discovery/AgentDiscoveryService-refactored.js +8 -8
- package/src/agents/discovery/AgentDiscoveryService.js +14 -14
- package/src/agents/discovery/agent-validator.js +4 -4
- package/src/agents/discovery/discovery-results.js +1 -1
- package/src/agents/discovery/discovery-scanner.js +29 -29
- package/src/agents/discovery/discovery-utils.js +6 -6
- package/src/agents/discovery/executable-analyzer.js +27 -27
- package/src/agents/discovery/history-manager.js +2 -2
- package/src/agents/logging/AgentLogger.js +20 -20
- package/src/agents/status/AgentStatusManager.js +30 -30
- package/src/agents/storage/FileManager.js +15 -15
- package/src/agents/validation.js +4 -4
- package/src/agents/verification/AgentCommunicationTester.js +46 -46
- package/src/agents/verification/BaseVerifier.js +31 -31
- package/src/agents/verification/CommandVerifier.js +34 -34
- package/src/agents/verification/FileOperationVerifier.js +14 -14
- package/src/agents/verification/ResultAnalyzer-refactored.js +7 -7
- package/src/agents/verification/ResultAnalyzer.js +29 -29
- package/src/agents/verification/TestRequirementManager.js +49 -49
- package/src/agents/verification/VerificationRunner.js +18 -18
- package/src/agents/verification/analysis-utils.js +27 -27
- package/src/agents/verification/batch-analyzer.js +55 -55
- package/src/agents/verification/pattern-recognizer.js +49 -49
- package/src/agents/verification/report-generator.js +9 -9
- package/src/agents/verification/test-analyzer.js +29 -29
- package/src/agents/windows/BaseWindowsInstaller.js +22 -22
- package/src/agents/windows/ChocolateyInstaller.js +31 -31
- package/src/agents/windows/DirectInstaller.js +23 -23
- package/src/agents/windows/InstallerFactory.js +16 -16
- package/src/agents/windows/NpmInstaller.js +39 -39
- package/src/agents/windows/PowerShellInstaller.js +27 -27
- package/src/agents/windows/VSCodeExtensionInstaller.js +10 -10
- package/src/agents/windows/WinGetInstaller.js +23 -23
- package/src/analysis/analysis-engine.js +35 -35
- package/src/analysis/analysis-reporter.js +7 -7
- package/src/analysis/ast-analyzer.js +28 -28
- package/src/analysis/boundary-detector-refactored.js +35 -35
- package/src/analysis/boundary-detector.js +35 -35
- package/src/analysis/boundary-scanner.js +52 -52
- package/src/analysis/boundary-types.js +3 -3
- package/src/analysis/boundary-utils.js +33 -33
- package/src/analysis/categorizer.js +20 -20
- package/src/analysis/codebase-scanner.js +22 -22
- package/src/analysis/detection-methods.js +25 -25
- package/src/analysis/line-counter.js +14 -14
- package/src/analysis/report/analysis-report.js +9 -9
- package/src/analysis/report/package-analyzer.js +33 -33
- package/src/analysis/report/recommendation-generator.js +29 -29
- package/src/analysis/report/statistics-generator.js +53 -53
- package/src/analysis/reports/analysis-report-model.js +4 -4
- package/src/analysis/reports/recommendation-generator.js +25 -25
- package/src/analysis/reports/report-generators.js +9 -9
- package/src/analysis/reports/statistics-calculator.js +23 -23
- package/src/analysis/reports/trend-analyzer.js +19 -19
- package/src/analysis/strategy-generator.js +5 -5
- package/src/auth/shared-auth-storage.js +15 -7
- package/src/auto-mode/AutoModeBusinessLogic.js +9 -15
- package/src/auto-mode/auto-mode-streaks.js +104 -0
- package/src/auto-mode/direct-run-recovery.js +99 -0
- package/src/auto-mode/rate-limit-budget.js +169 -0
- package/src/auto-mode/rate-limit-handler.js +218 -0
- package/src/auto-mode/rate-limit-store.js +174 -0
- package/src/auto-mode/stage-change-log.js +60 -0
- package/src/auto-mode/stage-stall-tracker.js +123 -0
- package/src/auto-mode-error-detector/error-detector.js +135 -0
- package/src/autonomous-mode/feature-implementer.js +20 -24
- package/src/beta-request.js +1 -1
- package/src/chat-management/chat-manager.js +3 -3
- package/src/commands/base.js +8 -8
- package/src/commands/disable-requirement.js +2 -2
- package/src/commands/disable-spec.js +2 -2
- package/src/commands/enable-requirement.js +2 -2
- package/src/commands/enable-spec.js +2 -2
- package/src/commands/help.js +5 -5
- package/src/commands/registry.js +12 -12
- package/src/commands/requirements.js +2 -2
- package/src/commands/resolver.js +7 -7
- package/src/commands/settings.js +79 -4
- package/src/compliance/compliance-manager.js +10 -10
- package/src/compliance/compliance-prompt.js +6 -6
- package/src/config/refactoring-config.js +6 -6
- package/src/database/migrations.js +1 -1
- package/src/database/user-database-client.js +1 -1
- package/src/database/user-schema.js +2 -2
- package/src/feedback/feedback-config-manager.js +95 -0
- package/src/feedback/feedback-manager.js +501 -0
- package/src/feedback/ui-preferences-manager.js +87 -0
- package/src/git/commit-manager.js +475 -0
- package/src/health-tracking/health-reporter.js +14 -14
- package/src/health-tracking/ide-health-tracker.js +17 -3
- package/src/health-tracking/json-storage.js +4 -4
- package/src/ide-integration/agent-test-runner.js +275 -0
- package/src/ide-integration/aider/commands/configuration-manager.js +39 -0
- package/src/ide-integration/aider/commands/installation-manager.js +111 -0
- package/src/ide-integration/aider/processes/process-manager.js +37 -0
- package/src/ide-integration/aider/utils/ollama-manager.js +154 -0
- package/src/ide-integration/aider-cli-manager.cjs +16 -241
- package/src/ide-integration/applescript-antigravity-quota.cjs +515 -0
- package/src/ide-integration/applescript-cursor-quota.cjs +351 -0
- package/src/ide-integration/applescript-ide-opener.cjs +489 -0
- package/src/ide-integration/applescript-kiro-quota.cjs +549 -0
- package/src/ide-integration/applescript-manager-core.js +30 -12
- package/src/ide-integration/applescript-manager.cjs +45 -3201
- package/src/ide-integration/applescript-manager.js +34 -16
- package/src/ide-integration/applescript-response-reader.cjs +658 -0
- package/src/ide-integration/applescript-send-text.cjs +307 -0
- package/src/ide-integration/applescript-status-continuation.cjs +581 -0
- package/src/ide-integration/applescript-utils.js +203 -192
- package/src/ide-integration/cdp-handlers/connection-handler.js +2 -2
- package/src/ide-integration/cdp-handlers/continuation-handler.js +7 -7
- package/src/ide-integration/cdp-handlers/text-sender.js +1 -1
- package/src/ide-integration/cdp-manager.js +2 -2
- package/src/ide-integration/cli-direct-runner.js +483 -0
- package/src/ide-integration/cli-session-manager.js +180 -0
- package/src/ide-integration/cline-cli-manager.js +24 -24
- package/src/ide-integration/continuation-handler.js +18 -18
- package/src/ide-integration/continue-cli-manager.js +14 -14
- package/src/ide-integration/ide-openers/claude-opener.js +23 -7
- package/src/ide-integration/ide-openers/other-ides-opener.js +17 -63
- package/src/ide-integration/ide-status-checker.js +20 -20
- package/src/ide-integration/macos-ide-manager.js +55 -4
- package/src/ide-integration/macos-quota-checker.js +1 -1
- package/src/ide-integration/macos-text-sender.js +204 -68
- package/src/ide-integration/quota-detector.cjs +11 -11
- package/src/ide-integration/quota-detector.js +11 -11
- package/src/ide-integration/response-reader.js +10 -10
- package/src/ide-integration/windows/cursor-automation.js +304 -0
- package/src/ide-integration/windows/ide-automation.js +735 -0
- package/src/ide-integration/windows/window-operations.js +183 -0
- package/src/ide-integration/windows-automation-manager.js +92 -865
- package/src/ide-integration/windows-ide-manager.js +13 -13
- package/src/index.cjs +87 -6
- package/src/index.js +56 -41
- package/src/installation/config-manager.js +247 -0
- package/src/installation/config-paths.js +64 -0
- package/src/installation/fs-validators.js +166 -0
- package/src/installation/index.js +30 -0
- package/src/installation/path-resolver.js +73 -0
- package/src/installation/types.js +57 -0
- package/src/installation/version-detector.js +233 -0
- package/src/items/item-conversation.js +101 -0
- package/src/items/items-migrator.js +358 -0
- package/src/items/items-slug.js +55 -0
- package/src/items/items-store-io.js +257 -0
- package/src/items/items-store.js +541 -0
- package/src/localization/index.js +3 -3
- package/src/localization/translations/en-part1.js +1 -1
- package/src/localization/translations/en-part2.js +1 -1
- package/src/localization/translations/es-part1.js +1 -1
- package/src/localization/translations/es-part2.js +1 -1
- package/src/models/compliance-report.js +44 -44
- package/src/models/file-analysis.js +33 -33
- package/src/models/plan-manager.js +44 -44
- package/src/models/refactoring-models.js +4 -4
- package/src/models/refactoring-plan-refactored.js +2 -2
- package/src/models/refactoring-plan.js +5 -5
- package/src/monitoring/alert-system.js +84 -84
- package/src/monitoring/compliance-progress-tracker.js +19 -19
- package/src/monitoring/continuous-scan-notifications.js +54 -54
- package/src/monitoring/continuous-scanner.js +24 -24
- package/src/monitoring/file-monitor/file-analyzer.js +23 -23
- package/src/monitoring/file-monitor/file-monitor.js +20 -20
- package/src/monitoring/file-monitor/watcher.js +18 -18
- package/src/monitoring/file-monitor.js +1 -1
- package/src/monitoring/notification-handlers/base-handler.js +3 -3
- package/src/monitoring/notification-handlers/error-handler.js +1 -1
- package/src/monitoring/notification-handlers/index.js +1 -1
- package/src/monitoring/notification-handlers/new-violation-handler.js +5 -5
- package/src/monitoring/notification-handlers/progress-handler.js +2 -2
- package/src/monitoring/notification-handlers/resolved-violation-handler.js +4 -4
- package/src/monitoring/notification-handlers/threshold-handler.js +1 -1
- package/src/monitoring/notification-manager.js +36 -36
- package/src/monitoring/scanner-core.js +43 -43
- package/src/monitoring/scanner-events.js +26 -26
- package/src/monitoring/violation-notification-system.js +10 -10
- package/src/progress/metrics-aggregator.js +194 -0
- package/src/progress/metrics-store.js +263 -0
- package/src/provider-registry.js +5 -5
- package/src/quota-management/index.js +2 -2
- package/src/refactoring/boundaries/cohesion-analyzer.js +21 -21
- package/src/refactoring/boundaries/extraction-result.js +1 -1
- package/src/refactoring/boundaries/extraction-strategies.js +27 -27
- package/src/refactoring/boundaries/module-boundary.js +8 -8
- package/src/refactoring/boundary/boundary-detector-refactored.js +1 -1
- package/src/refactoring/boundary/boundary-detector.js +26 -26
- package/src/refactoring/boundary/boundary-types.js +21 -21
- package/src/refactoring/boundary/detectors/boundary-analyzers.js +34 -34
- package/src/refactoring/boundary/detectors/boundary-core.js +14 -14
- package/src/refactoring/boundary/detectors/class-detector.js +28 -28
- package/src/refactoring/boundary/detectors/config-detector.js +28 -28
- package/src/refactoring/boundary/detectors/constant-detector.js +28 -28
- package/src/refactoring/boundary/detectors/function-detector.js +28 -28
- package/src/refactoring/boundary/detectors/module-detector.js +29 -29
- package/src/refactoring/boundary/detectors/object-detector.js +28 -28
- package/src/refactoring/boundary/detectors/type-detectors.js +34 -34
- package/src/refactoring/boundary/detectors/utility-detector.js +28 -28
- package/src/refactoring/boundary/extraction-strategies.js +61 -61
- package/src/refactoring/boundary-extraction-result.js +3 -3
- package/src/refactoring/boundary-extraction-strategies.js +28 -28
- package/src/refactoring/boundary-extractor.js +13 -13
- package/src/refactoring/boundary-types.js +1 -1
- package/src/refactoring/circular/circular-dependency.js +4 -4
- package/src/refactoring/circular/cycle-detection.js +10 -10
- package/src/refactoring/circular/dependency-node.js +1 -1
- package/src/refactoring/circular/dependency-result.js +1 -1
- package/src/refactoring/circular/dependency-types.js +2 -2
- package/src/refactoring/circular/graph-builder.js +25 -25
- package/src/refactoring/circular/resolution-strategy.js +1 -1
- package/src/refactoring/circular/strategy-generator.js +28 -28
- package/src/refactoring/circular-dependency-resolver-original.js +70 -70
- package/src/refactoring/circular-dependency-resolver.js +19 -19
- package/src/refactoring/code-mover-refactored.js +31 -31
- package/src/refactoring/code-mover.js +53 -53
- package/src/refactoring/execution-status.js +1 -1
- package/src/refactoring/execution-strategies.js +28 -28
- package/src/refactoring/file-splitter-core.js +58 -58
- package/src/refactoring/file-splitter-types.js +1 -1
- package/src/refactoring/file-splitter.js +1 -1
- package/src/refactoring/functionality-validator.js +90 -90
- package/src/refactoring/import-manager-refactored.js +42 -42
- package/src/refactoring/import-manager.js +57 -57
- package/src/refactoring/import-models.js +1 -1
- package/src/refactoring/import-parser.js +41 -41
- package/src/refactoring/module-boundary.js +3 -3
- package/src/refactoring/move-executor.js +45 -45
- package/src/refactoring/move-utils.js +27 -27
- package/src/refactoring/operation-executor.js +7 -7
- package/src/refactoring/plan-creator.js +3 -3
- package/src/refactoring/plan-executor.js +21 -21
- package/src/refactoring/plan-validator.js +10 -10
- package/src/refactoring/refactoring-executor-result.js +1 -1
- package/src/refactoring/refactoring-executor.js +5 -5
- package/src/refactoring/refactoring-operation.js +3 -3
- package/src/refactoring/refactoring-plan.js +2 -2
- package/src/refactoring/refactoring-rollback.js +1 -1
- package/src/refactoring/rollback-handlers/RollbackExecutor.js +12 -12
- package/src/refactoring/rollback-handlers/RollbackManager.js +34 -34
- package/src/refactoring/rollback-handlers/RollbackOperation.js +2 -2
- package/src/refactoring/rollback-handlers/RollbackResult.js +5 -5
- package/src/refactoring/rollback-handlers/RollbackStatistics.js +8 -8
- package/src/refactoring/test-validator.js +19 -19
- package/src/refactoring/validation/baseline-runner.js +10 -10
- package/src/refactoring/validation/report-generator.js +16 -16
- package/src/refactoring/validation/result-comparator.js +10 -10
- package/src/refactoring/validation/test-suite.js +2 -2
- package/src/refactoring/validation/test-validation-result.js +2 -2
- package/src/refactoring/validation/validation-runner.js +16 -16
- package/src/refactoring/validation/validation-status.js +1 -1
- package/src/repos/repos-store.js +220 -0
- package/src/requirement-management/default-requirement-manager.js +20 -20
- package/src/requirement-management/requirement-file-parser.js +3 -3
- package/src/requirement-management/requirement-sequencer.js +17 -17
- package/src/rui/base.js +6 -6
- package/src/rui/commands/AgentCommandParser.js +6 -6
- package/src/rui/commands/AgentCommands.js +26 -26
- package/src/rui/commands/AgentResponseFormatter.js +12 -12
- package/src/rui/commands/parsers/CommandMapper.js +5 -5
- package/src/rui/commands/parsers/CommandValidator.js +5 -5
- package/src/rui/commands/parsers/ComponentExtractor.js +4 -4
- package/src/rui/commands/parsers/TokenParser.js +6 -6
- package/src/rui/commands/parsers/tokenizer.js +9 -9
- package/src/rui/index.js +5 -5
- package/src/rui/registry.js +5 -5
- package/src/rui/resolver.js +3 -3
- package/src/screenshot/analysis-engine.js +249 -0
- package/src/screenshot/capture-engine.js +251 -0
- package/src/screenshot/verification-loop.js +191 -0
- package/src/scripts/verify-full-compliance.js +32 -32
- package/src/spec-management/queue-storage.js +320 -0
- package/src/spec-management/retry-manager.js +243 -0
- package/src/spec-management/spec-counter.js +301 -0
- package/src/spec-management/spec-fingerprint.js +148 -0
- package/src/spec-management/spec-logger.js +329 -0
- package/src/spec-management/spec-scanner.js +313 -0
- package/src/sync/aws-setup.js +41 -41
- package/src/sync/remote-control-server.js +50 -50
- package/src/sync/sync-engine-conflicts.js +10 -10
- package/src/sync/sync-engine-core.js +9 -9
- package/src/sync/sync-engine-file-ops.js +7 -7
- package/src/sync/sync-engine.js +12 -12
- package/src/task-generation/automated-task-generator.js +20 -20
- package/src/task-generation/prioritizer.js +39 -39
- package/src/task-generation/task-list-updater.js +29 -29
- package/src/task-generation/task-management-integration.js +92 -92
- package/src/task-generation/task-manager-integration.js +18 -18
- package/src/task-generation/violation-task-generator.js +54 -54
- package/src/task-management/continuous-scan-integration.js +25 -25
- package/src/ui/ChatInterface.js +1 -1
- package/src/ui/ChromeExtensionAdapter.js +309 -0
- package/src/ui/FeedbackComponent.js +334 -0
- package/src/utils/analyzer.js +18 -18
- package/src/utils/cleanup.js +28 -28
- package/src/utils/config-helpers.js +64 -4
- package/src/utils/constants.js +19 -0
- package/src/utils/current-requirement-operations.js +63 -11
- package/src/utils/dependency-mapper.js +8 -8
- package/src/utils/duplicate-detector.js +29 -29
- package/src/utils/error-reporter.js +6 -6
- package/src/utils/file-monitor.js +20 -20
- package/src/utils/git-branch-manager.js +157 -1
- package/src/utils/import-updater.js +10 -10
- package/src/utils/refactor-plan.js +22 -22
- package/src/utils/refactoring-tools.js +7 -7
- package/src/utils/repo-helpers.cjs +16 -11
- package/src/utils/repo-helpers.js +15 -8
- package/src/utils/report-generator.js +1 -1
- package/src/utils/report-generators/analysis-generator.js +4 -4
- package/src/utils/report-generators/base-generator.js +7 -7
- package/src/utils/report-generators/compliance-generator.js +2 -2
- package/src/utils/report-generators/format-handlers.js +16 -16
- package/src/utils/report-generators/refactoring-generator.js +1 -1
- package/src/utils/report-generators/validation-generator.js +3 -3
- package/src/utils/reports/report-analysis.js +13 -13
- package/src/utils/reports/report-types.js +1 -1
- package/src/utils/reports/summary-generators.js +4 -4
- package/src/utils/requirement-enable-disable.js +69 -44
- package/src/utils/requirement-file-management.js +10 -28
- package/src/utils/requirement-helpers/requirement-file-ops.js +22 -17
- package/src/utils/requirement-helpers/requirement-mover.js +13 -13
- package/src/utils/requirement-helpers/requirement-parser.js +6 -10
- package/src/utils/requirement-helpers/requirement-status.js +20 -18
- package/src/utils/requirement-helpers-new.js +8 -8
- package/src/utils/requirement-helpers-refactored.js +1 -1
- package/src/utils/requirement-helpers.js +1 -1
- package/src/utils/requirement-loader.js +238 -0
- package/src/utils/requirement-movement.js +46 -46
- package/src/utils/requirement-writer.js +466 -0
- package/src/utils/rollback/rollback-handlers.js +2 -2
- package/src/utils/rollback/rollback-operation.js +1 -1
- package/src/utils/rollback/rollback-recorder.js +4 -4
- package/src/utils/rollback/rollback-state-manager.js +5 -5
- package/src/utils/rollback/rollback-types.js +1 -1
- package/src/utils/rollback/rollback-utils.js +4 -4
- package/src/utils/rollback-manager-original.js +14 -14
- package/src/utils/rollback-manager.js +4 -4
- package/src/utils/smoke-test-cli.js +20 -20
- package/src/utils/smoke-test-gui.js +34 -34
- package/src/utils/smoke-test-orchestrator.js +24 -24
- package/src/utils/smoke-test-runner.js +5 -5
- package/src/utils/smoke-test-web.js +22 -22
- package/src/utils/spec-loader.js +308 -0
- package/src/utils/spec-writer.js +295 -0
- package/src/utils/specification-enable-disable.js +10 -10
- package/src/utils/task-parser.js +141 -0
- package/src/utils/test-comparator.js +2 -2
- package/src/utils/test-config.js +1 -1
- package/src/utils/test-executor.js +7 -7
- package/src/utils/test-parser.js +4 -4
- package/src/utils/test-runner-baseline.js +5 -5
- package/src/utils/test-runner-core.js +2 -2
- package/src/utils/test-runner-report.js +1 -1
- package/src/utils/test-runner-validation.js +9 -9
- package/src/utils/test-runner.js +1 -1
- package/src/utils/validation-framework.js +27 -27
- package/src/utils/verification-summary-validator.js +51 -0
- package/src/validation/comparison-analyzer.js +34 -34
- package/src/validation/compliance-analyzer.js +23 -23
- package/src/validation/compliance-report-generator.js +23 -23
- package/src/validation/compliance-reporter-new.js +18 -18
- package/src/validation/compliance-reporter-refactored.js +18 -18
- package/src/validation/compliance-reporter.js +45 -30
- package/src/validation/compliance-rules.js +12 -12
- package/src/validation/compliance-utils.js +20 -20
- package/src/validation/constitution-validator-new.js +16 -16
- package/src/validation/constitution-validator.js +1 -1
- package/src/validation/file-validators.js +13 -13
- package/src/validation/html-generator.js +27 -27
- package/src/validation/line-limit/file-analyzer.js +15 -15
- package/src/validation/line-limit/line-limit-validator.js +10 -10
- package/src/validation/line-limit/validation-result.js +6 -6
- package/src/validation/line-limit-core.js +29 -29
- package/src/validation/line-limit-reporter.js +20 -20
- package/src/validation/line-limit-result.js +3 -3
- package/src/validation/line-limit-validator.js +5 -5
- package/src/validation/metrics/category-calculator.js +9 -9
- package/src/validation/metrics/metrics-helpers.js +16 -16
- package/src/validation/metrics/overview-calculator.js +2 -2
- package/src/validation/metrics/overview-metrics.js +1 -1
- package/src/validation/metrics/quality-calculator.js +22 -22
- package/src/validation/metrics/size-calculator.js +3 -3
- package/src/validation/metrics-calculator.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibecodingmachine-core",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.06.17-1835",
|
|
4
4
|
"description": "Shared core logic for Vibe Coding Machine IDE integration",
|
|
5
5
|
"main": "src/index.cjs",
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -31,12 +31,15 @@
|
|
|
31
31
|
"@aws-sdk/client-cognito-identity-provider": "^3.600.0",
|
|
32
32
|
"@aws-sdk/client-dynamodb": "^3.600.0",
|
|
33
33
|
"@aws-sdk/lib-dynamodb": "^3.600.0",
|
|
34
|
-
"
|
|
34
|
+
"better-sqlite3": "^12.8.0",
|
|
35
35
|
"fs-extra": "^11.1.1",
|
|
36
36
|
"jsonwebtoken": "^9.0.2",
|
|
37
37
|
"jwks-rsa": "^3.2.0",
|
|
38
38
|
"node-fetch": "^3.3.2",
|
|
39
39
|
"ora": "^9.3.0",
|
|
40
|
+
"playwright": "^1.59.1",
|
|
41
|
+
"sharp": "^0.34.5",
|
|
42
|
+
"simple-git": "^3.33.0",
|
|
40
43
|
"ws": "^8.18.0"
|
|
41
44
|
},
|
|
42
45
|
"optionalDependencies": {
|
|
@@ -45,6 +48,8 @@
|
|
|
45
48
|
"devDependencies": {
|
|
46
49
|
"@babel/core": "^7.23.0",
|
|
47
50
|
"@babel/preset-env": "^7.23.0",
|
|
51
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
52
|
+
"@testing-library/react": "^16.3.2",
|
|
48
53
|
"babel-jest": "^29.7.0",
|
|
49
54
|
"jest": "^29.7.0"
|
|
50
55
|
},
|
package/src/agents/Agent.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Agent Check Discovery Service
|
|
3
|
-
*
|
|
3
|
+
*
|
|
4
4
|
* Handles agent discovery integration with check operations.
|
|
5
5
|
* Constitutional requirement: <555 lines, test-first approach.
|
|
6
6
|
*/
|
|
@@ -19,7 +19,7 @@ class AgentCheckDiscoveryService {
|
|
|
19
19
|
this.configManager = config.configManager || null;
|
|
20
20
|
this.logger = config.logger || null;
|
|
21
21
|
this.fileManager = config.fileManager || null;
|
|
22
|
-
|
|
22
|
+
|
|
23
23
|
this.discoveryService = new AgentDiscoveryService({
|
|
24
24
|
configManager: this.configManager,
|
|
25
25
|
logger: this.logger,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Agent Check Service
|
|
3
|
-
*
|
|
3
|
+
*
|
|
4
4
|
* Main service for checking agents (install + verify).
|
|
5
5
|
* Follows constitutional requirements: <555 lines, test-first approach.
|
|
6
6
|
*/
|
|
@@ -24,7 +24,7 @@ class AgentCheckService {
|
|
|
24
24
|
this.configManager = config.configManager || null;
|
|
25
25
|
this.logger = config.logger || null;
|
|
26
26
|
this.fileManager = config.fileManager || null;
|
|
27
|
-
|
|
27
|
+
|
|
28
28
|
// Create sub-services
|
|
29
29
|
this.installationService = AgentInstallationService.createDefault({
|
|
30
30
|
configManager: this.configManager,
|
|
@@ -32,33 +32,33 @@ class AgentCheckService {
|
|
|
32
32
|
fileManager: this.fileManager,
|
|
33
33
|
...config.installation
|
|
34
34
|
});
|
|
35
|
-
|
|
35
|
+
|
|
36
36
|
this.verificationService = AgentVerificationService.createDefault({
|
|
37
37
|
configManager: this.configManager,
|
|
38
38
|
logger: this.logger,
|
|
39
39
|
fileManager: this.fileManager,
|
|
40
40
|
...config.verification
|
|
41
41
|
});
|
|
42
|
-
|
|
42
|
+
|
|
43
43
|
this.setupService = AgentSetupService.createDefault({
|
|
44
44
|
logger: this.logger,
|
|
45
45
|
...config.setup
|
|
46
46
|
});
|
|
47
|
-
|
|
47
|
+
|
|
48
48
|
this.discoveryService = AgentCheckDiscoveryService.createDefault({
|
|
49
49
|
configManager: this.configManager,
|
|
50
50
|
logger: this.logger,
|
|
51
51
|
fileManager: this.fileManager,
|
|
52
52
|
...config.discovery
|
|
53
53
|
});
|
|
54
|
-
|
|
54
|
+
|
|
55
55
|
this.statisticsService = AgentCheckStatisticsService.createDefault({
|
|
56
56
|
configManager: this.configManager,
|
|
57
57
|
logger: this.logger,
|
|
58
58
|
fileManager: this.fileManager,
|
|
59
59
|
...config.statistics
|
|
60
60
|
});
|
|
61
|
-
|
|
61
|
+
|
|
62
62
|
// Service configuration
|
|
63
63
|
this.parallel = config.parallel !== false;
|
|
64
64
|
this.maxConcurrency = config.maxConcurrency || 2;
|
|
@@ -73,8 +73,8 @@ class AgentCheckService {
|
|
|
73
73
|
* @returns {Promise<Object>} - Check results
|
|
74
74
|
*/
|
|
75
75
|
async checkAgents(options = {}) {
|
|
76
|
-
const {
|
|
77
|
-
agentIds = null,
|
|
76
|
+
const {
|
|
77
|
+
agentIds = null,
|
|
78
78
|
forceReinstall = this.forceReinstall,
|
|
79
79
|
skipVerification = this.skipVerification,
|
|
80
80
|
timeout = this.timeout,
|
|
@@ -111,7 +111,7 @@ class AgentCheckService {
|
|
|
111
111
|
// Get agents to check
|
|
112
112
|
const agents = await this.getAgentsToCheck(agentIds);
|
|
113
113
|
results.totalAgents = agents.length;
|
|
114
|
-
|
|
114
|
+
|
|
115
115
|
if (agents.length === 0) {
|
|
116
116
|
return {
|
|
117
117
|
...results,
|
|
@@ -195,16 +195,16 @@ class AgentCheckService {
|
|
|
195
195
|
|
|
196
196
|
// Calculate overall summary
|
|
197
197
|
this.calculateOverallSummary(results);
|
|
198
|
-
|
|
198
|
+
|
|
199
199
|
results.duration = Date.now() - startTime;
|
|
200
|
-
|
|
200
|
+
|
|
201
201
|
// Log overall check completion
|
|
202
202
|
await this.logCheckCompletion(results);
|
|
203
|
-
|
|
203
|
+
|
|
204
204
|
} catch (error) {
|
|
205
205
|
results.duration = Date.now() - startTime;
|
|
206
206
|
results.error = error.message;
|
|
207
|
-
|
|
207
|
+
|
|
208
208
|
if (this.logger) {
|
|
209
209
|
await this.logger.error('Agent check operation failed', {
|
|
210
210
|
agentIds,
|
|
@@ -212,7 +212,7 @@ class AgentCheckService {
|
|
|
212
212
|
duration: results.duration
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
|
-
|
|
215
|
+
|
|
216
216
|
await this.logCheckError(error, results.duration);
|
|
217
217
|
}
|
|
218
218
|
|
|
@@ -274,7 +274,7 @@ class AgentCheckService {
|
|
|
274
274
|
allSuccessful = false;
|
|
275
275
|
hasFailures = true;
|
|
276
276
|
}
|
|
277
|
-
|
|
277
|
+
|
|
278
278
|
if (verifyResult.skipped) {
|
|
279
279
|
hasSkipped = true;
|
|
280
280
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Agent Check Statistics Service
|
|
3
|
-
*
|
|
3
|
+
*
|
|
4
4
|
* Handles statistics and status tracking for agent checks.
|
|
5
5
|
* Constitutional requirement: <555 lines, test-first approach.
|
|
6
6
|
*/
|
|
@@ -28,7 +28,7 @@ class AgentCheckStatisticsService {
|
|
|
28
28
|
async getCheckStatistics() {
|
|
29
29
|
try {
|
|
30
30
|
const agents = this.configManager.getEnabledAgents();
|
|
31
|
-
|
|
31
|
+
|
|
32
32
|
const stats = {
|
|
33
33
|
totalAgents: agents.length,
|
|
34
34
|
verified: 0,
|
|
@@ -40,10 +40,10 @@ class AgentCheckStatisticsService {
|
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
let latestCheck = null;
|
|
43
|
-
|
|
43
|
+
|
|
44
44
|
for (const agent of agents) {
|
|
45
45
|
const status = await this.configManager.getAgentStatus(agent.id);
|
|
46
|
-
|
|
46
|
+
|
|
47
47
|
if (status) {
|
|
48
48
|
switch (status.status) {
|
|
49
49
|
case AgentStatus.VERIFIED:
|
|
@@ -60,7 +60,7 @@ class AgentCheckStatisticsService {
|
|
|
60
60
|
stats.installing++;
|
|
61
61
|
break;
|
|
62
62
|
}
|
|
63
|
-
|
|
63
|
+
|
|
64
64
|
// Track latest check
|
|
65
65
|
if (status.lastChecked) {
|
|
66
66
|
const checkDate = new Date(status.lastChecked);
|
|
@@ -72,13 +72,13 @@ class AgentCheckStatisticsService {
|
|
|
72
72
|
stats.notVerified++;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
|
|
76
76
|
stats.lastCheck = latestCheck ? latestCheck.toISOString() : null;
|
|
77
|
-
|
|
77
|
+
|
|
78
78
|
// Calculate check rate (agents that have been checked at least once)
|
|
79
79
|
const checkedAgents = stats.verified + stats.notVerified + stats.error;
|
|
80
80
|
stats.checkRate = agents.length > 0 ? (checkedAgents / agents.length) * 100 : 0;
|
|
81
|
-
|
|
81
|
+
|
|
82
82
|
return stats;
|
|
83
83
|
} catch (error) {
|
|
84
84
|
if (this.logger) {
|
|
@@ -86,7 +86,7 @@ class AgentCheckStatisticsService {
|
|
|
86
86
|
error: error.message
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
|
-
|
|
89
|
+
|
|
90
90
|
return {
|
|
91
91
|
totalAgents: 0,
|
|
92
92
|
verified: 0,
|
|
@@ -118,7 +118,7 @@ class AgentCheckStatisticsService {
|
|
|
118
118
|
|
|
119
119
|
const status = await this.configManager.getAgentStatus(agentId);
|
|
120
120
|
const history = await this.getStatusHistory(agentId, 10);
|
|
121
|
-
|
|
121
|
+
|
|
122
122
|
return {
|
|
123
123
|
agentId,
|
|
124
124
|
found: true,
|
|
@@ -146,7 +146,7 @@ class AgentCheckStatisticsService {
|
|
|
146
146
|
error: error.message
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
|
-
|
|
149
|
+
|
|
150
150
|
return {
|
|
151
151
|
agentId,
|
|
152
152
|
found: false,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Agent Installation Service
|
|
3
|
-
*
|
|
3
|
+
*
|
|
4
4
|
* Simplified service that delegates to InstallationOrchestrator.
|
|
5
5
|
* Follows constitutional requirements: <555 lines, test-first approach.
|
|
6
6
|
*/
|
|
@@ -26,7 +26,7 @@ class AgentInstallationService {
|
|
|
26
26
|
this.timeout = config.timeout || 300000;
|
|
27
27
|
this.retryAttempts = config.retryAttempts || 3;
|
|
28
28
|
this.retryDelay = config.retryDelay || 5000;
|
|
29
|
-
|
|
29
|
+
|
|
30
30
|
// Initialize orchestrator
|
|
31
31
|
this.orchestrator = new InstallationOrchestrator({
|
|
32
32
|
configManager: this.configManager,
|
|
@@ -71,19 +71,19 @@ class AgentInstallationService {
|
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
const startTime = Date.now();
|
|
74
|
-
|
|
74
|
+
|
|
75
75
|
if (this.parallel) {
|
|
76
76
|
// Parallel installation
|
|
77
|
-
const promises = agents.map(agent =>
|
|
77
|
+
const promises = agents.map(agent =>
|
|
78
78
|
this.installAgent(agent, options).catch(error => ({
|
|
79
79
|
success: false,
|
|
80
80
|
agentId: agent.id,
|
|
81
81
|
error: error.message || error
|
|
82
82
|
}))
|
|
83
83
|
);
|
|
84
|
-
|
|
84
|
+
|
|
85
85
|
const agentResults = await Promise.all(promises);
|
|
86
|
-
|
|
86
|
+
|
|
87
87
|
for (const result of agentResults) {
|
|
88
88
|
if (result.success) {
|
|
89
89
|
results.completed.push(result);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Agent Setup Service
|
|
3
|
-
*
|
|
3
|
+
*
|
|
4
4
|
* Handles interactive setup for agents including authentication and initialization.
|
|
5
5
|
* Follows constitutional requirements: <555 lines, test-first approach.
|
|
6
6
|
*/
|
|
@@ -32,7 +32,7 @@ class AgentSetupService {
|
|
|
32
32
|
async performSetupBatch(agents, options = {}) {
|
|
33
33
|
const batchId = `batch-setup-${Date.now()}`;
|
|
34
34
|
const startTime = Date.now();
|
|
35
|
-
|
|
35
|
+
|
|
36
36
|
try {
|
|
37
37
|
if (this.logger) {
|
|
38
38
|
await this.logger.info('Starting batch agent setup', {
|
|
@@ -95,7 +95,7 @@ class AgentSetupService {
|
|
|
95
95
|
async performSetup(agent, options = {}) {
|
|
96
96
|
const setupId = `setup-${agent.id}-${Date.now()}`;
|
|
97
97
|
const startTime = Date.now();
|
|
98
|
-
|
|
98
|
+
|
|
99
99
|
try {
|
|
100
100
|
if (this.logger) {
|
|
101
101
|
await this.logger.info('Starting agent setup', {
|
|
@@ -119,13 +119,13 @@ class AgentSetupService {
|
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
const setupConfig = agent.installation.setup;
|
|
122
|
-
|
|
122
|
+
|
|
123
123
|
// Run setup commands
|
|
124
124
|
const results = [];
|
|
125
125
|
for (const command of setupConfig.commands || []) {
|
|
126
126
|
const result = await this.executeSetupCommand(agent.id, command, options);
|
|
127
127
|
results.push(result);
|
|
128
|
-
|
|
128
|
+
|
|
129
129
|
if (!result.success && setupConfig.type === 'interactive') {
|
|
130
130
|
// For interactive setup, stop on first failure
|
|
131
131
|
break;
|
|
@@ -138,7 +138,7 @@ class AgentSetupService {
|
|
|
138
138
|
verificationResult = await this.performVerification(agent, setupConfig.verification, options);
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
const allSuccessful = results.every(r => r.success) &&
|
|
141
|
+
const allSuccessful = results.every(r => r.success) &&
|
|
142
142
|
(!verificationResult || verificationResult.success);
|
|
143
143
|
|
|
144
144
|
return {
|
|
@@ -181,7 +181,7 @@ class AgentSetupService {
|
|
|
181
181
|
async executeSetupCommand(agentId, command, options = {}) {
|
|
182
182
|
const commandId = `cmd-${agentId}-${Date.now()}`;
|
|
183
183
|
const startTime = Date.now();
|
|
184
|
-
|
|
184
|
+
|
|
185
185
|
try {
|
|
186
186
|
if (this.logger) {
|
|
187
187
|
await this.logger.info('Executing setup command', {
|
|
@@ -240,7 +240,7 @@ class AgentSetupService {
|
|
|
240
240
|
async performVerification(agent, verificationConfig, options = {}) {
|
|
241
241
|
const verificationId = `verify-${agent.id}-${Date.now()}`;
|
|
242
242
|
const startTime = Date.now();
|
|
243
|
-
|
|
243
|
+
|
|
244
244
|
try {
|
|
245
245
|
if (this.logger) {
|
|
246
246
|
await this.logger.info('Performing setup verification', {
|
|
@@ -286,7 +286,7 @@ class AgentSetupService {
|
|
|
286
286
|
*/
|
|
287
287
|
async performCommunicationVerification(agent, verificationConfig, options = {}) {
|
|
288
288
|
const { command, expectedOutput, timeout = 60000 } = verificationConfig;
|
|
289
|
-
|
|
289
|
+
|
|
290
290
|
try {
|
|
291
291
|
const result = await this.executeCommand(command, {
|
|
292
292
|
timeout: options.timeout || timeout,
|
|
@@ -332,7 +332,7 @@ class AgentSetupService {
|
|
|
332
332
|
*/
|
|
333
333
|
async performStandardVerification(agent, verificationConfig, options = {}) {
|
|
334
334
|
const { command, expectedOutput, timeout = 30000 } = verificationConfig;
|
|
335
|
-
|
|
335
|
+
|
|
336
336
|
try {
|
|
337
337
|
const result = await this.executeCommand(command, {
|
|
338
338
|
timeout: options.timeout || timeout,
|
|
@@ -375,11 +375,11 @@ class AgentSetupService {
|
|
|
375
375
|
*/
|
|
376
376
|
async executeCommand(command, options = {}) {
|
|
377
377
|
const { timeout = 30000, interactive = false } = options;
|
|
378
|
-
|
|
378
|
+
|
|
379
379
|
return new Promise((resolve, reject) => {
|
|
380
380
|
const args = command.split(' ');
|
|
381
381
|
const cmd = args.shift();
|
|
382
|
-
|
|
382
|
+
|
|
383
383
|
const child = spawn(cmd, args, {
|
|
384
384
|
stdio: interactive ? 'inherit' : 'pipe',
|
|
385
385
|
shell: true
|
|
@@ -405,7 +405,7 @@ class AgentSetupService {
|
|
|
405
405
|
|
|
406
406
|
child.on('close', (code) => {
|
|
407
407
|
clearTimeout(timer);
|
|
408
|
-
|
|
408
|
+
|
|
409
409
|
if (code === 0) {
|
|
410
410
|
resolve({
|
|
411
411
|
exitCode: code,
|
|
@@ -432,7 +432,7 @@ class AgentSetupService {
|
|
|
432
432
|
*/
|
|
433
433
|
checkExpectedOutput(output, expectedOutput) {
|
|
434
434
|
const patterns = Array.isArray(expectedOutput) ? expectedOutput : [expectedOutput];
|
|
435
|
-
|
|
435
|
+
|
|
436
436
|
return patterns.some(pattern => {
|
|
437
437
|
const regex = new RegExp(pattern, 'i');
|
|
438
438
|
return regex.test(output);
|
|
@@ -447,7 +447,7 @@ class AgentSetupService {
|
|
|
447
447
|
*/
|
|
448
448
|
extractMatchingPatterns(output, expectedOutput) {
|
|
449
449
|
const patterns = Array.isArray(expectedOutput) ? expectedOutput : [expectedOutput];
|
|
450
|
-
|
|
450
|
+
|
|
451
451
|
return patterns.filter(pattern => {
|
|
452
452
|
const regex = new RegExp(pattern, 'i');
|
|
453
453
|
return regex.test(output);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Agent Status Enumeration
|
|
3
|
-
*
|
|
3
|
+
*
|
|
4
4
|
* Defines possible states for agent installation and verification.
|
|
5
5
|
* Follows constitutional requirements: <555 lines, test-first approach.
|
|
6
6
|
*/
|
|
@@ -12,25 +12,25 @@
|
|
|
12
12
|
const AgentStatus = {
|
|
13
13
|
// Agent not detected on system
|
|
14
14
|
NOT_INSTALLED: 'NOT_INSTALLED',
|
|
15
|
-
|
|
15
|
+
|
|
16
16
|
// Installation in progress
|
|
17
17
|
INSTALLING: 'INSTALLING',
|
|
18
|
-
|
|
18
|
+
|
|
19
19
|
// Agent detected but not verified
|
|
20
20
|
INSTALLED: 'INSTALLED',
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
// Verification test in progress
|
|
23
23
|
VERIFYING: 'VERIFYING',
|
|
24
|
-
|
|
24
|
+
|
|
25
25
|
// Agent installed and verified as functional
|
|
26
26
|
VERIFIED: 'VERIFIED',
|
|
27
|
-
|
|
27
|
+
|
|
28
28
|
// Installation or verification failed
|
|
29
29
|
ERROR: 'ERROR',
|
|
30
|
-
|
|
30
|
+
|
|
31
31
|
// Agent functional but rate limited
|
|
32
32
|
RATE_LIMITED: 'RATE_LIMITED',
|
|
33
|
-
|
|
33
|
+
|
|
34
34
|
// Agent disabled by user (not checked)
|
|
35
35
|
DISABLED: 'DISABLED'
|
|
36
36
|
};
|