beepctl 0.1.0 → 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 +48 -42
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# beepctl 🐝
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/beepctl)
|
|
4
|
+
[](https://github.com/blqke/beepctl/actions/workflows/ci.yml)
|
|
2
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
|
|
|
@@ -13,13 +16,16 @@ CLI for [Beeper Desktop API](https://developers.beeper.com/desktop-api) - unifie
|
|
|
13
16
|
## Installation
|
|
14
17
|
|
|
15
18
|
```bash
|
|
19
|
+
# From npm
|
|
20
|
+
npm install -g beepctl
|
|
21
|
+
|
|
22
|
+
# Or use directly with npx
|
|
23
|
+
npx beepctl <command>
|
|
24
|
+
|
|
16
25
|
# From source
|
|
17
26
|
pnpm install
|
|
18
27
|
pnpm build
|
|
19
28
|
pnpm link --global
|
|
20
|
-
|
|
21
|
-
# Or run directly
|
|
22
|
-
pnpm dev -- <command>
|
|
23
29
|
```
|
|
24
30
|
|
|
25
31
|
## Setup
|
|
@@ -31,7 +37,7 @@ pnpm dev -- <command>
|
|
|
31
37
|
5. Configure the CLI:
|
|
32
38
|
|
|
33
39
|
```bash
|
|
34
|
-
|
|
40
|
+
beepctl auth set <your-token>
|
|
35
41
|
# Or use environment variable
|
|
36
42
|
export BEEPER_TOKEN=<your-token>
|
|
37
43
|
```
|
|
@@ -46,41 +52,41 @@ Config stored at `~/.config/beepcli/config.json` with token, base URL, and alias
|
|
|
46
52
|
|
|
47
53
|
```bash
|
|
48
54
|
# Auth management
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
55
|
+
beepctl auth show # Check auth status
|
|
56
|
+
beepctl auth set <token> # Set API token
|
|
57
|
+
beepctl auth clear # Clear stored token
|
|
52
58
|
|
|
53
59
|
# List connected accounts
|
|
54
|
-
|
|
60
|
+
beepctl accounts
|
|
55
61
|
|
|
56
62
|
# List recent chats
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
63
|
+
beepctl chats
|
|
64
|
+
beepctl chats --limit 50
|
|
65
|
+
beepctl chats --search "John"
|
|
60
66
|
|
|
61
67
|
# Search messages and chats
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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"
|
|
67
73
|
|
|
68
74
|
# Send messages
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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
|
|
72
78
|
|
|
73
79
|
# Archive/unarchive chats
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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
|
|
77
83
|
|
|
78
84
|
# Alias management (shortcuts for chat IDs)
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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
|
|
84
90
|
```
|
|
85
91
|
|
|
86
92
|
### Search Filters
|
|
@@ -89,34 +95,34 @@ Filter search results with multiple options:
|
|
|
89
95
|
|
|
90
96
|
```bash
|
|
91
97
|
# Filter by chat (supports aliases, space or comma-separated)
|
|
92
|
-
|
|
93
|
-
|
|
98
|
+
beepctl search "hello" --chat work family
|
|
99
|
+
beepctl search "test" --chat id1,id2,id3
|
|
94
100
|
|
|
95
101
|
# Filter by time range (relative dates)
|
|
96
|
-
|
|
97
|
-
|
|
102
|
+
beepctl search "meeting" --after "1d ago" --before "1h ago"
|
|
103
|
+
beepctl search "report" --after "yesterday"
|
|
98
104
|
|
|
99
105
|
# Filter by sender
|
|
100
|
-
|
|
101
|
-
|
|
106
|
+
beepctl search "question" --sender me # Only my messages
|
|
107
|
+
beepctl search "update" --sender others # Messages from others
|
|
102
108
|
|
|
103
109
|
# Filter by media type
|
|
104
|
-
|
|
105
|
-
|
|
110
|
+
beepctl search "screenshot" --media image
|
|
111
|
+
beepctl search "files" --media file link
|
|
106
112
|
|
|
107
113
|
# Filter by chat type
|
|
108
|
-
|
|
109
|
-
|
|
114
|
+
beepctl search "announcement" --chat-type group
|
|
115
|
+
beepctl search "dm" --chat-type single
|
|
110
116
|
|
|
111
117
|
# Filter by account
|
|
112
|
-
|
|
118
|
+
beepctl search "slack message" --account <account-id>
|
|
113
119
|
|
|
114
120
|
# Combine filters
|
|
115
|
-
|
|
121
|
+
beepctl search "deploy" --chat work --sender others --after "1d ago" --media link
|
|
116
122
|
|
|
117
123
|
# Include/exclude options
|
|
118
|
-
|
|
119
|
-
|
|
124
|
+
beepctl search "todo" --include-low-priority
|
|
125
|
+
beepctl search "important" --exclude-muted
|
|
120
126
|
```
|
|
121
127
|
|
|
122
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,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,
|
|
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,CA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|
|
|
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": {
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"packageManager": "pnpm@10.11.0",
|
|
44
44
|
"repository": {
|
|
45
45
|
"type": "git",
|
|
46
|
-
"url": "git+https://github.com/blqke/
|
|
46
|
+
"url": "git+https://github.com/blqke/beepctl.git"
|
|
47
47
|
},
|
|
48
48
|
"bugs": {
|
|
49
|
-
"url": "https://github.com/blqke/
|
|
49
|
+
"url": "https://github.com/blqke/beepctl/issues"
|
|
50
50
|
},
|
|
51
|
-
"homepage": "https://github.com/blqke/
|
|
51
|
+
"homepage": "https://github.com/blqke/beepctl#readme",
|
|
52
52
|
"author": "blqke",
|
|
53
53
|
"keywords": [
|
|
54
54
|
"cli",
|