Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions changes/release-1.0.md
Original file line number Diff line number Diff line change
@@ -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 <count>` 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`.
2 changes: 1 addition & 1 deletion contracts/wirecat.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 5 additions & 4 deletions docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <count>` | let this run mark deleted up to this many of what its full list no longer has, when the guard holds it. |
| `--max-pages <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. |

Expand Down Expand Up @@ -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`

Expand All @@ -10202,15 +10203,15 @@ linear issues show <issue>

### `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 <words> [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 |
|---|---|
Expand All @@ -10219,7 +10220,7 @@ linear issues search <words> [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`

Expand Down
1 change: 1 addition & 0 deletions docs/dev/live-checks.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion docs/dev/test-matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
|---|---|---|---|
Expand Down Expand Up @@ -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 |
Expand Down
2 changes: 1 addition & 1 deletion lint/baseline/unknown-resource.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
["sprints"]
[]
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
32 changes: 16 additions & 16 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/generated/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Record<string, SchemaNode>> = {
AccessKey: {
Expand Down
7 changes: 6 additions & 1 deletion src/generated/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [
{
Expand Down
4 changes: 3 additions & 1 deletion src/tracker-options.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand All @@ -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)
Loading