omnius 1.0.43 → 1.0.44
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.js +1092 -36
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3510,6 +3510,11 @@ Connect the agent to a Telegram bot. Telegram can run in auto, chat, or action m
|
|
|
3510
3510
|
/telegram personal <user_id> <limit> # Fetch profile personal chat messages
|
|
3511
3511
|
/telegram access get <managed_bot_user_id> # Show managed-bot access restrictions
|
|
3512
3512
|
/telegram access set <managed_bot_user_id> <restricted|open> [user_ids] # Configure access
|
|
3513
|
+
/telegram tools # Show unified Telegram tool policy
|
|
3514
|
+
/telegram tools group <chat> # Show a chat-scoped policy override
|
|
3515
|
+
/telegram tools panel <chat> [policy_chat] # Send inline admin toggle buttons
|
|
3516
|
+
/telegram delete-message <chat> <msg> [reason] # Delete one message
|
|
3517
|
+
/telegram delete-messages <chat> <msg,msg> [reason] # Delete multiple messages
|
|
3513
3518
|
/telegram delete-reaction <chat> <msg> --user <id> # Delete a message reaction
|
|
3514
3519
|
/telegram delete-reactions <chat> --user <id> # Delete recent reactions
|
|
3515
3520
|
```
|
|
@@ -3548,6 +3553,8 @@ The Telegram bridge handles modern Bot API traffic directly:
|
|
|
3548
3553
|
- **Direct-message channels** — direct-message channel/topic metadata is preserved on normalized Telegram messages for routing and future adapter logic.
|
|
3549
3554
|
- **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.
|
|
3550
3555
|
- **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.
|
|
3556
|
+
- **Unified Telegram tool** — Telegram-sourced agent runs receive one scoped `telegram` tool for Bot API operations. Read/media actions are available by default; janitorial deletion, reaction cleanup, moderation, bot-admin changes, and message send/edit actions require admin context plus explicit `telegramToolPolicy` enablement. Before group deletes or moderation, Omnius checks the bot's Telegram rights with `getMe` + `getChatMember` and returns the Bot API error if Telegram refuses the operation.
|
|
3557
|
+
- **Inline tool controls** — `/telegram tools panel <chat> [policy_chat]` sends an inline keyboard that toggles global or chat-scoped Telegram tool groups. Telegram callback queries are answered immediately so client spinners stop, and policy is persisted under `.omnius/settings.json`.
|
|
3551
3558
|
- **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.
|
|
3552
3559
|
|
|
3553
3560
|
### Admin Slash Command Passthrough
|
|
@@ -3619,9 +3626,9 @@ Tools are gated per execution context. The system enforces strict separation bet
|
|
|
3619
3626
|
| Context | Default Tools | Notes |
|
|
3620
3627
|
|---------|--------------|-------|
|
|
3621
3628
|
| `terminal` | All tools | Wide open — shell, file read/write, everything |
|
|
3622
|
-
| `telegram-admin-dm` | All except shell | Admin DM — full tools, shell blocked by default (overridable) |
|
|
3623
|
-
| `telegram-admin-group` | Read-only + web + vision/OCR + scoped reminders | Admin in public group —
|
|
3624
|
-
| `telegram-public` | Memory r/w, web fetch/search, scoped creative tools, scoped minimal reminders | Public users — no arbitrary local file access or
|
|
3629
|
+
| `telegram-admin-dm` | All except shell + scoped `telegram` tool | Admin DM — full tools, shell blocked by default (overridable); Telegram janitorial/moderation actions still require explicit policy and Bot API rights |
|
|
3630
|
+
| `telegram-admin-group` | Read-only + web + vision/OCR + scoped reminders + scoped `telegram` tool | Admin in public group — current-chat only; high-risk Telegram actions require policy enablement |
|
|
3631
|
+
| `telegram-public` | Memory r/w, web fetch/search, scoped creative tools, scoped minimal reminders + read/media `telegram` actions | Public users — no arbitrary local file access, shell, moderation, bot-admin, or janitorial actions |
|
|
3625
3632
|
| `api` | All tools | API endpoint — configurable |
|
|
3626
3633
|
|
|
3627
3634
|
**System tools** (`shell`, `file_write`, `file_edit`, `file_read`, `file_patch`, `batch_edit`, `grep_search`, `glob_find`, `list_directory`, `code_sandbox`, `codebase_map`, `git_info`, etc.) are **never exposed** in public-facing contexts.
|