Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions changes/fix-parity-core-0707.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Изменено — может сломать скрипты

- **`max` собран на cli-core 0.714.0 и cli-base 0.125.0** (были 0.681.0 и 0.106.0). Из заметного:
- Если связка ключей ОС не отвечает, команда сообщает об этом (`keyring.unreachable`) и пишет, как это исправить.
Раньше она отвечала, что вход не выполнен, хотя токен лежал в связке. Вход (`session start`, `setup`) при этом,
как и раньше, сохраняет токен в личный файл, а `max serve` и запуск по таймеру считают это временным сбоем и
пробуют позже.
- `mcp serve --profiles all` запускается и на компьютере без профиля: показывает инструменты, а каждый вызов
отвечает, как создать первый профиль.
- Появились `messages scheduled cancel|edit|send`. MAX их пока не поддерживает, и команды отвечают, что этот
мессенджер так не умеет.
4 changes: 4 additions & 0 deletions contracts/help.snap
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@ Works with:
memo context <person> one person across messengers, mail, notes and meetings
mail IMAP mail in the same local store: search your mailbox offline, next to your other WireCat data
b24 Bitrix24 CRM: deals, leads and pipelines, searchable with your other WireCat data
amo amoCRM and Kommo: deals, contacts and companies, searchable with your other WireCat data
pbx Asterisk PBX calls and recordings, searchable with your other WireCat data
notion Notion pages and databases as local text, searchable with your other WireCat data
ydisk Yandex Disk folders as local text, searchable with your other WireCat data
wordpress WordPress posts and pages, searchable with your other WireCat data
linear Linear issues and projects, searchable with your other WireCat data

Start here: max personal setup (any profile name works)
max account list your profiles and their logged-in accounts
Expand Down
84 changes: 82 additions & 2 deletions contracts/wirecat.json
Original file line number Diff line number Diff line change
Expand Up @@ -1209,14 +1209,56 @@
"messages",
"scheduled"
],
"summary": "messages waiting to be sent later in a chat, soonest first; cancel one in…",
"summary": "messages waiting to be sent later in a chat, soonest first, with their…",
"effects": {
"remote": "read",
"local": "read"
},
"permission": "messages.scheduled",
"entity": "message"
},
{
"path": [
"messages",
"scheduled",
"cancel"
],
"summary": "cancel scheduled messages before they are sent; they cannot be got back",
"effects": {
"remote": "write",
"local": "write"
},
"permission": "messages.scheduled.cancel",
"entity": "scheduled_cancellation"
},
{
"path": [
"messages",
"scheduled",
"edit"
],
"summary": "change the text or the time of a scheduled message before it is sent",
"effects": {
"remote": "write",
"local": "write"
},
"permission": "messages.scheduled.edit",
"entity": "message_write"
},
{
"path": [
"messages",
"scheduled",
"send"
],
"summary": "deliver what is scheduled right away instead of at its time; each gets a new id",
"effects": {
"remote": "write",
"local": "write"
},
"permission": "messages.scheduled.send",
"entity": "scheduled_send"
},
{
"path": [
"messages",
Expand Down Expand Up @@ -5622,6 +5664,44 @@
"app": "max-cli",
"env": "MAX"
},
"settings": null
"settings": null,
"accountRemove": {
"signOut": [
"{profile}",
"session",
"end",
"--record",
"--json"
],
"remove": {
"minVersion": "0.0.0",
"keepData": [
"{profile}",
"account",
"remove",
"--keep-data",
"--record",
"--json"
],
"deleteData": [
"{profile}",
"account",
"remove",
"--delete-data",
"--record",
"--json"
],
"dryRun": "--dry-run",
"confirm": "--yes"
},
"removes": [
"signIn"
],
"keeps": [
"settings",
"data",
"listed"
]
}
}
}
63 changes: 58 additions & 5 deletions docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -1957,21 +1957,74 @@ max messages send <chat> [text] [options]

### `max messages scheduled`

messages waiting to be sent later in a chat, soonest first; cancel one in the app
messages waiting to be sent later in a chat, soonest first, with their scheduled ids

#### `max messages scheduled cancel`

cancel scheduled messages before they are sent; they cannot be got back

**Меняет что-то вне этого компьютера: в MAX или во внешнем сервисе.**

```sh
max messages scheduled <chat>
max messages scheduled cancel <chat> <scheduled-id> [options]
```

| Аргумент | | Что это |
|---|---|---|
| `chat` | обязательный | a chat: its id, or part of its title. |
| `scheduled-id` | обязательный | the scheduled ids `messages scheduled <chat>` lists, by spaces or commas, at most 10; never the id of a sent message. |

| Опция | Что делает |
|---|---|
| `--allow-dangerous` | go ahead without the question an ask level puts before a cancellation. |

**Returns:** message — ref, id, chat_id, sender_id, sender_name, sender_is_me, timestamp, edited_at, and 31 more; every field: max commands info messages scheduled
**Returns:** scheduled cancellation — operation_id, chat_id, cancelled; every field: max commands info messages scheduled cancel

**Next usually:** `max messages links <chat> <message>`, `max messages transcribe <chat> <message>`, `max stats messages evidence <message>`
**Example:** `max personal messages scheduled cancel "Book club" 3`

#### `max messages scheduled edit`

change the text or the time of a scheduled message before it is sent

**Меняет что-то вне этого компьютера: в MAX или во внешнем сервисе.**

```sh
max messages scheduled edit <chat> <scheduled-id> [text] [options]
```

