@wirecat/cli-core 0.666.0 → 0.668.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 +88 -0
  2. package/dist/calendar/cli/conference.d.ts +3 -0
  3. package/dist/calendar/cli/conference.js +7 -0
  4. package/dist/calendar/cli/index.d.ts +1 -0
  5. package/dist/calendar/cli/index.js +4 -2
  6. package/dist/calendar/mcp/index.d.ts +2944 -171
  7. package/dist/calendar/mcp/index.js +22 -3
  8. package/dist/calendar/testing/writer-contract.js +34 -0
  9. package/dist/calendar/testing/writer.d.ts +3 -0
  10. package/dist/calendar/testing/writer.js +9 -1
  11. package/dist/calendar/writer.d.ts +13 -0
  12. package/dist/calendar/writes.d.ts +3 -0
  13. package/dist/calendar/writes.js +21 -1
  14. package/dist/cli/documents/words.d.ts +1 -1
  15. package/dist/cli/meeting-batch.js +2 -2
  16. package/dist/domain/providers.js +2 -1
  17. package/dist/entities/index.d.ts +7 -0
  18. package/dist/errors/reasons.js +2 -0
  19. package/dist/meetings/answers.d.ts +12 -0
  20. package/dist/meetings/answers.js +27 -1
  21. package/dist/meetings/cli/index.d.ts +2 -0
  22. package/dist/meetings/cli/index.js +7 -3
  23. package/dist/meetings/cli/management.d.ts +3 -1
  24. package/dist/meetings/cli/management.js +73 -26
  25. package/dist/meetings/cli/passage.js +2 -2
  26. package/dist/meetings/export.d.ts +2 -0
  27. package/dist/meetings/export.js +1 -0
  28. package/dist/meetings/index.d.ts +3 -3
  29. package/dist/meetings/index.js +3 -3
  30. package/dist/meetings/mcp/passage.js +2 -2
  31. package/dist/meetings/meeting-management.d.ts +68 -3
  32. package/dist/meetings/meeting-management.js +134 -17
  33. package/dist/meetings/passage.d.ts +5 -0
  34. package/dist/meetings/passage.js +10 -0
  35. package/dist/meetings/read-answers.d.ts +3 -0
  36. package/dist/meetings/read-answers.js +3 -0
  37. package/dist/meetings/read-through.d.ts +1 -1
  38. package/dist/meetings/read-through.js +4 -0
  39. package/dist/meetings/reads.d.ts +16 -3
  40. package/dist/meetings/reads.js +12 -2
  41. package/dist/meetings/result-items.d.ts +3 -0
  42. package/dist/meetings/result-items.js +9 -1
  43. package/dist/meetings/store.d.ts +6 -0
  44. package/dist/meetings/store.js +13 -0
  45. package/dist/meetings/testing/management-contract.js +27 -5
  46. package/dist/store/sqlite/meeting-listing.js +28 -7
  47. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -5,6 +5,94 @@ 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.668.0 — 15.11.2026
