beepctl 0.1.1 → 0.1.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
@@ -1,5 +1,8 @@
1
1
  # beepctl 🐝
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/beepctl.svg)](https://www.npmjs.com/package/beepctl)
4
+ [![CI](https://github.com/blqke/beepctl/actions/workflows/ci.yml/badge.svg)](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.
@@ -31,101 +34,199 @@ pnpm link --global
31
34
  2. Go to **Settings → Developers**
32
35
  3. Enable **Beeper Desktop API**
33
36
  4. Click **"+"** next to "Approved connections" to create a token
34
- 5. Configure the CLI:
37
+ 5. *(Optional)* Enable **"Allow sensitive actions"** on the token to send messages
38
+ 6. Configure the CLI:
35
39
 
36
40
  ```bash
37
- beep auth set <your-token>
41
+ beepctl auth set <your-token>
38
42
  # Or use environment variable
39
43
  export BEEPER_TOKEN=<your-token>
40
44
  ```
41
45
 
42
46
  ## Configuration
43
47
 
44
- Config stored at `~/.config/beepcli/config.json` with token, base URL, and aliases.
48
+ Config stored at `~/.config/beepctl/config.json` with token, base URL, and aliases.
45
49
 
46
50
  **Precedence:** Environment variables (`BEEPER_TOKEN`, `BEEPER_URL`) override config file.
47
51
 
48
52
  ## Usage
49
53
 
54
+ ### Auth Management
55
+
50
56
  ```bash
51
- # Auth management
52
- beep auth show # Check auth status
53
- beep auth set <token> # Set API token
54
- beep auth clear # Clear stored token
57
+ beepctl auth show # Check auth status
58
+ beepctl auth set <token> # Set API token
59
+ beepctl auth clear # Clear stored token
60
+ ```
55
61
 
56
- # List connected accounts
57
- beep accounts
62
+ ### Accounts
58
63
 
59
- # List recent chats
60
- beep chats
61
- beep chats --limit 50
62
- beep chats --search "John"
64
+ ```bash
65
+ beepctl accounts # List all connected accounts
66
+ ```
63
67
 
64
- # Search messages and chats
65
- beep search "meeting tomorrow"
66
- beep search "deadline" --limit 10
67
- beep search "deadline" --chat work --sender me --after "1d ago"
68
- beep search "photo" --media image video
69
- beep search "discussion" --chat-type group --before "yesterday"
68
+ ### Chats
70
69
 
71
- # Send messages
72
- beep send <chat-id> "Hello!"
73
- beep send myself "Quick note" # Send to yourself
74
- beep send <chat-id> "Thanks!" --reply-to <message-id> # Reply to message
70
+ ```bash
71
+ # List chats
72
+ beepctl chats list # List inbox (non-archived)
73
+ beepctl chats list --limit 50 # Limit results
74
+ beepctl chats list --search "John" # Filter by name
75
+ beepctl chats list --inbox archive # Archived chats only
76
+ beepctl chats list --inbox low-priority # Low-priority chats
77
+ beepctl chats list --inbox all # All chats (including archived)
78
+ beepctl chats list --type group # Filter by type (single/group/any)
79
+ beepctl chats list --unread-only # Unread chats only
80
+ beepctl chats list --activity-after "1d ago" # Recent activity filter
81
+
82
+ # Chat details
83
+ beepctl chats show <chat-id> # Detailed info with participants
84
+
85
+ # Create chat
86
+ beepctl chats create <account-id> <user-ids...> # Create new single/group chat
87
+ ```
75
88
 
76
- # Archive/unarchive chats
77
- beep archive <chat-id> # Archive a chat
78
- beep archive <chat-id> --unarchive # Unarchive a chat
79
- beep archive work # Use alias to archive
89
+ **Inbox filters:** `primary` (default), `archive`, `low-priority`, `all`
80
90
 
81
- # Alias management (shortcuts for chat IDs)
82
- beep alias list # List all aliases
83
- beep alias add work <chat-id> # Create alias
84
- beep alias show work # Show alias value
85
- beep alias remove work # Remove alias
86
- beep send work "Using alias!" # Use alias in commands
91
+ ### Messages
92
+
93
+ Browse messages in a specific chat:
94
+
95
+ ```bash
96
+ beepctl messages <chat-id> # List recent messages
97
+ beepctl messages <chat-id> --limit 20 # Limit results
98
+ beepctl messages <chat-id> --after "1d ago" # Messages after a time
99
+ beepctl messages <chat-id> --before "1h ago" # Messages before a time
100
+ beepctl messages work # Use alias
87
101
  ```
88
102
 
89
- ### Search Filters
103
+ ### Search
90
104
 
91
- Filter search results with multiple options:
105
+ Search messages across all chats:
106
+
107
+ ```bash
108
+ beepctl search "meeting tomorrow"
109
+ beepctl search "deadline" --limit 10
110
+ beepctl search "deadline" --chat work --sender me --after "1d ago"
111
+ beepctl search "photo" --media image video
112
+ beepctl search "discussion" --chat-type group --before "yesterday"
113
+ ```
114
+
115
+ #### Search Filters
92
116
 
93
117
  ```bash
94
118
  # Filter by chat (supports aliases, space or comma-separated)
95
- beep search "hello" --chat work family
96
- beep search "test" --chat id1,id2,id3
119
+ beepctl search "hello" --chat work family
120
+ beepctl search "test" --chat id1,id2,id3
97
121
 
98
122
  # Filter by time range (relative dates)
99
- beep search "meeting" --after "1d ago" --before "1h ago"
100
- beep search "report" --after "yesterday"
123
+ beepctl search "meeting" --after "1d ago" --before "1h ago"
124
+ beepctl search "report" --after "yesterday"
101
125
 
102
126
  # Filter by sender
103
- beep search "question" --sender me # Only my messages
104
- beep search "update" --sender others # Messages from others
127
+ beepctl search "question" --sender me # Only my messages
128
+ beepctl search "update" --sender others # Messages from others
105
129
 
106
130
  # Filter by media type
107
- beep search "screenshot" --media image
108
- beep search "files" --media file link
131
+ beepctl search "screenshot" --media image
132
+ beepctl search "files" --media file link
109
133
 
110
134
  # Filter by chat type
111
- beep search "announcement" --chat-type group
112
- beep search "dm" --chat-type single
135
+ beepctl search "announcement" --chat-type group
136
+ beepctl search "dm" --chat-type single
113
137
 
114
138
  # Filter by account
115
- beep search "slack message" --account <account-id>
139
+ beepctl search "slack message" --account <account-id>
116
140
 
117
141
  # Combine filters
118
- beep search "deploy" --chat work --sender others --after "1d ago" --media link
142
+ beepctl search "deploy" --chat work --sender others --after "1d ago" --media link
119
143
 
120
144
  # Include/exclude options
121
- beep search "todo" --include-low-priority
122
- beep search "important" --exclude-muted
145
+ beepctl search "todo" --include-low-priority
146
+ beepctl search "important" --exclude-muted
123
147
  ```
124
148
 
125
149
  **Time formats:** `1h ago`, `2d ago`, `3w ago`, `1mo ago`, `yesterday`, `today`
126
150
 
127
151
  **Media types:** `any`, `video`, `image`, `link`, `file`
128
152
 
153
+ ### Send Messages
154
+
155
+ ```bash
156
+ beepctl send <chat-id> "Hello!" # Send message
157
+ beepctl send myself "Quick note" # Send to yourself
158
+ beepctl send <chat-id> "Thanks!" --reply-to <msg-id> # Reply to message
159
+ beepctl send <chat-id> "msg" --quiet # No confirmation output
160
+ ```
161
+
162
+ ### Focus (Bring to Foreground)
163
+
164
+ Bring Beeper Desktop to foreground and optionally open a chat:
165
+
166
+ ```bash
167
+ beepctl focus # Bring Beeper to foreground
168
+ beepctl focus <chat-id> # Open a specific chat
169
+ beepctl focus work # Use alias
170
+ beepctl focus <chat-id> -m <msg-id> # Jump to specific message
171
+ beepctl focus <chat-id> -d "draft text" # Pre-fill draft text
172
+ beepctl focus <chat-id> -a /path/to/file # Pre-fill draft attachment
173
+ ```
174
+
175
+ **Tip:** Use focus with `-a` to send media (images, files) since `send` only supports text:
176
+
177
+ ```bash
178
+ beepctl focus <chat-id> -a /path/to/image.png -d "Check this out!"
179
+ # Then press Enter in Beeper to send
180
+ ```
181
+
182
+ ### Archive
183
+
184
+ ```bash
185
+ beepctl archive <chat-id> # Archive a chat
186
+ beepctl archive <chat-id> --unarchive # Unarchive a chat
187
+ beepctl archive work # Use alias
188
+ beepctl archive <chat-id> --quiet # No confirmation message
189
+ ```
190
+
191
+ ### Aliases
192
+
193
+ Create shortcuts for frequently used chat IDs:
194
+
195
+ ```bash
196
+ beepctl alias list # List all aliases
197
+ beepctl alias add work <chat-id> # Create alias
198
+ beepctl alias show work # Show alias value
199
+ beepctl alias remove work # Remove alias
200
+ beepctl send work "Using alias!" # Use alias in any command
201
+ ```
202
+
203
+ ### Contacts
204
+
205
+ ```bash
206
+ beepctl contacts search <account-id> <query> # Search contacts on an account
207
+ ```
208
+
209
+ ### Download Attachments
210
+
211
+ Download message attachments (mxc:// URLs):
212
+
213
+ ```bash
214
+ beepctl download <mxc-url> # Download to current directory
215
+ beepctl download <mxc-url> -o /path # Save to specific path
216
+ ```
217
+
218
+ ### Reminders
219
+
220
+ Set reminders to follow up on chats:
221
+
222
+ ```bash
223
+ beepctl reminders set <chat-id> 30m # Remind in 30 minutes
224
+ beepctl reminders set <chat-id> 1h # Remind in 1 hour
225
+ beepctl reminders set <chat-id> 2d # Remind in 2 days
226
+ beepctl reminders set <chat-id> tomorrow # Remind tomorrow
227
+ beepctl reminders clear <chat-id> # Clear reminder
228
+ ```
229
+
129
230
  ## Development
130
231
 
131
232
  ```bash
@@ -159,11 +260,16 @@ src/
159
260
  │ ├── alias.ts # Alias management
160
261
  │ ├── archive.ts # Archive/unarchive chats
161
262
  │ ├── chats.ts # Browse chats
263
+ │ ├── contacts.ts # Search contacts
264
+ │ ├── download.ts # Download attachments
265
+ │ ├── focus.ts # Bring Beeper to foreground
266
+ │ ├── messages.ts # List messages in a chat
267
+ │ ├── reminders.ts # Chat reminders
162
268
  │ ├── search.ts # Search messages/chats
163
269
  │ └── send.ts # Send messages
164
270
  └── lib/ # Core logic
165
271
  ├── client.ts # Beeper API client wrapper
166
- ├── config.ts # Config file management (~/.config/beepcli/)
272
+ ├── config.ts # Config file management (~/.config/beepctl/)
167
273
  ├── aliases.ts # Alias resolution utilities
168
274
  └── dates.ts # Relative date parsing
169
275
  ```
@@ -182,7 +288,7 @@ src/
182
288
 
183
289
  Inspired by [beeper-cli](https://github.com/krausefx/beeper-cli) by [@krausefx](https://github.com/krausefx).
184
290
 
185
- The author uses beepcli alongside [clawdbot](https://github.com/blqke/clawdbot).
291
+ The author uses beepctl alongside [clawdbot](https://github.com/blqke/clawdbot).
186
292
 
187
293
  ## License
188
294
 
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("beep")
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,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,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,MAAM,CAAC;KACZ,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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;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"}
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/lib/config.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,YAAY;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC;AAKD,wBAAgB,SAAS,IAAI,YAAY,CAkBxC;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAMrD;AAED,wBAAgB,aAAa,IAAI,MAAM,CAEtC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/lib/config.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,YAAY;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC;AAyCD,wBAAgB,SAAS,IAAI,YAAY,CAqBxC;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAMrD;AAED,wBAAgB,aAAa,IAAI,MAAM,CAEtC"}
@@ -1,14 +1,47 @@
1
- import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
1
+ import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
2
2
  import { homedir } from "node:os";
3
3
  import { join } from "node:path";
4
- const CONFIG_DIR = join(homedir(), ".config", "beepcli");
4
+ const CONFIG_DIR = join(homedir(), ".config", "beepctl");
5
5
  const CONFIG_FILE = join(CONFIG_DIR, "config.json");
6
+ // Legacy config path (before rename to beepctl)
7
+ const LEGACY_CONFIG_DIR = join(homedir(), ".config", "beepcli");
8
+ const LEGACY_CONFIG_FILE = join(LEGACY_CONFIG_DIR, "config.json");
9
+ let migrationDone = false;
10
+ /**
11
+ * Migrate config from legacy ~/.config/beepcli/ to ~/.config/beepctl/
12
+ * Runs once per process, copies config and removes legacy directory.
13
+ */
14
+ function migrateIfNeeded() {
15
+ if (migrationDone)
16
+ return;
17
+ migrationDone = true;
18
+ // Skip if new config already exists or legacy doesn't exist
19
+ if (existsSync(CONFIG_FILE) || !existsSync(LEGACY_CONFIG_FILE))
20
+ return;
21
+ try {
22
+ const legacyContent = readFileSync(LEGACY_CONFIG_FILE, "utf-8");
23
+ const config = JSON.parse(legacyContent);
24
+ // Create new config directory and save
25
+ if (!existsSync(CONFIG_DIR)) {
26
+ mkdirSync(CONFIG_DIR, { recursive: true });
27
+ }
28
+ writeFileSync(CONFIG_FILE, JSON.stringify(config, null, 2));
29
+ // Remove legacy directory
30
+ rmSync(LEGACY_CONFIG_DIR, { recursive: true });
31
+ console.error("Migrated config from ~/.config/beepcli/ to ~/.config/beepctl/");
32
+ }
33
+ catch {
34
+ // Silent fail - user can manually migrate if needed
35
+ }
36
+ }
6
37
  export function getConfig() {
7
38
  const envToken = process.env.BEEPER_TOKEN;
8
39
  const envUrl = process.env.BEEPER_URL;
9
40
  if (envToken || envUrl) {
10
41
  return { token: envToken, baseUrl: envUrl };
11
42
  }
43
+ // Migrate legacy config if needed
44
+ migrateIfNeeded();
12
45
  if (existsSync(CONFIG_FILE)) {
13
46
  try {
14
47
  const content = readFileSync(CONFIG_FILE, "utf-8");
@@ -1 +1 @@
1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C5B,OAAO,WAAW,CAAC;AACpB,CAAC"}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "beepctl",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
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
- "beep": "dist/cli.js"
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 beep",
24
+ "binary": "bun build --compile src/cli.ts --outfile beepctl",
25
25
  "typecheck": "tsc --noEmit"
26
26
  },
27
27
  "dependencies": {