clankie 0.2.2 → 0.2.3

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/README.md CHANGED
@@ -15,12 +15,12 @@ A minimal AI assistant that lives in Slack. Built on [pi](https://github.com/bad
15
15
 
16
16
  ### 1. Install Dependencies
17
17
 
18
- **Runtime:** [Node.js](https://nodejs.org) v22.6.0+ (for native TypeScript support)
19
- **Build:** [Bun](https://bun.sh) (for faster package installation and web-ui builds)
18
+ **Runtime:** [Node.js](https://nodejs.org) v18+
19
+ **Build:** [Bun](https://bun.sh) v1.0+ (for bundling and building web-ui)
20
20
 
21
21
  ```bash
22
22
  # Check Node version
23
- node --version # Should be >= v22.6.0
23
+ node --version # Should be >= v18.0.0
24
24
 
25
25
  # Install Bun (if not already installed)
26
26
  curl -fsSL https://bun.sh/install | bash
@@ -46,9 +46,9 @@ npm install
46
46
  npm link
47
47
  ```
48
48
 
49
- Now `clankie` is available from anywhere. If you skip `npm link`, use `node --experimental-strip-types src/cli.ts` instead of `clankie`.
49
+ Now `clankie` is available from anywhere. If you skip `npm link`, use `bun src/cli.ts` (dev) or `node dist/cli.js` (built) instead of `clankie`.
50
50
 
51
- **Note:** Bun is used for faster package installation and building the web-ui. The runtime requires Node.js v22.6.0+.
51
+ **Note:** Bun bundles TypeScript code into JavaScript that runs on Node.js v18+.
52
52
 
53
53
  ## Slack Setup
54
54
 
@@ -296,22 +296,23 @@ Logs are stored in `~/.clankie/logs/daemon.log`.
296
296
  ## Development
297
297
 
298
298
  ```bash
299
- # Run directly with Node.js (no build step, native TypeScript support)
300
- node --experimental-strip-types src/cli.ts chat
301
- node --experimental-strip-types src/cli.ts send "hello"
299
+ # Run directly with Bun (no build step)
300
+ bun src/cli.ts chat
301
+ bun src/cli.ts send "hello"
302
302
 
303
- # Or use npm scripts
304
- npm run dev -- chat
305
- npm run dev -- send "hello"
303
+ # Or use bun scripts
304
+ bun run dev chat
305
+ bun run dev send "hello"
306
+
307
+ # Build for production
308
+ bun run build # Bundles TypeScript → JavaScript for Node.js
306
309
 
307
310
  # Code quality checks
308
- npm run check # Run linter
309
- npm run check:fix # Auto-fix issues
310
- npm run format # Format code
311
+ bun run check # Run linter
312
+ bun run check:fix # Auto-fix issues
313
+ bun run format # Format code
311
314
  ```
312
315
 
313
- **Note:** Bun is used for package installation and building the web-ui. The runtime requires Node.js v22.6.0+ with native TypeScript support.
314
-
315
316
  ## Troubleshooting
316
317
 
317
318
  ### Bot doesn't respond in threads