vibecodingmachine-cli 1.0.13 → 1.0.15
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/README.md +1 -1
- package/package.json +1 -1
- package/scripts/postinstall.js +1 -1
- package/src/utils/auth.js +1 -1
- package/src/utils/config.js +1 -1
- package/tests/auto-mode.test.js +2 -2
- package/tests/config.test.js +2 -2
package/README.md
CHANGED
|
@@ -72,7 +72,7 @@ vcm interactive
|
|
|
72
72
|
|
|
73
73
|
## Configuration
|
|
74
74
|
- Stored at `~/.config/vibecodingmachine/config.json` by default
|
|
75
|
-
- Override for testing with env var `
|
|
75
|
+
- Override for testing with env var `VIBECODINGMACHINE_CONFIG_PATH=/tmp/your-test-config.json`
|
|
76
76
|
|
|
77
77
|
## Development
|
|
78
78
|
```bash
|
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -34,7 +34,7 @@ function checkForExistingAna() {
|
|
|
34
34
|
const content = fs.readFileSync(vcmPath, 'utf8');
|
|
35
35
|
|
|
36
36
|
// Check if this is our VibeCodingMachine binary
|
|
37
|
-
if (content.includes('VibeCodingMachine CLI') || content.includes('
|
|
37
|
+
if (content.includes('VibeCodingMachine CLI') || content.includes('vibecodingmachine')) {
|
|
38
38
|
// It's ours, all good
|
|
39
39
|
console.log(chalk.green('\n✓ Vibe Coding Machine CLI installed successfully!'));
|
|
40
40
|
console.log(chalk.gray(' You can use either:'));
|
package/src/utils/auth.js
CHANGED
|
@@ -7,7 +7,7 @@ const net = require('net');
|
|
|
7
7
|
const sharedAuth = require('vibecodingmachine-core/src/auth/shared-auth-storage');
|
|
8
8
|
|
|
9
9
|
// AWS Cognito configuration
|
|
10
|
-
const COGNITO_DOMAIN = process.env.COGNITO_DOMAIN || '
|
|
10
|
+
const COGNITO_DOMAIN = process.env.COGNITO_DOMAIN || 'vibecodingmachine-auth-1763598779.auth.us-east-1.amazoncognito.com';
|
|
11
11
|
const CLIENT_ID = process.env.COGNITO_APP_CLIENT_ID || '3tbe1i2g36uqule92iuk6snuo3'; // Public client (no secret)
|
|
12
12
|
const PREFERRED_PORT = 3000; // Preferred port, will auto-detect if unavailable
|
|
13
13
|
|
package/src/utils/config.js
CHANGED
|
@@ -6,7 +6,7 @@ const DEFAULT_CONFIG_DIR = path.join(os.homedir(), '.config', 'vibecodingmachine
|
|
|
6
6
|
const DEFAULT_CONFIG_PATH = path.join(DEFAULT_CONFIG_DIR, 'config.json');
|
|
7
7
|
|
|
8
8
|
function getConfigPath() {
|
|
9
|
-
const override = process.env.
|
|
9
|
+
const override = process.env.VIBECODINGMACHINE_CONFIG_PATH;
|
|
10
10
|
if (override) return override;
|
|
11
11
|
return DEFAULT_CONFIG_PATH;
|
|
12
12
|
}
|
package/tests/auto-mode.test.js
CHANGED
|
@@ -7,14 +7,14 @@ describe('auto-mode utils', () => {
|
|
|
7
7
|
const tmpRepo = path.join(os.tmpdir(), `vibecodingmachine_test_repo_${Date.now()}`);
|
|
8
8
|
|
|
9
9
|
beforeAll(async () => {
|
|
10
|
-
process.env.
|
|
10
|
+
process.env.VIBECODINGMACHINE_CONFIG_PATH = tmpConfig;
|
|
11
11
|
await fs.ensureDir(path.join(tmpRepo, '.vibecodingmachine', 'temp'));
|
|
12
12
|
const { setRepoPath } = require('../src/utils/config');
|
|
13
13
|
await setRepoPath(tmpRepo);
|
|
14
14
|
});
|
|
15
15
|
|
|
16
16
|
afterAll(async () => {
|
|
17
|
-
delete process.env.
|
|
17
|
+
delete process.env.VIBECODINGMACHINE_CONFIG_PATH;
|
|
18
18
|
await fs.remove(tmpConfig).catch(() => {});
|
|
19
19
|
await fs.remove(tmpRepo).catch(() => {});
|
|
20
20
|
});
|
package/tests/config.test.js
CHANGED
|
@@ -6,11 +6,11 @@ describe('config utils', () => {
|
|
|
6
6
|
const tmpConfig = path.join(os.tmpdir(), `vibecodingmachine_test_config_${Date.now()}.json`);
|
|
7
7
|
|
|
8
8
|
beforeAll(() => {
|
|
9
|
-
process.env.
|
|
9
|
+
process.env.VIBECODINGMACHINE_CONFIG_PATH = tmpConfig;
|
|
10
10
|
});
|
|
11
11
|
|
|
12
12
|
afterAll(async () => {
|
|
13
|
-
delete process.env.
|
|
13
|
+
delete process.env.VIBECODINGMACHINE_CONFIG_PATH;
|
|
14
14
|
await fs.remove(tmpConfig).catch(() => {});
|
|
15
15
|
});
|
|
16
16
|
|