From 225ee4068f25a5a06eda347dfcf0701dee69bb44 Mon Sep 17 00:00:00 2001 From: leemour Date: Tue, 24 Nov 2026 05:37:48 +0100 Subject: [PATCH 1/3] chore(deps): prepare the kit for cli-base 1.0 and cli-core 1.0 - Bump @wirecat/cli-base to 1.0.0-rc.0. - Seeds: generated API files import their types from @wirecat/cli-base/codegen/runtime, the WordPress seed's spec-model.ts uses ModelOverride, and the GraphQL seed's test takes SchemaNode from /codegen/runtime. - Config seed: a new test that a sync which would mark every post deleted stays held, with --rescan too, until --allow-deletions names the count. - contracts/help.snap lists attio, from cli-core 1.0's catalog of WireCat CLIs; new CLIs copy this snapshot. Checked against the cli-core 1.0 tarball (33d5d69f0): typecheck, lint, deps:check, docs:check, lint:commands, contracts:check and all 237 tests pass. kit:e2e passes with the generated CLIs on cli-core 1.0.0-rc.0 (demo, acme-workspace, and the crm, tracker and wordpress CLIs from a config), with their test timeout raised to 120 s: at the default 15 s, three crmSyncContract tests timed out on this loaded machine (load average 25-35). Co-Authored-By: Claude Opus 5.5 --- changes/release-1.0.md | 6 ++++ contracts/help.snap | 1 + kit/seeds/config/src/content-options.test.ts | 31 ++++++++++++++++++++ kit/seeds/graphql/scripts/generate.ts | 4 +-- kit/seeds/graphql/src/api.test.ts | 3 +- kit/seeds/shared/scripts/generate.ts | 4 +-- kit/seeds/wp-json/scripts/generate.ts | 4 +-- kit/seeds/wp-json/scripts/spec-model.ts | 4 +-- package.json | 2 +- pnpm-lock.yaml | 22 +++++++------- 10 files changed, 60 insertions(+), 21 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 0000000..3501946 --- /dev/null +++ b/changes/release-1.0.md @@ -0,0 +1,6 @@ +### Changed — may break callers + +- **Built on cli-base 1.0.0-rc.0 and cli-core 1.0.** A new CLI's generated API files read their types from + `@wirecat/cli-base/codegen/runtime`, the WordPress seed's `spec-model.ts` uses `ModelOverride`, and the GraphQL seed's + test takes `SchemaNode` from `/codegen/runtime`. A CLI from a WordPress config also tests that a sync which would + mark every post deleted stays held, with `--rescan` too, until `--allow-deletions` names the count. diff --git a/contracts/help.snap b/contracts/help.snap index f86e2d5..b27971b 100644 --- a/contracts/help.snap +++ b/contracts/help.snap @@ -14,6 +14,7 @@ Works with: 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 + attio Attio CRM: deals, people 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 diff --git a/kit/seeds/config/src/content-options.test.ts b/kit/seeds/config/src/content-options.test.ts index 5f392fc..59d872b 100644 --- a/kit/seeds/config/src/content-options.test.ts +++ b/kit/seeds/config/src/content-options.test.ts @@ -121,3 +121,34 @@ it("every option of the content commands runs over a synced copy", async () => { const refused = await ran(["api", create.command, "--body", "{}", "--dry-run"]) expect(refused.json()).toMatchObject({ error: { code: "permission_error", details: { permission: "posts.create" } } }) }) + +// The mass-deletion guard is the owner's to lift, by count: a rescan only lists everything again. +it("holds a sync that would mark every post deleted, rescan or not, until --allow-deletions names the count", async () => { + const keyring = memoryKeyring() + const [login, password] = FAKE_API_TOKEN.split(":") as [string, string] + await runCli(["guard", "session", "start", "--site", FAKE_SITE, "--login", login, "--json"], { + keyring, + service: fakeServiceApi(), + stdin: password, + }) + const service = contentManifestFake(SOURCE, { api: API.manifest }) + const ran = (argv: string[]) => runCli(["guard", ...argv, "--json"], { keyring, service }) + const posts = async () => + ((await ran(["posts", "list"])).json() as { items: { external_id: string; type: string }[] }).items.filter( + (one) => one.type === "post", + ) + expect((await ran(["sync"])).code).toBe(0) + const ids = service.ids("post") + const listed = (await posts()).length + expect(listed).toBeGreaterThan(0) + for (const id of ids) service.remove("post", id) + + const held = await ran(["sync", "--rescan"]) + expect(held.code, held.err).toBe(0) + expect(held.out).toContain(`--allow-deletions ${ids.length}`) + expect((await posts()).length).toBe(listed) + + const allowed = await ran(["sync", "--rescan", "--allow-deletions", String(ids.length)]) + expect(allowed.code, allowed.err).toBe(0) + expect(await posts()).toEqual([]) +}) diff --git a/kit/seeds/graphql/scripts/generate.ts b/kit/seeds/graphql/scripts/generate.ts index 936009c..81eb014 100644 --- a/kit/seeds/graphql/scripts/generate.ts +++ b/kit/seeds/graphql/scripts/generate.ts @@ -23,8 +23,8 @@ const artifacts = generate( [ typesGenerator({ path: "src/generated/types.ts" }), valibotGenerator({ path: "src/generated/schemas.ts", typesImport: "./types.js" }), - manifestGenerator({ path: "src/generated/manifest.ts" }), - definitionsGenerator({ path: "src/generated/definitions.ts" }), + manifestGenerator({ path: "src/generated/manifest.ts", coreImport: "@wirecat/cli-base/codegen/runtime" }), + definitionsGenerator({ path: "src/generated/definitions.ts", coreImport: "@wirecat/cli-base/codegen/runtime" }), coverageGenerator({ path: "docs/dev/API_COVERAGE.md", title: "API coverage", diff --git a/kit/seeds/graphql/src/api.test.ts b/kit/seeds/graphql/src/api.test.ts index 846c6c7..8b1e0f4 100644 --- a/kit/seeds/graphql/src/api.test.ts +++ b/kit/seeds/graphql/src/api.test.ts @@ -1,6 +1,7 @@ import { mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs" import { join } from "node:path" -import { graphqlFake, type SchemaNode, sampleOf } from "@wirecat/cli-base/codegen" +import { graphqlFake, sampleOf } from "@wirecat/cli-base/codegen" +import type { SchemaNode } from "@wirecat/cli-base/codegen/runtime" import { apiFlagOf, manifestBaseUrl, sendsBytes } from "@wirecat/cli-core/cli" import { pacePathFor } from "@wirecat/cli-core/sends" import { afterEach, expect, it } from "vitest" diff --git a/kit/seeds/shared/scripts/generate.ts b/kit/seeds/shared/scripts/generate.ts index 4104920..4b95771 100644 --- a/kit/seeds/shared/scripts/generate.ts +++ b/kit/seeds/shared/scripts/generate.ts @@ -23,8 +23,8 @@ const artifacts = generate( [ typesGenerator({ path: "src/generated/types.ts" }), valibotGenerator({ path: "src/generated/schemas.ts", typesImport: "./types.js" }), - manifestGenerator({ path: "src/generated/manifest.ts" }), - definitionsGenerator({ path: "src/generated/definitions.ts" }), + manifestGenerator({ path: "src/generated/manifest.ts", coreImport: "@wirecat/cli-base/codegen/runtime" }), + definitionsGenerator({ path: "src/generated/definitions.ts", coreImport: "@wirecat/cli-base/codegen/runtime" }), coverageGenerator({ path: "docs/dev/API_COVERAGE.md", title: "API coverage", diff --git a/kit/seeds/wp-json/scripts/generate.ts b/kit/seeds/wp-json/scripts/generate.ts index a39ca69..019d3d1 100644 --- a/kit/seeds/wp-json/scripts/generate.ts +++ b/kit/seeds/wp-json/scripts/generate.ts @@ -28,8 +28,8 @@ const artifacts = generate( [ typesGenerator({ path: "src/generated/types.ts" }), valibotGenerator({ path: "src/generated/schemas.ts", typesImport: "./types.js" }), - manifestGenerator({ path: "src/generated/manifest.ts" }), - definitionsGenerator({ path: "src/generated/definitions.ts" }), + manifestGenerator({ path: "src/generated/manifest.ts", coreImport: "@wirecat/cli-base/codegen/runtime" }), + definitionsGenerator({ path: "src/generated/definitions.ts", coreImport: "@wirecat/cli-base/codegen/runtime" }), coverageGenerator({ path: "docs/dev/API_COVERAGE.md", title: "API coverage", diff --git a/kit/seeds/wp-json/scripts/spec-model.ts b/kit/seeds/wp-json/scripts/spec-model.ts index e60187d..5849e89 100644 --- a/kit/seeds/wp-json/scripts/spec-model.ts +++ b/kit/seeds/wp-json/scripts/spec-model.ts @@ -1,5 +1,5 @@ import { join } from "node:path" -import { type ApiModel, adaptOpenApi, type Override, readWpJson, wpJsonToOpenApi } from "@wirecat/cli-base/codegen" +import { type ApiModel, adaptOpenApi, type ModelOverride, readWpJson, wpJsonToOpenApi } from "@wirecat/cli-base/codegen" // SAMPLE: the WordPress namespaces the CLI offers. A plugin's namespace belongs to the sites that run the plugin; // batch/v1 is never offered, as one batch call runs other routes' writes past their own keys. @@ -11,7 +11,7 @@ const NAMESPACES = ["wp/v2"] */ export const specModel = async ( root: string, -): Promise<{ model: ApiModel; notes: string[]; overrides: Record }> => { +): Promise<{ model: ApiModel; notes: string[]; overrides: Record }> => { const index = readWpJson(join(root, "spec/clidev")) // An application password's answer is marked secret by the converter, and cli-core offers no api command for it. const { document, omissions, overrides } = wpJsonToOpenApi(index, { diff --git a/package.json b/package.json index 08eb6af..03ea205 100644 --- a/package.json +++ b/package.json @@ -91,7 +91,7 @@ "kit:docs": "cspell lint --config cspell.json --no-progress --no-summary kit/*.md SKILL.md && rumdl check --config config/wirecat/rumdl.toml kit/*.md SKILL.md" }, "dependencies": { - "@wirecat/cli-base": "0.126.1", + "@wirecat/cli-base": "1.0.0-rc.0", "@wirecat/cli-core": "0.722.0", "commander": "15.0.0", "valibot": "1.5.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2abf8ec..eb3571b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,11 +13,11 @@ importers: .: dependencies: '@wirecat/cli-base': - specifier: 0.126.1 - version: 0.126.1(@scalar/openapi-upgrader@0.4.6)(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(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5) '@wirecat/cli-core': specifier: 0.722.0 - version: 0.722.0(@wirecat/cli-base@0.126.1(@scalar/openapi-upgrader@0.4.6)(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.722.0(@wirecat/cli-base@1.0.0-rc.0(@scalar/openapi-upgrader@0.4.6)(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 @@ -1179,16 +1179,16 @@ packages: '@wasm-audio-decoders/opus-ml@0.0.3': resolution: {integrity: sha512-SEeTmk0eb3q5etJA/NHCRWW6BivTx9tqvNTmG0kg2ynuATEQRUZnwQE6Ibvl1BBvqIGHqI57+qyJMWmJBwb5XQ==} - '@wirecat/cli-base@0.126.1': - resolution: {integrity: sha512-pZyRiK4Z9O3QZuOgwGZt+ISsaA2UU+u4AarnHjmIWG9aeAJ3ot2Hz7Dbctj2msjb7JgvR2+S7+OS+ZNGKcolQA==} - 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 @@ -3307,7 +3307,7 @@ snapshots: dependencies: '@wasm-audio-decoders/common': 9.0.7 - '@wirecat/cli-base@0.126.1(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5)': + '@wirecat/cli-base@1.0.0-rc.0(@scalar/openapi-upgrader@0.4.6)(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 @@ -3329,7 +3329,7 @@ snapshots: '@wirecat/cli-core-sqlite@1.1.0': {} - '@wirecat/cli-core@0.722.0(@wirecat/cli-base@0.126.1(@scalar/openapi-upgrader@0.4.6)(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.722.0(@wirecat/cli-base@1.0.0-rc.0(@scalar/openapi-upgrader@0.4.6)(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) @@ -3339,7 +3339,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.126.1(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5) + '@wirecat/cli-base': 1.0.0-rc.0(@scalar/openapi-upgrader@0.4.6)(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 From b1cb2190f8f84c4a959ec5abe692cb4794ef9478 Mon Sep 17 00:00:00 2001 From: leemour Date: Wed, 25 Nov 2026 04:38:56 +0100 Subject: [PATCH 2/3] chore(deps): move to cli-core 1.0.0-rc.0 and cli-base 1.0.0-rc.1 The release/1.0 branch built against a packed cli-core 1.0 tarball while package.json still named cli-core 0.722.0, so the branch's own CI was red. Both release candidates are now on npm under the next tag. A new CLI copies these pins. - @wirecat/cli-core 1.0.0-rc.0 and @wirecat/cli-base 1.0.0-rc.1, exact pins as before; the lockfile follows. - The shared, graphql and wp-json seeds' scripts/generate.ts drop coreImport: cli-base rc.1 defaults it to @wirecat/cli-base/codegen/runtime, the value they passed. - The changelog fragment names cli-core 1.0 and cli-base 1.0 instead of the rc.0 build. Checked locally: typecheck, lint, deps:check, docs:check, generate:check, contracts:check and kit/test/seeds.test.ts. kit:e2e and the full suite are left to CI. Co-Authored-By: Claude Opus 5.5 --- changes/release-1.0.md | 2 +- kit/seeds/graphql/scripts/generate.ts | 4 ++-- kit/seeds/shared/scripts/generate.ts | 4 ++-- kit/seeds/wp-json/scripts/generate.ts | 4 ++-- package.json | 4 ++-- pnpm-lock.yaml | 26 +++++++++++++------------- 6 files changed, 22 insertions(+), 22 deletions(-) diff --git a/changes/release-1.0.md b/changes/release-1.0.md index 3501946..607c2e3 100644 --- a/changes/release-1.0.md +++ b/changes/release-1.0.md @@ -1,6 +1,6 @@ ### Changed — may break callers -- **Built on cli-base 1.0.0-rc.0 and cli-core 1.0.** A new CLI's generated API files read their types from +- **Built on cli-core 1.0 and cli-base 1.0.** A new CLI's generated API files read their types from `@wirecat/cli-base/codegen/runtime`, the WordPress seed's `spec-model.ts` uses `ModelOverride`, and the GraphQL seed's test takes `SchemaNode` from `/codegen/runtime`. A CLI from a WordPress config also tests that a sync which would mark every post deleted stays held, with `--rescan` too, until `--allow-deletions` names the count. diff --git a/kit/seeds/graphql/scripts/generate.ts b/kit/seeds/graphql/scripts/generate.ts index 81eb014..936009c 100644 --- a/kit/seeds/graphql/scripts/generate.ts +++ b/kit/seeds/graphql/scripts/generate.ts @@ -23,8 +23,8 @@ const artifacts = generate( [ typesGenerator({ path: "src/generated/types.ts" }), valibotGenerator({ path: "src/generated/schemas.ts", typesImport: "./types.js" }), - manifestGenerator({ path: "src/generated/manifest.ts", coreImport: "@wirecat/cli-base/codegen/runtime" }), - definitionsGenerator({ path: "src/generated/definitions.ts", coreImport: "@wirecat/cli-base/codegen/runtime" }), + manifestGenerator({ path: "src/generated/manifest.ts" }), + definitionsGenerator({ path: "src/generated/definitions.ts" }), coverageGenerator({ path: "docs/dev/API_COVERAGE.md", title: "API coverage", diff --git a/kit/seeds/shared/scripts/generate.ts b/kit/seeds/shared/scripts/generate.ts index 4b95771..4104920 100644 --- a/kit/seeds/shared/scripts/generate.ts +++ b/kit/seeds/shared/scripts/generate.ts @@ -23,8 +23,8 @@ const artifacts = generate( [ typesGenerator({ path: "src/generated/types.ts" }), valibotGenerator({ path: "src/generated/schemas.ts", typesImport: "./types.js" }), - manifestGenerator({ path: "src/generated/manifest.ts", coreImport: "@wirecat/cli-base/codegen/runtime" }), - definitionsGenerator({ path: "src/generated/definitions.ts", coreImport: "@wirecat/cli-base/codegen/runtime" }), + manifestGenerator({ path: "src/generated/manifest.ts" }), + definitionsGenerator({ path: "src/generated/definitions.ts" }), coverageGenerator({ path: "docs/dev/API_COVERAGE.md", title: "API coverage", diff --git a/kit/seeds/wp-json/scripts/generate.ts b/kit/seeds/wp-json/scripts/generate.ts index 019d3d1..a39ca69 100644 --- a/kit/seeds/wp-json/scripts/generate.ts +++ b/kit/seeds/wp-json/scripts/generate.ts @@ -28,8 +28,8 @@ const artifacts = generate( [ typesGenerator({ path: "src/generated/types.ts" }), valibotGenerator({ path: "src/generated/schemas.ts", typesImport: "./types.js" }), - manifestGenerator({ path: "src/generated/manifest.ts", coreImport: "@wirecat/cli-base/codegen/runtime" }), - definitionsGenerator({ path: "src/generated/definitions.ts", coreImport: "@wirecat/cli-base/codegen/runtime" }), + manifestGenerator({ path: "src/generated/manifest.ts" }), + definitionsGenerator({ path: "src/generated/definitions.ts" }), coverageGenerator({ path: "docs/dev/API_COVERAGE.md", title: "API coverage", diff --git a/package.json b/package.json index 03ea205..6917f33 100644 --- a/package.json +++ b/package.json @@ -91,8 +91,8 @@ "kit:docs": "cspell lint --config cspell.json --no-progress --no-summary kit/*.md SKILL.md && rumdl check --config config/wirecat/rumdl.toml kit/*.md SKILL.md" }, "dependencies": { - "@wirecat/cli-base": "1.0.0-rc.0", - "@wirecat/cli-core": "0.722.0", + "@wirecat/cli-base": "1.0.0-rc.1", + "@wirecat/cli-core": "1.0.0-rc.0", "commander": "15.0.0", "valibot": "1.5.0", "yaml": "2.9.1" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index eb3571b..017940d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,11 +13,11 @@ importers: .: dependencies: '@wirecat/cli-base': - specifier: 1.0.0-rc.0 - version: 1.0.0-rc.0(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5) + specifier: 1.0.0-rc.1 + version: 1.0.0-rc.1(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5) '@wirecat/cli-core': - specifier: 0.722.0 - version: 0.722.0(@wirecat/cli-base@1.0.0-rc.0(@scalar/openapi-upgrader@0.4.6)(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) + specifier: 1.0.0-rc.0 + version: 1.0.0-rc.0(@wirecat/cli-base@1.0.0-rc.1(@scalar/openapi-upgrader@0.4.6)(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 @@ -1179,8 +1179,8 @@ packages: '@wasm-audio-decoders/opus-ml@0.0.3': resolution: {integrity: sha512-SEeTmk0eb3q5etJA/NHCRWW6BivTx9tqvNTmG0kg2ynuATEQRUZnwQE6Ibvl1BBvqIGHqI57+qyJMWmJBwb5XQ==} - '@wirecat/cli-base@1.0.0-rc.0': - resolution: {integrity: sha512-vRfE2U3c3mUJGkyaaUQngxscRLCbKyL2/TiBj3Hy4hvA8rwkIgsr2jecRhB7z+0iUH8EkoEhChVaOvYD6H4xbA==} + '@wirecat/cli-base@1.0.0-rc.1': + resolution: {integrity: sha512-dNnlDaLK6luTzx2039s4hYVmzBBszmwlK6p2knC3yPTPDVFmN1c1G83ixma4VFLhSmx7rpFYsLaqK77BZHnyww==} engines: {node: ^22.16.0 || >=24} hasBin: true peerDependencies: @@ -1207,14 +1207,14 @@ packages: '@wirecat/cli-core-sqlite@1.1.0': resolution: {integrity: sha512-GpGlh/dAIX/nblBYCdT6DfWSLFxav9mxxeELQAfEuw+QZdT9unKxbi5xa02s/s4JS1P7n0PQx2sCABj4FlMRNw==} - '@wirecat/cli-core@0.722.0': - resolution: {integrity: sha512-nJM/EA3qpHRi+g7OWLhogNH1ZKVhbu6LdAQP+rNW7Fha6tcdmBCYCoSI9T0V+yb9FkxnOPPj7qNWOsEkAsJGfQ==} + '@wirecat/cli-core@1.0.0-rc.0': + resolution: {integrity: sha512-pSt7/knZ5u3YW9U3G/0VSR/O/fYqDsBLZzn1QNCgqvGXxmQhA2ILfMF4nDxqOTVDnDMk0gatk2tiFE9bKv5Z9w==} engines: {node: ^22.16.0 || >=24} hasBin: true peerDependencies: '@napi-rs/canvas': '>=0.1.69 <2' - '@wirecat/cli-base': '>=0.125.0 <1.0.0' - commander: '>=15' + '@wirecat/cli-base': ^1.0.0-0 + commander: ^15.0.0 mysql2: ^3.24.6 pg: ^8.23.1 ssh2: ^1.17.0 @@ -3307,7 +3307,7 @@ snapshots: dependencies: '@wasm-audio-decoders/common': 9.0.7 - '@wirecat/cli-base@1.0.0-rc.0(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5)': + '@wirecat/cli-base@1.0.0-rc.1(@scalar/openapi-upgrader@0.4.6)(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 @@ -3329,7 +3329,7 @@ snapshots: '@wirecat/cli-core-sqlite@1.1.0': {} - '@wirecat/cli-core@0.722.0(@wirecat/cli-base@1.0.0-rc.0(@scalar/openapi-upgrader@0.4.6)(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@1.0.0-rc.0(@wirecat/cli-base@1.0.0-rc.1(@scalar/openapi-upgrader@0.4.6)(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) @@ -3339,7 +3339,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': 1.0.0-rc.0(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5) + '@wirecat/cli-base': 1.0.0-rc.1(@scalar/openapi-upgrader@0.4.6)(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 From 0ecad2dc6eb4ec9aa918d9cd33a95985f4308955 Mon Sep 17 00:00:00 2001 From: leemour Date: Wed, 25 Nov 2026 12:22:15 +0100 Subject: [PATCH 3/3] chore(deps): move to cli-core 1.0.0 and cli-base 1.0.0 Both 1.0.0 releases are on npm under latest, so release/1.0 leaves the release candidates. A new CLI copies these pins: kit/src/new.ts takes the root package.json's dependencies, and the kit has no version of its own. The branch is rebased on main (0.35.0 and the release CI fix). - @wirecat/cli-core 1.0.0 and @wirecat/cli-base 1.0.0, exact pins as before; the lockfile follows with one cli-base copy. - The changelog fragment names cli-core 1.0.0 and cli-base 1.0.0. Checked locally: typecheck, kit:typecheck, lint, docs:check, deps:check, build, generate:check, contracts:check, pnpm peers check, scripts/one-cli-base.ts, the family audit, scripts/release.test.ts and kit/test/seeds.test.ts. kit:e2e is left to CI. Co-Authored-By: Claude Opus 5.5 --- changes/release-1.0.md | 2 +- package.json | 4 ++-- pnpm-lock.yaml | 22 +++++++++++----------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/changes/release-1.0.md b/changes/release-1.0.md index 607c2e3..fab0372 100644 --- a/changes/release-1.0.md +++ b/changes/release-1.0.md @@ -1,6 +1,6 @@ ### Changed — may break callers -- **Built on cli-core 1.0 and cli-base 1.0.** A new CLI's generated API files read their types from +- **Built on cli-core 1.0.0 and cli-base 1.0.0.** A new CLI's generated API files read their types from `@wirecat/cli-base/codegen/runtime`, the WordPress seed's `spec-model.ts` uses `ModelOverride`, and the GraphQL seed's test takes `SchemaNode` from `/codegen/runtime`. A CLI from a WordPress config also tests that a sync which would mark every post deleted stays held, with `--rescan` too, until `--allow-deletions` names the count. diff --git a/package.json b/package.json index 6917f33..61df1fe 100644 --- a/package.json +++ b/package.json @@ -91,8 +91,8 @@ "kit:docs": "cspell lint --config cspell.json --no-progress --no-summary kit/*.md SKILL.md && rumdl check --config config/wirecat/rumdl.toml kit/*.md SKILL.md" }, "dependencies": { - "@wirecat/cli-base": "1.0.0-rc.1", - "@wirecat/cli-core": "1.0.0-rc.0", + "@wirecat/cli-base": "1.0.0", + "@wirecat/cli-core": "1.0.0", "commander": "15.0.0", "valibot": "1.5.0", "yaml": "2.9.1" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 017940d..dc2a7e6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,11 +13,11 @@ importers: .: dependencies: '@wirecat/cli-base': - specifier: 1.0.0-rc.1 - version: 1.0.0-rc.1(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5) + specifier: 1.0.0 + version: 1.0.0(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5) '@wirecat/cli-core': - specifier: 1.0.0-rc.0 - version: 1.0.0-rc.0(@wirecat/cli-base@1.0.0-rc.1(@scalar/openapi-upgrader@0.4.6)(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) + specifier: 1.0.0 + version: 1.0.0(@wirecat/cli-base@1.0.0(@scalar/openapi-upgrader@0.4.6)(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 @@ -1179,8 +1179,8 @@ packages: '@wasm-audio-decoders/opus-ml@0.0.3': resolution: {integrity: sha512-SEeTmk0eb3q5etJA/NHCRWW6BivTx9tqvNTmG0kg2ynuATEQRUZnwQE6Ibvl1BBvqIGHqI57+qyJMWmJBwb5XQ==} - '@wirecat/cli-base@1.0.0-rc.1': - resolution: {integrity: sha512-dNnlDaLK6luTzx2039s4hYVmzBBszmwlK6p2knC3yPTPDVFmN1c1G83ixma4VFLhSmx7rpFYsLaqK77BZHnyww==} + '@wirecat/cli-base@1.0.0': + resolution: {integrity: sha512-PJ61d6z0CsWOmoWgf7uvlEo3EstpL2DplXiORPIqgmh0bn/ZGMOhRpDqN43Kh7WickaFSmeX74YQigHXkRO6rA==} engines: {node: ^22.16.0 || >=24} hasBin: true peerDependencies: @@ -1207,8 +1207,8 @@ packages: '@wirecat/cli-core-sqlite@1.1.0': resolution: {integrity: sha512-GpGlh/dAIX/nblBYCdT6DfWSLFxav9mxxeELQAfEuw+QZdT9unKxbi5xa02s/s4JS1P7n0PQx2sCABj4FlMRNw==} - '@wirecat/cli-core@1.0.0-rc.0': - resolution: {integrity: sha512-pSt7/knZ5u3YW9U3G/0VSR/O/fYqDsBLZzn1QNCgqvGXxmQhA2ILfMF4nDxqOTVDnDMk0gatk2tiFE9bKv5Z9w==} + '@wirecat/cli-core@1.0.0': + resolution: {integrity: sha512-0avQTqu3FAFKE0s+8Pz1Up/TMHTYqCdDn37lcZmkH30sMCMrgJwHzoG4Q0fjVzPsB85u+zBVHHhtQjF/eSTpuw==} engines: {node: ^22.16.0 || >=24} hasBin: true peerDependencies: @@ -3307,7 +3307,7 @@ snapshots: dependencies: '@wasm-audio-decoders/common': 9.0.7 - '@wirecat/cli-base@1.0.0-rc.1(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5)': + '@wirecat/cli-base@1.0.0(@scalar/openapi-upgrader@0.4.6)(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 @@ -3329,7 +3329,7 @@ snapshots: '@wirecat/cli-core-sqlite@1.1.0': {} - '@wirecat/cli-core@1.0.0-rc.0(@wirecat/cli-base@1.0.0-rc.1(@scalar/openapi-upgrader@0.4.6)(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@1.0.0(@wirecat/cli-base@1.0.0(@scalar/openapi-upgrader@0.4.6)(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) @@ -3339,7 +3339,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': 1.0.0-rc.1(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5) + '@wirecat/cli-base': 1.0.0(@scalar/openapi-upgrader@0.4.6)(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