vibecodingmachine-core 1.0.2 → 2025.11.2-7.1302

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 (49) hide show
  1. package/.babelrc +13 -13
  2. package/README.md +28 -28
  3. package/__tests__/applescript-manager-claude-fix.test.js +286 -286
  4. package/__tests__/requirement-2-auto-start-looping.test.js +69 -69
  5. package/__tests__/requirement-3-auto-start-looping.test.js +69 -69
  6. package/__tests__/requirement-4-auto-start-looping.test.js +69 -69
  7. package/__tests__/requirement-6-auto-start-looping.test.js +73 -73
  8. package/__tests__/requirement-7-status-tracking.test.js +332 -332
  9. package/jest.config.js +18 -18
  10. package/jest.setup.js +12 -12
  11. package/package.json +48 -48
  12. package/src/auth/access-denied.html +119 -119
  13. package/src/auth/shared-auth-storage.js +230 -230
  14. package/src/autonomous-mode/feature-implementer.cjs +70 -70
  15. package/src/autonomous-mode/feature-implementer.js +425 -425
  16. package/src/chat-management/chat-manager.cjs +71 -71
  17. package/src/chat-management/chat-manager.js +342 -342
  18. package/src/ide-integration/__tests__/applescript-manager-thread-closure.test.js +227 -227
  19. package/src/ide-integration/aider-cli-manager.cjs +850 -850
  20. package/src/ide-integration/applescript-manager.cjs +1088 -1088
  21. package/src/ide-integration/applescript-manager.js +2802 -2802
  22. package/src/ide-integration/applescript-utils.js +306 -306
  23. package/src/ide-integration/cdp-manager.cjs +221 -221
  24. package/src/ide-integration/cdp-manager.js +321 -321
  25. package/src/ide-integration/claude-code-cli-manager.cjs +301 -301
  26. package/src/ide-integration/cline-cli-manager.cjs +2252 -2252
  27. package/src/ide-integration/continue-cli-manager.js +431 -431
  28. package/src/ide-integration/provider-manager.cjs +354 -354
  29. package/src/ide-integration/quota-detector.cjs +34 -34
  30. package/src/ide-integration/quota-detector.js +349 -349
  31. package/src/ide-integration/windows-automation-manager.js +262 -262
  32. package/src/index.cjs +47 -43
  33. package/src/index.js +17 -17
  34. package/src/llm/direct-llm-manager.cjs +609 -609
  35. package/src/ui/ButtonComponents.js +247 -247
  36. package/src/ui/ChatInterface.js +499 -499
  37. package/src/ui/StateManager.js +259 -259
  38. package/src/utils/audit-logger.cjs +116 -116
  39. package/src/utils/config-helpers.cjs +94 -94
  40. package/src/utils/config-helpers.js +94 -94
  41. package/src/utils/electron-update-checker.js +113 -85
  42. package/src/utils/gcloud-auth.cjs +394 -394
  43. package/src/utils/logger.cjs +193 -193
  44. package/src/utils/logger.js +191 -191
  45. package/src/utils/repo-helpers.cjs +120 -120
  46. package/src/utils/repo-helpers.js +120 -120
  47. package/src/utils/requirement-helpers.js +432 -432
  48. package/src/utils/update-checker.js +227 -167
  49. package/src/utils/version-checker.js +169 -0
