@wirecat/cli-core 0.619.0 → 0.621.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 (94) hide show
  1. package/CHANGELOG.md +144 -0
  2. package/dist/background/daily-archive-timer.d.ts +1 -1
  3. package/dist/calendar/cli/search-all.d.ts +1 -1
  4. package/dist/calendar/cli/search-all.js +9 -10
  5. package/dist/calendar/prepare.js +1 -0
  6. package/dist/cli/base-stages-command.d.ts +1 -1
  7. package/dist/cli/base-stages-command.js +1 -1
  8. package/dist/cli/bot/buttons.d.ts +3 -0
  9. package/dist/cli/bot/buttons.js +24 -0
  10. package/dist/cli/bot/messages.js +14 -1
  11. package/dist/cli/bot/port.d.ts +8 -0
  12. package/dist/cli/contract-templates.js +31 -2
  13. package/dist/cli/messenger/contacts-command.js +2 -1
  14. package/dist/cli/messenger/conversations-command.js +2 -1
  15. package/dist/cli/messenger/message-items.js +1 -1
  16. package/dist/cli/messenger/search-answers.d.ts +5 -5
  17. package/dist/cli/messenger/search-answers.js +9 -20
  18. package/dist/cli/messenger/search-command.d.ts +2 -2
  19. package/dist/cli/messenger/search-command.js +8 -18
  20. package/dist/cli/model-catalogue-command.js +3 -1
  21. package/dist/cli/search-harder-consents-command.d.ts +21 -0
  22. package/dist/cli/search-harder-consents-command.js +112 -0
  23. package/dist/cli/steps.js +0 -6
  24. package/dist/cli/templates-command.js +4 -4
  25. package/dist/crm/cli/index.js +2 -2
  26. package/dist/crm/cli/search-all.js +7 -6
  27. package/dist/crm/source.d.ts +8 -0
  28. package/dist/crm/sync.d.ts +1 -1
  29. package/dist/crm/sync.js +13 -1
  30. package/dist/domain/models.d.ts +2 -0
  31. package/dist/domain/relations.d.ts +1 -0
  32. package/dist/domain/relations.js +5 -1
  33. package/dist/entities/contact-context.d.ts +3 -0
  34. package/dist/entities/contact-context.js +4 -0
  35. package/dist/entities/hit.d.ts +9 -2
  36. package/dist/entities/hit.js +6 -2
  37. package/dist/entities/index.d.ts +9 -1
  38. package/dist/errors/reasons.js +3 -0
  39. package/dist/meetings/hit-query.d.ts +1 -1
  40. package/dist/meetings/hit-query.js +2 -2
  41. package/dist/meetings/index.d.ts +1 -0
  42. package/dist/meetings/index.js +1 -0
  43. package/dist/meetings/store.d.ts +4 -0
  44. package/dist/meetings/store.js +2 -1
  45. package/dist/models/anthropic.js +5 -0
  46. package/dist/search/question-period.d.ts +10 -0
  47. package/dist/search/question-period.js +133 -0
  48. package/dist/sends/buttons.d.ts +2 -0
  49. package/dist/sends/buttons.js +6 -1
  50. package/dist/services/enrichment-setting.d.ts +6 -0
  51. package/dist/services/enrichment-setting.js +5 -1
  52. package/dist/services/enrichment.d.ts +5 -0
  53. package/dist/services/enrichment.js +1 -1
  54. package/dist/services/index.d.ts +4 -2
  55. package/dist/services/index.js +3 -1
  56. package/dist/services/messages.d.ts +1 -4
  57. package/dist/services/messages.js +0 -2
  58. package/dist/services/metadata.d.ts +1 -1
  59. package/dist/services/person-context.d.ts +3 -1
  60. package/dist/services/person-context.js +21 -8
  61. package/dist/services/person-preparation.d.ts +5 -1
  62. package/dist/services/person-preparation.js +10 -3
  63. package/dist/services/person-timeline.d.ts +6 -1
  64. package/dist/services/person-timeline.js +10 -2
  65. package/dist/services/search-all-deprecated.d.ts +40 -0
  66. package/dist/services/search-all-deprecated.js +10 -0
  67. package/dist/services/search-all-meetings.d.ts +50 -52
  68. package/dist/services/search-all-meetings.js +265 -272
  69. package/dist/services/search-all.d.ts +34 -6
  70. package/dist/services/search-all.js +119 -24
  71. package/dist/services/search-harder.d.ts +90 -0
  72. package/dist/services/search-harder.js +264 -0
  73. package/dist/store/chats.d.ts +3 -1
  74. package/dist/store/chats.js +6 -0
  75. package/dist/store/people.d.ts +6 -2
  76. package/dist/store/sqlite/added-sources.d.ts +15 -3
  77. package/dist/store/sqlite/added-sources.js +26 -5
  78. package/dist/store/sqlite/chats.d.ts +2 -0
  79. package/dist/store/sqlite/chats.js +6 -0
  80. package/dist/store/sqlite/involvements.d.ts +1 -1
  81. package/dist/store/sqlite/involvements.js +4 -2
  82. package/dist/store/sqlite/meeting-hit-query.d.ts +5 -0
  83. package/dist/store/sqlite/meeting-hit-query.js +33 -0
  84. package/dist/store/sqlite/meeting-hit-search.js +10 -8
  85. package/dist/store/sqlite/meetings.js +1 -1
  86. package/dist/store/sqlite/notes.d.ts +7 -0
  87. package/dist/store/sqlite/notes.js +23 -7
  88. package/dist/store/sqlite/person-preparation.d.ts +7 -3
  89. package/dist/store/sqlite/person-preparation.js +20 -6
  90. package/dist/store/sqlite/relation-list.js +4 -2
  91. package/dist/store/sqlite/reported-relations.d.ts +0 -1
  92. package/dist/store/sqlite/reported-relations.js +1 -4
  93. package/package.json +1 -1
  94. package/parity.json +26 -12
