diff --git a/changes/release-1.0.md b/changes/release-1.0.md new file mode 100644 index 0000000..c6d69d1 --- /dev/null +++ b/changes/release-1.0.md @@ -0,0 +1,9 @@ +### Changed — may break callers + +- **linear 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. +- **`sync --rescan` no longer lets a sync mark most of the issues or documents deleted.** It only lists everything + again. When the guard holds a pass, `sync --allow-deletions ` lets it mark at most that many deleted. The + flag is for the owner in a terminal; the MCP server does not offer it. +- **An MCP call that names a refused folder answers `permission_error`**, not `validation_error`. diff --git a/contracts/wirecat.json b/contracts/wirecat.json index 9817670..0b5b002 100644 --- a/contracts/wirecat.json +++ b/contracts/wirecat.json @@ -6599,7 +6599,7 @@ "issues", "search" ], - "summary": "find issues, projects and comments in the copy by their words", + "summary": "find issues, projects and comments in the copy by their words, and by…", "effects": { "remote": "none", "local": "read" diff --git a/docs/commands.md b/docs/commands.md index ad9fc42..2d52c9f 100644 --- a/docs/commands.md +++ b/docs/commands.md @@ -10152,6 +10152,7 @@ linear sync [options] | Option | What it does | |---|---| | `--rescan` | list everything again, issues and documents, dropping a round in progress; a rescan of the documents starts their walk over each time, so run it once and continue with a plain sync. | +| `--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 for the issues in this run, and as many for the documents. | | `--embed` | also index new issues, projects and comments and the documents' pending text for meaning search, with a model already downloaded. | @@ -10182,7 +10183,7 @@ linear issues list [query] [options] **Returns:** tracker issue — kind, external_id, deleted; every field: linear commands info issues list -**Example:** `linear work issues list type:started`, `linear work issues list assignee:none --json` +**Example:** `linear work issues list type:started`, `linear work issues list label:Bug assignee:none --json` ### `linear issues show` @@ -10202,7 +10203,7 @@ linear issues show ### `linear issues search` -find issues, projects and comments in the copy by their words +find issues, projects and comments in the copy by their words, and by meaning once sync --embed built their vectors ```sh linear issues search [options] @@ -10210,7 +10211,7 @@ linear issues search [options] | Argument | | What it is | |---|---|---| -| `words` | required | every word must match, in any form; a word of four letters or more finds the words it begins. | +| `words` | required | every word must match, in any form and any order; a word of four letters or more finds the words it begins; "a phrase" in quote marks inside the query keeps its words together; a question finds what holds some of its words. | | Option | What it does | |---|---| @@ -10219,7 +10220,7 @@ linear issues search [options] **Returns:** tracker hit — kind, external_id, deleted; every field: linear commands info issues search -**Example:** `linear work issues search "invoice currency"` +**Example:** `linear work issues search invoice currency`, `linear work issues search "why do refunds round wrong?"` ### `linear issues assign` diff --git a/docs/dev/live-checks.txt b/docs/dev/live-checks.txt index 845bf86..8114ee1 100644 --- a/docs/dev/live-checks.txt +++ b/docs/dev/live-checks.txt @@ -7,3 +7,4 @@ 0.3.1 7336cb1b3413045c7cbf8b58cb8cc39024860c87 2026-11-24 scripts/live.sh v2:6733476aecd23ef9dc300d4d0ec2db04c275258d97eda14770dc1bac12b09c57 0.4.0 da387dc73e9336deb29cfced8225cdefca3a59b4 2026-11-25 scripts/live.sh v2:7196237816ccd4c9a56c7b6ec6a27e19d1a740f800106640bb61b51f3788458f 0.4.1 d91193dc075ea7a74d8cf1352b85260aea1754a3 2026-11-25 scripts/live.sh v2:6d00d711184eeaaa05508a562cb1ec2d16ba75f394c2f2104d10ac727afa8de7 +0.4.1 c6eff4256c29b6ed8ec39e0d3c6a8a0442f5038e 2026-11-25 scripts/live.sh v2:1cc684062a8fe9d45d7c965a08aba8b5291a9b676b74bd8b6feebad327e0755a diff --git a/docs/dev/test-matrix.md b/docs/dev/test-matrix.md index c414106..97882dc 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. -**2763 ✅ · 89 ⛔ · 0 ❌** — 583 commands, 2269 options. +**2764 ✅ · 89 ⛔ · 0 ❌** — 583 commands, 2270 options. | Command | Option | | Note | |---|---|---|---| @@ -2733,6 +2733,7 @@ Measured from the test run (`coverage/argv.jsonl`), not searched for — see | `identities link` | | ⛔ | cli-core's shared documents command, mounted by documentLibrary; cli-core's documents tests and documentCommandsContract drive it, and src/documents.test.ts runs the contract over this CLI | | `sync` | | ✅ | | | `sync` | `--rescan` | ✅ | | +| `sync` | `--allow-deletions` | ✅ | | | `sync` | `--max-pages` | ✅ | | | `sync` | `--embed` | ⛔ | needs a downloaded meaning model or a configured model provider; cli-core's documents kit tests the shared command with a fake model, and no test here downloads one | | `sync` | `--limit` | ⛔ | hidden, and refused while its arguments are parsed, before a run the trace sees; src/documents.test.ts runs it and cli-core's tracker documents-sync tests check the refusal | diff --git a/lint/baseline/unknown-resource.json b/lint/baseline/unknown-resource.json index 9005b86..fe51488 100644 --- a/lint/baseline/unknown-resource.json +++ b/lint/baseline/unknown-resource.json @@ -1 +1 @@ -["sprints"] +[] diff --git a/package.json b/package.json index a437b44..42f9aec 100644 --- a/package.json +++ b/package.json @@ -62,8 +62,8 @@ "source:check": "node --experimental-strip-types scripts/source-check.ts" }, "dependencies": { - "@wirecat/cli-base": "0.132.0", - "@wirecat/cli-core": "0.750.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 ec32844..c3a5b8f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,11 +13,11 @@ importers: .: dependencies: '@wirecat/cli-base': - specifier: 0.132.0 - version: 0.132.0(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: 0.750.0 - version: 0.750.0(@wirecat/cli-base@0.132.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 + 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,16 +1185,16 @@ packages: '@wasm-audio-decoders/opus-ml@0.0.3': resolution: {integrity: sha512-SEeTmk0eb3q5etJA/NHCRWW6BivTx9tqvNTmG0kg2ynuATEQRUZnwQE6Ibvl1BBvqIGHqI57+qyJMWmJBwb5XQ==} - '@wirecat/cli-base@0.132.0': - resolution: {integrity: sha512-y43hIGVFDUgVFTksTFnlK0KdLuROBDcv0smqme4/WSjkUS3PaGQnuAvu09G2VvW0zmvM2+OHFuQaZEN3Hir8nQ==} - engines: {node: '>=22'} + '@wirecat/cli-base@1.0.0': + resolution: {integrity: sha512-PJ61d6z0CsWOmoWgf7uvlEo3EstpL2DplXiORPIqgmh0bn/ZGMOhRpDqN43Kh7WickaFSmeX74YQigHXkRO6rA==} + 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 @@ -1213,14 +1213,14 @@ packages: '@wirecat/cli-core-sqlite@1.1.0': resolution: {integrity: sha512-GpGlh/dAIX/nblBYCdT6DfWSLFxav9mxxeELQAfEuw+QZdT9unKxbi5xa02s/s4JS1P7n0PQx2sCABj4FlMRNw==} - '@wirecat/cli-core@0.750.0': - resolution: {integrity: sha512-9xUOyRg8cAmb64EJ37thM6AbNNy3xbgVRMhCjTjKU9xN0osUWO1euXB8IN+qmgn1W7aQU2tuXP4XcsuJUY2Evw==} + '@wirecat/cli-core@1.0.0': + resolution: {integrity: sha512-0avQTqu3FAFKE0s+8Pz1Up/TMHTYqCdDn37lcZmkH30sMCMrgJwHzoG4Q0fjVzPsB85u+zBVHHhtQjF/eSTpuw==} 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@0.132.0(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@0.750.0(@wirecat/cli-base@0.132.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(@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': 0.132.0(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 diff --git a/src/generated/definitions.ts b/src/generated/definitions.ts index f6ce803..293dc3f 100644 --- a/src/generated/definitions.ts +++ b/src/generated/definitions.ts @@ -2,7 +2,7 @@ // Source: spec/linear/, 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> = { AccessKey: { diff --git a/src/generated/manifest.ts b/src/generated/manifest.ts index c14f65b..ee6830a 100644 --- a/src/generated/manifest.ts +++ b/src/generated/manifest.ts @@ -2,7 +2,12 @@ // Source: spec/linear/, 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/tracker-options.test.ts b/src/tracker-options.test.ts index 87a7d75..061b0c5 100644 --- a/src/tracker-options.test.ts +++ b/src/tracker-options.test.ts @@ -21,6 +21,7 @@ it("every option of the tracker commands runs over a synced copy", async () => { .split(/\W+/) .find((one) => one.length > 2) ?? ref for (const argv of [ + ["sync", "--allow-deletions", "5"], ["issues", "list", "--limit", "1", "--page", "1"], ["issues", "show", ref], ["issues", "search", word, "--limit", "1", "--page", "1"], @@ -38,4 +39,5 @@ it("every option of the tracker commands runs over a synced copy", async () => { expect(answer.code, `${argv.join(" ")}: ${answer.err}`).toBe(0) } expect(service.refusals).toEqual([]) -}) + // Two full syncs of the fake: one took 8 s on a CI runner, so the default 15 s left no room for the second. +}, 60_000)