autoai 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/index.js +34 -23
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -110,46 +110,57 @@ function generateFollowUpSuggestions(prompt, response) {
|
|
|
110
110
|
return suggestions.length > 0 ? suggestions[Math.floor(Math.random() * suggestions.length)] : null;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
+
const R = "\x1b[0m"; // Reset
|
|
114
|
+
const CY = "\x1b[36m"; // Cyan
|
|
115
|
+
const G = "\x1b[32m"; // Green
|
|
116
|
+
const Y = "\x1b[33m"; // Yellow
|
|
117
|
+
const M = "\x1b[35m"; // Magenta
|
|
118
|
+
const B = "\x1b[34m"; // Blue
|
|
119
|
+
const GR = "\x1b[90m"; // Gray
|
|
120
|
+
|
|
121
|
+
|
|
113
122
|
switch (input) {
|
|
114
123
|
case "help":
|
|
115
124
|
case "--help":
|
|
116
|
-
console.log(
|
|
117
|
-
╔════════════════════════════════════════════╗
|
|
125
|
+
console.log(`
|
|
126
|
+
${CY}╔════════════════════════════════════════════╗
|
|
118
127
|
║ 🤖 AI CLI ASSISTANT ║
|
|
119
|
-
|
|
128
|
+
╚════════════════════════════════════════════╝${R}
|
|
120
129
|
|
|
121
|
-
|
|
122
|
-
ai <text> - Chat with AI assistant
|
|
123
|
-
ai log - Show conversation history
|
|
124
|
-
ai reset - Reset memory data
|
|
125
|
-
ai service <
|
|
130
|
+
${Y}📦 USAGE:${R}
|
|
131
|
+
${G}ai${R} <text> - Chat with AI assistant
|
|
132
|
+
${G}ai${R} log - Show conversation history
|
|
133
|
+
${G}ai${R} reset - Reset memory data
|
|
134
|
+
${G}ai${R} service <msg> - Send report to developer
|
|
126
135
|
|
|
127
|
-
|
|
136
|
+
${G}✨ FEATURES:${R}
|
|
128
137
|
• Intelligent memory system
|
|
129
138
|
• Real-time system awareness
|
|
130
139
|
• No markdown responses
|
|
131
140
|
• Predictive suggestions
|
|
132
141
|
• Error reporting system
|
|
133
142
|
|
|
134
|
-
|
|
135
|
-
• Created by:
|
|
136
|
-
• Focus: CLI tools & automation
|
|
137
|
-
• Passion: Building smart assistants
|
|
143
|
+
${CY}👤 ABOUT OWNER:${R}
|
|
144
|
+
• Created by : ${Y}Junn Official${R}
|
|
145
|
+
• Focus : ${G}CLI tools & automation${R}
|
|
146
|
+
• Passion : ${G}Building smart assistants${R}
|
|
138
147
|
|
|
139
|
-
|
|
140
|
-
• Telegram:
|
|
141
|
-
• GitHub:
|
|
142
|
-
•
|
|
143
|
-
• WhatsApp:
|
|
148
|
+
${M}🌐 CONNECT:${R}
|
|
149
|
+
• Telegram : ${CY}@JunOfficial354ch2${R}
|
|
150
|
+
• GitHub : ${CY}github.com/JunHosting${R}
|
|
151
|
+
• Web : ${CY}junofficial354.blogspot.com${R}
|
|
152
|
+
• WhatsApp : ${CY}+6281556460844${R}
|
|
144
153
|
|
|
145
|
-
|
|
154
|
+
${Y}💡 TIPS:${R}
|
|
146
155
|
• Use descriptive prompts for better answers
|
|
147
|
-
• Check 'ai log' for
|
|
148
|
-
• Report bugs with 'ai service
|
|
156
|
+
• Check ${G}'ai log'${R} for history
|
|
157
|
+
• Report bugs with ${G}'ai service'${R}
|
|
149
158
|
|
|
150
|
-
|
|
151
|
-
`
|
|
159
|
+
${GR}🚀 Version: 1.0.0 | My Tools${R}
|
|
160
|
+
`);
|
|
152
161
|
break;
|
|
162
|
+
|
|
163
|
+
|
|
153
164
|
case "log":
|
|
154
165
|
showMemoryLog();
|
|
155
166
|
break;
|