beepctl 0.1.1 → 0.1.2
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 +41 -38
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# beepctl 🐝
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/beepctl)
|
|
4
|
+
[](https://github.com/blqke/beepctl/actions/workflows/ci.yml)
|
|
5
|
+
|
|
3
6
|
CLI for [Beeper Desktop API](https://developers.beeper.com/desktop-api) - unified messaging from your terminal. Give your AI agents the power to chat across all your messaging platforms.
|
|
4
7
|
|
|
5
8
|
> **Disclaimer:** This is an unofficial project. Not affiliated with, endorsed by, or sponsored by Beeper. The Beeper Desktop API is still in beta — expect breaking changes.
|
|
@@ -34,7 +37,7 @@ pnpm link --global
|
|
|
34
37
|
5. Configure the CLI:
|
|
35
38
|
|
|
36
39
|
```bash
|
|
37
|
-
|
|
40
|
+
beepctl auth set <your-token>
|
|
38
41
|
# Or use environment variable
|
|
39
42
|
export BEEPER_TOKEN=<your-token>
|
|
40
43
|
```
|
|
@@ -49,41 +52,41 @@ Config stored at `~/.config/beepcli/config.json` with token, base URL, and alias
|
|
|
49
52
|
|
|
50
53
|
```bash
|
|
51
54
|
# Auth management
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
+
beepctl auth show # Check auth status
|
|
56
|
+
beepctl auth set <token> # Set API token
|
|
57
|
+
beepctl auth clear # Clear stored token
|
|
55
58
|
|
|
56
59
|
# List connected accounts
|
|
57
|
-
|
|
60
|
+
beepctl accounts
|
|
58
61
|
|
|
59
62
|
# List recent chats
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
+
beepctl chats
|
|
64
|
+
beepctl chats --limit 50
|
|
65
|
+
beepctl chats --search "John"
|
|
63
66
|
|
|
64
67
|
# Search messages and chats
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
beepctl search "meeting tomorrow"
|
|
69
|
+
beepctl search "deadline" --limit 10
|
|
70
|
+
beepctl search "deadline" --chat work --sender me --after "1d ago"
|
|
71
|
+
beepctl search "photo" --media image video
|
|
72
|
+
beepctl search "discussion" --chat-type group --before "yesterday"
|
|
70
73
|
|
|
71
74
|
# Send messages
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
+
beepctl send <chat-id> "Hello!"
|
|
76
|
+
beepctl send myself "Quick note" # Send to yourself
|
|
77
|
+
beepctl send <chat-id> "Thanks!" --reply-to <message-id> # Reply to message
|
|
75
78
|
|
|
76
79
|
# Archive/unarchive chats
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
+
beepctl archive <chat-id> # Archive a chat
|
|
81
|
+
beepctl archive <chat-id> --unarchive # Unarchive a chat
|
|
82
|
+
beepctl archive work # Use alias to archive
|
|
80
83
|
|
|
81
84
|
# Alias management (shortcuts for chat IDs)
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
beepctl alias list # List all aliases
|
|
86
|
+
beepctl alias add work <chat-id> # Create alias
|
|
87
|
+
beepctl alias show work # Show alias value
|
|
88
|
+
beepctl alias remove work # Remove alias
|
|
89
|
+
beepctl send work "Using alias!" # Use alias in commands
|
|
87
90
|
```
|
|
88
91
|
|
|
89
92
|
### Search Filters
|
|
@@ -92,34 +95,34 @@ Filter search results with multiple options:
|
|
|
92
95
|
|
|
93
96
|
```bash
|
|
94
97
|
# Filter by chat (supports aliases, space or comma-separated)
|
|
95
|
-
|
|
96
|
-
|
|
98
|
+
beepctl search "hello" --chat work family
|
|
99
|
+
beepctl search "test" --chat id1,id2,id3
|
|
97
100
|
|
|
98
101
|
# Filter by time range (relative dates)
|
|
99
|
-
|
|
100
|
-
|
|
102
|
+
beepctl search "meeting" --after "1d ago" --before "1h ago"
|
|
103
|
+
beepctl search "report" --after "yesterday"
|
|
101
104
|
|
|
102
105
|
# Filter by sender
|
|
103
|
-
|
|
104
|
-
|
|
106
|
+
beepctl search "question" --sender me # Only my messages
|
|
107
|
+
beepctl search "update" --sender others # Messages from others
|
|
105
108
|
|
|
106
109
|
# Filter by media type
|
|
107
|
-
|
|
108
|
-
|
|
110
|
+
beepctl search "screenshot" --media image
|
|
111
|
+
beepctl search "files" --media file link
|
|
109
112
|
|
|
110
113
|
# Filter by chat type
|
|
111
|
-
|
|
112
|
-
|
|
114
|
+
beepctl search "announcement" --chat-type group
|
|
115
|
+
beepctl search "dm" --chat-type single
|
|
113
116
|
|
|
114
117
|
# Filter by account
|
|
115
|
-
|
|
118
|
+
beepctl search "slack message" --account <account-id>
|
|
116
119
|
|
|
117
120
|
# Combine filters
|
|
118
|
-
|
|
121
|
+
beepctl search "deploy" --chat work --sender others --after "1d ago" --media link
|
|
119
122
|
|
|
120
123
|
# Include/exclude options
|
|
121
|
-
|
|
122
|
-
|
|
124
|
+
beepctl search "todo" --include-low-priority
|
|
125
|
+
beepctl search "important" --exclude-muted
|
|
123
126
|
```
|
|
124
127
|
|
|
125
128
|
**Time formats:** `1h ago`, `2d ago`, `3w ago`, `1mo ago`, `yesterday`, `today`
|
package/dist/cli.js
CHANGED
|
@@ -15,7 +15,7 @@ import { searchCommand } from "./commands/search.js";
|
|
|
15
15
|
import { sendCommand } from "./commands/send.js";
|
|
16
16
|
import { version } from "./version.js";
|
|
17
17
|
program
|
|
18
|
-
.name("
|
|
18
|
+
.name("beepctl")
|
|
19
19
|
.description(kleur.cyan("CLI for Beeper Desktop API - unified messaging from terminal"))
|
|
20
20
|
.version(version)
|
|
21
21
|
.addCommand(authCommand)
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,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,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,OAAO;KACL,IAAI,CAAC,SAAS,CAAC;KACf,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,8DAA8D,CAAC,CAAC;KACvF,OAAO,CAAC,OAAO,CAAC;KAChB,UAAU,CAAC,WAAW,CAAC;KACvB,UAAU,CAAC,YAAY,CAAC;KACxB,UAAU,CAAC,eAAe,CAAC;KAC3B,UAAU,CAAC,cAAc,CAAC;KAC1B,UAAU,CAAC,YAAY,CAAC;KACxB,UAAU,CAAC,eAAe,CAAC;KAC3B,UAAU,CAAC,eAAe,CAAC;KAC3B,UAAU,CAAC,YAAY,CAAC;KACxB,UAAU,CAAC,eAAe,CAAC;KAC3B,UAAU,CAAC,gBAAgB,CAAC;KAC5B,UAAU,CAAC,WAAW,CAAC;KACvB,UAAU,CAAC,aAAa,CAAC;KACzB,KAAK,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "beepctl",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "CLI for Beeper Desktop API - unified messaging from terminal",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"bin": {
|
|
9
|
-
"
|
|
9
|
+
"beepctl": "dist/cli.js"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
12
|
"dist"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"lint:fix": "biome check --write . && oxlint --fix",
|
|
22
22
|
"lint:biome": "biome check .",
|
|
23
23
|
"lint:oxlint": "oxlint",
|
|
24
|
-
"binary": "bun build --compile src/cli.ts --outfile
|
|
24
|
+
"binary": "bun build --compile src/cli.ts --outfile beepctl",
|
|
25
25
|
"typecheck": "tsc --noEmit"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|