package/jest.config.js CHANGED
@@ -1,18 +1,18 @@
1
- module.exports = {
2
- testEnvironment: 'node',
3
- testMatch: ['**/__tests__/**/*.test.js'],
4
- collectCoverageFrom: [
5
- 'src/**/*.js',
6
- '!src/**/*.test.js',
7
- '!src/**/__tests__/**'
8
- ],
9
- coverageDirectory: 'coverage',
10
- coverageReporters: ['text', 'lcov', 'html'],
11
- setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
12
- moduleNameMapper: {
13
- '^@/(.*)$': '<rootDir>/src/$1'
14
- },
15
- transform: {
16
- '^.+\\.js$': 'babel-jest'
17
- }
18
- };
1
+ module.exports = {
2
+ testEnvironment: 'node',
3
+ testMatch: ['**/__tests__/**/*.test.js'],
4
+ collectCoverageFrom: [
5
+ 'src/**/*.js',
6
+ '!src/**/*.test.js',
7
+ '!src/**/__tests__/**'
8
+ ],
9
+ coverageDirectory: 'coverage',
10
+ coverageReporters: ['text', 'lcov', 'html'],
11
+ setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
12
+ moduleNameMapper: {
13
+ '^@/(.*)$': '<rootDir>/src/$1'
14
+ },
15
+ transform: {
16
+ '^.+\\.js$': 'babel-jest'
17
+ }
18
+ };
package/jest.setup.js CHANGED
@@ -1,12 +1,12 @@
1
- // Jest setup file for core package
2
- // Global test setup and configuration
3
-
4
- // Mock console methods to reduce noise in tests
5
- global.console = {
6
- ...console,
7
- log: jest.fn(),
8
- debug: jest.fn(),
9
- info: jest.fn(),
10
- warn: jest.fn(),
11
- error: jest.fn()
12
- };
1
+ // Jest setup file for core package
2
+ // Global test setup and configuration
3
+
4
+ // Mock console methods to reduce noise in tests
5
+ global.console = {
6
+ ...console,
7
+ log: jest.fn(),
8
+ debug: jest.fn(),
9
+ info: jest.fn(),
10
+ warn: jest.fn(),
11
+ error: jest.fn()
12
+ };
package/package.json CHANGED
@@ -1,48 +1,48 @@
1
- {
2
- "name": "vibecodingmachine-core",
3
- "version": "1.0.2",
4
- "description": "Shared core logic for Vibe Coding Machine IDE integration",
5
- "main": "src/index.cjs",
6
- "module": "src/index.js",
7
- "scripts": {
8
- "build": "echo 'Core package - no build step needed'",
9
- "test": "jest",
10
- "test:watch": "jest --watch",
11
- "test:coverage": "jest --coverage",
12
- "dev": "echo 'Core package - development mode'"
13
- },
14
- "dependencies": {
15
- "@aws-sdk/client-bedrock-runtime": "^3.932.0",
16
- "chrome-remote-interface": "^0.33.0",
17
- "fs-extra": "^11.1.1",
18
- "jsonwebtoken": "^9.0.2",
19
- "jwks-rsa": "^3.2.0"
20
- },
21
- "optionalDependencies": {
22
- "node-pty": "^1.0.0"
23
- },
24
- "devDependencies": {
25
- "@babel/core": "^7.23.0",
26
- "@babel/preset-env": "^7.23.0",
27
- "babel-jest": "^29.7.0",
28
- "jest": "^29.7.0"
29
- },
30
- "keywords": [
31
- "ide-integration",
32
- "chat",
33
- "autonomous-mode",
34
- "cdp",
35
- "applescript"
36
- ],
37
- "author": "Vibe Coding Machine Team",
38
- "license": "MIT",
39
- "repository": {
40
- "type": "git",
41
- "url": "https://github.com/mediawink/vibecodingmachine.git",
42
- "directory": "packages/core"
43
- },
44
- "homepage": "http://vibecodingmachine-website.s3-website-us-east-1.amazonaws.com",
45
- "bugs": {
46
- "url": "https://github.com/mediawink/vibecodingmachine/issues"
47
- }
48
- }
1
+ {
2
+ "name": "vibecodingmachine-core",
3
+ "version": "2025.11.27.1302",
4
+ "description": "Shared core logic for Vibe Coding Machine IDE integration",
5
+ "main": "src/index.cjs",
6
+ "module": "src/index.js",
7
+ "scripts": {
8
+ "build": "echo 'Core package - no build step needed'",
9
+ "test": "jest",
10
+ "test:watch": "jest --watch",
11
+ "test:coverage": "jest --coverage",
12
+ "dev": "echo 'Core package - development mode'"
13
+ },
14
+ "dependencies": {
15
+ "@aws-sdk/client-bedrock-runtime": "^3.932.0",
16
+ "chrome-remote-interface": "^0.33.0",
17
+ "fs-extra": "^11.1.1",
18
+ "jsonwebtoken": "^9.0.2",
19
+ "jwks-rsa": "^3.2.0"
20
+ },
21
+ "optionalDependencies": {
22
+ "node-pty": "^1.0.0"
23
+ },
24
+ "devDependencies": {
25
+ "@babel/core": "^7.23.0",
26
+ "@babel/preset-env": "^7.23.0",
27
+ "babel-jest": "^29.7.0",
28
+ "jest": "^29.7.0"
29
+ },
30
+ "keywords": [
31
+ "ide-integration",
32
+ "chat",
33
+ "autonomous-mode",
34
+ "cdp",
35
+ "applescript"
36
+ ],
37
+ "author": "Vibe Coding Machine Team",
38
+ "license": "MIT",
39
+ "repository": {
40
+ "type": "git",
41
+ "url": "https://github.com/mediawink/vibecodingmachine.git",
42
+ "directory": "packages/core"
43
+ },
44
+ "homepage": "http://vibecodingmachine-website.s3-website-us-east-1.amazonaws.com",
45
+ "bugs": {
46
+ "url": "https://github.com/mediawink/vibecodingmachine/issues"
47
+ }
48
+ }
@@ -1,119 +1,119 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="UTF-8">
5
- <title>Access Denied</title>
6
- <style>
7
- body {
8
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
9
- text-align: center;
10
- padding: 0;
11
- margin: 0;
12
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
13
- min-height: 100vh;
14
- display: flex;
15
- align-items: center;
16
- justify-content: center;
17
- }
18
- .container {
19
- background: white;
20
- padding: 50px;
21
- border-radius: 20px;
22
- box-shadow: 0 20px 60px rgba(0,0,0,0.3);
23
- max-width: 500px;
24
- position: relative;
25
- overflow: hidden;
26
- }
27
- .jail-bars {
28
- position: absolute;
29
- top: 0;
30
- left: 0;
31
- right: 0;
32
- height: 100%;
33
- display: flex;
34
- justify-content: space-around;
35
- padding: 0 30px;
36
- pointer-events: none;
37
- z-index: 10;
38
- }
39
- .bar {
40
- width: 8px;
41
- background: linear-gradient(to bottom, #555, #333);
42
- border-radius: 4px;
43
- box-shadow: 2px 0 4px rgba(0,0,0,0.3);
44
- }
45
- .content {
46
- position: relative;
47
- z-index: 5;
48
- animation: slideContent 8s ease-in-out infinite;
49
- }
50
- .emoji {
51
- font-size: 100px;
52
- margin: 20px 0;
53
- animation: shake 0.5s infinite;
54
- }
55
- @keyframes shake {
56
- 0%, 100% { transform: translateX(0); }
57
- 25% { transform: translateX(-5px); }
58
- 75% { transform: translateX(5px); }
59
- }
60
- @keyframes slideContent {
61
- 0%, 100% { transform: translateX(0); }
62
- 25% { transform: translateX(15px); }
63
- 50% { transform: translateX(0); }
64
- 75% { transform: translateX(-15px); }
65
- }
66
- h1 {
67
- color: #ef4444;
68
- margin: 20px 0;
69
- font-size: 32px;
70
- }
71
- p {
72
- color: #666;
73
- font-size: 18px;
74
- margin: 15px 0;
75
- }
76
- .beta-text {
77
- background: #fef3c7;
78
- border: 2px solid #f59e0b;
79
- border-radius: 10px;
80
- padding: 20px;
81
- margin: 25px 0;
82
- }
83
- .beta-text strong {
84
- color: #d97706;
85
- font-size: 20px;
86
- }
87
- .beta-text p {
88
- margin: 10px 0;
89
- }
90
- .close-text {
91
- margin-top: 30px;
92
- color: #999;
93
- font-size: 14px;
94
- }
95
- </style>
96
- </head>
97
- <body>
98
- <div class="container">
99
- <div class="jail-bars">
100
- <div class="bar"></div>
101
- <div class="bar"></div>
102
- <div class="bar"></div>
103
- <div class="bar"></div>
104
- <div class="bar"></div>
105
- <div class="bar"></div>
106
- </div>
107
- <div class="content">
108
- <div class="emoji">🔒</div>
109
- <h1>Access Denied!</h1>
110
- <div class="beta-text">
111
- <strong>Beta Access Only</strong>
112
- <p style="margin-top: 15px;">Vibe Coding Machine is currently in private beta.</p>
113
- <p>Want early access? Contact us to join the beta program!</p>
114
- </div>
115
- <p class="close-text">You can close this window now.</p>
116
- </div>
117
- </div>
118
- </body>
119
- </html>
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Access Denied</title>
6
+ <style>
7
+ body {
8
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
9
+ text-align: center;
10
+ padding: 0;
11
+ margin: 0;
12
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
13
+ min-height: 100vh;
14
+ display: flex;
15
+ align-items: center;
16
+ justify-content: center;
17
+ }
18
+ .container {
19
+ background: white;
20
+ padding: 50px;
21
+ border-radius: 20px;
22
+ box-shadow: 0 20px 60px rgba(0,0,0,0.3);
23
+ max-width: 500px;
24
+ position: relative;
25
+ overflow: hidden;
26
+ }
27
+ .jail-bars {
28
+ position: absolute;
29
+ top: 0;
30
+ left: 0;
31
+ right: 0;
32
+ height: 100%;
33
+ display: flex;
34
+ justify-content: space-around;
35
+ padding: 0 30px;
36
+ pointer-events: none;
37
+ z-index: 10;
38
+ }
39
+ .bar {
40
+ width: 8px;
41
+ background: linear-gradient(to bottom, #555, #333);
42
+ border-radius: 4px;
43
+ box-shadow: 2px 0 4px rgba(0,0,0,0.3);
44
+ }
45
+ .content {
46
+ position: relative;
47
+ z-index: 5;
48
+ animation: slideContent 8s ease-in-out infinite;
49
+ }
50
+ .emoji {
51
+ font-size: 100px;
52
+ margin: 20px 0;
53
+ animation: shake 0.5s infinite;
54
+ }
55
+ @keyframes shake {
56
+ 0%, 100% { transform: translateX(0); }
57
+ 25% { transform: translateX(-5px); }
58
+ 75% { transform: translateX(5px); }
59
+ }
60
+ @keyframes slideContent {
61
+ 0%, 100% { transform: translateX(0); }
62
+ 25% { transform: translateX(15px); }
63
+ 50% { transform: translateX(0); }
64
+ 75% { transform: translateX(-15px); }
65
+ }
66
+ h1 {
67
+ color: #ef4444;
68
+ margin: 20px 0;
69
+ font-size: 32px;
70
+ }
71
+ p {
72
+ color: #666;
73
+ font-size: 18px;
74
+ margin: 15px 0;
75
+ }
76
+ .beta-text {
77
+ background: #fef3c7;
78
+ border: 2px solid #f59e0b;
79
+ border-radius: 10px;
80
+ padding: 20px;
81
+ margin: 25px 0;
82
+ }
83
+ .beta-text strong {
84
+ color: #d97706;
85
+ font-size: 20px;
86
+ }
87
+ .beta-text p {
88
+ margin: 10px 0;
89
+ }
90
+ .close-text {
91
+ margin-top: 30px;
92
+ color: #999;
93
+ font-size: 14px;
94
+ }
95
+ </style>
96
+ </head>
97
+ <body>
98
+ <div class="container">
99
+ <div class="jail-bars">
100
+ <div class="bar"></div>
101
+ <div class="bar"></div>
102
+ <div class="bar"></div>
103
+ <div class="bar"></div>
104
+ <div class="bar"></div>
105
+ <div class="bar"></div>
106
+ </div>
107
+ <div class="content">
108
+ <div class="emoji">🔒</div>
109
+ <h1>Access Denied!</h1>
110
+ <div class="beta-text">
111
+ <strong>Beta Access Only</strong>
112
+ <p style="margin-top: 15px;">Vibe Coding Machine is currently in private beta.</p>
113
+ <p>Want early access? Contact us to join the beta program!</p>
114
+ </div>
115
+ <p class="close-text">You can close this window now.</p>
116
+ </div>
117
+ </div>
118
+ </body>
119
+ </html>