@wirecat/cli-core 0.667.0 → 0.669.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +92 -0
  2. package/dist/calendar/mcp/index.d.ts +2909 -186
  3. package/dist/calendar/mcp/index.js +20 -7
  4. package/dist/calendar/testing/writer-contract.js +33 -0
  5. package/dist/cli/documents/catalog.js +3 -14
  6. package/dist/cli/documents/sync.d.ts +21 -5
  7. package/dist/cli/documents/sync.js +39 -8
  8. package/dist/cli/documents/testing/source-contract.d.ts +9 -0
  9. package/dist/cli/documents/testing/source-contract.js +12 -0
  10. package/dist/cli/meeting-batch.js +2 -2
  11. package/dist/documents/model.d.ts +4 -0
  12. package/dist/entities/index.d.ts +1 -0
  13. package/dist/errors/reasons.js +1 -0
  14. package/dist/meetings/answers.d.ts +2 -0
  15. package/dist/meetings/answers.js +3 -0
  16. package/dist/meetings/cli/index.d.ts +2 -0
  17. package/dist/meetings/cli/index.js +4 -1
  18. package/dist/meetings/cli/management.d.ts +2 -0
  19. package/dist/meetings/cli/management.js +6 -1
  20. package/dist/meetings/cli/passage.js +2 -2
  21. package/dist/meetings/index.d.ts +2 -2
  22. package/dist/meetings/index.js +2 -2
  23. package/dist/meetings/mcp/passage.js +2 -2
  24. package/dist/meetings/passage.d.ts +5 -0
  25. package/dist/meetings/passage.js +10 -0
  26. package/dist/meetings/read-answers.d.ts +2 -0
  27. package/dist/meetings/read-answers.js +2 -0
  28. package/dist/meetings/read-through.d.ts +1 -1
  29. package/dist/meetings/read-through.js +4 -0
  30. package/dist/meetings/reads.d.ts +3 -17
  31. package/dist/meetings/reads.js +10 -1
  32. package/dist/meetings/store.d.ts +6 -0
  33. package/dist/meetings/store.js +13 -0
  34. package/dist/services/documents/ingestion.d.ts +3 -0
  35. package/dist/services/documents/ingestion.js +9 -2
  36. package/dist/services/documents/plan.d.ts +16 -1
  37. package/dist/services/documents/plan.js +163 -103
  38. package/dist/services/documents/ports.d.ts +13 -0
  39. package/dist/services/documents/sync.d.ts +11 -0
  40. package/dist/services/documents/sync.js +41 -3
  41. package/dist/services/metadata.d.ts +1 -1
  42. package/dist/store/sqlite/catalog.d.ts +2 -1
  43. package/dist/store/sqlite/catalog.js +4 -1
  44. package/dist/store/sqlite/meeting-listing.js +28 -7
  45. package/dist/store/sqlite/note-search.d.ts +10 -1
  46. package/dist/store/sqlite/note-search.js +35 -1
  47. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -5,6 +5,98 @@ Notable changes to `@wirecat/cli-core` (`@wirecat/cli-messaging` up to 0.261.0,
5
5
  minor version may break callers, and says how under "Changed — may break callers". `pnpm docs:check` checks the
6
6
  shape of this file.
7
7
 
8
+ ## 0.669.0 — 15.11.2026
9
+
10
+ ### Added
11
+
12
+ - **`syncDocuments` takes a `budget`** (a `RunBudget`), asked before each folder listing and each file read: a stop
13
+ ends the call with its work saved. The shared `sync` command passes `runBudgetOf(command)` as `budget` in its
14
+ arguments, for the CLI to hand on. See [Walks over several syncs](docs/dev/DOCUMENTS.md#walks-over-several-syncs).
15
+ - **`SourceIndex.settle` and `store.notes.indexWritten`.** At the end of a sync the engine indexes the store's waiting
16
+ text for word search, so a read-only reader finds a page by the words of its text right after the sync; before, the
17
+ text waited until a writable store ran a search. The queue is shared by every tool on the store. It works 50 rows at
18
+ a time and yields between them, and stops after 10 s, at `deadline` less its margin, or on the signal; it is skipped
19
+ after a budget stop. `documentIngestion` supplies `settle`; `indexWritten` answers 0 on a read-only store.
20
+ - **`SyncOptions.deadline` and `DocumentSyncArgs.deadline`:** the run's hard limit, which the shared `sync` command
21
+ passes for the CLI to hand on.
22
+ - **`documentSourceContract` checks a deep change** when the fixture gives `addNested`: the feed must name a file
23
+ added two levels below the root, or its own folder.
24
+ - **The catalog's `parent` filter takes several ids** (`parent: [a, b]`), read in one pass of the account's catalog.
25
+ `catalog tree` asks about the branches it cuts this way: 1 000 branches in a 12 000-entry account take about
26
+ 0.06 s instead of 3.2 s ([measured](https://github.com/WireCatLabs/cli-testing/blob/main/performance/documents/sync-scale/README.md)). `documentIngestion`'s `catalog.get` and `catalog.list` take an id with or without `.md`.
27
+
28
+ ### Changed — may break callers
29
+
30
+ - **A sync no longer fails for the size of the chosen folders.** `maxEntries` now bounds one call: a walk past it
31
+ saves where it stopped, answers `complete: false`, `stopped: "entries"` and `walk: { folders_left, entries,
32
+ listed }`, and the next sync goes on from there. `limitError` is no longer called. `SyncResult` gains `complete`,
33
+ `stopped` and `walk`. The shared `sync` command declares `partial`: an unfinished pass (a walk or pending
34
+ operations) answers `meta.complete: false`, exits 0 and names the same `sync --limit` as its next step
35
+ (`sync.run`, safe to run unasked). Its help no longer says one sync reads at most that many entries.
36
+ - **A changed folder lists only its direct children.** A round of changes no longer walks the whole subtree of each
37
+ folder the feed names: a child folder the last finished pass held is not listed again. An edit to a page with 500
38
+ pages below it, and to one of them, lists those 2 pages instead of 501. A source must therefore name in its feed
39
+ each changed entry or its own folder: one that names only an ancestor misses a file two levels below until a
40
+ rescan. A folder new to the scope
41
+ (new, restored, or moved in from outside) is still walked in full, so the files under a Drive folder moved in are
42
+ found. A round a call cuts short is saved and goes on in the next sync.
43
+ - **`--rescan` goes on until it finishes.** It drops the cursor and any saved walk and saves that at once, so the
44
+ following plain syncs continue its walk. A dropped batch's work saved to the index without the state knowing is
45
+ removed when the batch is dropped, no longer counted in `removed`, and the state is saved right after.
46
+ - **A folder deleted or unshared since the walk saved it is dropped**, with what was below it, when listing it answers
47
+ `not_found` and reading it again with `metadata` answers `not_found` too or finds it trashed. On any doubt the sync
48
+ fails as before and the next one lists the folder again, so a passing 404 never removes a subtree. `sync --help`
49
+ says each `--rescan` starts the walk over, so it is run once and continued with a plain `sync`.
50
+ - **A test that expects the sync to fail for size now fails.** drive's
51
+ `says to choose smaller folders when the chosen ones hold more entries than one sync reads` (`src/sync.test.ts`)
52
+ expects that error; on its bump it should expect `complete: false` instead. drive's own bound on one folder
53
+ listing or one change feed (10 000 entries, in `google.ts`) is unchanged.
54
+ - **The saved walk keeps only `SourceWalk`'s fields.** drive's saved `walk.json` and `state.json` keep working as
55
+ they are; a round of changes is saved under the scope `<scope>:changes:<cursor>`.
56
+
57
+ ## 0.668.0 — 15.11.2026
58
+
59
+ ### Added
60
+
61
+ - **`TRANSCRIPT_WORDS`, in `@wirecat/cli-core/meetings`.** The words in the name of the Google Doc that Meet or Gemini
62
+ saves ("Transcript", "Notes by Gemini" and their Russian and Spanish forms), moved from drive-cli so drive and the
63
+ meetings list find transcripts by one list.
64
+ - **`calendarWriteToolsFor(conferences)` lists the calendar MCP write tools with `conference` for those services.**
65
+ `calendarWriteTools` no longer shows `conference`, so an agent of a calendar that cannot make meeting links is not
66
+ offered the field. A host whose writer declares `conferences` lists `calendarWriteToolsFor(writer.conferences)`.
67
+ See [Calendars](docs/dev/CALENDARS.md#commands-and-mcp-tools).
68
+ - **`MeetingCommandDeps.signal` passes the run's stop signal to `meetings create|update|cancel|invitation`.** Without
69
+ it a `--timeout` or Ctrl-C did not reach the service call. Pass the same signal the host gives its other reads.
70
+ - **The calendar writer contract checks meeting links.** A writer that declares `conferences` must return the new
71
+ link (`joinUrl`) on a create and on a change.
72
+ - **`meetings show` names a recording's file on this computer.** Each of `attachments` carries `local_path`: the
73
+ file the store holds for it, or `null` when it stays on the meeting service or the phone system (pbx reading its
74
+ recordings over SFTP). WireCat Desktop plays a call's recording from it and reads nothing else.
75
+
76
+ ### Changed — may break callers
77
+
78
+ - **`meetings people` and MCP `meeting_people` answer the bounded path's row on a store without bounded participant
79
+ search.** Such a store (a custom `MeetingStore` without `participantCandidates`) returned its stored rows
80
+ (`displayName`, `meetingId`, `metadata`…), so the `untrusted` names matched none of their keys. Its rows now have
81
+ `participant_id`, `meeting_id`, `identity_id`, `display_name` and `email`; `person` is left out, as that store does
82
+ not know a participant's person.
83
+
84
+ ### Fixed
85
+
86
+ - **A Google Meet meeting with only Gemini notes counts as having a transcript.** `has_transcript` in the meetings
87
+ list and the `has_transcript:` query field now also count a Drive document Meet named as a meeting's transcript or
88
+ notes (an `attached` link with role `transcript` or `notes`), and an imported Drive document attached to the
89
+ calendar event whose title holds one of `TRANSCRIPT_WORDS`. Before, only a stored meeting transcript counted, so
90
+ Desktop's "Only with a transcript" hid every Meet meeting that had only Gemini notes. A calendar attachment has no
91
+ role, so an agenda counts only if its title holds one of the words, and a document Drive has not imported yet does
92
+ not count.
93
+ - **Meeting text from other people is marked untrusted in more reads.** `meetings passage` marks each cue's
94
+ `speaker_name` and `text` in its structured answer (`--json`, MCP `structuredContent`, `batch`), and `events list` under a meetings tool marks each event's title,
95
+ description and location. `--json <fields>` keeps the `untrusted` lists (cli-base 0.102.1).
96
+ - **A service's rate limit is named as one.** `meetings list` answers from the store with the issue
97
+ `meetings.server-rate-limited` (`rate_limited`) instead of `meetings.server-failed`, and `meetings show` of a meeting
98
+ the store does not hold fails with the service's `rate_limited` error instead of `not_found`.
99
+
8
100
  ## 0.667.0 — 15.11.2026
9
101
 
10
102
  ### Added