open-agents-ai 0.187.582 → 0.187.584
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 +50 -3
- package/dist/index.js +1391 -187
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3365,7 +3365,7 @@ All settings commands accept `--local` to save to project `.oa/settings.json` in
|
|
|
3365
3365
|
|
|
3366
3366
|
`/platforms menu` opens a keyboard-driven connectivity surface for platform status and onboarding. The same surface is available through `/gateway menu`.
|
|
3367
3367
|
|
|
3368
|
-
Supported adapter IDs are `telegram`, `discord`, `slack`, `matrix`, and `webhook`. Telegram is wired into the existing bridge controls, so the menu can save the bot token, save the admin user ID, start the bridge, stop it, and show status. The other platform adapters expose the shared connector configuration surface: enable/disable, token environment variable, base URL or webhook URL, default target/channel/room, polling vs webhook mode, redacted config display, and status/health reporting.
|
|
3368
|
+
Supported adapter IDs are `telegram`, `discord`, `slack`, `matrix`, and `webhook`. Telegram is wired into the existing bridge controls, so the menu can save the bot token, save the admin user ID, set the interaction mode, start the bridge, stop it, and show status. The other platform adapters expose the shared connector configuration surface: enable/disable, token environment variable, base URL or webhook URL, default target/channel/room, polling vs webhook mode, redacted config display, and status/health reporting.
|
|
3369
3369
|
|
|
3370
3370
|
Use environment variables for credentials:
|
|
3371
3371
|
|
|
@@ -3416,7 +3416,7 @@ The steering sub-agent uses the same model and backend as the main agent with `m
|
|
|
3416
3416
|
|
|
3417
3417
|
<div align="right"><a href="#top">back to top</a></div>
|
|
3418
3418
|
|
|
3419
|
-
Connect the agent to a Telegram bot.
|
|
3419
|
+
Connect the agent to a Telegram bot. Telegram can run in auto, chat, or action mode: conversational messages get rapid streamed replies in chat mode, while codebase/file/run requests use dedicated action sub-agents that are visible in the terminal waterfall alongside other agent activity.
|
|
3420
3420
|
|
|
3421
3421
|
```bash
|
|
3422
3422
|
/telegram --key <token> # Save bot token (persisted to .oa/settings.json)
|
|
@@ -3424,9 +3424,56 @@ Connect the agent to a Telegram bot. Each incoming message spawns a dedicated su
|
|
|
3424
3424
|
/telegram # Toggle bridge on/off (uses saved key)
|
|
3425
3425
|
/telegram status # Show connection status + active sub-agents
|
|
3426
3426
|
/telegram stop # Disconnect and kill all sub-agents
|
|
3427
|
+
/telegram mode auto|chat|action # Set interaction routing profile
|
|
3428
|
+
/telegram auth # Show a one-time TUI-only admin auth code
|
|
3429
|
+
/telegram auth cancel # Cancel the pending admin auth code
|
|
3430
|
+
/telegram bot <username> <text> # Send bot-to-bot message by @username
|
|
3431
|
+
/telegram poll <chat> <question> | <a> [| <b>] # Send a poll
|
|
3432
|
+
/telegram live-photo <chat> <live> <photo> [caption] # Send a live photo
|
|
3433
|
+
/telegram draft <chat_id> <draft_id> [text] # Set or clear a message draft
|
|
3434
|
+
/telegram admins <chat> [--bots] # List chat administrators
|
|
3435
|
+
/telegram personal <user_id> <limit> # Fetch profile personal chat messages
|
|
3436
|
+
/telegram access get <managed_bot_user_id> # Show managed-bot access restrictions
|
|
3437
|
+
/telegram access set <managed_bot_user_id> <restricted|open> [user_ids] # Configure access
|
|
3438
|
+
/telegram delete-reaction <chat> <msg> --user <id> # Delete a message reaction
|
|
3439
|
+
/telegram delete-reactions <chat> --user <id> # Delete recent reactions
|
|
3427
3440
|
```
|
|
3428
3441
|
|
|
3429
|
-
The bot token
|
|
3442
|
+
The bot token, admin ID, and interaction mode are persisted to settings, so you only need to set them once. After that, bare `/telegram` toggles the bridge on and off like a service watchdog.
|
|
3443
|
+
|
|
3444
|
+
### Telegram Interaction Modes
|
|
3445
|
+
|
|
3446
|
+
Use `/telegram mode auto|chat|action` to control how inbound Telegram messages are routed:
|
|
3447
|
+
|
|
3448
|
+
- **auto** — short greetings, quick questions, playful messages, and conversational turns use fast streamed chat replies; explicit codebase/file/command/run/test requests use action sub-agents.
|
|
3449
|
+
- **chat** — every non-command message gets a direct quick-chat completion with no tool loop. This is best for rapid back-and-forth conversation.
|
|
3450
|
+
- **action** — every non-command message runs through the Telegram sub-agent path with the configured tool policy.
|
|
3451
|
+
|
|
3452
|
+
Telegram quick-chat views and action sub-agent views both appear as blue plane-labeled items in the systems header. Clicking one swaps the main scrollable window to that Telegram-only content buffer; press Esc to return to the primary view.
|
|
3453
|
+
|
|
3454
|
+
### Telegram Admin Authentication
|
|
3455
|
+
|
|
3456
|
+
Run `/telegram auth` in the TUI to generate a one-time six-digit code. The code is rendered only in the terminal and is not inserted into agent prompts or Telegram sub-agent context. From the Telegram account that should become admin, send:
|
|
3457
|
+
|
|
3458
|
+
```text
|
|
3459
|
+
/auth <code>
|
|
3460
|
+
```
|
|
3461
|
+
|
|
3462
|
+
On success, that Telegram user ID is saved as the admin user and future private-DM slash commands are passed through the same command handler as the local TUI. `/telegram auth cancel` invalidates a pending code.
|
|
3463
|
+
|
|
3464
|
+
### Bot API 10.0 Features
|
|
3465
|
+
|
|
3466
|
+
The Telegram bridge handles modern Bot API traffic directly:
|
|
3467
|
+
|
|
3468
|
+
- **Guest Mode** — inbound `guest_message` updates are normalized into regular agent work and answered through `answerGuestQuery`, so users can interact from profile-surface guest chats before a normal bot DM exists.
|
|
3469
|
+
- **Command menu registration** — when the bridge starts, OA registers the local slash-command surface with Telegram via `setMyCommands`; Telegram-safe names such as `/full_send_bless` are mapped back to canonical TUI commands like `/full-send-bless` before execution.
|
|
3470
|
+
- **Bot-to-bot sends** — `/telegram bot <username> <text>` targets another bot by username using Telegram's supported bot-to-bot message subset.
|
|
3471
|
+
- **Managed bot access** — `/telegram access get|set` reads and configures managed-bot access restrictions by managed bot user ID.
|
|
3472
|
+
- **Polls and live photos** — incoming polls, poll media summaries, option media, country/member limits, and live photos are captured as first-class Telegram message context; `/telegram poll` and `/telegram live-photo` send the matching Bot API payloads.
|
|
3473
|
+
- **Direct-message channels** — direct-message channel/topic metadata is preserved on normalized Telegram messages for routing and future adapter logic.
|
|
3474
|
+
- **Drafts and profile chat reads** — `/telegram draft` can set or clear message drafts, and `/telegram personal <user_id> <limit>` fetches recent messages from a user's profile personal chat.
|
|
3475
|
+
- **Reactions/admin helpers** — `/telegram delete-reaction` removes a message reaction, `/telegram delete-reactions` removes recent reactions by a user/chat, and `/telegram admins <chat> [--bots]` can include bot administrators.
|
|
3476
|
+
- **TUI Telegram visibility** — Telegram quick-chat and action conversations register as blue plane-labeled views in the systems panel; clicking a view swaps the main scrollable window to that Telegram-only buffer, and the footer shows an active plane indicator while the bridge or Telegram work is active.
|
|
3430
3477
|
|
|
3431
3478
|
### Admin Slash Command Passthrough
|
|
3432
3479
|
|