clankie 0.2.1 → 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.
Files changed (41) hide show
  1. package/README.md +29 -13
  2. package/dist/cli.js +301851 -0
  3. package/dist/koffi-216xhpes.node +0 -0
  4. package/dist/koffi-2erktc37.node +0 -0
  5. package/dist/koffi-2rrez93a.node +0 -0
  6. package/dist/koffi-2wv0r22g.node +0 -0
  7. package/dist/koffi-3kae4xj3.node +0 -0
  8. package/dist/koffi-3rkr2zqv.node +0 -0
  9. package/dist/koffi-abxfktv9.node +0 -0
  10. package/dist/koffi-c67c0c5b.node +0 -0
  11. package/dist/koffi-cnf0q0dx.node +0 -0
  12. package/dist/koffi-df38sqz5.node +0 -0
  13. package/dist/koffi-gfbqb3a0.node +0 -0
  14. package/dist/koffi-kjemmmem.node +0 -0
  15. package/dist/koffi-kkrfq9yv.node +0 -0
  16. package/dist/koffi-mzaqwwqy.node +0 -0
  17. package/dist/koffi-q49fgkeq.node +0 -0
  18. package/dist/koffi-q54bk8bf.node +0 -0
  19. package/dist/koffi-x1790w0j.node +0 -0
  20. package/dist/koffi-yxvjwcj6.node +0 -0
  21. package/package.json +17 -7
  22. package/web-ui-dist/_shell.html +2 -2
  23. package/web-ui-dist/assets/{card-kSKmECr1.js → card-BUP-xovx.js} +1 -1
  24. package/web-ui-dist/assets/extensions-DC620Nmx.js +1 -0
  25. package/web-ui-dist/assets/{index-CXJ3n5rE.js → index-DurjG9O_.js} +1 -1
  26. package/web-ui-dist/assets/{loader-circle-C5ib508E.js → loader-circle-DbOtKfCA.js} +1 -1
  27. package/web-ui-dist/assets/{main-cBOaKYCP.js → main-B2sRcuyZ.js} +8 -8
  28. package/web-ui-dist/assets/{sessions._sessionId-BIeINoSQ.js → sessions._sessionId-BJazw9EJ.js} +1 -1
  29. package/web-ui-dist/assets/{settings-CO37Obvo.js → settings-Bv8oeIho.js} +1 -1
  30. package/web-ui-dist/assets/styles-D2oHO1JL.css +1 -0
  31. package/src/agent.ts +0 -107
  32. package/src/channels/channel.ts +0 -57
  33. package/src/channels/slack.ts +0 -374
  34. package/src/channels/web.ts +0 -1362
  35. package/src/cli.ts +0 -505
  36. package/src/config.ts +0 -257
  37. package/src/daemon.ts +0 -380
  38. package/src/service.ts +0 -372
  39. package/src/sessions.ts +0 -251
  40. package/web-ui-dist/assets/extensions-CFPfugfg.js +0 -1
  41. package/web-ui-dist/assets/styles-BQfA8H-l.css +0 -1
package/README.md CHANGED
@@ -15,31 +15,40 @@ 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
- Requires [Bun](https://bun.sh):
18
+ **Runtime:** [Node.js](https://nodejs.org) v18+
19
+ **Build:** [Bun](https://bun.sh) v1.0+ (for bundling and building web-ui)
19
20
 
20
21
  ```bash
21
- # macOS/Linux
22
- curl -fsSL https://bun.sh/install | bash
22
+ # Check Node version
23
+ node --version # Should be >= v18.0.0
23
24
 
24
- # Verify
25
+ # Install Bun (if not already installed)
26
+ curl -fsSL https://bun.sh/install | bash
25
27
  bun --version
26
28
  ```
27
29
 
28
- ### 2. Clone and Install
30
+ **Don't have Node.js?** Install via [mise](https://mise.jdx.dev) (recommended) or [nvm](https://github.com/nvm-sh/nvm).
31
+
32
+ ### 2. Quick Install via npm
29
33
 
30
34
  ```bash
31
- git clone https://github.com/thiagovarela/clankie
32
- cd clankie
33
- bun install
35
+ npm install -g clankie
34
36
  ```
35
37
 
36
- ### 3. Link Globally (Optional)
38
+ This installs clankie globally. Now `clankie` is available from anywhere.
39
+
40
+ ### 3. Or: Install from Source
37
41
 
38
42
  ```bash
39
- bun link
43
+ git clone https://github.com/thiagovarela/clankie
44
+ cd clankie
45
+ npm install
46
+ npm link
40
47
  ```
41
48
 
42
- Now `clankie` is available from anywhere. If you skip this, use `bun run 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
+
51
+ **Note:** Bun bundles TypeScript code into JavaScript that runs on Node.js v18+.
43
52
 
44
53
  ## Slack Setup
45
54
 
@@ -288,8 +297,15 @@ Logs are stored in `~/.clankie/logs/daemon.log`.
288
297
 
289
298
  ```bash
290
299
  # Run directly with Bun (no build step)
291
- bun run src/cli.ts chat
292
- bun run src/cli.ts send "hello"
300
+ bun src/cli.ts chat
301
+ bun src/cli.ts send "hello"
302
+
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
293
309
 
294
310
  # Code quality checks
295
311
  bun run check # Run linter