@@ -13,7 +13,7 @@ import { encodeDocumentMetadata, languageOf } from "./document-metadata.js";
13
13
  import { deleteDocumentRow, forgetEvidenceToRow } from "./evidence-signature.js";
14
14
  import { PREFERRED_FILE, syncFile } from "./files.js";
15
15
  import { importedDocumentWhere } from "./imported-documents.js";
16
- import { LINK_KINDS, LINK_ORIGINS, linkKind } from "./link-kinds.js";
16
+ import { LINK_KINDS, LINK_ORIGINS, linkKind, RELATION_KINDS } from "./link-kinds.js";
17
17
  import { reviewLink } from "./link-reviews.js";
18
18
  import { linkOf } from "./link-row.js";
19
19
  export { linkOf, thingRef } from "./link-row.js";
@@ -26,10 +26,18 @@ import { thingOf } from "./things.js";
26
26
  import { write } from "./transaction.js";
27
27
  export const NOTE_FORMATS = ["obsidian", "markdown"];
28
28
  export { LINK_ORIGINS } from "./link-kinds.js";
29
+ const RELATIONSHIPS = RELATION_KINDS.map(linkKind).join(", ");
29
30
  const iso = (value) => new Date(Number(value)).toISOString();
30
31
  const optionalIso = (value) => (value == null ? null : iso(value));
31
32
  /** What a link's written target is matched by: case, accents and a leading `@` do not count. */
32
33
  export const targetKey = (text) => fold(text).trim().replace(/^@/, "");
