vibecodingmachine-core 2026.3.14-1537 → 2026.6.17-1956

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.
Files changed (414) hide show
  1. package/package.json +7 -2
  2. package/src/agents/Agent.js +1 -1
  3. package/src/agents/AgentAdditionService.js +1 -1
  4. package/src/agents/AgentCheckDiscoveryService.js +2 -2
  5. package/src/agents/AgentCheckService.js +16 -16
  6. package/src/agents/AgentCheckStatisticsService.js +11 -11
  7. package/src/agents/AgentInstallationService.js +6 -6
  8. package/src/agents/AgentSetupService.js +15 -15
  9. package/src/agents/AgentStatus.js +8 -8
  10. package/src/agents/AgentVerificationService.js +39 -39
  11. package/src/agents/ConfigurationSchemaValidator.js +8 -8
  12. package/src/agents/EnvironmentConfigurationManager.js +28 -28
  13. package/src/agents/InstallationErrorHandler.js +11 -11
  14. package/src/agents/InstallationLog.js +18 -18
  15. package/src/agents/InstallationMethod.js +1 -1
  16. package/src/agents/InstallationOrchestrator.js +37 -37
  17. package/src/agents/InstallationProgressReporter.js +13 -13
  18. package/src/agents/InstallationRetryManager.js +20 -20
  19. package/src/agents/InstallationType.js +14 -14
  20. package/src/agents/OperationTypes.js +12 -12
  21. package/src/agents/PerformanceMetricsCollector.js +59 -59
  22. package/src/agents/SecurityValidationService.js +17 -17
  23. package/src/agents/SimpleAgentCheckService.js +79 -74
  24. package/src/agents/VerificationTest.js +26 -26
  25. package/src/agents/VerificationType.js +5 -5
  26. package/src/agents/WindowsPermissionHandler.js +30 -30
  27. package/src/agents/config/AgentDefaultsRegistry.js +3 -3
  28. package/src/agents/config-managers/ConfigUtils.js +5 -5
  29. package/src/agents/config-managers/DefaultConfig.js +1 -1
  30. package/src/agents/config-managers/EnvVarLoader.js +7 -7
  31. package/src/agents/config-managers/FileConfigLoader.js +22 -22
  32. package/src/agents/config-managers/TypeConverters.js +1 -1
  33. package/src/agents/config-managers/VariableMappings.js +7 -7
  34. package/src/agents/discovery/AgentDiscoveryService-refactored.js +8 -8
  35. package/src/agents/discovery/AgentDiscoveryService.js +14 -14
  36. package/src/agents/discovery/agent-validator.js +4 -4
  37. package/src/agents/discovery/discovery-results.js +1 -1
  38. package/src/agents/discovery/discovery-scanner.js +29 -29
  39. package/src/agents/discovery/discovery-utils.js +6 -6
  40. package/src/agents/discovery/executable-analyzer.js +27 -27
  41. package/src/agents/discovery/history-manager.js +2 -2
  42. package/src/agents/logging/AgentLogger.js +20 -20
  43. package/src/agents/status/AgentStatusManager.js +30 -30
  44. package/src/agents/storage/FileManager.js +15 -15
  45. package/src/agents/validation.js +4 -4
  46. package/src/agents/verification/AgentCommunicationTester.js +46 -46
  47. package/src/agents/verification/BaseVerifier.js +31 -31
  48. package/src/agents/verification/CommandVerifier.js +34 -34
  49. package/src/agents/verification/FileOperationVerifier.js +14 -14
  50. package/src/agents/verification/ResultAnalyzer-refactored.js +7 -7
  51. package/src/agents/verification/ResultAnalyzer.js +29 -29
  52. package/src/agents/verification/TestRequirementManager.js +49 -49
  53. package/src/agents/verification/VerificationRunner.js +18 -18
  54. package/src/agents/verification/analysis-utils.js +27 -27
  55. package/src/agents/verification/batch-analyzer.js +55 -55
  56. package/src/agents/verification/pattern-recognizer.js +49 -49
  57. package/src/agents/verification/report-generator.js +9 -9
  58. package/src/agents/verification/test-analyzer.js +29 -29
  59. package/src/agents/windows/BaseWindowsInstaller.js +22 -22
  60. package/src/agents/windows/ChocolateyInstaller.js +31 -31
  61. package/src/agents/windows/DirectInstaller.js +23 -23
  62. package/src/agents/windows/InstallerFactory.js +16 -16
  63. package/src/agents/windows/NpmInstaller.js +39 -39
  64. package/src/agents/windows/PowerShellInstaller.js +27 -27
  65. package/src/agents/windows/VSCodeExtensionInstaller.js +10 -10
  66. package/src/agents/windows/WinGetInstaller.js +23 -23
  67. package/src/analysis/analysis-engine.js +35 -35
  68. package/src/analysis/analysis-reporter.js +7 -7
  69. package/src/analysis/ast-analyzer.js +28 -28
  70. package/src/analysis/boundary-detector-refactored.js +35 -35
  71. package/src/analysis/boundary-detector.js +35 -35
  72. package/src/analysis/boundary-scanner.js +52 -52
  73. package/src/analysis/boundary-types.js +3 -3
  74. package/src/analysis/boundary-utils.js +33 -33
  75. package/src/analysis/categorizer.js +20 -20
  76. package/src/analysis/codebase-scanner.js +22 -22
  77. package/src/analysis/detection-methods.js +25 -25
  78. package/src/analysis/line-counter.js +14 -14
  79. package/src/analysis/report/analysis-report.js +9 -9
  80. package/src/analysis/report/package-analyzer.js +33 -33
  81. package/src/analysis/report/recommendation-generator.js +29 -29
  82. package/src/analysis/report/statistics-generator.js +53 -53
  83. package/src/analysis/reports/analysis-report-model.js +4 -4
  84. package/src/analysis/reports/recommendation-generator.js +25 -25
  85. package/src/analysis/reports/report-generators.js +9 -9
  86. package/src/analysis/reports/statistics-calculator.js +23 -23
  87. package/src/analysis/reports/trend-analyzer.js +19 -19
  88. package/src/analysis/strategy-generator.js +5 -5
  89. package/src/auth/shared-auth-storage.js +15 -7
  90. package/src/auto-mode/AutoModeBusinessLogic.js +9 -15
  91. package/src/auto-mode/auto-mode-streaks.js +104 -0
  92. package/src/auto-mode/direct-run-recovery.js +99 -0
  93. package/src/auto-mode/rate-limit-budget.js +169 -0
  94. package/src/auto-mode/rate-limit-handler.js +218 -0
  95. package/src/auto-mode/rate-limit-store.js +174 -0
  96. package/src/auto-mode/stage-change-log.js +60 -0
  97. package/src/auto-mode/stage-stall-tracker.js +123 -0
  98. package/src/auto-mode-error-detector/error-detector.js +135 -0
  99. package/src/autonomous-mode/feature-implementer.js +20 -24
  100. package/src/beta-request.js +1 -1
  101. package/src/chat-management/chat-manager.js +3 -3
  102. package/src/commands/base.js +8 -8
  103. package/src/commands/disable-requirement.js +2 -2
  104. package/src/commands/disable-spec.js +2 -2
  105. package/src/commands/enable-requirement.js +2 -2
  106. package/src/commands/enable-spec.js +2 -2
  107. package/src/commands/help.js +5 -5
  108. package/src/commands/registry.js +12 -12
  109. package/src/commands/requirements.js +2 -2
  110. package/src/commands/resolver.js +7 -7
  111. package/src/commands/settings.js +79 -4
  112. package/src/compliance/compliance-manager.js +10 -10
  113. package/src/compliance/compliance-prompt.js +6 -6
  114. package/src/config/refactoring-config.js +6 -6
  115. package/src/database/migrations.js +1 -1
  116. package/src/database/user-database-client.js +1 -1
  117. package/src/database/user-schema.js +2 -2
  118. package/src/feedback/feedback-config-manager.js +95 -0
  119. package/src/feedback/feedback-manager.js +501 -0
  120. package/src/feedback/ui-preferences-manager.js +87 -0
  121. package/src/git/commit-manager.js +475 -0
  122. package/src/health-tracking/health-reporter.js +14 -14
  123. package/src/health-tracking/ide-health-tracker.js +17 -3
  124. package/src/health-tracking/json-storage.js +4 -4
  125. package/src/ide-integration/agent-test-runner.js +275 -0
  126. package/src/ide-integration/aider/commands/configuration-manager.js +39 -0
  127. package/src/ide-integration/aider/commands/installation-manager.js +111 -0
  128. package/src/ide-integration/aider/processes/process-manager.js +37 -0
  129. package/src/ide-integration/aider/utils/ollama-manager.js +154 -0
  130. package/src/ide-integration/aider-cli-manager.cjs +16 -241
  131. package/src/ide-integration/applescript-antigravity-quota.cjs +515 -0
  132. package/src/ide-integration/applescript-cursor-quota.cjs +351 -0
  133. package/src/ide-integration/applescript-ide-opener.cjs +489 -0
  134. package/src/ide-integration/applescript-kiro-quota.cjs +549 -0
  135. package/src/ide-integration/applescript-manager-core.js +30 -12
  136. package/src/ide-integration/applescript-manager.cjs +45 -3201
  137. package/src/ide-integration/applescript-manager.js +34 -16
  138. package/src/ide-integration/applescript-response-reader.cjs +658 -0
  139. package/src/ide-integration/applescript-send-text.cjs +307 -0
  140. package/src/ide-integration/applescript-status-continuation.cjs +581 -0
  141. package/src/ide-integration/applescript-utils.js +203 -192
  142. package/src/ide-integration/cdp-handlers/connection-handler.js +2 -2
  143. package/src/ide-integration/cdp-handlers/continuation-handler.js +7 -7
  144. package/src/ide-integration/cdp-handlers/text-sender.js +1 -1
  145. package/src/ide-integration/cdp-manager.js +2 -2
  146. package/src/ide-integration/cli-direct-runner.js +483 -0
  147. package/src/ide-integration/cli-session-manager.js +180 -0
  148. package/src/ide-integration/cline-cli-manager.js +24 -24
  149. package/src/ide-integration/continuation-handler.js +18 -18
  150. package/src/ide-integration/continue-cli-manager.js +14 -14
  151. package/src/ide-integration/ide-openers/claude-opener.js +23 -7
  152. package/src/ide-integration/ide-openers/other-ides-opener.js +17 -63
  153. package/src/ide-integration/ide-status-checker.js +20 -20
  154. package/src/ide-integration/macos-ide-manager.js +55 -4
  155. package/src/ide-integration/macos-quota-checker.js +1 -1
  156. package/src/ide-integration/macos-text-sender.js +204 -68
  157. package/src/ide-integration/quota-detector.cjs +11 -11
  158. package/src/ide-integration/quota-detector.js +11 -11
  159. package/src/ide-integration/response-reader.js +10 -10
  160. package/src/ide-integration/windows/cursor-automation.js +304 -0
  161. package/src/ide-integration/windows/ide-automation.js +735 -0
  162. package/src/ide-integration/windows/window-operations.js +183 -0
  163. package/src/ide-integration/windows-automation-manager.js +92 -865
  164. package/src/ide-integration/windows-ide-manager.js +13 -13
  165. package/src/index.cjs +87 -6
  166. package/src/index.js +56 -41
  167. package/src/installation/config-manager.js +247 -0
  168. package/src/installation/config-paths.js +64 -0
  169. package/src/installation/fs-validators.js +166 -0
  170. package/src/installation/index.js +30 -0
  171. package/src/installation/path-resolver.js +73 -0
  172. package/src/installation/types.js +57 -0
  173. package/src/installation/version-detector.js +233 -0
  174. package/src/items/item-conversation.js +101 -0
  175. package/src/items/items-migrator.js +358 -0
  176. package/src/items/items-slug.js +55 -0
  177. package/src/items/items-store-io.js +257 -0
  178. package/src/items/items-store.js +541 -0
  179. package/src/localization/index.js +3 -3
  180. package/src/localization/translations/en-part1.js +1 -1
  181. package/src/localization/translations/en-part2.js +1 -1
  182. package/src/localization/translations/es-part1.js +1 -1
  183. package/src/localization/translations/es-part2.js +1 -1
  184. package/src/models/compliance-report.js +44 -44
  185. package/src/models/file-analysis.js +33 -33
  186. package/src/models/plan-manager.js +44 -44
  187. package/src/models/refactoring-models.js +4 -4
  188. package/src/models/refactoring-plan-refactored.js +2 -2
  189. package/src/models/refactoring-plan.js +5 -5
  190. package/src/monitoring/alert-system.js +84 -84
  191. package/src/monitoring/compliance-progress-tracker.js +19 -19
  192. package/src/monitoring/continuous-scan-notifications.js +54 -54
  193. package/src/monitoring/continuous-scanner.js +24 -24
  194. package/src/monitoring/file-monitor/file-analyzer.js +23 -23
  195. package/src/monitoring/file-monitor/file-monitor.js +20 -20
  196. package/src/monitoring/file-monitor/watcher.js +18 -18
  197. package/src/monitoring/file-monitor.js +1 -1
  198. package/src/monitoring/notification-handlers/base-handler.js +3 -3
  199. package/src/monitoring/notification-handlers/error-handler.js +1 -1
  200. package/src/monitoring/notification-handlers/index.js +1 -1
  201. package/src/monitoring/notification-handlers/new-violation-handler.js +5 -5
  202. package/src/monitoring/notification-handlers/progress-handler.js +2 -2
  203. package/src/monitoring/notification-handlers/resolved-violation-handler.js +4 -4
  204. package/src/monitoring/notification-handlers/threshold-handler.js +1 -1
  205. package/src/monitoring/notification-manager.js +36 -36
  206. package/src/monitoring/scanner-core.js +43 -43
  207. package/src/monitoring/scanner-events.js +26 -26
  208. package/src/monitoring/violation-notification-system.js +10 -10
  209. package/src/progress/metrics-aggregator.js +194 -0
  210. package/src/progress/metrics-store.js +263 -0
  211. package/src/provider-registry.js +5 -5
  212. package/src/quota-management/index.js +2 -2
  213. package/src/refactoring/boundaries/cohesion-analyzer.js +21 -21
  214. package/src/refactoring/boundaries/extraction-result.js +1 -1
  215. package/src/refactoring/boundaries/extraction-strategies.js +27 -27
  216. package/src/refactoring/boundaries/module-boundary.js +8 -8
  217. package/src/refactoring/boundary/boundary-detector-refactored.js +1 -1
  218. package/src/refactoring/boundary/boundary-detector.js +26 -26
  219. package/src/refactoring/boundary/boundary-types.js +21 -21
  220. package/src/refactoring/boundary/detectors/boundary-analyzers.js +34 -34
  221. package/src/refactoring/boundary/detectors/boundary-core.js +14 -14
  222. package/src/refactoring/boundary/detectors/class-detector.js +28 -28
  223. package/src/refactoring/boundary/detectors/config-detector.js +28 -28
  224. package/src/refactoring/boundary/detectors/constant-detector.js +28 -28
  225. package/src/refactoring/boundary/detectors/function-detector.js +28 -28
  226. package/src/refactoring/boundary/detectors/module-detector.js +29 -29
  227. package/src/refactoring/boundary/detectors/object-detector.js +28 -28
  228. package/src/refactoring/boundary/detectors/type-detectors.js +34 -34
  229. package/src/refactoring/boundary/detectors/utility-detector.js +28 -28
  230. package/src/refactoring/boundary/extraction-strategies.js +61 -61
  231. package/src/refactoring/boundary-extraction-result.js +3 -3
  232. package/src/refactoring/boundary-extraction-strategies.js +28 -28
  233. package/src/refactoring/boundary-extractor.js +13 -13
  234. package/src/refactoring/boundary-types.js +1 -1
  235. package/src/refactoring/circular/circular-dependency.js +4 -4
  236. package/src/refactoring/circular/cycle-detection.js +10 -10
  237. package/src/refactoring/circular/dependency-node.js +1 -1
  238. package/src/refactoring/circular/dependency-result.js +1 -1
  239. package/src/refactoring/circular/dependency-types.js +2 -2
  240. package/src/refactoring/circular/graph-builder.js +25 -25
  241. package/src/refactoring/circular/resolution-strategy.js +1 -1
  242. package/src/refactoring/circular/strategy-generator.js +28 -28
  243. package/src/refactoring/circular-dependency-resolver-original.js +70 -70
  244. package/src/refactoring/circular-dependency-resolver.js +19 -19
  245. package/src/refactoring/code-mover-refactored.js +31 -31
  246. package/src/refactoring/code-mover.js +53 -53
  247. package/src/refactoring/execution-status.js +1 -1
  248. package/src/refactoring/execution-strategies.js +28 -28
  249. package/src/refactoring/file-splitter-core.js +58 -58
  250. package/src/refactoring/file-splitter-types.js +1 -1
  251. package/src/refactoring/file-splitter.js +1 -1
  252. package/src/refactoring/functionality-validator.js +90 -90
  253. package/src/refactoring/import-manager-refactored.js +42 -42
  254. package/src/refactoring/import-manager.js +57 -57
  255. package/src/refactoring/import-models.js +1 -1
  256. package/src/refactoring/import-parser.js +41 -41
  257. package/src/refactoring/module-boundary.js +3 -3
  258. package/src/refactoring/move-executor.js +45 -45
  259. package/src/refactoring/move-utils.js +27 -27
  260. package/src/refactoring/operation-executor.js +7 -7
  261. package/src/refactoring/plan-creator.js +3 -3
  262. package/src/refactoring/plan-executor.js +21 -21
  263. package/src/refactoring/plan-validator.js +10 -10
  264. package/src/refactoring/refactoring-executor-result.js +1 -1
  265. package/src/refactoring/refactoring-executor.js +5 -5
  266. package/src/refactoring/refactoring-operation.js +3 -3
  267. package/src/refactoring/refactoring-plan.js +2 -2
  268. package/src/refactoring/refactoring-rollback.js +1 -1
  269. package/src/refactoring/rollback-handlers/RollbackExecutor.js +12 -12
  270. package/src/refactoring/rollback-handlers/RollbackManager.js +34 -34
  271. package/src/refactoring/rollback-handlers/RollbackOperation.js +2 -2
  272. package/src/refactoring/rollback-handlers/RollbackResult.js +5 -5
  273. package/src/refactoring/rollback-handlers/RollbackStatistics.js +8 -8
  274. package/src/refactoring/test-validator.js +19 -19
  275. package/src/refactoring/validation/baseline-runner.js +10 -10
  276. package/src/refactoring/validation/report-generator.js +16 -16
  277. package/src/refactoring/validation/result-comparator.js +10 -10
  278. package/src/refactoring/validation/test-suite.js +2 -2
  279. package/src/refactoring/validation/test-validation-result.js +2 -2
  280. package/src/refactoring/validation/validation-runner.js +16 -16
  281. package/src/refactoring/validation/validation-status.js +1 -1
  282. package/src/repos/repos-store.js +220 -0
  283. package/src/requirement-management/default-requirement-manager.js +20 -20
  284. package/src/requirement-management/requirement-file-parser.js +3 -3
  285. package/src/requirement-management/requirement-sequencer.js +17 -17
  286. package/src/rui/base.js +6 -6
  287. package/src/rui/commands/AgentCommandParser.js +6 -6
  288. package/src/rui/commands/AgentCommands.js +26 -26
  289. package/src/rui/commands/AgentResponseFormatter.js +12 -12
  290. package/src/rui/commands/parsers/CommandMapper.js +5 -5
  291. package/src/rui/commands/parsers/CommandValidator.js +5 -5
  292. package/src/rui/commands/parsers/ComponentExtractor.js +4 -4
  293. package/src/rui/commands/parsers/TokenParser.js +6 -6
  294. package/src/rui/commands/parsers/tokenizer.js +9 -9
  295. package/src/rui/index.js +5 -5
  296. package/src/rui/registry.js +5 -5
  297. package/src/rui/resolver.js +3 -3
  298. package/src/screenshot/analysis-engine.js +249 -0
  299. package/src/screenshot/capture-engine.js +251 -0
  300. package/src/screenshot/verification-loop.js +191 -0
  301. package/src/scripts/verify-full-compliance.js +32 -32
  302. package/src/spec-management/queue-storage.js +320 -0
  303. package/src/spec-management/retry-manager.js +243 -0
  304. package/src/spec-management/spec-counter.js +301 -0
  305. package/src/spec-management/spec-fingerprint.js +148 -0
  306. package/src/spec-management/spec-logger.js +329 -0
  307. package/src/spec-management/spec-scanner.js +313 -0
  308. package/src/sync/aws-setup.js +41 -41
  309. package/src/sync/remote-control-server.js +50 -50
  310. package/src/sync/sync-engine-conflicts.js +10 -10
  311. package/src/sync/sync-engine-core.js +9 -9
  312. package/src/sync/sync-engine-file-ops.js +7 -7
  313. package/src/sync/sync-engine.js +12 -12
  314. package/src/task-generation/automated-task-generator.js +20 -20
  315. package/src/task-generation/prioritizer.js +39 -39
  316. package/src/task-generation/task-list-updater.js +29 -29
  317. package/src/task-generation/task-management-integration.js +92 -92
  318. package/src/task-generation/task-manager-integration.js +18 -18
  319. package/src/task-generation/violation-task-generator.js +54 -54
  320. package/src/task-management/continuous-scan-integration.js +25 -25
  321. package/src/ui/ChatInterface.js +1 -1
  322. package/src/ui/ChromeExtensionAdapter.js +309 -0
  323. package/src/ui/FeedbackComponent.js +334 -0
  324. package/src/utils/analyzer.js +18 -18
  325. package/src/utils/cleanup.js +28 -28
  326. package/src/utils/config-helpers.js +64 -4
  327. package/src/utils/constants.js +19 -0
  328. package/src/utils/current-requirement-operations.js +63 -11
  329. package/src/utils/dependency-mapper.js +8 -8
  330. package/src/utils/duplicate-detector.js +29 -29
  331. package/src/utils/error-reporter.js +6 -6
  332. package/src/utils/file-monitor.js +20 -20
  333. package/src/utils/git-branch-manager.js +157 -1
  334. package/src/utils/import-updater.js +10 -10
  335. package/src/utils/refactor-plan.js +22 -22
  336. package/src/utils/refactoring-tools.js +7 -7
  337. package/src/utils/repo-helpers.cjs +16 -11
  338. package/src/utils/repo-helpers.js +15 -8
  339. package/src/utils/report-generator.js +1 -1
  340. package/src/utils/report-generators/analysis-generator.js +4 -4
  341. package/src/utils/report-generators/base-generator.js +7 -7
  342. package/src/utils/report-generators/compliance-generator.js +2 -2
  343. package/src/utils/report-generators/format-handlers.js +16 -16
  344. package/src/utils/report-generators/refactoring-generator.js +1 -1
  345. package/src/utils/report-generators/validation-generator.js +3 -3
  346. package/src/utils/reports/report-analysis.js +13 -13
  347. package/src/utils/reports/report-types.js +1 -1
  348. package/src/utils/reports/summary-generators.js +4 -4
  349. package/src/utils/requirement-enable-disable.js +69 -44
  350. package/src/utils/requirement-file-management.js +10 -28
  351. package/src/utils/requirement-helpers/requirement-file-ops.js +22 -17
  352. package/src/utils/requirement-helpers/requirement-mover.js +13 -13
  353. package/src/utils/requirement-helpers/requirement-parser.js +6 -10
  354. package/src/utils/requirement-helpers/requirement-status.js +20 -18
  355. package/src/utils/requirement-helpers-new.js +8 -8
  356. package/src/utils/requirement-helpers-refactored.js +1 -1
  357. package/src/utils/requirement-helpers.js +1 -1
  358. package/src/utils/requirement-loader.js +238 -0
  359. package/src/utils/requirement-movement.js +46 -46
  360. package/src/utils/requirement-writer.js +466 -0
  361. package/src/utils/rollback/rollback-handlers.js +2 -2
  362. package/src/utils/rollback/rollback-operation.js +1 -1
  363. package/src/utils/rollback/rollback-recorder.js +4 -4
  364. package/src/utils/rollback/rollback-state-manager.js +5 -5
  365. package/src/utils/rollback/rollback-types.js +1 -1
  366. package/src/utils/rollback/rollback-utils.js +4 -4
  367. package/src/utils/rollback-manager-original.js +14 -14
  368. package/src/utils/rollback-manager.js +4 -4
  369. package/src/utils/smoke-test-cli.js +20 -20
  370. package/src/utils/smoke-test-gui.js +34 -34
  371. package/src/utils/smoke-test-orchestrator.js +24 -24
  372. package/src/utils/smoke-test-runner.js +5 -5
  373. package/src/utils/smoke-test-web.js +22 -22
  374. package/src/utils/spec-loader.js +308 -0
  375. package/src/utils/spec-writer.js +295 -0
  376. package/src/utils/specification-enable-disable.js +10 -10
  377. package/src/utils/task-parser.js +141 -0
  378. package/src/utils/test-comparator.js +2 -2
  379. package/src/utils/test-config.js +1 -1
  380. package/src/utils/test-executor.js +7 -7
  381. package/src/utils/test-parser.js +4 -4
  382. package/src/utils/test-runner-baseline.js +5 -5
  383. package/src/utils/test-runner-core.js +2 -2
  384. package/src/utils/test-runner-report.js +1 -1
  385. package/src/utils/test-runner-validation.js +9 -9
  386. package/src/utils/test-runner.js +1 -1
  387. package/src/utils/validation-framework.js +27 -27
  388. package/src/utils/verification-summary-validator.js +51 -0
  389. package/src/validation/comparison-analyzer.js +34 -34
  390. package/src/validation/compliance-analyzer.js +23 -23
  391. package/src/validation/compliance-report-generator.js +23 -23
  392. package/src/validation/compliance-reporter-new.js +18 -18
  393. package/src/validation/compliance-reporter-refactored.js +18 -18
  394. package/src/validation/compliance-reporter.js +45 -30
  395. package/src/validation/compliance-rules.js +12 -12
  396. package/src/validation/compliance-utils.js +20 -20
  397. package/src/validation/constitution-validator-new.js +16 -16
  398. package/src/validation/constitution-validator.js +1 -1
  399. package/src/validation/file-validators.js +13 -13
  400. package/src/validation/html-generator.js +27 -27
  401. package/src/validation/line-limit/file-analyzer.js +15 -15
  402. package/src/validation/line-limit/line-limit-validator.js +10 -10
  403. package/src/validation/line-limit/validation-result.js +6 -6
  404. package/src/validation/line-limit-core.js +29 -29
  405. package/src/validation/line-limit-reporter.js +20 -20
  406. package/src/validation/line-limit-result.js +3 -3
  407. package/src/validation/line-limit-validator.js +5 -5
  408. package/src/validation/metrics/category-calculator.js +9 -9
  409. package/src/validation/metrics/metrics-helpers.js +16 -16
  410. package/src/validation/metrics/overview-calculator.js +2 -2
  411. package/src/validation/metrics/overview-metrics.js +1 -1
  412. package/src/validation/metrics/quality-calculator.js +22 -22
  413. package/src/validation/metrics/size-calculator.js +3 -3
  414. 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.03.14-1537",
3
+ "version": "2026.06.17-1956",
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
- "chrome-remote-interface": "^0.33.0",
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
  },
@@ -197,7 +197,7 @@ class Agent {
197
197
  */
198
198
  static fromJSON(data) {
199
199
  let installationMethods = [];
200
-
200
+
201
201
  // Handle different installation data formats
202
202
  if (data.installationMethods) {
203
203
  // Direct array of InstallationMethod objects
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Agent Addition Service
3
- *
3
+ *
4
4
  * Handles adding new agents to the system.
5
5
  * Follows constitutional requirements: <555 lines, test-first approach.
6
6
  */
@@ -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
  };