| Аргумент | | Что это |
|---|---|---|
| `chat` | обязательный | a chat: its id, or part of its title. |
| `scheduled-id` | обязательный | the scheduled id `messages scheduled <chat>` lists; never the id of a sent message. |
| `text` | необязательный | the new text; without it and without --at-time, read from stdin. |

| Опция | Что делает |
|---|---|
| `--at-time <time>` | send it at this time instead: 2026-09-25T09:00 (local time), or 30m, 2h, 1d from now. |
| `--md` | read this messenger's Markdown; see its formatting guide for supported syntax. |

**Returns:** message write — operation_id, message, messages, scheduled_for; every field: max commands info messages scheduled edit

**Example:** `max personal messages scheduled edit "Book club" 3 "The meeting starts at 11."`, `max personal messages scheduled edit "Book club" 3 --at-time 2026-12-01T09:00`

#### `max messages scheduled send`

deliver what is scheduled right away instead of at its time; each gets a new id

**Меняет что-то вне этого компьютера: в MAX или во внешнем сервисе.**

```sh
max messages scheduled send <chat> <scheduled-id>
```

| Аргумент | | Что это |
|---|---|---|
| `chat` | обязательный | a chat: its id, or part of its title. |
| `scheduled-id` | обязательный | the scheduled ids `messages scheduled <chat>` lists, by spaces or commas, at most 10; never the id of a sent message. |

**Returns:** scheduled send — operation_id, chat_id, sent, messages; every field: max commands info messages scheduled send

**Example:** `max personal messages scheduled "Book club"`
**Example:** `max personal messages scheduled send "Book club" 3`

### `max messages edit`

Expand Down
10 changes: 10 additions & 0 deletions docs/dev/bot-api-coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,13 @@ Run: pnpm bot:generate
| `getVideoAttachmentDetails` | `GET /videos/{videoToken}` | `max bot api get-video-attachment-details` | read | — | generated | Get video details |
| `answerOnCallback` | `POST /answers` | `max bot api answer-on-callback` | write | contract | generated | Answer on callback |
| `getUpdates` | `GET /updates` | `max bot api get-updates` | write | — | generated | Get updates |

## Effects not taken from the HTTP method

| Operation | Effect | Why |
|---|---|---|
| `unpinMessage` | write | override: the message can be pinned again |
| `deleteAdmins` | write | override: admin rights can be granted again |
| `removeMember` | write | override: the member can be added again |
| `unsubscribe` | write | override: the webhook can be subscribed again |
| `getUpdates` | write | override: passing a marker commits every earlier update; another consumer of the bot never sees them |
8 changes: 7 additions & 1 deletion docs/dev/test-matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ran it · ⛔ not tested offline, with the reason and where it is checked instea
Measured from the test run (`coverage/argv.jsonl`), not searched for — see
[TESTING.md](TESTING.md) for how, and for the states and failures that cut across commands.

**930 ✅ · 243 ⛔ · 0 ❌** — 383 commands, 790 options.
**930 ✅ · 249 ⛔ · 0 ❌** — 386 commands, 793 options.

| Command | Option | | Note |
|---|---|---|---|
Expand Down Expand Up @@ -234,6 +234,12 @@ Measured from the test run (`coverage/argv.jsonl`), not searched for — see
| `messages send` | `--at-time` | ✅ | |
| `messages send` | `--sticker` | ✅ | |
| `messages scheduled` | | ✅ | |
| `messages scheduled cancel` | | ⛔ | MAX has no scheduled-message actions, so cli-core refuses them with "this messenger cannot …"; cli-core src/cli/messenger/messages-scheduled.test.ts drives the shared command and its refusal (cli-core 0.706.0) |
| `messages scheduled cancel` | `--allow-dangerous` | ⛔ | MAX has no scheduled-message actions, so cli-core refuses them with "this messenger cannot …"; cli-core src/cli/messenger/messages-scheduled.test.ts drives the shared command and its refusal (cli-core 0.706.0) |
| `messages scheduled edit` | | ⛔ | MAX has no scheduled-message actions, so cli-core refuses them with "this messenger cannot …"; cli-core src/cli/messenger/messages-scheduled.test.ts drives the shared command and its refusal (cli-core 0.706.0) |
| `messages scheduled edit` | `--at-time` | ⛔ | MAX has no scheduled-message actions, so cli-core refuses them with "this messenger cannot …"; cli-core src/cli/messenger/messages-scheduled.test.ts drives the shared command and its refusal (cli-core 0.706.0) |
| `messages scheduled edit` | `--md` | ⛔ | MAX has no scheduled-message actions, so cli-core refuses them with "this messenger cannot …"; cli-core src/cli/messenger/messages-scheduled.test.ts drives the shared command and its refusal (cli-core 0.706.0) |
| `messages scheduled send` | | ⛔ | MAX has no scheduled-message actions, so cli-core refuses them with "this messenger cannot …"; cli-core src/cli/messenger/messages-scheduled.test.ts drives the shared command and its refusal (cli-core 0.706.0) |
| `messages edit` | | ✅ | |
| `messages edit` | `--md` | ✅ | |
| `messages delete` | | ✅ | |
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@
},
"dependencies": {
"@msgpack/msgpack": "3.1.3",
"@wirecat/cli-base": "0.106.0",
"@wirecat/cli-core": "0.681.0",
"@wirecat/cli-base": "0.125.0",
"@wirecat/cli-core": "0.714.0",
"commander": "15.0.0",
"lossless-json": "4.3.3",
"ogg-opus-decoder": "1.7.5",
Expand Down
Loading
Loading