9
+
10
+ ### Added
11
+
12
+ - **`TRANSCRIPT_WORDS`, in `@wirecat/cli-core/meetings`.** The words in the name of the Google Doc that Meet or Gemini
13
+ saves ("Transcript", "Notes by Gemini" and their Russian and Spanish forms), moved from drive-cli so drive and the
14
+ meetings list find transcripts by one list.
15
+ - **`calendarWriteToolsFor(conferences)` lists the calendar MCP write tools with `conference` for those services.**
16
+ `calendarWriteTools` no longer shows `conference`, so an agent of a calendar that cannot make meeting links is not
17
+ offered the field. A host whose writer declares `conferences` lists `calendarWriteToolsFor(writer.conferences)`.
18
+ See [Calendars](docs/dev/CALENDARS.md#commands-and-mcp-tools).
19
+ - **`MeetingCommandDeps.signal` passes the run's stop signal to `meetings create|update|cancel|invitation`.** Without
20
+ it a `--timeout` or Ctrl-C did not reach the service call. Pass the same signal the host gives its other reads.
21
+ - **The calendar writer contract checks meeting links.** A writer that declares `conferences` must return the new
22
+ link (`joinUrl`) on a create and on a change.
23
+ - **`meetings show` names a recording's file on this computer.** Each of `attachments` carries `local_path`: the
24
+ file the store holds for it, or `null` when it stays on the meeting service or the phone system (pbx reading its
25
+ recordings over SFTP). WireCat Desktop plays a call's recording from it and reads nothing else.
26
+
27
+ ### Changed — may break callers
28
+
29
+ - **`meetings people` and MCP `meeting_people` answer the bounded path's row on a store without bounded participant
30
+ search.** Such a store (a custom `MeetingStore` without `participantCandidates`) returned its stored rows
31
+ (`displayName`, `meetingId`, `metadata`…), so the `untrusted` names matched none of their keys. Its rows now have
32
+ `participant_id`, `meeting_id`, `identity_id`, `display_name` and `email`; `person` is left out, as that store does
33
+ not know a participant's person.
34
+
35
+ ### Fixed
36
+
37
+ - **A Google Meet meeting with only Gemini notes counts as having a transcript.** `has_transcript` in the meetings
38
+ list and the `has_transcript:` query field now also count a Drive document Meet named as a meeting's transcript or
39
+ notes (an `attached` link with role `transcript` or `notes`), and an imported Drive document attached to the
40
+ calendar event whose title holds one of `TRANSCRIPT_WORDS`. Before, only a stored meeting transcript counted, so
41
+ Desktop's "Only with a transcript" hid every Meet meeting that had only Gemini notes. A calendar attachment has no
42
+ role, so an agenda counts only if its title holds one of the words, and a document Drive has not imported yet does
43
+ not count.
44
+ - **Meeting text from other people is marked untrusted in more reads.** `meetings passage` marks each cue's
45
+ `speaker_name` and `text` in its structured answer (`--json`, MCP `structuredContent`, `batch`), and `events list` under a meetings tool marks each event's title,
46
+ description and location. `--json <fields>` keeps the `untrusted` lists (cli-base 0.102.1).
47
+ - **A service's rate limit is named as one.** `meetings list` answers from the store with the issue
48
+ `meetings.server-rate-limited` (`rate_limited`) instead of `meetings.server-failed`, and `meetings show` of a meeting
49
+ the store does not hold fails with the service's `rate_limited` error instead of `not_found`.
50
+
51
+ ## 0.667.0 — 15.11.2026
52
+
53
+ ### Added
54
+
55
+ - **A meetings service declares what `meetings create` and `meetings update` take.** `MeetingManagementPorts.fields`
56
+ names, for `create` and `update`, the portable fields the service reads (`title`, `kind`, `startTime`,
57
+ `durationMinutes`, `timezone`, `agenda`) and its own settings (`MeetingSetting`: a snake_case name, a description,
58
+ and `choice` with its values, `boolean` or `text`). The settings are given as `--setting <name>=<value>`, repeated
59
+ for more; `--setting`'s description and the command's help list them, so `commands --json` shows them too. The
60
+ receipt's `change.settings` carries them, and it marks `meeting.title`, `meeting.agenda` and `meeting.join_url`
61
+ untrusted. A port that declares nothing reads every portable field and no setting.
62
+ See [Remote management](docs/dev/MEETING-PROVIDERS.md#remote-management).
63
+
64
+ - **`events create|update --conference <service>` add a meeting link to an event.** A calendar writer that can make
65
+ one names its services in `CalendarWriter.conferences` (`google-meet`), and `options.writes.conferences` mounts the
66
+ option with them as its choices. It is a change of its own, so `events update event:42 --conference google-meet`
67
+ needs no other field. The writer gets `conference: { provider, requestId }` with a new request id each time, never
68
+ the event's id. An event that already has a link is refused (`event.conference-exists`), so the attendees' link is
69
+ never replaced. See [Calendars](docs/dev/CALENDARS.md#commands-and-mcp-tools).
70
+
71
+ ### Changed — may break callers
72
+
73
+ - **A meeting needs no title, and a service that cannot schedule creates meetings that start now.**
74
+ `meetings create` and `createMeetingManagement` no longer require a title. A service that declares no `startTime`
75
+ (Meet) creates an instant meeting that starts when it is sent, after the owner's question
76
+ (`createMeetingManagement(scope, ports, { now })` sets the clock). A service that can schedule (Zoom, or a port that
77
+ declares nothing) still needs `--start-time` or `--kind instant`, so a forgotten start is an error, not a live
78
+ meeting. The refusal names the options: `give --start-time, or --kind instant for a meeting that starts now`.
79
+ - **A field the service does not take is refused with `validation_error`, naming the options it takes.** Before, every
80
+ portable field reached every port. A blank `text` setting is refused unless it is declared `clearable`.
81
+ `validateMeetingChange(change, create, { declared })` takes the declaration; called with two arguments it keeps the
82
+ portable fields.
83
+ - **`meetings create|update|cancel` ask the owner after the change is validated.** A change the service cannot take
84
+ is refused without the question. `MeetingMutationOptions.confirm` runs between validation and dispatch, only when
85
+ the write will go; the commands pass `askFirst` there.
86
+ - **The `google-meet` provider's tool is `gcal`.** Google Meet has no tool of its own: its meetings are part of
87
+ Google Calendar's tool, since every meeting is on the calendar. A hint that opens a Meet meeting now points at `gcal`.
88
+
89
+ ### Security
90
+
91
+ - **The shared meetings answers mark other people's text untrusted.** `meetings show` marks participants' names and
92
+ emails, the chat, the series title, attachment and document names; `meetings transcript` marks each line's text and
93
+ speaker; summaries mark their text; `meetings export` marks `content`; `meetings people` marks each match's
94
+ `display_name` and `email`. In a scheduled agent's run they arrive between the run's markers, as calendar events do.
95
+
8
96
  ## 0.666.0 — 15.11.2026
9
97
 
10
98
  ### Added
@@ -0,0 +1,3 @@
1
+ import { type Command } from "commander";
2
+ /** `--conference`, only where the writer names services that make a meeting link (`CalendarWriter.conferences`). */
3
+ export declare const withConference: (command: Command, services?: readonly string[]) => Command;
@@ -0,0 +1,7 @@
1
+ import { Option } from "commander";
2
+ /** `--conference`, only where the writer names services that make a meeting link (`CalendarWriter.conferences`). */
3
+ export const withConference = (command, services = []) => services.length
4
+ ? command.addOption(new Option("--conference <service>", "make a new meeting link with it; never replaces a link").choices([
5
+ ...services,
6
+ ]))
7
+ : command;
@@ -57,6 +57,7 @@ export interface CalendarCommandOptions {
57
57
  quickAdd?: boolean;
58
58
  move?: boolean;
59
59
  importEvent?: boolean;
60
+ conferences?: readonly string[];
60
61
  };
61
62
  /** Reads `events import`'s file; a file on disk, at most 10 MB, when absent. */
62
63
  readFile?: (path: string) => Promise<string>;
@@ -25,6 +25,7 @@ import { calendarStatus } from "../sync.js";
25
25
  import { createEvent, createEventFromText, deleteEvent, EVENT_RESPONSES, IMPORT_MAX, importEvents, moveEvent, respondToEvent, updateEvent, } from "../writes.js";
26
26
  import { CALENDARS_QUERY, declareCalendarAnswers, PEOPLE_QUERY } from "./answers.js";
27
27
  import { hitsBody, itemBody, listBody, messagesOf, pathOf } from "./bodies.js";
28
+ import { withConference } from "./conference.js";
28
29
  import { ICS_MAX_BYTES, readIcsFile, writeIcsFile } from "./files.js";
29
30
  import { localTimesView } from "./local-times.js";
30
31
  import { addPeopleLink } from "./people-link.js";
@@ -498,6 +499,7 @@ const addEventWrites = (events, traits, { within, now, zone, example, readFile }
498
499
  series: "--series",
499
500
  following: "--following",
500
501
  repeat: "--repeat",
502
+ conference: "--conference",
501
503
  },
502
504
  };
503
505
  };
@@ -534,7 +536,7 @@ const addEventWrites = (events, traits, { within, now, zone, example, readFile }
534
536
  .argument("<event>", "the event's id, or event:<id>")
535
537
  .option("--calendar <id>", "the calendar, by id or title, when the event is on more than one of the account's");
536
538
  const quick = traits.quickAdd === true;
537
- const create = example(notify(fields(write("create"), false)
539
+ const create = example(notify(withConference(fields(write("create"), false), traits.conferences)
538
540
  .description(quick
539
541
  ? "add an event to a calendar; with --repeat, one that repeats; with --text, one the provider reads " +
540
542
  "from a line such as 'Lunch with Ana tomorrow 1pm'"
@@ -559,7 +561,7 @@ const addEventWrites = (events, traits, { within, now, zone, example, readFile }
559
561
  }
560
562
  await written(command, (context) => createEvent(context, calendar, fieldsOf(rest), options));
561
563
  });
562
- example(notify(target(fields(write("update"), true))
564
+ example(notify(target(withConference(fields(write("update"), true), traits.conferences))
563
565
  .description("change an event; with --series every occurrence of the repeating event, with --following this " +
564
566
  "occurrence and every later one; new times or dates switch it between timed and all-day")
565
567
  .option("--series", "change the whole repeating event, not only this occurrence")