vibecodingmachine-cli 2026.3.9-907 → 2026.3.10-1548
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 +85 -85
- package/bin/commands/agent-commands.js +295 -28
- package/bin/vibecodingmachine.js +0 -0
- package/package.json +2 -2
- package/scripts/postinstall.js +161 -161
- package/src/commands/auth.js +100 -100
- package/src/commands/auto-execution.js +120 -32
- package/src/commands/auto-requirement-management.js +9 -9
- package/src/commands/auto-status-helpers.js +6 -12
- package/src/commands/computers.js +318 -318
- package/src/commands/feature.js +123 -123
- package/src/commands/locale.js +72 -72
- package/src/commands/repo.js +163 -163
- package/src/commands/setup.js +93 -93
- package/src/commands/sync.js +287 -287
- package/src/index.js +5 -5
- package/src/utils/agent-selector.js +50 -50
- package/src/utils/asset-cleanup.js +60 -60
- package/src/utils/auth.js +6 -0
- package/src/utils/auto-mode-ansi-ui.js +237 -237
- package/src/utils/auto-mode-simple-ui.js +141 -141
- package/src/utils/copy-with-progress.js +167 -167
- package/src/utils/download-with-progress.js +84 -84
- package/src/utils/keyboard-handler.js +153 -153
- package/src/utils/kiro-installer.js +178 -178
- package/src/utils/logger.js +4 -4
- package/src/utils/persistent-header.js +114 -114
- package/src/utils/prompt-helper.js +63 -63
- package/src/utils/provider-checker/agent-runner.js +110 -31
- package/src/utils/provider-checker/ide-manager.js +37 -8
- package/src/utils/provider-checker/provider-validator.js +50 -0
- package/src/utils/provider-checker/requirements-manager.js +21 -6
- package/src/utils/status-card.js +121 -121
- package/src/utils/stdout-interceptor.js +127 -127
- package/src/utils/trui-main-handlers.js +41 -8
- package/src/utils/trui-main-menu.js +10 -3
- package/src/utils/trui-nav-agents.js +23 -33
- package/src/utils/trui-navigation.js +2 -2
- package/src/utils/user-tracking.js +299 -299
|
@@ -17,22 +17,36 @@ const expandedAgents = new Set();
|
|
|
17
17
|
*/
|
|
18
18
|
async function loadAgentsData(navigation) {
|
|
19
19
|
try {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const commandResult = await result.command.execute();
|
|
24
|
-
if (!commandResult.success || !commandResult.data) return null;
|
|
25
|
-
|
|
20
|
+
// Load agents directly without using resolver
|
|
21
|
+
const { getProviderDefinitions } = require('./provider-registry');
|
|
26
22
|
const { getProviderPreferences } = require('./provider-registry');
|
|
23
|
+
|
|
24
|
+
const definitions = getProviderDefinitions();
|
|
27
25
|
const prefs = await getProviderPreferences();
|
|
26
|
+
|
|
27
|
+
// Build agents array matching the format from list agents command
|
|
28
|
+
const agents = definitions.map(def => ({
|
|
29
|
+
id: def.id,
|
|
30
|
+
name: def.name,
|
|
31
|
+
description: def.description || '',
|
|
32
|
+
type: def.type || 'unknown',
|
|
33
|
+
enabled: prefs.enabled?.[def.id] !== false,
|
|
34
|
+
category: def.category || 'unknown'
|
|
35
|
+
}));
|
|
36
|
+
|
|
28
37
|
const enabledMap = { ...(prefs.enabled || {}) };
|
|
29
38
|
|
|
39
|
+
if (agents.length === 0) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
|
|
30
43
|
return {
|
|
31
|
-
agents
|
|
44
|
+
agents,
|
|
32
45
|
enabledMap,
|
|
33
46
|
prefs,
|
|
34
47
|
};
|
|
35
48
|
} catch (err) {
|
|
49
|
+
console.error('[loadAgentsData] Error:', err.message);
|
|
36
50
|
return null;
|
|
37
51
|
}
|
|
38
52
|
}
|
|
@@ -55,36 +69,12 @@ function buildAgentChoices(data) {
|
|
|
55
69
|
const isEnabled = data.enabledMap[agent.id] !== false;
|
|
56
70
|
const icon = isEnabled ? '🟢' : '🔴';
|
|
57
71
|
const label = agent.name || agent.type || agent.id || 'Unknown';
|
|
58
|
-
const isExpanded = expandedAgents.has(index);
|
|
59
|
-
const expandIcon = isExpanded ? '▼' : '▶';
|
|
60
72
|
|
|
73
|
+
// Simple list view without individual expand/collapse
|
|
61
74
|
choices.push({
|
|
62
|
-
name: `
|
|
75
|
+
name: ` ${icon} ${chalk.white(label)}`,
|
|
63
76
|
value: `agent:${index}`,
|
|
64
77
|
});
|
|
65
|
-
|
|
66
|
-
// If expanded, add full details inline
|
|
67
|
-
if (isExpanded) {
|
|
68
|
-
const details = [];
|
|
69
|
-
if (agent.description) {
|
|
70
|
-
details.push(chalk.gray(` Description: ${agent.description}`));
|
|
71
|
-
}
|
|
72
|
-
if (agent.id) {
|
|
73
|
-
details.push(chalk.gray(` ID: ${agent.id}`));
|
|
74
|
-
}
|
|
75
|
-
if (agent.type) {
|
|
76
|
-
details.push(chalk.gray(` Type: ${agent.type}`));
|
|
77
|
-
}
|
|
78
|
-
const status = isEnabled ? chalk.green('ENABLED') : chalk.red('DISABLED');
|
|
79
|
-
details.push(chalk.gray(` Status: ${status}`));
|
|
80
|
-
|
|
81
|
-
if (details.length > 0) {
|
|
82
|
-
details.forEach(detail => {
|
|
83
|
-
const Separator = require('inquirer').Separator;
|
|
84
|
-
choices.push(new Separator(detail));
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
78
|
});
|
|
89
79
|
|
|
90
80
|
return choices;
|
|
@@ -64,8 +64,8 @@ class TRUINavigation {
|
|
|
64
64
|
while (true) {
|
|
65
65
|
try {
|
|
66
66
|
// Build menu items
|
|
67
|
-
const items = await buildMainMenuItems(this.expandedSections);
|
|
68
|
-
|
|
67
|
+
const items = await buildMainMenuItems(this.expandedSections, this);
|
|
68
|
+
|
|
69
69
|
// Setup extra keyboard handlers
|
|
70
70
|
const extraKeys = setupMainMenuExtraKeys(items);
|
|
71
71
|
|