Skip to content
Draft
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
28 changes: 28 additions & 0 deletions changes/release-1.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
### Added

- **`gcal <profile> sync --allow-deletions <count>`** lets a held round mark up to that many events deleted. A full
round is now held when it would mark most of a calendar deleted: an empty list, or more than half of ten or more
stored events. The round still ends, and `held` says why. `--rescan` lists everything again but does not lift the
hold. The flag is the owner's: an MCP server does not offer it.

### Changed — may break callers

- **gcal runs on cli-core 1.0 and cli-base 1.0** (cli-core 1.0.0, was 0.691.0; cli-base 1.0.0-rc.1, was 0.109.0).
cli-core 1.0 moves the message store to version 73 the first time it opens it: an id is never handed out twice,
and a JSON column holds valid JSON. After that, only tools on cli-core 1.0 open the store. Watch for: upgrade every
installed WireCat CLI to its 1.0 release first, and stop `serve`, `mcp` and every sync while the store migrates;
the migration writes a rollback copy first and refuses to run without one. See
[cli-core's changelog](https://github.com/WireCatLabs/cli-core/blob/main/CHANGELOG.md).

### Fixed

- **A calendar round no longer stalls on a series deleted between its listing and its slots call**, and an ICS feed
event that stops parsing is no longer marked deleted: the feed still holds it.

### Security

- **An MCP call cannot name a credential folder, a WireCat tool's folder or the message store.** Every option and
argument that takes a local file or folder (`gcal events import <file>`, `gcal events export --output`,
`--body-file` and the rest) is checked by its real path before the call runs, so neither a link nor `..` gets
past. A refused call answers `permission_error` (`access.denied`) with the option in `param`. A run in a terminal
is unchanged.
5 changes: 5 additions & 0 deletions contracts/help.snap
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,13 @@ Works with:
memo context <person> one person across messengers, mail, notes and meetings
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
wordpress WordPress posts and pages, searchable with your other WireCat data
linear Linear issues and projects, searchable with your other WireCat data

Start here: gcal personal session start (any profile name works)
Next: gcal commands every command, by section
Expand Down
42 changes: 40 additions & 2 deletions contracts/wirecat.json
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@
"schedule",
"command"
],
"summary": "run gcal <args…> on a timer — reads save what they read, so this is how a…",
"summary": "run gcal <args…> on a timer — reads save what they read, so this is how the…",
"effects": {
"remote": "none",
"local": "write"
Expand Down Expand Up @@ -1695,6 +1695,44 @@
"app": "gcal-cli",
"env": "GCAL"
},
"settings": null
"settings": null,
"accountRemove": {
"signOut": [
"{profile}",
"session",
"end",
"--record",
"--json"
],
"remove": {
"minVersion": "0.0.0",
"keepData": [
"{profile}",
"account",
"remove",
"--keep-data",
"--record",
"--json"
],
"deleteData": [
"{profile}",
"account",
"remove",
"--delete-data",
"--record",
"--json"
],
"dryRun": "--dry-run",
"confirm": "--yes"
},
"removes": [
"signIn"
],
"keeps": [
"settings",
"data",
"listed"
]
}
}
}
9 changes: 5 additions & 4 deletions docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ gcal sync [options]
| Option | What it does |
|---|---|
| `--rescan` | list every synced calendar's window again, dropping a round in progress. |
| `--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 to the provider in this run; as many as fit the deadline if not given. |
| `--embed` | also index new events for meaning search, with a model already downloaded. |

Expand Down Expand Up @@ -592,7 +593,7 @@ gcal search all <query> [options]
| `--exact` | bare words and quotes match their exact form only, as exact:word does. |
| `--timezone <zone>` | the IANA timezone for calendar date boundaries. |

**Returns:** hit — kind, ref, provider, account, title, timestamp, excerpt, url, and 18 more; every field: gcal commands info search all
**Returns:** hit — kind, ref, provider, account, title, timestamp, excerpt, url, and 19 more; every field: gcal commands info search all

**Example:** `gcal personal search all roadmap`, `gcal personal search all "quarterly review" --source telegram,gcal --json`

Expand Down Expand Up @@ -2274,7 +2275,7 @@ run a gcal command or an agent later or on a timer (systemd, launchd, Task Sched

### `gcal schedule command`

run gcal <args…> on a timer — reads save what they read, so this is how a chat's history fills the store
run gcal <args…> on a timer — reads save what they read, so this is how the store stays current

**Changes something on this computer only.**

Expand All @@ -2285,7 +2286,7 @@ gcal schedule command <name> <args> [options]
| Argument | | What it is |
|---|---|---|
| `name` | required | lowercase letters, digits and dashes. |
| `args` | required | the gcal command after its name, e.g. -- messages list <chat> --limit 50. |
| `args` | required | the gcal command after its name, e.g. -- doctor. |

| Option | What it does |
|---|---|
Expand All @@ -2311,7 +2312,7 @@ gcal schedule agent <name> <harness> <prompt> [options]
|---|---|---|
| `name` | required | lowercase letters, digits and dashes. |
| `harness` | required | the agent to start. One of: `claude`, `codex`, `gemini`, `cursor`, `opencode`, `openclaw`, `hermes`, `grok`, `kimi`. |
| `prompt` | required | what to do, e.g. "summarize what came in during the last day: gcal personal search messages 'date>1d' --newest --limit 20". |
| `prompt` | required | what to do, e.g. "say what needs attention in this installation: gcal doctor". |

| Option | What it does |
|---|---|
Expand Down
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.

**270 ✅ · 365 ⛔ · 0 ❌** — 115 commands, 520 options.
**271 ✅ · 365 ⛔ · 0 ❌** — 115 commands, 521 options.

| Command | Option | | Note |
|---|---|---|---|
Expand Down Expand Up @@ -38,6 +38,7 @@ Measured from the test run (`coverage/argv.jsonl`), not searched for — see
| `calendars busy` | `--hours` | ✅ | |
| `sync` | | ✅ | |
| `sync` | `--rescan` | ✅ | |
| `sync` | `--allow-deletions` | ✅ | |
| `sync` | `--max-pages` | ✅ | |
| `sync` | `--embed` | ✅ | |
| `store status` | | ✅ | |
Expand Down
2 changes: 1 addition & 1 deletion lint/baseline/unknown-verb.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
["meetings people"]
[]
7 changes: 0 additions & 7 deletions lint/overrides.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
[
{
"rule": "wcat-bin-name",
"target": "package.json \"bin\" gcal",
"reason": "Keeps the short gcal command beside wcat-gcal, as mail does: dropping it would break every script and agent setup that types gcal. Owner decision of 2026-11-02 (docs/dev/DESIGN.md, Command names).",
"owner": "@WireCatLabs",
"review_after": "2027-02-01"
},
{
"rule": "undeclared-host",
"target": "developers.google.com",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
"docs:spell": "cspell lint --config cspell.json --no-progress --no-summary README.md SECURITY.md CHANGELOG.md AGENTS.md CLAUDE.md 'docs/*.md' 'skills/**/*.md'"
},
"dependencies": {
"@wirecat/cli-base": "0.109.0",
"@wirecat/cli-core": "0.691.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"
},
Expand Down
Loading
Loading