vibecodingmachine-core 1.0.2 → 2025.11.2-7.1239
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/.babelrc +13 -13
- package/README.md +28 -28
- package/__tests__/applescript-manager-claude-fix.test.js +286 -286
- package/__tests__/requirement-2-auto-start-looping.test.js +69 -69
- package/__tests__/requirement-3-auto-start-looping.test.js +69 -69
- package/__tests__/requirement-4-auto-start-looping.test.js +69 -69
- package/__tests__/requirement-6-auto-start-looping.test.js +73 -73
- package/__tests__/requirement-7-status-tracking.test.js +332 -332
- package/jest.config.js +18 -18
- package/jest.setup.js +12 -12
- package/package.json +48 -48
- package/src/auth/access-denied.html +119 -119
- package/src/auth/shared-auth-storage.js +230 -230
- package/src/autonomous-mode/feature-implementer.cjs +70 -70
- package/src/autonomous-mode/feature-implementer.js +425 -425
- package/src/chat-management/chat-manager.cjs +71 -71
- package/src/chat-management/chat-manager.js +342 -342
- package/src/ide-integration/__tests__/applescript-manager-thread-closure.test.js +227 -227
- package/src/ide-integration/aider-cli-manager.cjs +850 -850
- package/src/ide-integration/applescript-manager.cjs +1088 -1088
- package/src/ide-integration/applescript-manager.js +2802 -2802
- package/src/ide-integration/applescript-utils.js +306 -306
- package/src/ide-integration/cdp-manager.cjs +221 -221
- package/src/ide-integration/cdp-manager.js +321 -321
- package/src/ide-integration/claude-code-cli-manager.cjs +301 -301
- package/src/ide-integration/cline-cli-manager.cjs +2252 -2252
- package/src/ide-integration/continue-cli-manager.js +431 -431
- package/src/ide-integration/provider-manager.cjs +354 -354
- package/src/ide-integration/quota-detector.cjs +34 -34
- package/src/ide-integration/quota-detector.js +349 -349
- package/src/ide-integration/windows-automation-manager.js +262 -262
- package/src/index.cjs +47 -43
- package/src/index.js +17 -17
- package/src/llm/direct-llm-manager.cjs +609 -609
- package/src/ui/ButtonComponents.js +247 -247
- package/src/ui/ChatInterface.js +499 -499
- package/src/ui/StateManager.js +259 -259
- package/src/utils/audit-logger.cjs +116 -116
- package/src/utils/config-helpers.cjs +94 -94
- package/src/utils/config-helpers.js +94 -94
- package/src/utils/electron-update-checker.js +113 -85
- package/src/utils/gcloud-auth.cjs +394 -394
- package/src/utils/logger.cjs +193 -193
- package/src/utils/logger.js +191 -191
- package/src/utils/repo-helpers.cjs +120 -120
- package/src/utils/repo-helpers.js +120 -120
- package/src/utils/requirement-helpers.js +432 -432
- package/src/utils/update-checker.js +227 -167
- package/src/utils/version-checker.js +169 -0
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
// @vibecodingmachine/core - Chat Manager (CommonJS) - Stub
|
|
2
|
-
// Handles chat message management, polling, and response detection
|
|
3
|
-
|
|
4
|
-
class ChatManager {
|
|
5
|
-
constructor(options = {}) {
|
|
6
|
-
this.logger = options.logger || console;
|
|
7
|
-
this.electronAPI = options.electronAPI || null;
|
|
8
|
-
this.onMessageUpdate = options.onMessageUpdate || (() => {});
|
|
9
|
-
this.onStatusUpdate = options.onStatusUpdate || (() => {});
|
|
10
|
-
this.onProgressUpdate = options.onProgressUpdate || (() => {});
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
async sendMessage(message, ide, tabId) {
|
|
14
|
-
this.logger.log('sendMessage stub called with:', { message: message.substring(0, 50) + '...', ide, tabId });
|
|
15
|
-
return {
|
|
16
|
-
success: true,
|
|
17
|
-
method: 'stub',
|
|
18
|
-
message: 'Message sent via stub'
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
startPolling(ide, tabId) {
|
|
23
|
-
this.logger.log('startPolling stub for:', ide, tabId);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
stopPolling() {
|
|
27
|
-
this.logger.log('stopPolling stub');
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
pause() {
|
|
31
|
-
this.logger.log('pause stub');
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
resume() {
|
|
35
|
-
this.logger.log('resume stub');
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
stop() {
|
|
39
|
-
this.logger.log('stop stub');
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
reset() {
|
|
43
|
-
this.logger.log('reset stub');
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
getState() {
|
|
47
|
-
return {
|
|
48
|
-
isPolling: false,
|
|
49
|
-
isPaused: false,
|
|
50
|
-
isStopped: false
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
setElectronAPI(electronAPI) {
|
|
55
|
-
this.electronAPI = electronAPI;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
setCallbacks(callbacks) {
|
|
59
|
-
if (callbacks.onMessageUpdate) {
|
|
60
|
-
this.onMessageUpdate = callbacks.onMessageUpdate;
|
|
61
|
-
}
|
|
62
|
-
if (callbacks.onStatusUpdate) {
|
|
63
|
-
this.onStatusUpdate = callbacks.onStatusUpdate;
|
|
64
|
-
}
|
|
65
|
-
if (callbacks.onProgressUpdate) {
|
|
66
|
-
this.onProgressUpdate = callbacks.onProgressUpdate;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
module.exports = { ChatManager };
|
|
1
|
+
// @vibecodingmachine/core - Chat Manager (CommonJS) - Stub
|
|
2
|
+
// Handles chat message management, polling, and response detection
|
|
3
|
+
|
|
4
|
+
class ChatManager {
|
|
5
|
+
constructor(options = {}) {
|
|
6
|
+
this.logger = options.logger || console;
|
|
7
|
+
this.electronAPI = options.electronAPI || null;
|
|
8
|
+
this.onMessageUpdate = options.onMessageUpdate || (() => {});
|
|
9
|
+
this.onStatusUpdate = options.onStatusUpdate || (() => {});
|
|
10
|
+
this.onProgressUpdate = options.onProgressUpdate || (() => {});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async sendMessage(message, ide, tabId) {
|
|
14
|
+
this.logger.log('sendMessage stub called with:', { message: message.substring(0, 50) + '...', ide, tabId });
|
|
15
|
+
return {
|
|
16
|
+
success: true,
|
|
17
|
+
method: 'stub',
|
|
18
|
+
message: 'Message sent via stub'
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
startPolling(ide, tabId) {
|
|
23
|
+
this.logger.log('startPolling stub for:', ide, tabId);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
stopPolling() {
|
|
27
|
+
this.logger.log('stopPolling stub');
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
pause() {
|
|
31
|
+
this.logger.log('pause stub');
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
resume() {
|
|
35
|
+
this.logger.log('resume stub');
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
stop() {
|
|
39
|
+
this.logger.log('stop stub');
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
reset() {
|
|
43
|
+
this.logger.log('reset stub');
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
getState() {
|
|
47
|
+
return {
|
|
48
|
+
isPolling: false,
|
|
49
|
+
isPaused: false,
|
|
50
|
+
isStopped: false
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
setElectronAPI(electronAPI) {
|
|
55
|
+
this.electronAPI = electronAPI;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
setCallbacks(callbacks) {
|
|
59
|
+
if (callbacks.onMessageUpdate) {
|
|
60
|
+
this.onMessageUpdate = callbacks.onMessageUpdate;
|
|
61
|
+
}
|
|
62
|
+
if (callbacks.onStatusUpdate) {
|
|
63
|
+
this.onStatusUpdate = callbacks.onStatusUpdate;
|
|
64
|
+
}
|
|
65
|
+
if (callbacks.onProgressUpdate) {
|
|
66
|
+
this.onProgressUpdate = callbacks.onProgressUpdate;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
module.exports = { ChatManager };
|