vibecodingmachine-cli 1.0.0 → 1.0.1
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 +2 -2
- package/src/commands/auto-direct.js +4 -4
- package/src/commands/auto.js +15 -15
- package/src/commands/ide.js +1 -1
- package/src/commands/repo.js +1 -1
- package/src/commands/requirements.js +1 -1
- package/src/commands/status.js +1 -1
- package/src/utils/auth.js +2 -2
- package/src/utils/auto-mode.js +1 -1
- package/src/utils/interactive.js +25 -25
- package/src/utils/logger.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibecodingmachine-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Command-line interface for Vibe Coding Machine - Autonomous development",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -61,4 +61,4 @@
|
|
|
61
61
|
"bugs": {
|
|
62
62
|
"url": "https://github.com/mediawink/vibecodingmachine/issues"
|
|
63
63
|
}
|
|
64
|
-
}
|
|
64
|
+
}
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
const chalk = require('chalk');
|
|
8
|
-
const { DirectLLMManager } = require('
|
|
8
|
+
const { DirectLLMManager } = require('vibecodingmachine-core');
|
|
9
9
|
const { getRepoPath, getAutoConfig, setAutoConfig } = require('../utils/config');
|
|
10
|
-
const { getRequirementsPath, readRequirements } = require('
|
|
10
|
+
const { getRequirementsPath, readRequirements } = require('vibecodingmachine-core');
|
|
11
11
|
const fs = require('fs-extra');
|
|
12
12
|
const path = require('path');
|
|
13
13
|
const { spawn } = require('child_process');
|
|
@@ -17,7 +17,7 @@ const CLI_ENTRY_POINT = path.join(__dirname, '../../bin/allnightai.js');
|
|
|
17
17
|
const { getProviderPreferences, getProviderDefinition } = require('../utils/provider-registry');
|
|
18
18
|
|
|
19
19
|
// CRITICAL: Shared ProviderManager instance to track rate limits across all function calls
|
|
20
|
-
const ProviderManager = require('
|
|
20
|
+
const ProviderManager = require('vibecodingmachine-core/src/ide-integration/provider-manager.cjs');
|
|
21
21
|
const sharedProviderManager = new ProviderManager();
|
|
22
22
|
|
|
23
23
|
/**
|
|
@@ -1192,7 +1192,7 @@ async function waitForIdeCompletion(repoPath, requirementText, ideType = '', tim
|
|
|
1192
1192
|
if (ideType === 'antigravity' && !quotaHandled && elapsed >= 120000) {
|
|
1193
1193
|
console.log(chalk.yellow('\n⚠️ No progress detected after 2 minutes - checking for quota limit...\n'));
|
|
1194
1194
|
try {
|
|
1195
|
-
const { AppleScriptManager } = require('
|
|
1195
|
+
const { AppleScriptManager } = require('vibecodingmachine-core');
|
|
1196
1196
|
const manager = new AppleScriptManager();
|
|
1197
1197
|
const result = await manager.handleAntigravityQuotaLimit();
|
|
1198
1198
|
|
package/src/commands/auto.js
CHANGED
|
@@ -2,7 +2,7 @@ const chalk = require('chalk');
|
|
|
2
2
|
const ora = require('ora');
|
|
3
3
|
const path = require('path');
|
|
4
4
|
const os = require('os');
|
|
5
|
-
const { AppleScriptManager, ClineCLIManager, AiderCLIManager, ClaudeCodeCLIManager, logIDEMessage, runContinueCLICommand, runContinueCLIAutoMode } = require('
|
|
5
|
+
const { AppleScriptManager, ClineCLIManager, AiderCLIManager, ClaudeCodeCLIManager, logIDEMessage, runContinueCLICommand, runContinueCLIAutoMode } = require('vibecodingmachine-core');
|
|
6
6
|
const { getRepoPath, getAutoConfig, setAutoConfig } = require('../utils/config');
|
|
7
7
|
const { checkAutoModeStatus, startAutoMode, stopAutoMode, updateAutoModeStatus } = require('../utils/auto-mode');
|
|
8
8
|
const logger = require('../utils/logger');
|
|
@@ -69,7 +69,7 @@ function getAvailableProviders(savedConfig) {
|
|
|
69
69
|
*/
|
|
70
70
|
async function isRequirementDone(repoPath) {
|
|
71
71
|
try {
|
|
72
|
-
const { getRequirementsPath } = require('
|
|
72
|
+
const { getRequirementsPath } = require('vibecodingmachine-core');
|
|
73
73
|
const fs = require('fs-extra');
|
|
74
74
|
const reqPath = await getRequirementsPath(repoPath);
|
|
75
75
|
|
|
@@ -164,7 +164,7 @@ async function isRequirementDone(repoPath) {
|
|
|
164
164
|
*/
|
|
165
165
|
async function moveRequirementBackToTodo(repoPath, requirementText) {
|
|
166
166
|
try {
|
|
167
|
-
const { getRequirementsPath } = require('
|
|
167
|
+
const { getRequirementsPath } = require('vibecodingmachine-core');
|
|
168
168
|
const fs = require('fs-extra');
|
|
169
169
|
const reqPath = await getRequirementsPath(repoPath);
|
|
170
170
|
|
|
@@ -269,7 +269,7 @@ async function moveRequirementBackToTodo(repoPath, requirementText) {
|
|
|
269
269
|
*/
|
|
270
270
|
async function moveRequirementToFeedback(repoPath, requirementText, questions, findings = null) {
|
|
271
271
|
try {
|
|
272
|
-
const { getRequirementsPath } = require('
|
|
272
|
+
const { getRequirementsPath } = require('vibecodingmachine-core');
|
|
273
273
|
const fs = require('fs-extra');
|
|
274
274
|
const reqPath = await getRequirementsPath(repoPath);
|
|
275
275
|
|
|
@@ -410,7 +410,7 @@ async function moveRequirementToFeedback(repoPath, requirementText, questions, f
|
|
|
410
410
|
*/
|
|
411
411
|
async function moveCompletedRequirement(repoPath, completedRequirement) {
|
|
412
412
|
try {
|
|
413
|
-
const { getRequirementsPath } = require('
|
|
413
|
+
const { getRequirementsPath } = require('vibecodingmachine-core');
|
|
414
414
|
const fs = require('fs-extra');
|
|
415
415
|
const reqPath = await getRequirementsPath(repoPath);
|
|
416
416
|
|
|
@@ -873,7 +873,7 @@ async function start(options) {
|
|
|
873
873
|
|
|
874
874
|
// Helper function to get current requirement details
|
|
875
875
|
async function getCurrentRequirementDetails() {
|
|
876
|
-
const { getRequirementsPath } = require('
|
|
876
|
+
const { getRequirementsPath } = require('vibecodingmachine-core');
|
|
877
877
|
const fs = require('fs-extra');
|
|
878
878
|
const reqPath = await getRequirementsPath(repoPath);
|
|
879
879
|
|
|
@@ -910,7 +910,7 @@ async function start(options) {
|
|
|
910
910
|
|
|
911
911
|
// Helper function to count requirements
|
|
912
912
|
async function getRequirementCounts() {
|
|
913
|
-
const { getRequirementsPath } = require('
|
|
913
|
+
const { getRequirementsPath } = require('vibecodingmachine-core');
|
|
914
914
|
const fs = require('fs-extra');
|
|
915
915
|
const reqPath = await getRequirementsPath(repoPath);
|
|
916
916
|
|
|
@@ -1014,7 +1014,7 @@ async function start(options) {
|
|
|
1014
1014
|
|
|
1015
1015
|
console.log(chalk.gray(` ${requirementsCompleted} requirement(s) completed. ${maxChats > 0 ? `Will stop after ${maxChats} chat(s).` : 'No max set - will continue until all complete.'}`));
|
|
1016
1016
|
|
|
1017
|
-
const { getRequirementsPath } = require('
|
|
1017
|
+
const { getRequirementsPath } = require('vibecodingmachine-core');
|
|
1018
1018
|
const reqPath = await getRequirementsPath(repoPath);
|
|
1019
1019
|
const reqFilename = reqPath ? path.basename(reqPath) : 'REQUIREMENTS.md';
|
|
1020
1020
|
|
|
@@ -1091,7 +1091,7 @@ Please implement this requirement now.`;
|
|
|
1091
1091
|
|
|
1092
1092
|
// Save session limit for display in menu
|
|
1093
1093
|
if (isSessionLimit) {
|
|
1094
|
-
const ProviderManager = require('
|
|
1094
|
+
const ProviderManager = require('vibecodingmachine-core/src/ide-integration/provider-manager.cjs');
|
|
1095
1095
|
const providerManager = new ProviderManager();
|
|
1096
1096
|
providerManager.markRateLimited('claude-code', 'claude-code-cli', fullOutput || errorMsg);
|
|
1097
1097
|
}
|
|
@@ -1245,7 +1245,7 @@ Please implement this requirement now.`;
|
|
|
1245
1245
|
|
|
1246
1246
|
// Build choices with status indicators and rate limit info
|
|
1247
1247
|
const inquirer = require('inquirer');
|
|
1248
|
-
const ProviderManager = require('
|
|
1248
|
+
const ProviderManager = require('vibecodingmachine-core/src/ide-integration/provider-manager.cjs');
|
|
1249
1249
|
const providerManager = new ProviderManager();
|
|
1250
1250
|
|
|
1251
1251
|
const choices = recommendedModels.map(model => {
|
|
@@ -1774,7 +1774,7 @@ Please implement this requirement now.`;
|
|
|
1774
1774
|
|
|
1775
1775
|
// Helper function to get current requirement details
|
|
1776
1776
|
async function getCurrentRequirementDetails() {
|
|
1777
|
-
const { getRequirementsPath } = require('
|
|
1777
|
+
const { getRequirementsPath } = require('vibecodingmachine-core');
|
|
1778
1778
|
const fs = require('fs-extra');
|
|
1779
1779
|
const reqPath = await getRequirementsPath(repoPath);
|
|
1780
1780
|
|
|
@@ -1817,7 +1817,7 @@ Please implement this requirement now.`;
|
|
|
1817
1817
|
// Helper function to directly update REQUIREMENTS file status
|
|
1818
1818
|
// This bypasses Aider to preserve file structure
|
|
1819
1819
|
async function updateRequirementsStatus(newStatus, responseText) {
|
|
1820
|
-
const { getRequirementsPath } = require('
|
|
1820
|
+
const { getRequirementsPath } = require('vibecodingmachine-core');
|
|
1821
1821
|
const fs = require('fs-extra');
|
|
1822
1822
|
const reqPath = await getRequirementsPath(repoPath);
|
|
1823
1823
|
|
|
@@ -1867,7 +1867,7 @@ Please implement this requirement now.`;
|
|
|
1867
1867
|
|
|
1868
1868
|
// Helper function to count requirements
|
|
1869
1869
|
async function getRequirementCounts() {
|
|
1870
|
-
const { getRequirementsPath, getVibeCodingMachineDir } = require('
|
|
1870
|
+
const { getRequirementsPath, getVibeCodingMachineDir } = require('vibecodingmachine-core');
|
|
1871
1871
|
const fs = require('fs-extra');
|
|
1872
1872
|
const reqPath = await getRequirementsPath(repoPath);
|
|
1873
1873
|
|
|
@@ -1978,7 +1978,7 @@ Please implement this requirement now.`;
|
|
|
1978
1978
|
console.log(chalk.gray(` ${requirementsCompleted} requirement(s) completed. No max set - will continue until all complete.`));
|
|
1979
1979
|
}
|
|
1980
1980
|
|
|
1981
|
-
const { getRequirementsPath } = require('
|
|
1981
|
+
const { getRequirementsPath } = require('vibecodingmachine-core');
|
|
1982
1982
|
const reqPath = await getRequirementsPath(repoPath);
|
|
1983
1983
|
const reqFilename = reqPath ? path.basename(reqPath) : 'REQUIREMENTS.md';
|
|
1984
1984
|
|
|
@@ -2497,7 +2497,7 @@ NOW: Search for and make the minimal code changes needed.`;
|
|
|
2497
2497
|
const availableProviders = getAvailableProviders(savedConfig);
|
|
2498
2498
|
|
|
2499
2499
|
// Use ProviderManager to find an available provider (not rate limited)
|
|
2500
|
-
const ProviderManager = require('
|
|
2500
|
+
const ProviderManager = require('vibecodingmachine-core/src/ide-integration/provider-manager.cjs');
|
|
2501
2501
|
const providerManager = new ProviderManager();
|
|
2502
2502
|
const nextProvider = providerManager.getAvailableProvider(availableProviders);
|
|
2503
2503
|
|
package/src/commands/ide.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const chalk = require('chalk');
|
|
2
2
|
const path = require('path');
|
|
3
3
|
const ora = require('ora');
|
|
4
|
-
const { AppleScriptManager } = require('
|
|
4
|
+
const { AppleScriptManager } = require('vibecodingmachine-core');
|
|
5
5
|
const { getRepoPath } = require('../utils/config');
|
|
6
6
|
|
|
7
7
|
const IDES = ['cursor', 'vscode', 'windsurf', 'antigravity', 'cline'];
|
package/src/commands/repo.js
CHANGED
|
@@ -3,7 +3,7 @@ const fs = require('fs-extra');
|
|
|
3
3
|
const chalk = require('chalk');
|
|
4
4
|
const chokidar = require('chokidar');
|
|
5
5
|
const { getRepoPath } = require('../utils/config');
|
|
6
|
-
const { getRequirementsPath } = require('
|
|
6
|
+
const { getRequirementsPath } = require('vibecodingmachine-core');
|
|
7
7
|
|
|
8
8
|
async function getReqPathOrExit() {
|
|
9
9
|
const repoPath = await getRepoPath();
|
package/src/commands/status.js
CHANGED
|
@@ -4,7 +4,7 @@ const os = require('os');
|
|
|
4
4
|
const chalk = require('chalk');
|
|
5
5
|
const { getRepoPath } = require('../utils/config');
|
|
6
6
|
const { checkAutoModeStatus } = require('../utils/auto-mode');
|
|
7
|
-
const { getRequirementsPath } = require('
|
|
7
|
+
const { getRequirementsPath } = require('vibecodingmachine-core');
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Format IDE name for display
|
package/src/utils/auth.js
CHANGED
|
@@ -3,7 +3,7 @@ const http = require('http');
|
|
|
3
3
|
const crypto = require('crypto');
|
|
4
4
|
const fs = require('fs');
|
|
5
5
|
const path = require('path');
|
|
6
|
-
const sharedAuth = require('
|
|
6
|
+
const sharedAuth = require('vibecodingmachine-core/src/auth/shared-auth-storage');
|
|
7
7
|
|
|
8
8
|
// AWS Cognito configuration
|
|
9
9
|
const COGNITO_DOMAIN = process.env.COGNITO_DOMAIN || 'allnightai-auth-1763598779.auth.us-east-1.amazoncognito.com';
|
|
@@ -12,7 +12,7 @@ const PORT = 3000;
|
|
|
12
12
|
|
|
13
13
|
// Load shared access denied HTML
|
|
14
14
|
function getAccessDeniedHTML() {
|
|
15
|
-
const accessDeniedPath = require.resolve('
|
|
15
|
+
const accessDeniedPath = require.resolve('vibecodingmachine-core/src/auth/access-denied.html');
|
|
16
16
|
return fs.readFileSync(accessDeniedPath, 'utf8');
|
|
17
17
|
}
|
|
18
18
|
|
package/src/utils/auto-mode.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
2
|
const fs = require('fs-extra');
|
|
3
3
|
const { getRepoPath } = require('./config');
|
|
4
|
-
const { logAutoModeStart, logAutoModeStop } = require('
|
|
4
|
+
const { logAutoModeStart, logAutoModeStop } = require('vibecodingmachine-core');
|
|
5
5
|
|
|
6
6
|
function getStatusPath(repoPath) {
|
|
7
7
|
return path.join(repoPath, '.vibecodingmachine', 'temp', 'auto-status.json');
|
package/src/utils/interactive.js
CHANGED
|
@@ -17,7 +17,7 @@ const {
|
|
|
17
17
|
getRequirementsFilename,
|
|
18
18
|
requirementsExists,
|
|
19
19
|
isComputerNameEnabled
|
|
20
|
-
} = require('
|
|
20
|
+
} = require('vibecodingmachine-core');
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Format IDE name for display
|
|
@@ -156,7 +156,7 @@ function getCurrentAIProvider(ide) {
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
try {
|
|
159
|
-
const { ClineCLIManager } = require('
|
|
159
|
+
const { ClineCLIManager } = require('vibecodingmachine-core');
|
|
160
160
|
const clineManager = new ClineCLIManager();
|
|
161
161
|
|
|
162
162
|
if (!clineManager.isConfigured()) {
|
|
@@ -210,7 +210,7 @@ function formatPath(fullPath) {
|
|
|
210
210
|
|
|
211
211
|
async function countRequirements() {
|
|
212
212
|
try {
|
|
213
|
-
const { getRequirementsPath, getVibeCodingMachineDir } = require('
|
|
213
|
+
const { getRequirementsPath, getVibeCodingMachineDir } = require('vibecodingmachine-core');
|
|
214
214
|
const repoPath = await getRepoPath();
|
|
215
215
|
const reqPath = await getRequirementsPath(repoPath);
|
|
216
216
|
|
|
@@ -273,7 +273,7 @@ async function countRequirements() {
|
|
|
273
273
|
// If .vibecodingmachine is inside repo: go up one level
|
|
274
274
|
// If .vibecodingmachine is sibling (../.vibecodingmachine-reponame): go up one level then into repo
|
|
275
275
|
let changelogPath;
|
|
276
|
-
const allnightStatus = await require('
|
|
276
|
+
const allnightStatus = await require('vibecodingmachine-core').checkVibeCodingMachineExists();
|
|
277
277
|
|
|
278
278
|
if (allnightStatus.insideExists) {
|
|
279
279
|
// .vibecodingmachine is inside repo, so go up one level
|
|
@@ -306,7 +306,7 @@ async function countRequirements() {
|
|
|
306
306
|
|
|
307
307
|
async function getCurrentProgress() {
|
|
308
308
|
try {
|
|
309
|
-
const { getRequirementsPath } = require('
|
|
309
|
+
const { getRequirementsPath } = require('vibecodingmachine-core');
|
|
310
310
|
const reqPath = await getRequirementsPath();
|
|
311
311
|
|
|
312
312
|
if (!reqPath || !await fs.pathExists(reqPath)) {
|
|
@@ -443,7 +443,7 @@ async function showWelcomeScreen() {
|
|
|
443
443
|
}
|
|
444
444
|
|
|
445
445
|
// Display recent audit log entries
|
|
446
|
-
const { readAuditLog, getDateStr } = require('
|
|
446
|
+
const { readAuditLog, getDateStr } = require('vibecodingmachine-core');
|
|
447
447
|
const todayStr = getDateStr();
|
|
448
448
|
const entries = readAuditLog(todayStr);
|
|
449
449
|
if (entries && entries.length > 0) {
|
|
@@ -559,7 +559,7 @@ async function showRequirementsTree() {
|
|
|
559
559
|
|
|
560
560
|
// Load requirements for a section
|
|
561
561
|
const loadSection = async (sectionKey, sectionTitle) => {
|
|
562
|
-
const { getRequirementsPath } = require('
|
|
562
|
+
const { getRequirementsPath } = require('vibecodingmachine-core');
|
|
563
563
|
const reqPath = await getRequirementsPath();
|
|
564
564
|
|
|
565
565
|
if (!reqPath || !await fs.pathExists(reqPath)) {
|
|
@@ -621,7 +621,7 @@ async function showRequirementsTree() {
|
|
|
621
621
|
|
|
622
622
|
// Load VERIFIED requirements from CHANGELOG
|
|
623
623
|
const loadVerified = async () => {
|
|
624
|
-
const { getVibeCodingMachineDir, checkVibeCodingMachineExists } = require('
|
|
624
|
+
const { getVibeCodingMachineDir, checkVibeCodingMachineExists } = require('vibecodingmachine-core');
|
|
625
625
|
const allnightStatus = await checkVibeCodingMachineExists();
|
|
626
626
|
let changelogPath;
|
|
627
627
|
|
|
@@ -666,7 +666,7 @@ async function showRequirementsTree() {
|
|
|
666
666
|
|
|
667
667
|
// Load clarification requirements with questions
|
|
668
668
|
const loadClarification = async () => {
|
|
669
|
-
const { getRequirementsPath } = require('
|
|
669
|
+
const { getRequirementsPath } = require('vibecodingmachine-core');
|
|
670
670
|
const reqPath = await getRequirementsPath();
|
|
671
671
|
|
|
672
672
|
if (!reqPath || !await fs.pathExists(reqPath)) {
|
|
@@ -1103,7 +1103,7 @@ async function confirmAndExit() {
|
|
|
1103
1103
|
|
|
1104
1104
|
// Helper to edit clarification responses
|
|
1105
1105
|
async function editClarificationResponses(req, tree) {
|
|
1106
|
-
const { getRequirementsPath } = require('
|
|
1106
|
+
const { getRequirementsPath } = require('vibecodingmachine-core');
|
|
1107
1107
|
const reqPath = await getRequirementsPath();
|
|
1108
1108
|
|
|
1109
1109
|
console.clear();
|
|
@@ -1194,7 +1194,7 @@ async function editClarificationResponses(req, tree) {
|
|
|
1194
1194
|
|
|
1195
1195
|
// Helper to move clarification requirement back to TODO
|
|
1196
1196
|
async function moveClarificationToTodo(req, tree) {
|
|
1197
|
-
const { getRequirementsPath } = require('
|
|
1197
|
+
const { getRequirementsPath } = require('vibecodingmachine-core');
|
|
1198
1198
|
const reqPath = await getRequirementsPath();
|
|
1199
1199
|
|
|
1200
1200
|
const content = await fs.readFile(reqPath, 'utf8');
|
|
@@ -1279,7 +1279,7 @@ async function moveClarificationToTodo(req, tree) {
|
|
|
1279
1279
|
|
|
1280
1280
|
// Helper to move clarification requirement to recycled (used to delete)
|
|
1281
1281
|
async function deleteClarification(req, tree) {
|
|
1282
|
-
const { getRequirementsPath } = require('
|
|
1282
|
+
const { getRequirementsPath } = require('vibecodingmachine-core');
|
|
1283
1283
|
const reqPath = await getRequirementsPath();
|
|
1284
1284
|
|
|
1285
1285
|
const truncatedTitle = req.title.length > 50 ? req.title.substring(0, 50) + '...' : req.title;
|
|
@@ -1510,7 +1510,7 @@ async function performRequirementAction(action, req, sectionKey, tree) {
|
|
|
1510
1510
|
|
|
1511
1511
|
if (reqIndex === -1) return;
|
|
1512
1512
|
|
|
1513
|
-
const { getRequirementsPath } = require('
|
|
1513
|
+
const { getRequirementsPath } = require('vibecodingmachine-core');
|
|
1514
1514
|
const reqPath = await getRequirementsPath();
|
|
1515
1515
|
|
|
1516
1516
|
switch (action) {
|
|
@@ -1560,7 +1560,7 @@ async function deleteRequirement(req, sectionKey, tree) {
|
|
|
1560
1560
|
|
|
1561
1561
|
if (reqIndex === -1) return;
|
|
1562
1562
|
|
|
1563
|
-
const { getRequirementsPath } = require('
|
|
1563
|
+
const { getRequirementsPath } = require('vibecodingmachine-core');
|
|
1564
1564
|
const reqPath = await getRequirementsPath();
|
|
1565
1565
|
|
|
1566
1566
|
const truncatedTitle = req.title.substring(0, 50) + (req.title.length > 50 ? '...' : '');
|
|
@@ -1662,7 +1662,7 @@ async function moveRequirementDown(req, sectionKey, tree) {
|
|
|
1662
1662
|
|
|
1663
1663
|
if (reqIndex === -1 || reqIndex >= reqList.length - 1) return;
|
|
1664
1664
|
|
|
1665
|
-
const { getRequirementsPath } = require('
|
|
1665
|
+
const { getRequirementsPath } = require('vibecodingmachine-core');
|
|
1666
1666
|
const reqPath = await getRequirementsPath();
|
|
1667
1667
|
|
|
1668
1668
|
[reqList[reqIndex], reqList[reqIndex + 1]] = [reqList[reqIndex + 1], reqList[reqIndex]];
|
|
@@ -1677,7 +1677,7 @@ async function moveRequirementUp(req, sectionKey, tree) {
|
|
|
1677
1677
|
|
|
1678
1678
|
if (reqIndex === -1 || reqIndex === 0) return;
|
|
1679
1679
|
|
|
1680
|
-
const { getRequirementsPath } = require('
|
|
1680
|
+
const { getRequirementsPath } = require('vibecodingmachine-core');
|
|
1681
1681
|
const reqPath = await getRequirementsPath();
|
|
1682
1682
|
|
|
1683
1683
|
[reqList[reqIndex], reqList[reqIndex - 1]] = [reqList[reqIndex - 1], reqList[reqIndex]];
|
|
@@ -1686,7 +1686,7 @@ async function moveRequirementUp(req, sectionKey, tree) {
|
|
|
1686
1686
|
|
|
1687
1687
|
// Helper to promote requirement to next list (TODO -> TO VERIFY -> VERIFIED)
|
|
1688
1688
|
async function promoteRequirement(req, sectionKey, tree, loadSection, loadVerified) {
|
|
1689
|
-
const { getRequirementsPath, promoteTodoToVerify, promoteToVerified } = require('
|
|
1689
|
+
const { getRequirementsPath, promoteTodoToVerify, promoteToVerified } = require('vibecodingmachine-core');
|
|
1690
1690
|
const reqPath = await getRequirementsPath();
|
|
1691
1691
|
|
|
1692
1692
|
if (sectionKey === 'todo') {
|
|
@@ -1710,7 +1710,7 @@ async function promoteRequirement(req, sectionKey, tree, loadSection, loadVerifi
|
|
|
1710
1710
|
|
|
1711
1711
|
// Helper to demote requirement to previous list (VERIFIED -> TODO, TO VERIFY -> TODO)
|
|
1712
1712
|
async function demoteRequirement(reqTitle, sectionKey, tree, loadSection, loadVerified) {
|
|
1713
|
-
const { getRequirementsPath, demoteVerifyToTodo, demoteFromVerifiedToTodo } = require('
|
|
1713
|
+
const { getRequirementsPath, demoteVerifyToTodo, demoteFromVerifiedToTodo } = require('vibecodingmachine-core');
|
|
1714
1714
|
const reqPath = await getRequirementsPath();
|
|
1715
1715
|
|
|
1716
1716
|
if (sectionKey === 'verify') {
|
|
@@ -1908,7 +1908,7 @@ async function handleAddRequirement(type) {
|
|
|
1908
1908
|
|
|
1909
1909
|
// Helper to show requirements from a specific section with actions
|
|
1910
1910
|
async function showRequirementsBySection(sectionTitle) {
|
|
1911
|
-
const { getRequirementsPath } = require('
|
|
1911
|
+
const { getRequirementsPath } = require('vibecodingmachine-core');
|
|
1912
1912
|
const reqPath = await getRequirementsPath();
|
|
1913
1913
|
|
|
1914
1914
|
if (!reqPath || !await fs.pathExists(reqPath)) {
|
|
@@ -2124,7 +2124,7 @@ async function saveRequirementsOrder(reqPath, sectionTitle, requirements) {
|
|
|
2124
2124
|
|
|
2125
2125
|
// Helper to show verified requirements from CHANGELOG
|
|
2126
2126
|
async function showRequirementsFromChangelog() {
|
|
2127
|
-
const { getVibeCodingMachineDir, checkVibeCodingMachineExists } = require('
|
|
2127
|
+
const { getVibeCodingMachineDir, checkVibeCodingMachineExists } = require('vibecodingmachine-core');
|
|
2128
2128
|
|
|
2129
2129
|
const allnightStatus = await checkVibeCodingMachineExists();
|
|
2130
2130
|
let changelogPath;
|
|
@@ -2391,7 +2391,7 @@ async function showProviderManagerMenu() {
|
|
|
2391
2391
|
let dirty = false;
|
|
2392
2392
|
|
|
2393
2393
|
// Initialize ProviderManager to check rate limits
|
|
2394
|
-
const ProviderManager = require('
|
|
2394
|
+
const ProviderManager = require('vibecodingmachine-core/src/ide-integration/provider-manager.cjs');
|
|
2395
2395
|
const providerManager = new ProviderManager();
|
|
2396
2396
|
|
|
2397
2397
|
const render = () => {
|
|
@@ -2548,7 +2548,7 @@ async function showProviderManagerMenu() {
|
|
|
2548
2548
|
async function showSettings() {
|
|
2549
2549
|
console.log(chalk.bold.cyan('\n⚙️ Settings\n'));
|
|
2550
2550
|
|
|
2551
|
-
const { setConfigValue } = require('
|
|
2551
|
+
const { setConfigValue } = require('vibecodingmachine-core');
|
|
2552
2552
|
const { getAutoConfig, setAutoConfig } = require('./config');
|
|
2553
2553
|
const currentHostnameEnabled = await isComputerNameEnabled();
|
|
2554
2554
|
const hostname = getHostname();
|
|
@@ -2697,7 +2697,7 @@ async function startInteractive() {
|
|
|
2697
2697
|
// Check for rate limits (for LLM-based agents and Claude Code)
|
|
2698
2698
|
if (currentAgent === 'ollama' || currentAgent === 'groq' || currentAgent === 'anthropic' || currentAgent === 'bedrock' || currentAgent === 'claude-code') {
|
|
2699
2699
|
try {
|
|
2700
|
-
const ProviderManager = require('
|
|
2700
|
+
const ProviderManager = require('vibecodingmachine-core/src/ide-integration/provider-manager.cjs');
|
|
2701
2701
|
const providerManager = new ProviderManager();
|
|
2702
2702
|
const fs = require('fs');
|
|
2703
2703
|
const path = require('path');
|
|
@@ -3162,7 +3162,7 @@ async function startInteractive() {
|
|
|
3162
3162
|
}
|
|
3163
3163
|
case 'setting:hostname': {
|
|
3164
3164
|
// Toggle hostname setting
|
|
3165
|
-
const { setConfigValue } = require('
|
|
3165
|
+
const { setConfigValue } = require('vibecodingmachine-core');
|
|
3166
3166
|
const newValue = !useHostname;
|
|
3167
3167
|
await setConfigValue('computerNameEnabled', newValue);
|
|
3168
3168
|
const statusText = newValue ? chalk.green('enabled') : chalk.yellow('disabled');
|
|
@@ -3422,7 +3422,7 @@ async function startInteractive() {
|
|
|
3422
3422
|
const { createAutoModeUI } = require('./auto-mode-simple-ui');
|
|
3423
3423
|
const { StdoutInterceptor } = require('./stdout-interceptor');
|
|
3424
3424
|
const { getRepoPath } = require('./config');
|
|
3425
|
-
const { getRequirementsPath } = require('
|
|
3425
|
+
const { getRequirementsPath } = require('vibecodingmachine-core');
|
|
3426
3426
|
|
|
3427
3427
|
console.log('[DEBUG] Getting repo info...');
|
|
3428
3428
|
// Get current repo info for the header
|
package/src/utils/logger.js
CHANGED