From 9ffd1fdbdb5166740466cd814938a4dcb0727f58 Mon Sep 17 00:00:00 2001 From: leemour Date: Tue, 24 Nov 2026 03:11:32 +0100 Subject: [PATCH 1/5] chore(deps): build on cli-base 1.0.0-rc.0 for cli-core 1.0 - cli-base 1.0.0-rc.0 (exact). cli-core stays on the npm 0.714.0 so the lockfile installs; parity swaps in the 1.0 build. - The bot generator writes the manifest against @wirecat/cli-base/codegen/runtime, and the code that runs imports ManifestOperation and SchemaNode from there. - Override becomes ModelOverride (the old name is a deprecated alias). - docs/mcp.md lists schedule exec among the commands kept off MCP (cli-core 0.736.0), and docs/commands.md is regenerated from the 1.0 command tree (store migrate --no-backup, search --like). - Changelog fragment for store version 73, the MCP path guard and schedule exec. Checked against the cli-core 1.0.0-rc.0 tarball: typecheck, lint, build and all 1649 tests (one worker; the timeouts pass with a longer timeout). Co-Authored-By: Claude Opus 5.5 --- changes/release-1.0.md | 11 +++++++++++ docs/commands.md | 13 +++++++++---- docs/mcp.md | 1 + package.json | 2 +- pnpm-lock.yaml | 22 +++++++++++----------- scripts/bot/generate.ts | 2 +- scripts/bot/overrides.ts | 4 ++-- src/bot/client.ts | 2 +- src/bot/generated/manifest.ts | 7 ++++++- src/bot/input.ts | 2 +- src/bot/transport.ts | 2 +- src/commands/bot-api.test.ts | 2 +- src/commands/bot-context.ts | 2 +- src/commands/bot-sends.ts | 2 +- 14 files changed, 48 insertions(+), 26 deletions(-) create mode 100644 changes/release-1.0.md diff --git a/changes/release-1.0.md b/changes/release-1.0.md new file mode 100644 index 00000000..73fa2333 --- /dev/null +++ b/changes/release-1.0.md @@ -0,0 +1,11 @@ +### Изменено — может сломать скрипты + +- **`max` собран на cli-core 1.0 и cli-base 1.0.** Хранилище при первом открытии переходит на версию 73: номер + записи больше никогда не выдаётся дважды, а открыть хранилище после этого могут только инструменты на cli-core 1.0. + Обновите все установленные CLI WireCat до запуска этой версии. Перед переходом пишется копия для отката. Без неё + переход не начинается. +- **Вызов через MCP, который называет запрещённое место, отвечает `permission_error`**, а не `validation_error`. + Перед каждым вызовом через MCP каждая опция и аргумент с локальным файлом или папкой проверяются по настоящему пути: + вызов не может назвать папку с ключами, папку инструмента WireCat или хранилище. Запуск в терминале не меняется. +- **`schedule exec` больше не доступен через MCP.** Он запускает только файл расписания из своей папки расписаний. + Агент запускает сохранённое расписание через `schedule run `. diff --git a/docs/commands.md b/docs/commands.md index 4d46ed6a..16f8714b 100644 --- a/docs/commands.md +++ b/docs/commands.md @@ -2442,9 +2442,13 @@ bring the store up to this build's schema, then normalize, index and stem the me **Меняет что-то только на этом компьютере.** ```sh -max store migrate +max store migrate [options] ``` +| Опция | Что делает | +|---|---| +| `--no-backup` | migrate even when no rollback copy can be written; older tools then cannot open the store again. | + **Returns:** store migration — path, exists, from, to, normalized, indexed, terms, stemmed, and 1 more; every field: max commands info store migrate **Example:** `max personal store migrate` @@ -3660,7 +3664,7 @@ max conversations related [options] | `--base-url ` | a server with OpenAI's /v1/embeddings: Gemini, Jina, or Ollama and LM Studio on this machine. | | `--dims ` | remote: the vector size — needed with --base-url; shortens an OpenAI model's. | -**Returns:** conversation hit — summary, chunk, score, by, stale, source, locator, matched_in; every field: max commands info conversations related +**Returns:** conversation hit — summary, chunk, score, by, stale, source, locator, matched_in, and 3 more; every field: max commands info conversations related **Example:** `max personal conversations related "Book club" 101` @@ -4577,7 +4581,7 @@ max search all [options] | `--backend ` | where to search: the local archive, the messenger's server (default: both; message discovery uses archive only), or both. | | `--server-time ` | stop waiting for the server after this long (default: 5s). | -**Returns:** hit — kind, ref, provider, account, title, timestamp, excerpt, url, and 18 more; every field: max commands info search all +**Returns:** hit — kind, ref, provider, account, title, timestamp, excerpt, url, and 19 more; every field: max commands info search all **Example:** `max personal search all draft` @@ -4672,6 +4676,7 @@ max search conversations [options] | `--sync-first` | first fetch new messages within the chat, time and message bounds. | | `--sync-time ` | stop fetching after this long (default: 30s). | | `--max-messages ` | fetch at most this many messages total (default: 500). | +| `--like ` | a made-up reply that would answer the query, one sentence: searched by meaning too, which finds an answer worded unlike the question. | | `--chat ` | only this chat: a chat: its id, or part of its title. | | `--since-time