From b87cfc24e9e5d3aad331902e5cbdb9c875db1eae Mon Sep 17 00:00:00 2001 From: leemour Date: Tue, 24 Nov 2026 03:39:15 +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.715.0 so the lockfile installs; parity swaps in the 1.0 build. - The bot generator writes its manifest and definitions against @wirecat/cli-base/codegen/runtime, and the code that runs imports ManifestOperation from there. - Changelog fragment for store version 73, the MCP path guard and schedule exec leaving MCP. Checked against the cli-core 1.0.0-rc.0 tarball: typecheck, lint, build and all 747 tests (one worker; the timeouts pass with a longer timeout). Co-Authored-By: Claude Opus 5.5 --- changes/release-1.0.md | 10 ++++++++++ package.json | 2 +- pnpm-lock.yaml | 22 +++++++++++----------- scripts/bot/generate.ts | 4 ++-- src/bot/generated/definitions.ts | 2 +- src/bot/generated/manifest.ts | 2 +- src/commands/bot.ts | 2 +- 7 files changed, 27 insertions(+), 17 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..323aff06 --- /dev/null +++ b/changes/release-1.0.md @@ -0,0 +1,10 @@ +### Changed — may break callers + +- **wa builds on cli-core 1.0 and cli-base 1.0.** The store moves to version 73 on its first open: an id is never + handed out twice, and only tools on cli-core 1.0 open the store after that. Upgrade every installed WireCat CLI + before you run this version. The migration writes a rollback copy first and refuses to run without one. +- **An MCP call that names a refused place answers `permission_error`**, not `validation_error`. Before any MCP call + runs, each option and argument that takes a local file or folder is checked by its real path: a call cannot name a + credential folder, a folder of a WireCat tool or the message store. A shell run is unchanged. +- **`schedule exec` is no longer offered over MCP.** It runs only a schedule file in the tool's own schedules folder. + An agent runs a saved schedule with `schedule run `. diff --git a/package.json b/package.json index ea324dc8..9ee21b0c 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "engine:packages": "node scripts/engine-packages.mjs build" }, "dependencies": { - "@wirecat/cli-base": "0.125.1", + "@wirecat/cli-base": "1.0.0-rc.0", "@wirecat/cli-core": "0.715.0", "commander": "15.0.0", "valibot": "1.5.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 49c7c20a..d0cbe7c7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,11 +13,11 @@ importers: .: dependencies: '@wirecat/cli-base': - specifier: 0.125.1 - version: 0.125.1(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5) + specifier: 1.0.0-rc.0 + version: 1.0.0-rc.0(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5) '@wirecat/cli-core': specifier: 0.715.0 - version: 0.715.0(@wirecat/cli-base@0.125.1(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5))(commander@15.0.0)(typescript@7.0.2)(zod@4.6.7) + version: 0.715.0(@wirecat/cli-base@1.0.0-rc.0(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5))(commander@15.0.0)(typescript@7.0.2)(zod@4.6.7) commander: specifier: 15.0.0 version: 15.0.0 @@ -1164,16 +1164,16 @@ packages: '@wasm-audio-decoders/opus-ml@0.0.3': resolution: {integrity: sha512-SEeTmk0eb3q5etJA/NHCRWW6BivTx9tqvNTmG0kg2ynuATEQRUZnwQE6Ibvl1BBvqIGHqI57+qyJMWmJBwb5XQ==} - '@wirecat/cli-base@0.125.1': - resolution: {integrity: sha512-EsVQeaHXP2I8+sRP7Mkg8qgLOzYDItPVzKParRt38SWJdPXpxWuQTIV3nq8rCIe5qc7BLfsyB6vLD0/YX8nDCQ==} - engines: {node: '>=22'} + '@wirecat/cli-base@1.0.0-rc.0': + resolution: {integrity: sha512-vRfE2U3c3mUJGkyaaUQngxscRLCbKyL2/TiBj3Hy4hvA8rwkIgsr2jecRhB7z+0iUH8EkoEhChVaOvYD6H4xbA==} + engines: {node: ^22.16.0 || >=24} hasBin: true peerDependencies: '@scalar/openapi-upgrader': ^0.4.6 - commander: '>=15' + commander: ^15.0.0 esbuild: ^0.28.0 swagger-converter: ^2.1.0 - vitest: '>=5' + vitest: ^5.0.0 peerDependenciesMeta: '@scalar/openapi-upgrader': optional: true @@ -3301,7 +3301,7 @@ snapshots: dependencies: '@wasm-audio-decoders/common': 9.0.7 - '@wirecat/cli-base@0.125.1(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5)': + '@wirecat/cli-base@1.0.0-rc.0(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5)': dependencies: '@valibot/to-json-schema': 1.8.0(valibot@1.5.0(typescript@7.0.2)) cli-table3: 0.6.5 @@ -3322,7 +3322,7 @@ snapshots: '@wirecat/cli-core-sqlite@1.1.0': {} - '@wirecat/cli-core@0.715.0(@wirecat/cli-base@0.125.1(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5))(commander@15.0.0)(typescript@7.0.2)(zod@4.6.7)': + '@wirecat/cli-core@0.715.0(@wirecat/cli-base@1.0.0-rc.0(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5))(commander@15.0.0)(typescript@7.0.2)(zod@4.6.7)': dependencies: '@anthropic-ai/sdk': 1.3.0(zod@4.6.7) '@bomb.sh/tab': 0.0.22(commander@15.0.0) @@ -3332,7 +3332,7 @@ snapshots: '@valibot/to-json-schema': 1.8.0(valibot@1.5.0(typescript@7.0.2)) '@wasm-audio-decoders/flac': 0.2.11 '@wasm-audio-decoders/ogg-vorbis': 0.1.20 - '@wirecat/cli-base': 0.125.1(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5) + '@wirecat/cli-base': 1.0.0-rc.0(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5) '@wirecat/cli-core-onnx': 1.2.0 '@wirecat/cli-core-sqlite': 1.1.0 '@xmldom/xmldom': 0.9.12 diff --git a/scripts/bot/generate.ts b/scripts/bot/generate.ts index 85fd1adf..5f34ada2 100644 --- a/scripts/bot/generate.ts +++ b/scripts/bot/generate.ts @@ -85,8 +85,8 @@ const artifacts = generate( [ typesGenerator({ path: "src/bot/generated/types.ts" }), valibotGenerator({ path: "src/bot/generated/schemas.ts", typesImport: "./types.js" }), - manifestGenerator({ path: "src/bot/generated/manifest.ts" }), - definitionsGenerator({ path: "src/bot/generated/definitions.ts" }), + manifestGenerator({ path: "src/bot/generated/manifest.ts", coreImport: "@wirecat/cli-base/codegen/runtime" }), + definitionsGenerator({ path: "src/bot/generated/definitions.ts", coreImport: "@wirecat/cli-base/codegen/runtime" }), coverageGenerator({ path: "docs/dev/bot-api-coverage.md", title: "WhatsApp Cloud API coverage", diff --git a/src/bot/generated/definitions.ts b/src/bot/generated/definitions.ts index 36a000b9..1b704494 100644 --- a/src/bot/generated/definitions.ts +++ b/src/bot/generated/definitions.ts @@ -2,7 +2,7 @@ // Source: spec/bot/business-messaging-api_v23.0.yaml // Run: pnpm bot:generate -import type { SchemaNode } from "@wirecat/cli-base/codegen" +import type { SchemaNode } from "@wirecat/cli-base/codegen/runtime" export const definitions: Readonly> = { ConnectedClientBusiness: { diff --git a/src/bot/generated/manifest.ts b/src/bot/generated/manifest.ts index a1a23e03..5bdab64a 100644 --- a/src/bot/generated/manifest.ts +++ b/src/bot/generated/manifest.ts @@ -2,7 +2,7 @@ // Source: spec/bot/business-messaging-api_v23.0.yaml // Run: pnpm bot:generate -import type { ApiServer, ManifestOperation, SecurityScheme } from "@wirecat/cli-base/codegen" +import type { ApiServer, ManifestOperation, SecurityScheme } from "@wirecat/cli-base/codegen/runtime" export const operations: readonly ManifestOperation[] = [ { diff --git a/src/commands/bot.ts b/src/commands/bot.ts index da965661..7dcc53bf 100644 --- a/src/commands/bot.ts +++ b/src/commands/bot.ts @@ -1,5 +1,5 @@ import { CliError, isCliError } from "@wirecat/cli-base" -import type { ManifestOperation } from "@wirecat/cli-base/codegen" +import type { ManifestOperation } from "@wirecat/cli-base/codegen/runtime" import { type ApiCommandInput, type BotMcp, From a63bda9157c5028a7c1311b88f09b88befa53dab Mon Sep 17 00:00:00 2001 From: leemour Date: Wed, 25 Nov 2026 04:37:33 +0100 Subject: [PATCH 2/5] chore(deps): move to the published cli-core 1.0.0-rc.0 and cli-base 1.0.0-rc.1 release/1.0 built against a packed cli-core 1.0 tarball, while package.json still named cli-core 0.715.0 and cli-base 1.0.0-rc.0, so the branch's own CI was red. Both release candidates are now on npm under the next tag, so the pins point at them and the lockfile follows. - scripts/bot/generate.ts no longer passes coreImport to the manifest and definitions generators: cli-base rc.1 defaults it to the same @wirecat/cli-base/codegen/runtime, and bot:generate writes no file. - docs/commands.md is regenerated from the command tree: store migrate now takes --no-backup, and a search takes --like. The changelog fragment changes/release-1.0.md already describes the move to cli-core 1.0 and the store migration to version 73. Co-Authored-By: Claude Opus 5.5 --- docs/commands.md | 7 ++++++- package.json | 4 ++-- pnpm-lock.yaml | 26 +++++++++++++------------- scripts/bot/generate.ts | 4 ++-- 4 files changed, 23 insertions(+), 18 deletions(-) diff --git a/docs/commands.md b/docs/commands.md index 035ff0b4..6100926c 100644 --- a/docs/commands.md +++ b/docs/commands.md @@ -2255,9 +2255,13 @@ bring the store up to this build's schema, then normalize, index and stem the me **Changes something on this computer only.** ```sh -wa store migrate +wa store migrate [options] ``` +| Option | What it does | +|---|---| +| `--no-backup` | migrate even when no rollback copy can be written; older tools then cannot open the store again. | + ### `wa store rebuild` rebuild the word index, its typo vocabulary, the stems, the files' word index, the notes' indexes and who took part in what, from what is stored, and drop the vectors no stored text uses; loses nothing @@ -4013,6 +4017,7 @@ wa search conversations [options] | `--dims ` | remote: the vector size — needed with --base-url; shortens an OpenAI model's. | | `--max-chats ` | at most this many chats in one run; 20 if not given. | | `--max-chunks ` | at most this many chunks embedded in one run; 2000 if not given. | +| `--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 name, or its WhatsApp id (…@lid, …@g.us, …@newsletter). | | `--since-time