@cmdop/bot 2026.2.26 → 2026.3.1
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 +10 -3
- package/dist/index.cjs +380 -171
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +100 -63
- package/dist/index.d.ts +100 -63
- package/dist/index.js +380 -171
- package/dist/index.js.map +1 -1
- package/examples/discord.ts +1 -1
- package/examples/multi-channel.ts +1 -1
- package/examples/slack.ts +1 -1
- package/examples/telegram.ts +1 -1
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @cmdop/bot
|
|
2
2
|
|
|
3
|
-
Multi-channel bot framework for [CMDOP](https://cmdop.com) — run `/exec`, `/agent`, and `/files` commands from Telegram, Discord, and Slack.
|
|
3
|
+
Multi-channel bot framework for [CMDOP](https://cmdop.com) — run `/exec`, `/agent`, `/skills`, and `/files` commands from Telegram, Discord, and Slack.
|
|
4
4
|
|
|
5
5
|
```
|
|
6
6
|
pnpm add @cmdop/bot
|
|
@@ -19,7 +19,7 @@ await hub.addTelegram({ token: process.env.TELEGRAM_TOKEN });
|
|
|
19
19
|
await hub.start();
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
That's it. Your bot now responds to `/exec`, `/agent`, `/files`, and `/help`.
|
|
22
|
+
That's it. Your bot now responds to `/exec`, `/agent`, `/skills`, `/files`, and `/help`.
|
|
23
23
|
|
|
24
24
|
---
|
|
25
25
|
|
|
@@ -76,6 +76,7 @@ Requires Socket Mode enabled in your Slack app settings. See [examples/slack.ts]
|
|
|
76
76
|
|---------|-------|-------------------|
|
|
77
77
|
| `/exec` | `/exec <shell command>` | `EXECUTE` |
|
|
78
78
|
| `/agent` | `/agent <prompt>` | `EXECUTE` |
|
|
79
|
+
| `/skills` | `/skills list \| show <name> \| run <name> <prompt>` | `EXECUTE` |
|
|
79
80
|
| `/files` | `/files [read] <path>` | `READ` |
|
|
80
81
|
| `/help` | `/help` | none |
|
|
81
82
|
|
|
@@ -102,7 +103,7 @@ Permission levels (ordered, each includes all levels below):
|
|
|
102
103
|
|-------|--------|
|
|
103
104
|
| `NONE` | No commands (only `/help`) |
|
|
104
105
|
| `READ` | `/files` |
|
|
105
|
-
| `EXECUTE` | `/exec`, `/agent` |
|
|
106
|
+
| `EXECUTE` | `/exec`, `/agent`, `/skills` |
|
|
106
107
|
| `FILES` | _(reserved for future write operations)_ |
|
|
107
108
|
| `ADMIN` | All commands |
|
|
108
109
|
|
|
@@ -279,6 +280,12 @@ All errors extend `BotError` and expose a `code` string:
|
|
|
279
280
|
- `@cmdop/node` (peer dependency, installed automatically)
|
|
280
281
|
- Platform libraries are **optional peer dependencies** — install only what you use
|
|
281
282
|
|
|
283
|
+
## Links
|
|
284
|
+
|
|
285
|
+
- [Homepage](https://cmdop.com/sdk/python/bot)
|
|
286
|
+
- [Documentation](https://cmdop.com/docs/sdk/node/bot)
|
|
287
|
+
- [npm](https://www.npmjs.com/package/@cmdop/bot)
|
|
288
|
+
|
|
282
289
|
## License
|
|
283
290
|
|
|
284
291
|
MIT
|