@bharatpanigrahi/onw-cli 1.0.7 → 1.0.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bharatpanigrahi/onw-cli",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "A CLI tool for Claude AI",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -31,37 +31,40 @@ const wakeUpAction = async () => {
31
31
 
32
32
  console.log(chalk.green(`Welcome back, ${user.name}!\n`));
33
33
 
34
- const choice = await select({
35
- message: "Select an Option",
36
- options: [
37
- {
38
- value: "chat",
39
- label: "Chat",
40
- hint: "Simple chat with AI",
41
- },
42
- {
43
- value: "tool",
44
- label: "Tool Calling",
45
- hint: "Chat with tools (Google Search, Code Execution)",
46
- },
47
- {
48
- value: "agent",
49
- label: "Agentic Mode",
50
- hint: "Advanced AI agent (Coming soon)",
51
- },
52
- ],
53
- });
34
+ const choice = await select({
35
+ message: "Select an Option",
36
+ options: [
37
+ {
38
+ value: "chat",
39
+ label: "Chat",
40
+ hint: "Simple chat with AI",
41
+ },
42
+ {
43
+ value: "tool",
44
+ label: "Tool Calling",
45
+ hint: "Chat with tools (Google Search, Code Execution)",
46
+ },
47
+ {
48
+ value: "agent",
49
+ label: "Agentic Mode",
50
+ hint: "Advanced AI agent (Coming soon)",
51
+ },
52
+ ],
53
+ });
54
54
 
55
- switch (choice) {
56
- case "chat":
57
- await startChat("chat");
58
- break;
59
- case "tool":
60
- await startToolChat();
61
- break;
62
- case "agent":
63
- await startAgentChat();
64
- break;
55
+ switch (choice) {
56
+ case "chat":
57
+ await startChat("chat");
58
+ break;
59
+ case "tool":
60
+ await startToolChat();
61
+ break;
62
+ case "agent":
63
+ await startAgentChat();
64
+ break;
65
+ }
66
+ } catch (err) {
67
+ console.log(err);
65
68
  }
66
69
  };
67
70