@coremail/lunkr-openclaw 1.0.7 → 1.0.9
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 +43 -0
- package/bin/lunkr-cli.js +4 -4
- package/i18n/locales/en-US.json +102 -3
- package/i18n/locales/zh-CN.json +100 -3
- package/index.js +26 -22
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,6 +12,7 @@ This plugin enables OpenClaw AI agents to interact with Lunkr through:
|
|
|
12
12
|
- **Direct Messages (DM)** - Private conversations between users
|
|
13
13
|
- **Group Discussions** - Team collaboration channels
|
|
14
14
|
- **Bot Discussions** - Dedicated groups where all messages trigger the AI agent
|
|
15
|
+
- **Agent Accounts** - Independent Lunkr accounts that respond to @mentions and DMs like real users
|
|
15
16
|
|
|
16
17
|
## Requirements
|
|
17
18
|
|
|
@@ -49,6 +50,7 @@ openclaw lunkr bot-create "My Bot"
|
|
|
49
50
|
|
|
50
51
|
- **In Bot Discussions**: All messages automatically trigger the AI
|
|
51
52
|
- **In normal groups/DMs**: Use `/bot <message>` to trigger the AI
|
|
53
|
+
- **With Agent Accounts**: @mention the agent or send a DM (see [Agent Accounts](#agent-accounts))
|
|
52
54
|
|
|
53
55
|
## Bot Discussions
|
|
54
56
|
|
|
@@ -101,6 +103,43 @@ openclaw lunkr bot-delete --gid discussion-id-123
|
|
|
101
103
|
|
|
102
104
|
> **Note:** Deleting removes the discussion from both Lunkr server and OpenClaw configuration.
|
|
103
105
|
|
|
106
|
+
## Agent Accounts
|
|
107
|
+
|
|
108
|
+
Agent accounts are independent Lunkr accounts that respond to @mentions and DMs — they look and behave like real users. Each agent account has its own WebSocket connection and is bound to an `agentId` for routing.
|
|
109
|
+
|
|
110
|
+
### Add an Agent Account
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
# Login via QR code and bind to an agent
|
|
114
|
+
openclaw lunkr agent-add --agent-id my-agent
|
|
115
|
+
|
|
116
|
+
# Login via password
|
|
117
|
+
openclaw lunkr agent-add --bypwd -e agent@example.com --agent-id my-agent
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Manage Agent Accounts
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
# List all agent accounts
|
|
124
|
+
openclaw lunkr agent-list
|
|
125
|
+
|
|
126
|
+
# Remove an agent account
|
|
127
|
+
openclaw lunkr agent-remove agent@example.com
|
|
128
|
+
|
|
129
|
+
# Change the bound agent ID
|
|
130
|
+
openclaw lunkr agent-bind agent@example.com --agent-id new-agent
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### Dual Role (Standard + Agent)
|
|
134
|
+
|
|
135
|
+
The standard account can also act as an agent — it will respond to both `/bot` commands and @mentions:
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
openclaw lunkr agent-bind --self --agent-id my-agent
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
> See [docs/CONCEPTS.md](docs/CONCEPTS.md) for a detailed comparison of account types and trigger rules.
|
|
142
|
+
|
|
104
143
|
## CLI Commands
|
|
105
144
|
|
|
106
145
|
All commands support `-v, --verbose` on the parent command for verbose output (e.g., `openclaw lunkr -v login`).
|
|
@@ -117,6 +156,10 @@ All commands support `-v, --verbose` on the parent command for verbose output (e
|
|
|
117
156
|
| `openclaw lunkr tool-uninstall [name]` | Remove tool from tools.alsoAllow |
|
|
118
157
|
| `openclaw lunkr uninstall-extension` | Remove all config added by setup |
|
|
119
158
|
| `openclaw lunkr uninstall-extension --purge` | Remove config + delete session data (~/.lunkr/) |
|
|
159
|
+
| `openclaw lunkr agent-add` | Add an agent account (independent login) |
|
|
160
|
+
| `openclaw lunkr agent-list` | List all agent accounts and their status |
|
|
161
|
+
| `openclaw lunkr agent-remove <email>` | Remove an agent account |
|
|
162
|
+
| `openclaw lunkr agent-bind [email]` | Bind/unbind an agent ID to an account |
|
|
120
163
|
|
|
121
164
|
## Uninstall
|
|
122
165
|
|