@thelapyae/geniclaw 1.1.0 → 1.1.2
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/bin/geniclaw.js +25 -3
- package/package.json +3 -3
package/bin/geniclaw.js
CHANGED
|
@@ -91,11 +91,26 @@ async function showMenu() {
|
|
|
91
91
|
console.log('🦁 GeniClaw CLI TUI');
|
|
92
92
|
console.log('===================');
|
|
93
93
|
|
|
94
|
+
// Auto-Setup Check
|
|
95
|
+
const config = loadConfig();
|
|
96
|
+
const activeSession = config.activeSession || 'default';
|
|
97
|
+
const activeSkill = config.activeSkill || 'None';
|
|
98
|
+
|
|
99
|
+
if (!config.geminiApiKey) {
|
|
100
|
+
console.log('⚠️ Configuration Missing: No Gemini API Key found.');
|
|
101
|
+
const { runSetup } = await inquirer.prompt([
|
|
102
|
+
{ type: 'confirm', name: 'runSetup', message: 'Would you like to run the setup wizard now?', default: true }
|
|
103
|
+
]);
|
|
104
|
+
|
|
105
|
+
if (runSetup) {
|
|
106
|
+
await runScript(['setup']);
|
|
107
|
+
await promptContinue();
|
|
108
|
+
return showMenu();
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
94
112
|
// Show current status summary
|
|
95
113
|
try {
|
|
96
|
-
const config = loadConfig();
|
|
97
|
-
const activeSession = config.activeSession || 'default';
|
|
98
|
-
const activeSkill = config.activeSkill || 'None';
|
|
99
114
|
console.log(`Current Model: ${config.geminiModel || 'Default'}`);
|
|
100
115
|
console.log(`Active Session: 📂 ${activeSession}`);
|
|
101
116
|
console.log(`Active Skill: 🧠 ${activeSkill}`);
|
|
@@ -118,6 +133,7 @@ async function showMenu() {
|
|
|
118
133
|
{ name: '🧠 Manage Skills', value: 'skills' },
|
|
119
134
|
{ name: '🤖 Change Gemini Model', value: 'model' },
|
|
120
135
|
new inquirer.Separator(),
|
|
136
|
+
{ name: 'Run Setup Wizard', value: 'setup' },
|
|
121
137
|
{ name: 'Exit', value: 'exit' }
|
|
122
138
|
]
|
|
123
139
|
}
|
|
@@ -126,6 +142,12 @@ async function showMenu() {
|
|
|
126
142
|
if (action === 'exit') {
|
|
127
143
|
process.exit(0);
|
|
128
144
|
}
|
|
145
|
+
|
|
146
|
+
if (action === 'setup') {
|
|
147
|
+
await runScript(['setup']);
|
|
148
|
+
await promptContinue();
|
|
149
|
+
return showMenu();
|
|
150
|
+
}
|
|
129
151
|
|
|
130
152
|
if (action === 'model') {
|
|
131
153
|
await changeModel();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thelapyae/geniclaw",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Geniclaw - Gemini + Telegram CLI Assistant",
|
|
5
5
|
"main": "dist/telegram-client.js",
|
|
6
6
|
"bin": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@google/generative-ai": "^0.24.1",
|
|
25
25
|
"commander": "^14.0.3",
|
|
26
|
-
"dotenv": "^
|
|
26
|
+
"dotenv": "^17.2.4",
|
|
27
27
|
"google-auth-library": "^10.5.0",
|
|
28
28
|
"inquirer": "^13.2.2",
|
|
29
29
|
"telegraf": "^4.16.3"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/dotenv": "^6.1.1",
|
|
33
33
|
"@types/express": "^5.0.6",
|
|
34
|
-
"@types/node": "^25.2.
|
|
34
|
+
"@types/node": "^25.2.3",
|
|
35
35
|
"@types/qrcode-terminal": "^0.12.2",
|
|
36
36
|
"typescript": "^5.9.3"
|
|
37
37
|
}
|