@stevederico/dotbot 0.21.0 → 0.22.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ 0.22
2
+
3
+ Simplify CLI, no args for interactive
4
+
1
5
  0.21
2
6
 
3
7
  Fix spinner overlap bug
package/bin/dotbot.js CHANGED
@@ -13,12 +13,12 @@ process.emit = function (event, error) {
13
13
  * dotbot CLI
14
14
  *
15
15
  * Usage:
16
- * dotbot chat "What's the weather?" One-shot query
17
- * dotbot repl Interactive chat session
18
- * dotbot serve --port 3000 Start HTTP server
19
- * dotbot --help Show help
16
+ * dotbot "What's the weather?" One-shot query
17
+ * dotbot Interactive chat
18
+ * dotbot serve --port 3000 Start HTTP server
19
+ * dotbot --help Show help
20
20
  *
21
- * Requires Node.js 22.5+ with --experimental-sqlite flag, or Node.js 23+
21
+ * Requires Node.js 22+
22
22
  */
23
23
 
24
24
  import { parseArgs } from 'node:util';
@@ -90,8 +90,8 @@ function printHelp() {
90
90
  dotbot v${VERSION} — AI agent CLI
91
91
 
92
92
  Usage:
93
- dotbot "message" Send a message (default command)
94
- dotbot repl Interactive chat session
93
+ dotbot "message" One-shot query
94
+ dotbot Interactive chat
95
95
  dotbot serve [--port N] Start HTTP server (default: ${DEFAULT_PORT})
96
96
 
97
97
  Options:
@@ -111,8 +111,7 @@ Environment Variables:
111
111
 
112
112
  Examples:
113
113
  dotbot "What's the weather in SF?"
114
- dotbot "Summarize the news" -p anthropic -m claude-sonnet-4-5
115
- dotbot repl
114
+ dotbot
116
115
  dotbot serve --port 8080
117
116
  `);
118
117
  }
@@ -501,29 +500,15 @@ async function main() {
501
500
 
502
501
  const command = args.positionals[0];
503
502
 
504
- switch (command) {
505
- case 'chat':
506
- const chatMessage = args.positionals.slice(1).join(' ');
507
- if (!chatMessage) {
508
- console.error('Usage: dotbot "your message"');
509
- process.exit(1);
510
- }
511
- await runChat(chatMessage, args);
512
- break;
513
-
514
- case 'repl':
515
- await runRepl(args);
516
- break;
517
-
518
- case 'serve':
519
- await runServer(args);
520
- break;
521
-
522
- default:
523
- // Default to chat if not a recognized command
524
- const message = args.positionals.join(' ');
503
+ if (command === 'serve') {
504
+ await runServer(args);
505
+ } else {
506
+ const message = args.positionals.join(' ');
507
+ if (message) {
525
508
  await runChat(message, args);
526
- break;
509
+ } else {
510
+ await runRepl(args);
511
+ }
527
512
  }
528
513
  }
529
514
 
package/dotbot.db CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stevederico/dotbot",
3
- "version": "0.21.0",
3
+ "version": "0.22.0",
4
4
  "description": "AI agent CLI and library for Node.js — streaming, multi-provider, tool execution, autonomous tasks",
5
5
  "type": "module",
6
6
  "main": "index.js",