vibecodingmachine-cli 1.0.0
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/.allnightai/REQUIREMENTS.md +11 -0
- package/.allnightai/temp/auto-status.json +6 -0
- package/.env +7 -0
- package/.eslintrc.js +16 -0
- package/README.md +85 -0
- package/bin/vibecodingmachine.js +274 -0
- package/jest.config.js +8 -0
- package/logs/audit/2025-11-07.jsonl +2 -0
- package/package.json +64 -0
- package/scripts/README.md +128 -0
- package/scripts/auto-start-wrapper.sh +92 -0
- package/scripts/postinstall.js +81 -0
- package/src/commands/auth.js +96 -0
- package/src/commands/auto-direct.js +1748 -0
- package/src/commands/auto.js +4692 -0
- package/src/commands/auto.js.bak +710 -0
- package/src/commands/ide.js +70 -0
- package/src/commands/repo.js +159 -0
- package/src/commands/requirements.js +161 -0
- package/src/commands/setup.js +91 -0
- package/src/commands/status.js +88 -0
- package/src/components/RequirementPage.js +0 -0
- package/src/file.js +0 -0
- package/src/index.js +5 -0
- package/src/main.js +0 -0
- package/src/ui/requirements-page.js +0 -0
- package/src/utils/auth.js +548 -0
- package/src/utils/auto-mode-ansi-ui.js +238 -0
- package/src/utils/auto-mode-simple-ui.js +161 -0
- package/src/utils/auto-mode-ui.js.bak.blessed +207 -0
- package/src/utils/auto-mode.js +65 -0
- package/src/utils/config.js +64 -0
- package/src/utils/interactive.js +3616 -0
- package/src/utils/keyboard-handler.js +152 -0
- package/src/utils/logger.js +4 -0
- package/src/utils/persistent-header.js +116 -0
- package/src/utils/provider-registry.js +128 -0
- package/src/utils/requirementUtils.js +0 -0
- package/src/utils/status-card.js +120 -0
- package/src/utils/status-manager.js +0 -0
- package/src/utils/status.js +0 -0
- package/src/utils/stdout-interceptor.js +127 -0
- package/tests/auto-mode.test.js +37 -0
- package/tests/config.test.js +34 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const os = require('os');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
const fs = require('fs-extra');
|
|
4
|
+
|
|
5
|
+
describe('config utils', () => {
|
|
6
|
+
const tmpConfig = path.join(os.tmpdir(), `allnightai_test_config_${Date.now()}.json`);
|
|
7
|
+
|
|
8
|
+
beforeAll(() => {
|
|
9
|
+
process.env.ALLNIGHTAI_CONFIG_PATH = tmpConfig;
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
afterAll(async () => {
|
|
13
|
+
delete process.env.ALLNIGHTAI_CONFIG_PATH;
|
|
14
|
+
await fs.remove(tmpConfig).catch(() => {});
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
test('set/get repo path roundtrip', async () => {
|
|
18
|
+
const { getRepoPath, setRepoPath } = require('../src/utils/config');
|
|
19
|
+
expect(await getRepoPath()).toBeNull();
|
|
20
|
+
await setRepoPath('/tmp/repo');
|
|
21
|
+
expect(await getRepoPath()).toBe('/tmp/repo');
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
test('set/get auto config roundtrip', async () => {
|
|
25
|
+
const { getAutoConfig, setAutoConfig } = require('../src/utils/config');
|
|
26
|
+
await setAutoConfig({ ide: 'cursor', maxChats: 10 });
|
|
27
|
+
const cfg = await getAutoConfig();
|
|
28
|
+
expect(cfg.ide).toBe('cursor');
|
|
29
|
+
expect(cfg.maxChats).toBe(10);
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|