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.
Files changed (2) hide show
  1. package/index.js +34 -23
  2. 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("\x1b[36m" + `
117
- ╔════════════════════════════════════════════╗
125
+ console.log(`
126
+ ${CY}╔════════════════════════════════════════════╗
118
127
  ║ 🤖 AI CLI ASSISTANT ║
119
- ╚════════════════════════════════════════════╝
128
+ ╚════════════════════════════════════════════╝${R}
120
129
 
121
- \x1b[33m📦 USAGE:\x1b[0m
122
- ai <text> - Chat with AI assistant
123
- ai log - Show conversation history
124
- ai reset - Reset memory data
125
- ai service <message> - Send report to developer
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
- \x1b[32m✨ FEATURES:\x1b[0m
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
- \x1b[36m👤 ABOUT OWNER:\x1b[0m
135
- • Created by: \x1b[33mJunn\e[0m
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
- \x1b[35m🌐 CONNECT:\x1b[0m
140
- • Telegram: \x1b[36m@JunOfficial354ch2\e[0m (Official Channel)
141
- • GitHub: \x1b[36mgithub.com/JunHosting
142
- Website: \x1b[36junofficial354.blogspot.com
143
- • WhatsApp: \x1b[36m+6281556460844
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
- \x1b[32m💡 TIPS:\x1b[0m
154
+ ${Y}💡 TIPS:${R}
146
155
  • Use descriptive prompts for better answers
147
- • Check 'ai log' for conversation history
148
- • Report bugs with 'ai service <issue>'
156
+ • Check ${G}'ai log'${R} for history
157
+ • Report bugs with ${G}'ai service'${R}
149
158
 
150
- \x1b[33m🚀 Version: 1.0.0 | My Tools\e[0m
151
- ` + "\x1b[0m");
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autoai",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Simple Auto AI CLI",
5
5
  "bin": {
6
6
  "ai": "index.js"