34
+ /**
35
+ * Keeps a document's text under its current revision before the caller writes the new text with `revision + 1`, so
36
+ * a citation reads back the words it cited and the source check sees the change.
37
+ */
38
+ export const keepRevision = (database, row, at) => database
39
+ .prepare("INSERT INTO document_revisions (document_id, body, revision, created_at) VALUES (?, ?, ?, ?)")
40
+ .run(Number(row.id), String(row.body ?? ""), Number(row.revision), at);
33
41
  export const documentOf = (row) => ({
34
42
  id: String(row.id),
35
43
  ref: `document:${row.id}`,
@@ -417,9 +425,7 @@ export const notesStoreOver = (context) => {
417
425
  found.deleted_at == null;
418
426
  if (!same) {
419
427
  if ((found.body ?? "") !== text)
420
- database
421
- .prepare("INSERT INTO document_revisions (document_id, body, revision, created_at) VALUES (?, ?, ?, ?)")
422
- .run(id, String(found.body ?? ""), Number(found.revision), at);
428
+ keepRevision(database, found, at);
423
429
  database
424
430
  .prepare("UPDATE documents SET title = ?, body = ?, front_matter = ?, content_hash = ?, metadata = ?, language = ?, " +
425
431
  "revision = revision + ?, updated_at = ?, deleted_at = NULL WHERE id = ?")
@@ -612,7 +618,9 @@ export const notesStoreOver = (context) => {
612
618
  if (reference === undefined)
613
619
  return { known: true, type: null, id: null };
614
620
  const thing = thingOf(database, reference);
615
- return thing ? { known: true, type: thing.type, id: thing.id } : { known: false, type: null, id: null };
621
+ return thing
622
+ ? { known: true, type: thing.type, id: idsOf(database, thing.type, thing.id) }
623
+ : { known: false, type: null, id: null };
616
624
  };
617
625
  const from = pair(options.from);
618
626
  const to = pair(options.to);
@@ -626,7 +634,8 @@ export const notesStoreOver = (context) => {
626
634
  ...(options.confirmed === undefined ? [] : [{ sql: "confirmed = ?", value: options.confirmed ? 1 : 0 }]),
627
635
  ];
628
636
  return database
629
- .prepare("SELECT * FROM links WHERE (? IS NULL OR (from_type = ? AND from_id = ?)) AND (? IS NULL OR (to_type = ? AND to_id = ?)) " +
637
+ .prepare("SELECT * FROM links WHERE (? IS NULL OR (from_type = ? AND from_id IN (SELECT value FROM json_each(?)))) " +
638
+ "AND (? IS NULL OR (to_type = ? AND to_id IN (SELECT value FROM json_each(?)))) " +
630
639
  `AND (? = 0 OR to_id IS NULL)${filters.map(({ sql }) => ` AND (${sql})`).join("")} ORDER BY created_at, id LIMIT 5000`)
631
640
  .all(from.type, from.type, from.id, to.type, to.type, to.id, options.unresolved ? 1 : 0, ...filters.map(({ value }) => value))
632
641
  .map((row) => linkOf(database, row));
@@ -640,7 +649,14 @@ export const notesStoreOver = (context) => {
640
649
  replaceFileLinks: async (documentId, links) => write(database, () => {
641
650
  const id = Number(documentRow(documentId).id);
642
651
  database.prepare("DELETE FROM links WHERE from_type = 'document' AND from_id = ? AND source = 'file'").run(id);
643
- return links.map((link) => insertLink(context, { ...link, from: `document:${id}`, origin: "file" }));
652
+ const written = links.map((link) => insertLink(context, { ...link, from: `document:${id}`, origin: "file" }));
653
+ // What a file's source says, such as a Drive owner, is reported by its account, not waiting for review.
654
+ database
655
+ .prepare("UPDATE links SET account_id = (SELECT account_id FROM documents WHERE id = ?) WHERE from_type = 'document' " +
656
+ `AND from_id = ? AND source = 'file' AND confirmed = 0 AND account_id IS NULL AND kind IN (${RELATIONSHIPS})`)
657
+ .run(id, id);
658
+ const reread = database.prepare("SELECT * FROM links WHERE id = ?");
659
+ return written.map((link) => linkOf(database, reread.get(Number(link.id))));
644
660
  }),
645
661
  linkMessages: async ({ documents, since }) => {
646
662
  const after = since === undefined ? null : Date.parse(since);
@@ -1,4 +1,4 @@
1
- import type { AccountKey } from "../types.js";
1
+ import type { AccountKey, StoredAccount } from "../types.js";
2
2
  import type { StoreContext } from "./open.js";
3
3
  export interface PreparationFact {
4
4
  ref: string;
@@ -40,9 +40,13 @@ export interface PersonPreparationRead {
40
40
  }
41
41
  /**
42
42
  * The accepted facts, the owner's notes and the open tasks about one person. A project bound to an account is that
43
- * account's: its facts never come along, and its tasks only when `accounts` holds it.
43
+ * account's: its facts never come along, and its tasks only when `accounts` holds it. What belongs to no account
44
+ * comes only in `scopes`: a fact in its own scope, else its project's, a note only when every scope it touches is
45
+ * read, a global project's task in that project's. Anything else unscoped is personal, the side a work view never
46
+ * reads.
44
47
  */
45
- export declare const personPreparation: ({ database, now }: Pick<StoreContext, "database" | "now">, uid: string, { accounts, limit }: {
48
+ export declare const personPreparation: ({ database, now }: Pick<StoreContext, "database" | "now">, uid: string, { accounts, scopes, limit, }: {
46
49
  accounts: readonly AccountKey[];
50
+ scopes: readonly StoredAccount["scope"][];
47
51
  limit: number;
48
52
  }) => PersonPreparationRead;
@@ -5,16 +5,28 @@ import { samePersons } from "./merged-persons.js";
5
5
  import { taskIdOf } from "./things.js";
6
6
  import { read } from "./transaction.js";
7
7
  const GLOBAL_PROJECT = "SELECT id FROM main.projects WHERE account_id IS NULL AND deleted_at IS NULL";
8
+ const IN_SCOPES = "IN (SELECT value FROM json_each(?))";
9
+ const projectScope = (id) => `(SELECT p.scope FROM main.projects p WHERE p.id=${id})`;
10
+ const NOTE_PROJECTS = `SELECT l.to_id FROM links l WHERE l.from_type='note' AND l.from_id=n.id AND l.to_type='project'
11
+ AND l.kind=${linkKind("about")}`;
12
+ /** A note is in its project's scope, or in those of the projects it is about; with no project, personal. */
13
+ const NOTE_SCOPES = `SELECT p.scope FROM main.projects p WHERE (n.notable_type='project' AND p.id=n.notable_id)
14
+ OR p.id IN (${NOTE_PROJECTS})
15
+ UNION SELECT 'personal' WHERE n.notable_type<>'project' AND NOT EXISTS(${NOTE_PROJECTS})`;
8
16
  const iso = (value) => (value == null ? null : new Date(Number(value)).toISOString());
9
17
  /**
10
18
  * The accepted facts, the owner's notes and the open tasks about one person. A project bound to an account is that
11
- * account's: its facts never come along, and its tasks only when `accounts` holds it.
19
+ * account's: its facts never come along, and its tasks only when `accounts` holds it. What belongs to no account
20
+ * comes only in `scopes`: a fact in its own scope, else its project's, a note only when every scope it touches is
21
+ * read, a global project's task in that project's. Anything else unscoped is personal, the side a work view never
22
+ * reads.
12
23
  */
13
- export const personPreparation = ({ database, now }, uid, { accounts, limit }) => {
24
+ export const personPreparation = ({ database, now }, uid, { accounts, scopes, limit, }) => {
14
25
  const asked = Number(uid);
15
26
  if (!/^[1-9]\d*$/.test(uid) || !Number.isSafeInteger(asked) || !Number.isSafeInteger(limit) || limit < 1)
16
27
  throw new CliError("validation_error", "person preparation takes a person id and a positive limit");
17
28
  const page = (rows) => ({ items: rows.slice(0, limit), hasMore: rows.length > limit });
29
+ const inScopes = JSON.stringify(scopes);
18
30
  return read(database, () => {
19
31
  const person = JSON.stringify(samePersons(database, asked));
20
32
  const projects = `SELECT l.to_id FROM links l WHERE l.from_type='person' AND l.from_id IN (SELECT value FROM json_each(?))
@@ -27,8 +39,9 @@ export const personPreparation = ({ database, now }, uid, { accounts, limit }) =
27
39
  OR f.project_id IN (${projects}))
28
40
  AND (f.subject_type IS NOT 'project' OR f.subject_id IN (${GLOBAL_PROJECT}))
29
41
  AND (f.project_id IS NULL OR f.project_id IN (${GLOBAL_PROJECT}))
42
+ AND coalesce(f.scope,${projectScope("coalesce(f.project_id,CASE WHEN f.subject_type='project' THEN f.subject_id END)")},'personal') ${IN_SCOPES}
30
43
  ORDER BY f.updated_at DESC, f.id DESC LIMIT ?`)
31
- .all(person, person, person, limit + 1)
44
+ .all(person, person, person, inScopes, limit + 1)
32
45
  .map((row) => ({
33
46
  ref: `fact:${row.id}`,
34
47
  type: String(row.type),
@@ -44,8 +57,9 @@ export const personPreparation = ({ database, now }, uid, { accounts, limit }) =
44
57
  AND ((n.notable_type='person' AND n.notable_id IN (SELECT value FROM json_each(?))) OR EXISTS(SELECT 1 FROM links l WHERE l.from_type='note'
45
58
  AND l.from_id=n.id AND l.to_type='person' AND l.to_id IN (SELECT value FROM json_each(?)) AND l.kind=${linkKind("about")} AND l.confirmed=1))
46
59
  AND (n.notable_type='person' OR (n.notable_type='project' AND n.notable_id IN (${GLOBAL_PROJECT})))
60
+ AND NOT EXISTS(SELECT 1 FROM (${NOTE_SCOPES}) WHERE scope NOT ${IN_SCOPES})
47
61
  ORDER BY n.updated_at DESC, n.id DESC LIMIT ?`)
48
- .all(person, person, limit + 1)
62
+ .all(person, person, inScopes, limit + 1)
49
63
  .map((row) => ({
50
64
  ref: `note:${row.id}`,
51
65
  title: row.title == null ? null : String(row.title),
@@ -57,11 +71,11 @@ export const personPreparation = ({ database, now }, uid, { accounts, limit }) =
57
71
  .prepare(`SELECT t.id,t.title,t.due_at,t.project_id,t.source_locator,t.created_at,group_concat(DISTINCT ta.role) AS role
58
72
  FROM task_assignments ta JOIN tasks t ON t.id=ta.task_id JOIN main.projects p ON p.id=t.project_id
59
73
  WHERE ta.assignee_type='person' AND ta.assignee_id IN (SELECT value FROM json_each(?)) AND t.deleted_at IS NULL AND t.status NOT IN ('done','dismissed')
60
- AND p.deleted_at IS NULL AND (p.account_id IS NULL OR p.account_id IN (SELECT a.id FROM accounts a
74
+ AND p.deleted_at IS NULL AND ((p.account_id IS NULL AND p.scope ${IN_SCOPES}) OR p.account_id IN (SELECT a.id FROM accounts a
61
75
  JOIN json_each(?) k ON a.provider=json_extract(k.value,'$.provider')
62
76
  AND a.external_id=json_extract(k.value,'$.account')))
63
77
  GROUP BY t.id ORDER BY t.due_at IS NULL, t.due_at, t.created_at, t.id LIMIT ?`)
64
- .all(person, JSON.stringify(accounts.map(({ provider, account }) => ({ provider, account }))), limit + 1)
78
+ .all(person, inScopes, JSON.stringify(accounts.map(({ provider, account }) => ({ provider, account }))), limit + 1)
65
79
  .map((row) => ({
66
80
  ref: `task:${taskIdOf(database, Number(row.id))}`,
67
81
  title: String(row.title),
@@ -54,8 +54,10 @@ export const relationListOver = (context) => {
54
54
  if (filter.to !== undefined)
55
55
  end("to", filter.to);
56
56
  const about = filter.about === undefined ? undefined : thing(filter.about, "the reference");
57
+ const aboutIds = about ? idsOf(database, about.type, about.id) : "[]";
57
58
  if (about)
58
- add(`((r.from_type = ? AND r.from_id IN (SELECT value FROM json_each(?))) OR (r.to_type = ? AND r.to_id IN (SELECT value FROM json_each(?))))`, about.type, idsOf(database, about.type, about.id), about.type, idsOf(database, about.type, about.id));
59
+ add(`((r.from_type = ? AND r.from_id IN (SELECT value FROM json_each(?))) OR (r.to_type = ? AND r.to_id IN (SELECT value FROM json_each(?))))`, about.type, aboutIds, about.type, aboutIds);
60
+ const aboutSame = new Set(JSON.parse(aboutIds));
59
61
  if (filter.at !== undefined)
60
62
  add("(r.starts_at IS NULL OR r.starts_at <= ?) AND (r.ends_at IS NULL OR ? < r.ends_at)", filter.at, filter.at);
61
63
  if (filter.standing !== undefined)
@@ -103,7 +105,7 @@ export const relationListOver = (context) => {
103
105
  if (!about)
104
106
  return item;
105
107
  const from = thingOf(database, item.from);
106
- const outgoing = from?.type === about.type && from.id === about.id;
108
+ const outgoing = from?.type === about.type && aboutSame.has(from.id);
107
109
  return outgoing
108
110
  ? { ...item, direction: "outgoing" }
109
111
  : { ...item, direction: "incoming", inverse: inverseOf(item.kind) };
@@ -68,7 +68,6 @@ export interface RelationsStore {
68
68
  */
69
69
  syncReported(key: AccountKey, relationships: ReportedRelation[], scope: ReportedScope, options?: ReportedOptions): Promise<ReportedSync>;
70
70
  }
71
- export declare const KEYED = "kind IN ('member-of', 'related-to', 'reports-to', 'customer-of', 'partner-of') AND to_id IS NOT NULL";
72
71
  /** The call, inside a transaction the caller holds: a CRM page saves its rows and their relationships together. */
73
72
  export declare const syncReportedIn: (context: StoreContext, key: AccountKey, relationships: ReportedRelation[], scope: ReportedScope, { source, by, onOutcome }?: ReportedOptions) => ReportedSync;
74
73
  export declare const relationsStoreOver: (context: StoreContext) => RelationsStore;
@@ -1,5 +1,5 @@
1
1
  import { CliError } from "@wirecat/cli-base";
2
- import { checkEnds, isSymmetric } from "../../domain/relations.js";
2
+ import { checkEnds, isSymmetric, KEYED } from "../../domain/relations.js";
3
3
  import { accountPk } from "./accounts.js";
4
4
  import { crmLinkMode } from "./crm-settings.js";
5
5
  import { linkKind } from "./link-kinds.js";
@@ -9,9 +9,6 @@ import { checkStoredRole } from "./relation-roles.js";
9
9
  import { referenceOfThing, thingOf } from "./things.js";
10
10
  import { write } from "./transaction.js";
11
11
  const keyOf = (kind, fromType, fromId, toType, toId, role) => `${String(kind)}|${String(fromType)}:${String(fromId)}|${String(toType)}:${String(toId)}|${role == null ? "" : String(role)}`;
12
- // links_relationship_key's WHERE, word for word: without it SQLite cannot use that partial index, picks
13
- // (to_type, to_id) and reads every link of a busy end, such as a deal owner's, for each relationship (#2623).
14
- export const KEYED = "kind IN ('member-of', 'related-to', 'reports-to', 'customer-of', 'partner-of') AND to_id IS NOT NULL";
15
12
  const metadataOf = (relation) => relation.metadata && Object.keys(relation.metadata).length ? JSON.stringify(relation.metadata) : null;
16
13
  /** The call, inside a transaction the caller holds: a CRM page saves its rows and their relationships together. */
17
14
  export const syncReportedIn = (context, key, relationships, scope, { source = "import", by = { bot: key.provider, kind: "rule" }, onOutcome } = {}) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wirecat/cli-core",
3
- "version": "0.619.0",
3
+ "version": "0.621.0",
4
4
  "description": "The messenger-neutral half of a messaging CLI: domain model, message locators, rendering, name resolution, the SQLite seam, the command skeleton and shared read commands, the send guard, run records and the message store",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Viacheslav Ptsarev",
package/parity.json CHANGED
@@ -157,6 +157,10 @@
157
157
  "--brief": {
158
158
  "meaning": "found messages as reference, title, time, sender and excerpt only"
159
159
  },
160
+ "--button": {
161
+ "value": "<text=data>",
162
+ "meaning": "an inline button as <text>=<data>; repeat for more in one row"
163
+ },
160
164
  "--by": {
161
165
  "value": "<grouping>",
162
166
  "meaning": "what to count by",
@@ -588,10 +592,6 @@
588
592
  "meaning": "at most this many bytes of buffered stdin",
589
593
  "default": "16777216"
590
594
  },
591
- "--max-meetings": {
592
- "value": "<n>",
593
- "meaning": "how many of the meeting account's meetings to look through, newest first, or all for every one (default 100)"
594
- },
595
595
  "--max-messages": {
596
596
  "value": "<n>",
597
597
  "meaning": "fetch at most this many messages total (default: 500)"
@@ -669,6 +669,9 @@
669
669
  "--no-block": {
670
670
  "meaning": "remove without banning; by default a removed person cannot come back by the link"
671
671
  },
672
+ "--no-buttons": {
673
+ "meaning": "take the buttons off the message"
674
+ },
672
675
  "--no-catch-up": {
673
676
  "meaning": "skip local preparation after this run"
674
677
  },
@@ -728,7 +731,7 @@
728
731
  },
729
732
  "--only": {
730
733
  "value": "<resources>",
731
- "meaning": "only these resources, separated by commas: messages, notes; meetings when --source names a meeting account"
734
+ "meaning": "only these resources, separated by commas: messages, notes, events, meetings"
732
735
  },
733
736
  "--only-admins-add": {
734
737
  "value": "<on|off>",
@@ -1888,6 +1891,12 @@
1888
1891
  "bot messages edit": {
1889
1892
  "in": ["max", "tg"],
1890
1893
  "options": {
1894
+ "--button": {
1895
+ "in": ["max", "tg"],
1896
+ "planned": {
1897
+ "wa": "whatsapp-cli: wa bot API, plans/2026-10-22-wa-bot-api"
1898
+ }
1899
+ },
1891
1900
  "--html": {
1892
1901
  "in": ["max", "tg"],
1893
1902
  "planned": {
@@ -1899,6 +1908,12 @@
1899
1908
  "planned": {
1900
1909
  "wa": "whatsapp-cli: wa bot API, plans/2026-10-22-wa-bot-api"
1901
1910
  }
1911
+ },
1912
+ "--no-buttons": {
1913
+ "in": ["max", "tg"],
1914
+ "planned": {
1915
+ "wa": "whatsapp-cli: wa bot API, plans/2026-10-22-wa-bot-api"
1916
+ }
1902
1917
  }
1903
1918
  },
1904
1919
  "planned": {
@@ -1948,6 +1963,12 @@
1948
1963
  "wa": "whatsapp-cli: wa bot API, plans/2026-10-22-wa-bot-api"
1949
1964
  }
1950
1965
  },
1966
+ "--button": {
1967
+ "in": ["max", "tg"],
1968
+ "planned": {
1969
+ "wa": "whatsapp-cli: wa bot API, plans/2026-10-22-wa-bot-api"
1970
+ }
1971
+ },
1951
1972
  "--file": {
1952
1973
  "in": ["max", "tg"],
1953
1974
  "planned": {
@@ -4118,13 +4139,6 @@
4118
4139
  },
4119
4140
  "--exact": "all",
4120
4141
  "--limit": "all",
4121
- "--max-meetings": {
4122
- "in": ["wa"],
4123
- "planned": {
4124
- "max": "each CLI’s next cli-core bump",
4125
- "tg": "each CLI’s next cli-core bump"
4126
- }
4127
- },
4128
4142
  "--only": "all",
4129
4143
  "--page": "all",
4130
4144
  "--server-time": {