From 18fbcf201b24f9b1ede31f8e9250948de2d3f94e Mon Sep 17 00:00:00 2001 From: leemour Date: Tue, 24 Nov 2026 03:48:54 +0100 Subject: [PATCH 1/5] build: adopt cli-core 1.0 and cli-base 1.0.0-rc.0 The release/1.0 branch parity builds against cli-core 1.0. - cli-base 1.0.0-rc.0. cli-core stays at 0.734.0 so the lockfile installs from npm; parity swaps in the 1.0 tarball. - The generated manifest and definitions, and the fake's SchemaNode, come from @wirecat/cli-base/codegen/runtime, cli-base 1.0's stable entry. - config.ts types the API's operations as ManifestOperation. With the manifest typed from /codegen/runtime, the inferred type named Binding and Confidence, which that entry does not export (TS2883). - sync --rescan no longer lifts the mass-deletion guard: the comment on the leads id pass names sync --allow-deletions instead. - docs/commands.md shows sync --allow-deletions and store migrate --no-backup; the options test runs sync --allow-deletions, and the test matrix lists both. - A changelog fragment says what 1.0 changes for the owner. Checked against the cli-core 1.0 tarball: typecheck, lint, build, docs check, test matrix check and all 261 tests pass (run-scope's hook timed out at 10 s under load and passed alone). Co-Authored-By: Claude Opus 5.5 --- changes/release-1.0.md | 11 +++++++++++ docs/commands.md | 13 +++++++++---- docs/dev/test-matrix.md | 4 +++- package.json | 2 +- pnpm-lock.yaml | 22 +++++++++++----------- scripts/generate.ts | 4 ++-- src/commands/crm-options.test.ts | 1 + src/config.ts | 21 ++++++++++++--------- src/crm/source.ts | 2 +- src/generated/definitions.ts | 2 +- src/generated/manifest.ts | 7 ++++++- src/testing/fake-hubspot.ts | 2 +- 12 files changed, 59 insertions(+), 32 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..c8f5f9d --- /dev/null +++ b/changes/release-1.0.md @@ -0,0 +1,11 @@ +### Changed — may break callers + +- **hubspot is built on cli-core 1.0 and cli-base 1.0.** After its first run the store is at version 73, and only + tools on cli-core 1.0 open it: upgrade every WireCat CLI on this computer together. The migration keeps a rollback + copy, and refuses to run when it cannot write one (`store migrate --no-backup` migrates anyway). +- **`sync --rescan` no longer lets a sync mark most of a kind deleted.** It only lists everything again. When the + guard holds a pass, `sync --allow-deletions ` lets it mark at most that many records deleted. The flag is + for the owner in a terminal; the MCP server does not offer it. +- **A sync no longer marks records deleted when HubSpot could not list a whole kind.** The id pass is held until a + full list comes back. +- **An MCP call that names a refused folder answers `permission_error`**, not `validation_error`. diff --git a/docs/commands.md b/docs/commands.md index 6b6f682..8d2c40c 100644 --- a/docs/commands.md +++ b/docs/commands.md @@ -120,6 +120,7 @@ hubspot sync [options] | Option | What it does | |---|---| | `--rescan` | list everything again, every id too, dropping a round in progress. | +| `--allow-deletions ` | let this run mark deleted up to this many of what its full list no longer has, when the guard holds it. | | `--max-pages ` | at most this many requests to the CRM in this run. | **Returns:** crm sync — provider, account, scope, pipelines, skipped_owner_rejected, stage_tasks, synced, issues, and 9 more; every field: hubspot commands info sync @@ -191,9 +192,13 @@ bring the store up to this build's schema, then normalize, index and stem the me **Changes something on this computer only.** ```sh -hubspot store migrate +hubspot 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. | + **Returns:** store migration — path, exists, from, to, normalized, indexed, terms, stemmed, and 1 more; every field: hubspot commands info store migrate **Example:** `hubspot work store migrate` @@ -664,7 +669,7 @@ hubspot people show | Argument | | What it is | |---|---|---| -| `person` | required | the CRM's id of the person, as list prints it, or its exact name. | +| `person` | required | the CRM's id of the person, as list prints it, the person: a deal gives, or its exact name. | **Returns:** crm person — id, name, first_name, last_name, position, organization_ids, assigned_to, created_at, and 6 more; every field: hubspot commands info people show @@ -760,7 +765,7 @@ hubspot organizations show | Argument | | What it is | |---|---|---| -| `organization` | required | the CRM's id of the organization, as list prints it, or its exact name. | +| `organization` | required | the CRM's id of the organization, as list prints it, the organization: a deal gives, or its exact name. | **Returns:** crm organization — id, name, type, own, person_ids, assigned_to, created_at, updated_at, and 5 more; every field: hubspot commands info organizations show @@ -1002,7 +1007,7 @@ hubspot search all [options] | `--exact` | bare words and quotes match their exact form only, as exact:word does. | | `--timezone ` | the IANA timezone for calendar date boundaries. | -**Returns:** hit — kind, ref, provider, account, title, timestamp, excerpt, url, and 18 more; every field: hubspot commands info search all +**Returns:** hit — kind, ref, provider, account, title, timestamp, excerpt, url, and 19 more; every field: hubspot commands info search all **Example:** `hubspot work search all Example LLC`, `hubspot work search all website --only crm --json` diff --git a/docs/dev/test-matrix.md b/docs/dev/test-matrix.md index 41f7fb8..8759813 100644 --- a/docs/dev/test-matrix.md +++ b/docs/dev/test-matrix.md @@ -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. -**846 ✅ · 61 ⛔ · 0 ❌** — 247 commands, 660 options. +**847 ✅ · 62 ⛔ · 0 ❌** — 247 commands, 662 options. | Command | Option | | Note | |---|---|---|---| @@ -21,6 +21,7 @@ Measured from the test run (`coverage/argv.jsonl`), not searched for — see | `session list` | | ✅ | | | `sync` | | ✅ | | | `sync` | `--rescan` | ✅ | | +| `sync` | `--allow-deletions` | ✅ | | | `sync` | `--max-pages` | ✅ | | | `store status` | | ✅ | | | `store apply` | | ✅ | | @@ -28,6 +29,7 @@ Measured from the test run (`coverage/argv.jsonl`), not searched for — see | `store info` | | ⛔ | cli-core's addStoreMaintenanceCommands, mounted by addCrmCommands; its store and src/crm/cli/store-file tests drive them on a CRM program | | `store check` | | ⛔ | cli-core's addStoreMaintenanceCommands, mounted by addCrmCommands; its store and src/crm/cli/store-file tests drive them on a CRM program | | `store migrate` | | ⛔ | cli-core's addStoreMaintenanceCommands, mounted by addCrmCommands; its store and src/crm/cli/store-file tests drive them on a CRM program | +| `store migrate` | `--no-backup` | ⛔ | cli-core's addStoreMaintenanceCommands, mounted by addCrmCommands; its store and src/crm/cli/store-file tests drive them on a CRM program | | `store rebuild` | | ⛔ | cli-core's addStoreMaintenanceCommands, mounted by addCrmCommands; its store and src/crm/cli/store-file tests drive them on a CRM program | | `store backup` | | ⛔ | cli-core's addStoreMaintenanceCommands, mounted by addCrmCommands; its store and src/crm/cli/store-file tests drive them on a CRM program | | `store backup` | `--encrypt` | ⛔ | cli-core's addStoreMaintenanceCommands, mounted by addCrmCommands; its store and src/crm/cli/store-file tests drive them on a CRM program | diff --git a/package.json b/package.json index 2dbc61f..1cd2690 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "spec:sync": "node --experimental-strip-types scripts/sync-spec.ts" }, "dependencies": { - "@wirecat/cli-base": "0.127.0", + "@wirecat/cli-base": "1.0.0-rc.0", "@wirecat/cli-core": "0.734.0", "commander": "15.0.0", "valibot": "1.5.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 44d61a6..e043ba3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,11 +13,11 @@ importers: .: dependencies: '@wirecat/cli-base': - specifier: 0.127.0 - version: 0.127.0(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.734.0 - version: 0.734.0(@wirecat/cli-base@0.127.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) + version: 0.734.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 @@ -1185,16 +1185,16 @@ packages: '@wasm-audio-decoders/opus-ml@0.0.3': resolution: {integrity: sha512-SEeTmk0eb3q5etJA/NHCRWW6BivTx9tqvNTmG0kg2ynuATEQRUZnwQE6Ibvl1BBvqIGHqI57+qyJMWmJBwb5XQ==} - '@wirecat/cli-base@0.127.0': - resolution: {integrity: sha512-w7LkZhICv4d08N/vEWT4BnxeWt9tPpkVEOFBIUL7sR+JX5PNTHJj3vVTTT/pWhqtmVBFvsFA1xtdoHEX2GfZwQ==} - 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 @@ -3343,7 +3343,7 @@ snapshots: dependencies: '@wasm-audio-decoders/common': 9.0.7 - '@wirecat/cli-base@0.127.0(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 @@ -3364,7 +3364,7 @@ snapshots: '@wirecat/cli-core-sqlite@1.1.0': {} - '@wirecat/cli-core@0.734.0(@wirecat/cli-base@0.127.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)': + '@wirecat/cli-core@0.734.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) @@ -3374,7 +3374,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.127.0(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/generate.ts b/scripts/generate.ts index 4a2fae7..2e9b905 100644 --- a/scripts/generate.ts +++ b/scripts/generate.ts @@ -76,8 +76,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/src/commands/crm-options.test.ts b/src/commands/crm-options.test.ts index caecb2f..705c674 100644 --- a/src/commands/crm-options.test.ts +++ b/src/commands/crm-options.test.ts @@ -26,6 +26,7 @@ describe("every option of the CRM commands runs against the fake account", () => const { account, deal, lead } = await synced() for (const argv of [ ["sync", "--rescan", "--max-pages", "50"], + ["sync", "--allow-deletions", "5"], ["deals", "list", "--limit", "1", "--page", "2"], ["deals", "list", "--format", "csv"], ["deals", "show", deal], diff --git a/src/config.ts b/src/config.ts index 542d107..46a3e43 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,3 +1,4 @@ +import type { ManifestOperation } from "@wirecat/cli-base/codegen/runtime" import type { CrmKind } from "@wirecat/cli-core" import { type BodyPermission, @@ -204,15 +205,17 @@ const bodyPermissions = Object.fromEntries( export const API = { manifest: { ...manifest, - operations: manifest.operations.filter(offered).map((operation) => ({ - ...operation, - permissions: [ - ...(operation.permissions ?? []), - ...keysOf(operation), - // cli-core takes a body key only when the manifest names it; the run checks it through `bodyPermissions`. - ...bodyKeysOf(operation).map(({ named }) => named), - ], - })), + operations: manifest.operations.filter(offered).map( + (operation): ManifestOperation => ({ + ...operation, + permissions: [ + ...(operation.permissions ?? []), + ...keysOf(operation), + // cli-core takes a body key only when the manifest names it; the run checks it through `bodyPermissions`. + ...bodyKeysOf(operation).map(({ named }) => named), + ], + }), + ), }, service: SERVICE, bodyPermissions, diff --git a/src/crm/source.ts b/src/crm/source.ts index 433b011..778cfd1 100644 --- a/src/crm/source.ts +++ b/src/crm/source.ts @@ -353,7 +353,7 @@ export const hubspotCrmSource = (hub: () => HubSpotTransport, options: HubSpotSo }, // Any other refusal fails the pass rather than answer no ids, which would mark every stored row deleted // (WC-DATA-7). Leads are the exception: an account without Sales Hub Pro never has any, and core holds back a pass - // that would delete most of a kind until --rescan. + // that would delete most of a kind until the owner runs sync --allow-deletions. async ids(kind, page, context): Promise { const type = OBJECTS[kind] try { diff --git a/src/generated/definitions.ts b/src/generated/definitions.ts index 8b900e8..2344b95 100644 --- a/src/generated/definitions.ts +++ b/src/generated/definitions.ts @@ -2,7 +2,7 @@ // Source: spec/hubspot/, checked against provenance.json // Run: pnpm generate -import type { SchemaNode } from "@wirecat/cli-base/codegen" +import type { SchemaNode } from "@wirecat/cli-base/codegen/runtime" export const definitions: Readonly> = { AssociatedId: { diff --git a/src/generated/manifest.ts b/src/generated/manifest.ts index 1be70d6..7d08ea8 100644 --- a/src/generated/manifest.ts +++ b/src/generated/manifest.ts @@ -2,7 +2,12 @@ // Source: spec/hubspot/, checked against provenance.json // Run: pnpm generate -import type { ApiServer, ManifestOperation, SecurityRequirement, SecurityScheme } from "@wirecat/cli-base/codegen" +import type { + ApiServer, + ManifestOperation, + SecurityRequirement, + SecurityScheme, +} from "@wirecat/cli-base/codegen/runtime" export const operations: readonly ManifestOperation[] = [ { diff --git a/src/testing/fake-hubspot.ts b/src/testing/fake-hubspot.ts index a7be28c..0e27eaa 100644 --- a/src/testing/fake-hubspot.ts +++ b/src/testing/fake-hubspot.ts @@ -1,5 +1,5 @@ -import type { SchemaNode } from "@wirecat/cli-base/codegen" import { type FakeAnswer, type FakeCall, fakeApi } from "@wirecat/cli-base/codegen" +import type { SchemaNode } from "@wirecat/cli-base/codegen/runtime" import { definitions } from "../generated/definitions.js" import { operations } from "../generated/manifest.js" import { HUBSPOT_API } from "../hubspot/transport.js" From 0b99b89d6f280eeee97c516d00bd694a1be7ebe5 Mon Sep 17 00:00:00 2001 From: leemour Date: Tue, 24 Nov 2026 22:44:49 +0100 Subject: [PATCH 2/5] test: --subject takes person:crm: for HubSpot's id, as on main cli-core 0.748 (#3309) reads person: and organization: as the copy's record and person:crm: as the CRM's. Main took this in #31; the 1.0 branch now matches it. Co-Authored-By: Claude Opus 5.5 --- src/crm/writer.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crm/writer.test.ts b/src/crm/writer.test.ts index 4e4552c..5f7769f 100644 --- a/src/crm/writer.test.ts +++ b/src/crm/writer.test.ts @@ -285,7 +285,7 @@ describe("note and task writes", () => { "--subject", deal, "--subject", - `person:${ids.ana}`, + `person:crm:${ids.ana}`, "--text", "Called \nagreed on 5 & 6", ]) @@ -300,7 +300,7 @@ describe("note and task writes", () => { "create", "task", "--subject", - `organization:${ids.acme}`, + `organization:crm:${ids.acme}`, "--title", "Send the contract", "--due", From 028b6b9f11230bd7d6f350d6c4d4175e7c8f1534 Mon Sep 17 00:00:00 2001 From: leemour Date: Wed, 25 Nov 2026 04:42:24 +0100 Subject: [PATCH 3/5] build(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.734.0 and cli-base 1.0.0-rc.0, so its own CI was red. Pin both to the release candidates now on npm under the `next` tag and update the lockfile; scripts/one-cli-base.ts still finds one cli-base copy. cli-base rc.1 makes `@wirecat/cli-base/codegen/runtime` the generators' default coreImport, so scripts/generate.ts no longer passes it; generate --check shows the generated files unchanged. docs/commands.md and contracts/wirecat.json are regenerated: cli-core 1.0 gives `sync` the `--embed` option and one more returned field, words `--subject` with person:crm: for HubSpot's ids, and the manifest's setup entry gains `setupFrom` as in the other CLIs. The changelog fragment changes/release-1.0.md already describes the move to cli-core 1.0 and store version 73. Co-Authored-By: Claude Opus 5.5 --- contracts/wirecat.json | 3 ++- docs/commands.md | 7 ++++--- package.json | 4 ++-- pnpm-lock.yaml | 26 +++++++++++++------------- scripts/generate.ts | 4 ++-- 5 files changed, 23 insertions(+), 21 deletions(-) diff --git a/contracts/wirecat.json b/contracts/wirecat.json index 33f4775..e5c74b9 100644 --- a/contracts/wirecat.json +++ b/contracts/wirecat.json @@ -3188,7 +3188,8 @@ ], "signIn": { "gives": "Lets your agent read the account's CRM, and change it if you give the key the write scopes.", - "asks": "A service key or a legacy private app's access token from your HubSpot account, with read scopes, and write scopes if you want changes." + "asks": "A service key or a legacy private app's access token from your HubSpot account, with read scopes, and write scopes if you want changes.", + "setupFrom": "0.0.0" }, "skill": { "status": [ diff --git a/docs/commands.md b/docs/commands.md index 8d2c40c..d0c02ac 100644 --- a/docs/commands.md +++ b/docs/commands.md @@ -122,10 +122,11 @@ hubspot sync [options] | `--rescan` | list everything again, every id too, dropping a round in progress. | | `--allow-deletions ` | let this run mark deleted up to this many of what its full list no longer has, when the guard holds it. | | `--max-pages ` | at most this many requests to the CRM in this run. | +| `--embed` | also index new activities and tasks for search all by meaning, with a model already downloaded. | -**Returns:** crm sync — provider, account, scope, pipelines, skipped_owner_rejected, stage_tasks, synced, issues, and 9 more; every field: hubspot commands info sync +**Returns:** crm sync — provider, account, scope, pipelines, skipped_owner_rejected, stage_tasks, synced, issues, and 10 more; every field: hubspot commands info sync -**Example:** `hubspot work sync`, `hubspot work sync --rescan`, `hubspot work sync --max-pages 20` +**Example:** `hubspot work sync`, `hubspot work sync --rescan`, `hubspot work sync --embed` ## `hubspot store` @@ -901,7 +902,7 @@ hubspot activities create [options] | Option | What it does | |---|---| -| `--subject ` | a record it is on: deal: or lead: as a list shows it, or person: or organization: by the CRM's id as people list and organizations list print it; repeat it for more. Default: ``. | +| `--subject ` | a record it is on: deal:, lead:, person: or organization: as a list or deals show gives it, or person:crm: or organization:crm: by the CRM's id as people list and organizations list print it; repeat it for more. Default: ``. | | `--title ` | a task's title, needed for a task; a comment's title where the CRM keeps one. | | `--text <text>` | a comment's text, needed for a comment; a task's description. | | `--due <time>` | a task's deadline: an ISO 8601 time, a date (its end), today, or 2h, 3d from now; in your time zone. | diff --git a/package.json b/package.json index 1cd2690..7fcdc38 100644 --- a/package.json +++ b/package.json @@ -72,8 +72,8 @@ "spec:sync": "node --experimental-strip-types scripts/sync-spec.ts" }, "dependencies": { - "@wirecat/cli-base": "1.0.0-rc.0", - "@wirecat/cli-core": "0.734.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" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e043ba3..579f4ea 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(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(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5) '@wirecat/cli-core': - specifier: 0.734.0 - version: 0.734.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) + specifier: 1.0.0-rc.0 + version: 1.0.0-rc.0(@wirecat/cli-base@1.0.0-rc.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) commander: specifier: 15.0.0 version: 15.0.0 @@ -1185,8 +1185,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: @@ -1213,14 +1213,14 @@ packages: '@wirecat/cli-core-sqlite@1.1.0': resolution: {integrity: sha512-GpGlh/dAIX/nblBYCdT6DfWSLFxav9mxxeELQAfEuw+QZdT9unKxbi5xa02s/s4JS1P7n0PQx2sCABj4FlMRNw==} - '@wirecat/cli-core@0.734.0': - resolution: {integrity: sha512-Nw14utF9w1r8kfHim/WrkhYxoSsPKjrfD1sSNy4y0ayyxZp8ZuS3ZdOxW1mfvTXSNk7KQ5MOMXGD9yqAjJ8gEg==} + '@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 @@ -3343,7 +3343,7 @@ snapshots: dependencies: '@wasm-audio-decoders/common': 9.0.7 - '@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-base@1.0.0-rc.1(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 @@ -3364,7 +3364,7 @@ snapshots: '@wirecat/cli-core-sqlite@1.1.0': {} - '@wirecat/cli-core@0.734.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)': + '@wirecat/cli-core@1.0.0-rc.0(@wirecat/cli-base@1.0.0-rc.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)': dependencies: '@anthropic-ai/sdk': 1.3.0(zod@4.6.7) '@bomb.sh/tab': 0.0.22(commander@15.0.0) @@ -3374,7 +3374,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(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5) + '@wirecat/cli-base': 1.0.0-rc.1(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/generate.ts b/scripts/generate.ts index 2e9b905..4a2fae7 100644 --- a/scripts/generate.ts +++ b/scripts/generate.ts @@ -76,8 +76,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", From c2745a5dd8176700711e581ad7b0744a60ac2433 Mon Sep 17 00:00:00 2001 From: leemour <leemour@gmail.com> Date: Wed, 25 Nov 2026 12:09:23 +0100 Subject: [PATCH 4/5] build(deps): move to the final cli-core 1.0.0 and cli-base 1.0.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit hubspot now pins @wirecat/cli-core 1.0.0 and @wirecat/cli-base 1.0.0, the final releases, in place of 1.0.0-rc.0 and 1.0.0-rc.1. main has not moved since this branch merged it, so no rebase was needed. The changelog fragment names 1.0.0 and stays under "Changed — may break callers": the store moves to version 73 and only cli-core 1.0 tools open it. Checked locally: typecheck, lint, generate:check, docs:check, peers check, one-cli-base and the family audit (0 new findings that block). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- 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 c8f5f9d..13ba7ec 100644 --- a/changes/release-1.0.md +++ b/changes/release-1.0.md @@ -1,6 +1,6 @@ ### Changed — may break callers -- **hubspot is built on cli-core 1.0 and cli-base 1.0.** After its first run the store is at version 73, and only +- **hubspot is built on cli-core 1.0.0 and cli-base 1.0.0.** After its first run the store is at version 73, and only tools on cli-core 1.0 open it: upgrade every WireCat CLI on this computer together. The migration keeps a rollback copy, and refuses to run when it cannot write one (`store migrate --no-backup` migrates anyway). - **`sync --rescan` no longer lets a sync mark most of a kind deleted.** It only lists everything again. When the diff --git a/package.json b/package.json index 40d7342..a2f647a 100644 --- a/package.json +++ b/package.json @@ -72,8 +72,8 @@ "spec:sync": "node --experimental-strip-types scripts/sync-spec.ts" }, "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" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 579f4ea..4eb07b0 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(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5) + specifier: 1.0.0 + version: 1.0.0(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(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(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 @@ -1185,8 +1185,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: @@ -1213,8 +1213,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: @@ -3343,7 +3343,7 @@ snapshots: dependencies: '@wasm-audio-decoders/common': 9.0.7 - '@wirecat/cli-base@1.0.0-rc.1(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5)': + '@wirecat/cli-base@1.0.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 @@ -3364,7 +3364,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(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(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) @@ -3374,7 +3374,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(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5) + '@wirecat/cli-base': 1.0.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 From 6ab146d91c9b77cf78f30d19696fee3eaff615a5 Mon Sep 17 00:00:00 2001 From: leemour <leemour@gmail.com> Date: Wed, 25 Nov 2026 12:10:59 +0100 Subject: [PATCH 5/5] chore(release): live check of 0.7.0 on cli-core 1.0.0 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- docs/dev/live-checks.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/dev/live-checks.txt b/docs/dev/live-checks.txt index d1bbf8d..f9e8dab 100644 --- a/docs/dev/live-checks.txt +++ b/docs/dev/live-checks.txt @@ -14,3 +14,4 @@ 0.6.0 ae209971690ef16ec86d4a137bea6d3aeee787ad 2026-11-23 scripts/live.sh v2:fc64eefccef50923acd45c7152a37b3a6c92e3c05bda4146a0380574d8069dbe 0.6.0 57a8a4e1e572e87b8cfef004c039f04a853d5bcf 2026-11-24 scripts/live.sh v2:db3050e8f030823f313ef44856f330134bcbc01d1832632b105ff96c22c73edc 0.7.0 e763947b16ee5f35641c6702d6412b5d5bd78ceb 2026-11-24 scripts/live.sh v2:a5a26dffe5dcf00c53fb76fd8b7ced7dede3700f3501b3144c010ebc1620644a +0.7.0 c2745a5dd8176700711e581ad7b0744a60ac2433 2026-11-25 scripts/live.sh v2:1926874a8a6e066d98b0504b12b1a5f489aaaec129e123a6ae20b2c8bd745f31