@wirecat/cli-core 0.618.0 → 0.620.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 (335) hide show
  1. package/CHANGELOG.md +453 -1
  2. package/README.md +1 -1
  3. package/THIRD_PARTY_NOTICES +3 -0
  4. package/dist/background/deliver.d.ts +5 -2
  5. package/dist/background/deliver.js +30 -12
  6. package/dist/background/report/render.d.ts +3 -1
  7. package/dist/background/report/render.js +3 -1
  8. package/dist/calendar/cli/answers.d.ts +1 -0
  9. package/dist/calendar/cli/answers.js +6 -1
  10. package/dist/calendar/cli/index.js +2 -14
  11. package/dist/calendar/cli/people-link.d.ts +3 -0
  12. package/dist/calendar/cli/people-link.js +23 -0
  13. package/dist/calendar/cli/search-all.d.ts +1 -1
  14. package/dist/calendar/cli/search-all.js +9 -10
  15. package/dist/calendar/index.d.ts +1 -1
  16. package/dist/calendar/index.js +1 -1
  17. package/dist/calendar/mcp/index.d.ts +12 -12
  18. package/dist/calendar/prepare.js +1 -0
  19. package/dist/cli/base-stages-command.d.ts +22 -0
  20. package/dist/cli/base-stages-command.js +174 -0
  21. package/dist/cli/bot/buttons.d.ts +3 -0
  22. package/dist/cli/bot/buttons.js +24 -0
  23. package/dist/cli/bot/messages.js +14 -1
  24. package/dist/cli/bot/port.d.ts +8 -0
  25. package/dist/cli/command-runs.d.ts +2 -0
  26. package/dist/cli/command-runs.js +3 -1
  27. package/dist/cli/config-command.js +6 -1
  28. package/dist/cli/context.js +1 -0
  29. package/dist/cli/contract-templates.js +31 -2
  30. package/dist/cli/group-lock.d.ts +42 -0
  31. package/dist/cli/group-lock.js +130 -0
  32. package/dist/cli/index.d.ts +7 -2
  33. package/dist/cli/index.js +7 -2
  34. package/dist/cli/messenger/backfill-command.js +27 -15
  35. package/dist/cli/messenger/contacts-command.js +12 -4
  36. package/dist/cli/messenger/context.js +1 -0
  37. package/dist/cli/messenger/conversations-command.js +2 -1
  38. package/dist/cli/messenger/doctor-command.js +3 -1
  39. package/dist/cli/messenger/message-items.js +1 -1
  40. package/dist/cli/messenger/models-command.js +1 -1
  41. package/dist/cli/messenger/search-answers.d.ts +5 -5
  42. package/dist/cli/messenger/search-answers.js +9 -20
  43. package/dist/cli/messenger/search-command.d.ts +2 -2
  44. package/dist/cli/messenger/search-command.js +8 -18
  45. package/dist/cli/messenger/store-maintenance-command.d.ts +22 -2
  46. package/dist/cli/messenger/store-maintenance-command.js +9 -4
  47. package/dist/cli/model-catalogue-command.d.ts +3 -1
  48. package/dist/cli/model-catalogue-command.js +48 -2
  49. package/dist/cli/profile.d.ts +8 -0
  50. package/dist/cli/profile.js +25 -0
  51. package/dist/cli/program.js +2 -0
  52. package/dist/cli/runs/search-query.d.ts +1 -1
  53. package/dist/cli/runs/search-query.js +4 -0
  54. package/dist/cli/runs/search.d.ts +5 -1
  55. package/dist/cli/runs/search.js +12 -1
  56. package/dist/cli/search-harder-consents-command.d.ts +18 -0
  57. package/dist/cli/search-harder-consents-command.js +83 -0
  58. package/dist/cli/search-left-out.d.ts +6 -1
  59. package/dist/cli/search-left-out.js +9 -4
  60. package/dist/cli/settings.d.ts +8 -0
  61. package/dist/cli/settings.js +17 -2
  62. package/dist/cli/shared-command-exports.d.ts +16 -0
  63. package/dist/cli/steps.js +0 -6
  64. package/dist/cli/store-recover.d.ts +3 -3
  65. package/dist/cli/store-recover.js +26 -26
  66. package/dist/cli/store-settings.d.ts +2 -0
  67. package/dist/cli/store-settings.js +37 -9
  68. package/dist/cli/templates-command.js +4 -4
  69. package/dist/crm/cli/index.js +40 -8
  70. package/dist/crm/cli/search-all.js +7 -6
  71. package/dist/crm/group-hint.d.ts +8 -0
  72. package/dist/crm/group-hint.js +13 -0
  73. package/dist/crm/source.d.ts +12 -1
  74. package/dist/crm/sync.d.ts +31 -2
  75. package/dist/crm/sync.js +110 -3
  76. package/dist/crm/testing/acme-scenario.d.ts +40 -0
  77. package/dist/crm/testing/acme-scenario.js +170 -0
  78. package/dist/crm/testing/index.d.ts +1 -0
  79. package/dist/crm/testing/index.js +1 -0
  80. package/dist/crm/testing/source-contract.js +12 -0
  81. package/dist/crm/testing/source.d.ts +2 -0
  82. package/dist/crm/testing/source.js +1 -0
  83. package/dist/domain/addresses.d.ts +13 -0
  84. package/dist/domain/addresses.js +63 -0
  85. package/dist/domain/categories.d.ts +3 -0
  86. package/dist/domain/categories.js +2 -0
  87. package/dist/domain/crm.d.ts +23 -0
  88. package/dist/domain/crm.js +7 -0
  89. package/dist/domain/mentions.d.ts +2 -12
  90. package/dist/domain/mentions.js +2 -19
  91. package/dist/domain/models.d.ts +2 -0
  92. package/dist/domain/orders.d.ts +8 -1
  93. package/dist/domain/orders.js +6 -2
  94. package/dist/domain/phones.d.ts +26 -0
  95. package/dist/domain/phones.js +48 -0
  96. package/dist/domain/record-types.d.ts +1 -1
  97. package/dist/domain/record-types.js +1 -0
  98. package/dist/domain/records.d.ts +5 -0
  99. package/dist/domain/ref-summaries.d.ts +39 -0
  100. package/dist/domain/ref-summaries.js +51 -3
  101. package/dist/domain/relations.d.ts +12 -2
  102. package/dist/domain/relations.js +14 -3
  103. package/dist/domain/vcard.d.ts +2 -2
  104. package/dist/domain/vcard.js +4 -10
  105. package/dist/embeddings/models.d.ts +11 -3
  106. package/dist/embeddings/models.js +28 -4
  107. package/dist/entities/business-context.d.ts +149 -0
  108. package/dist/entities/business-context.js +192 -0
  109. package/dist/entities/contact-activity.d.ts +2 -0
  110. package/dist/entities/contact-activity.js +7 -1
  111. package/dist/entities/contact-context.d.ts +160 -0
  112. package/dist/entities/contact-context.js +6 -0
  113. package/dist/entities/deal.d.ts +10 -0
  114. package/dist/entities/deal.js +2 -0
  115. package/dist/entities/hit.d.ts +9 -2
  116. package/dist/entities/hit.js +6 -2
  117. package/dist/entities/index.d.ts +32 -4
  118. package/dist/entities/index.js +5 -0
  119. package/dist/entities/mention.d.ts +4 -3
  120. package/dist/entities/mention.js +2 -1
  121. package/dist/entities/message-transfer.d.ts +4 -2
  122. package/dist/entities/message-transfer.js +2 -2
  123. package/dist/entities/model.d.ts +2 -2
  124. package/dist/entities/model.js +1 -1
  125. package/dist/entities/relationship.d.ts +4 -0
  126. package/dist/entities/relationship.js +4 -0
  127. package/dist/errors/reasons.js +39 -4
  128. package/dist/fetch/page.js +2 -1
  129. package/dist/index.d.ts +3 -2
  130. package/dist/index.js +3 -2
  131. package/dist/meetings/context-store.d.ts +2 -0
  132. package/dist/meetings/findings-rules.d.ts +4 -0
  133. package/dist/meetings/findings-rules.js +5 -2
  134. package/dist/meetings/hit-query.d.ts +1 -1
  135. package/dist/meetings/hit-query.js +2 -2
  136. package/dist/meetings/index.d.ts +1 -0
  137. package/dist/meetings/index.js +1 -0
  138. package/dist/meetings/result-items.d.ts +1 -0
  139. package/dist/meetings/result-items.js +1 -0
  140. package/dist/meetings/store.d.ts +4 -0
  141. package/dist/meetings/store.js +2 -1
  142. package/dist/models/anthropic.js +5 -0
  143. package/dist/models/index.js +22 -5
  144. package/dist/runs/events.d.ts +11 -1
  145. package/dist/runs/events.js +3 -1
  146. package/dist/runs/log-attributes.js +4 -0
  147. package/dist/runs/log-events.js +2 -0
  148. package/dist/runs/recording.d.ts +3 -0
  149. package/dist/runs/recording.js +36 -12
  150. package/dist/runs/run.d.ts +12 -3
  151. package/dist/runs/run.js +32 -13
  152. package/dist/search/account-list.d.ts +6 -0
  153. package/dist/search/account-list.js +9 -3
  154. package/dist/search/groups.d.ts +68 -0
  155. package/dist/search/groups.js +172 -0
  156. package/dist/search/question-period.d.ts +10 -0
  157. package/dist/search/question-period.js +133 -0
  158. package/dist/sends/buttons.d.ts +2 -0
  159. package/dist/sends/buttons.js +6 -1
  160. package/dist/services/account-groups.d.ts +28 -0
  161. package/dist/services/account-groups.js +89 -0
  162. package/dist/services/archive.d.ts +7 -1
  163. package/dist/services/archive.js +19 -3
  164. package/dist/services/business-context.d.ts +113 -0
  165. package/dist/services/business-context.js +156 -0
  166. package/dist/services/communications.d.ts +50 -0
  167. package/dist/services/communications.js +140 -0
  168. package/dist/services/deal-context.d.ts +90 -0
  169. package/dist/services/deal-context.js +131 -0
  170. package/dist/services/deps.d.ts +2 -0
  171. package/dist/services/enrichment.d.ts +12 -2
  172. package/dist/services/enrichment.js +47 -6
  173. package/dist/services/events-search.js +2 -1
  174. package/dist/services/group-guard.d.ts +28 -0
  175. package/dist/services/group-guard.js +131 -0
  176. package/dist/services/index.d.ts +19 -4
  177. package/dist/services/index.js +12 -3
  178. package/dist/services/ingest.d.ts +12 -0
  179. package/dist/services/ingest.js +4 -0
  180. package/dist/services/meaning-model.d.ts +7 -0
  181. package/dist/services/meaning-model.js +20 -0
  182. package/dist/services/meeting-context.d.ts +6 -1
  183. package/dist/services/meeting-context.js +12 -5
  184. package/dist/services/message-resolution.js +2 -3
  185. package/dist/services/messages-meaning.js +4 -5
  186. package/dist/services/messages-search.d.ts +5 -1
  187. package/dist/services/messages-search.js +1 -1
  188. package/dist/services/messages.d.ts +1 -4
  189. package/dist/services/messages.js +0 -2
  190. package/dist/services/metadata.d.ts +1 -1
  191. package/dist/services/model-downloads.d.ts +1 -1
  192. package/dist/services/model-downloads.js +6 -4
  193. package/dist/services/money-context.d.ts +73 -0
  194. package/dist/services/money-context.js +77 -0
  195. package/dist/services/notes-search.d.ts +4 -1
  196. package/dist/services/notes-search.js +19 -7
  197. package/dist/services/organization-context.d.ts +80 -0
  198. package/dist/services/organization-context.js +154 -0
  199. package/dist/services/people.d.ts +22 -6
  200. package/dist/services/people.js +38 -8
  201. package/dist/services/person-business.d.ts +43 -0
  202. package/dist/services/person-business.js +67 -0
  203. package/dist/services/person-context.d.ts +11 -1
  204. package/dist/services/person-context.js +25 -10
  205. package/dist/services/person-preparation.d.ts +5 -1
  206. package/dist/services/person-preparation.js +10 -3
  207. package/dist/services/person-timeline.d.ts +6 -1
  208. package/dist/services/person-timeline.js +10 -2
  209. package/dist/services/proposals/kinds/identity-link.d.ts +4 -0
  210. package/dist/services/proposals/kinds/identity-link.js +48 -0
  211. package/dist/services/proposals/kinds/orders.js +1 -1
  212. package/dist/services/proposals/registry.js +2 -0
  213. package/dist/services/search-all-deprecated.d.ts +40 -0
  214. package/dist/services/search-all-deprecated.js +10 -0
  215. package/dist/services/search-all-meetings.d.ts +50 -52
  216. package/dist/services/search-all-meetings.js +265 -272
  217. package/dist/services/search-all.d.ts +34 -6
  218. package/dist/services/search-all.js +118 -24
  219. package/dist/services/search-harder.d.ts +64 -0
  220. package/dist/services/search-harder.js +194 -0
  221. package/dist/services/search-kind.d.ts +12 -5
  222. package/dist/services/search-kind.js +49 -10
  223. package/dist/services/text-model-choice.js +1 -1
  224. package/dist/store/accounts.d.ts +18 -0
  225. package/dist/store/accounts.js +18 -3
  226. package/dist/store/chats.d.ts +3 -1
  227. package/dist/store/chats.js +6 -0
  228. package/dist/store/damage.d.ts +43 -10
  229. package/dist/store/damage.js +119 -36
  230. package/dist/store/decisions.js +3 -1
  231. package/dist/store/evidence-findings.d.ts +14 -0
  232. package/dist/store/evidence-findings.js +2 -0
  233. package/dist/store/exports.d.ts +2 -1
  234. package/dist/store/identity-links.d.ts +92 -0
  235. package/dist/store/identity-links.js +6 -0
  236. package/dist/store/index.d.ts +11 -5
  237. package/dist/store/index.js +5 -2
  238. package/dist/store/journal.d.ts +10 -0
  239. package/dist/store/journal.js +33 -0
  240. package/dist/store/marks.d.ts +19 -1
  241. package/dist/store/marks.js +23 -1
  242. package/dist/store/people.d.ts +28 -2
  243. package/dist/store/people.js +15 -1
  244. package/dist/store/sqlite/accounts.js +2 -0
  245. package/dist/store/sqlite/added-sources.d.ts +15 -3
  246. package/dist/store/sqlite/added-sources.js +26 -5
  247. package/dist/store/sqlite/base-stages.d.ts +122 -0
  248. package/dist/store/sqlite/base-stages.js +443 -0
  249. package/dist/store/sqlite/base-suggest.d.ts +13 -0
  250. package/dist/store/sqlite/base-suggest.js +62 -0
  251. package/dist/store/sqlite/business-contracts.js +10 -1
  252. package/dist/store/sqlite/chats.d.ts +2 -0
  253. package/dist/store/sqlite/chats.js +6 -0
  254. package/dist/store/sqlite/crm-settings.d.ts +12 -2
  255. package/dist/store/sqlite/crm-settings.js +56 -13
  256. package/dist/store/sqlite/crm.d.ts +13 -1
  257. package/dist/store/sqlite/crm.js +20 -4
  258. package/dist/store/sqlite/deals.d.ts +33 -0
  259. package/dist/store/sqlite/deals.js +42 -4
  260. package/dist/store/sqlite/decision-requests.js +7 -3
  261. package/dist/store/sqlite/email-index.js +8 -4
  262. package/dist/store/sqlite/evidence-findings.js +29 -5
  263. package/dist/store/sqlite/findings-core.js +4 -2
  264. package/dist/store/sqlite/identity-link-rows.d.ts +50 -0
  265. package/dist/store/sqlite/identity-link-rows.js +146 -0
  266. package/dist/store/sqlite/identity-proposals.d.ts +53 -0
  267. package/dist/store/sqlite/identity-proposals.js +234 -0
  268. package/dist/store/sqlite/involvements.d.ts +1 -1
  269. package/dist/store/sqlite/involvements.js +4 -2
  270. package/dist/store/sqlite/knowledge.js +2 -2
  271. package/dist/store/sqlite/link-kinds.d.ts +1 -0
  272. package/dist/store/sqlite/link-kinds.js +1 -0
  273. package/dist/store/sqlite/link-row.d.ts +6 -0
  274. package/dist/store/sqlite/link-row.js +35 -0
  275. package/dist/store/sqlite/link-source.d.ts +10 -0
  276. package/dist/store/sqlite/link-source.js +16 -0
  277. package/dist/store/sqlite/manifest.js +1 -0
  278. package/dist/store/sqlite/meeting-context-links.js +9 -6
  279. package/dist/store/sqlite/meeting-hit-query.d.ts +5 -0
  280. package/dist/store/sqlite/meeting-hit-query.js +33 -0
  281. package/dist/store/sqlite/meeting-hit-search.js +10 -8
  282. package/dist/store/sqlite/meetings.js +1 -1
  283. package/dist/store/sqlite/memories.js +9 -7
  284. package/dist/store/sqlite/mentions.d.ts +4 -1
  285. package/dist/store/sqlite/mentions.js +14 -9
  286. package/dist/store/sqlite/migrations.generated.js +8 -0
  287. package/dist/store/sqlite/notes.d.ts +8 -2
  288. package/dist/store/sqlite/notes.js +17 -34
  289. package/dist/store/sqlite/open-store.js +3 -0
  290. package/dist/store/sqlite/open.js +11 -2
  291. package/dist/store/sqlite/orders.d.ts +2 -0
  292. package/dist/store/sqlite/orders.js +9 -3
  293. package/dist/store/sqlite/organization-categories.d.ts +18 -0
  294. package/dist/store/sqlite/organization-categories.js +34 -0
  295. package/dist/store/sqlite/organizations.d.ts +5 -1
  296. package/dist/store/sqlite/organizations.js +14 -4
  297. package/dist/store/sqlite/person-links.d.ts +19 -4
  298. package/dist/store/sqlite/person-links.js +49 -11
  299. package/dist/store/sqlite/person-match-scan.d.ts +13 -0
  300. package/dist/store/sqlite/person-match-scan.js +251 -0
  301. package/dist/store/sqlite/person-matcher.d.ts +16 -0
  302. package/dist/store/sqlite/person-matcher.js +32 -0
  303. package/dist/store/sqlite/person-preparation.d.ts +7 -3
  304. package/dist/store/sqlite/person-preparation.js +20 -6
  305. package/dist/store/sqlite/proposed-actions.js +6 -0
  306. package/dist/store/sqlite/record-matching.d.ts +2 -8
  307. package/dist/store/sqlite/record-matching.js +8 -40
  308. package/dist/store/sqlite/record-projectors-phone.js +2 -1
  309. package/dist/store/sqlite/record-relationships.d.ts +52 -0
  310. package/dist/store/sqlite/record-relationships.js +243 -0
  311. package/dist/store/sqlite/record-run.d.ts +5 -0
  312. package/dist/store/sqlite/record-run.js +62 -2
  313. package/dist/store/sqlite/record-writes.d.ts +1 -1
  314. package/dist/store/sqlite/record-writes.js +4 -2
  315. package/dist/store/sqlite/records.js +27 -2
  316. package/dist/store/sqlite/ref-accounts.d.ts +13 -0
  317. package/dist/store/sqlite/ref-accounts.js +117 -0
  318. package/dist/store/sqlite/ref-summaries.js +5 -1
  319. package/dist/store/sqlite/relation-list.d.ts +4 -1
  320. package/dist/store/sqlite/relation-list.js +22 -4
  321. package/dist/store/sqlite/relation-proposals.d.ts +6 -0
  322. package/dist/store/sqlite/relation-proposals.js +3 -0
  323. package/dist/store/sqlite/relation-roles.js +12 -6
  324. package/dist/store/sqlite/reported-relations.d.ts +11 -1
  325. package/dist/store/sqlite/reported-relations.js +59 -18
  326. package/dist/store/sqlite/schema.d.ts +32 -0
  327. package/dist/store/sqlite/schema.js +3 -0
  328. package/dist/store/sqlite/transaction.js +11 -1
  329. package/dist/store/store.d.ts +3 -0
  330. package/dist/store/store.js +5 -0
  331. package/dist/store/write-events.d.ts +18 -0
  332. package/dist/store/write-events.js +88 -0
  333. package/package.json +3 -3
  334. package/parity.json +37 -16
  335. package/schemas/records-envelope.v1.schema.json +3 -0
@@ -0,0 +1,88 @@
1
+ import { runEvent } from "../runs/scope.js";
2
+ const WRITE = /^\s*(?:WITH\b[\s\S]*?\)\s*)?(INSERT|REPLACE|UPDATE|DELETE)\b(?:\s+OR\s+[A-Za-z]+)?\s+(?:INTO\s+|FROM\s+)?(?:("?)(\w+)\2\.)?["`[]?(\w+)/i;
3
+ /** The table a statement writes and how, read from its text; a read, DDL or a temp table answers undefined. */
4
+ export const writeTarget = (sql) => {
5
+ const match = WRITE.exec(sql);
6
+ if (!match || match[3]?.toLowerCase() === "temp")
7
+ return undefined;
8
+ const verb = match[1].toUpperCase();
9
+ return { table: match[4], op: verb === "UPDATE" ? "update" : verb === "DELETE" ? "delete" : "insert" };
10
+ };
11
+ const tallies = new WeakMap();
12
+ const wrapped = new WeakSet();
13
+ const emit = ({ table, op, n }) => runEvent({ event: "store", operation: "store.write", kind: "store", table, op, n });
14
+ const note = (tally, target, n) => {
15
+ if (n <= 0)
16
+ return;
17
+ // Outside a transaction the statement committed itself.
18
+ if (!tally.inTransaction())
19
+ return emit({ ...target, n });
20
+ const key = `${target.table} ${target.op}`;
21
+ const seen = tally.pending.get(key);
22
+ if (seen)
23
+ seen.n += n;
24
+ else
25
+ tally.pending.set(key, { ...target, n });
26
+ };
27
+ const count = (statement, target, tally) => {
28
+ if (wrapped.has(statement))
29
+ return;
30
+ wrapped.add(statement);
31
+ const { run, all, get } = statement;
32
+ statement.run = (...parameters) => {
33
+ const result = run.apply(statement, parameters);
34
+ note(tally, target, Number(result.changes));
35
+ return result;
36
+ };
37
+ statement.all = (...parameters) => {
38
+ const rows = all.apply(statement, parameters);
39
+ note(tally, target, rows.length);
40
+ return rows;
41
+ };
42
+ statement.get = (...parameters) => {
43
+ const row = get.apply(statement, parameters);
44
+ note(tally, target, row === undefined || row === null ? 0 : 1);
45
+ return row;
46
+ };
47
+ };
48
+ /**
49
+ * Counts the rows each write statement changes, per table, on a writable store connection: `methods` are the client's
50
+ * prepare calls, which both the `CacheDatabase` seam and Drizzle go through. A transaction's counts become run events
51
+ * when `write` commits it; a statement outside one is its own event.
52
+ */
53
+ export const countWrites = (client, methods, inTransaction) => {
54
+ const tally = { pending: new Map(), inTransaction };
55
+ const target = client;
56
+ const shared = Object.getPrototypeOf(client);
57
+ for (const name of methods) {
58
+ const own = Object.hasOwn(target, name) ? target[name] : undefined;
59
+ if (typeof (own ?? shared[name]) !== "function")
60
+ continue;
61
+ // Looked up on each call, so a spy on the prototype still sees it.
62
+ target[name] = (sql, ...rest) => {
63
+ const prepare = (own ?? shared[name]);
64
+ const statement = prepare.call(client, sql, ...rest);
65
+ const writes = typeof sql === "string" ? writeTarget(sql) : undefined;
66
+ if (writes)
67
+ count(statement, writes, tally);
68
+ return statement;
69
+ };
70
+ }
71
+ tallies.set(client, tally);
72
+ return client;
73
+ };
74
+ /** The seam built over a counted client shares its counts. */
75
+ export const shareCounts = (from, to) => {
76
+ const tally = tallies.get(from);
77
+ if (tally)
78
+ tallies.set(to, tally);
79
+ };
80
+ export const committedWrites = (database) => {
81
+ const tally = tallies.get(database);
82
+ if (!tally || tally.pending.size === 0)
83
+ return;
84
+ for (const counted of tally.pending.values())
85
+ emit(counted);
86
+ tally.pending.clear();
87
+ };
88
+ export const droppedWrites = (database) => tallies.get(database)?.pending.clear();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wirecat/cli-core",
3
- "version": "0.618.0",
3
+ "version": "0.620.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",
@@ -15,7 +15,7 @@
15
15
  "type": "module",
16
16
  "wirecat": {
17
17
  "store": {
18
- "speaks": 59,
18
+ "speaks": 60,
19
19
  "minCompatible": 56
20
20
  }
21
21
  },
@@ -278,7 +278,7 @@
278
278
  "@types/node": "^22.20.5",
279
279
  "@types/pngjs": "6.0.5",
280
280
  "@vitest/coverage-v8": "^5.0.5",
281
- "@wirecat/cli-base": "0.90.0",
281
+ "@wirecat/cli-base": "0.93.0",
282
282
  "@wirecat/cli-core-legacy-tags": "npm:@wirecat/cli-core@0.414.0",
283
283
  "ajv": "8.17.1",
284
284
  "commander": "15.0.0",
package/parity.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "meaning": "who sees the about text: everyone, contacts or nobody"
7
7
  },
8
8
  "--accept-terms": {
9
- "meaning": "accept the model's licence terms, for a model that has its own"
9
+ "meaning": "no longer needed; kept so older scripts still run"
10
10
  },
11
11
  "--add": {
12
12
  "value": "<chat>",
@@ -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>",
@@ -880,7 +883,7 @@
880
883
  },
881
884
  "--reason": {
882
885
  "value": "<text>",
883
- "meaning": "why a task was closed, kept with it — no-reply-needed, for example"
886
+ "meaning": "why, kept with what it records: a task's close (no-reply-needed, for example), an agent's proposed link"
884
887
  },
885
888
  "--record": {
886
889
  "meaning": "keep this run under `runs`, with the command as typed and secrets hidden; record_input false leaves the typed words out",
@@ -1154,6 +1157,9 @@
1154
1157
  "default": "me",
1155
1158
  "meaning": "whose replies are timed: the owner's (me) or the other side's (others)"
1156
1159
  },
1160
+ "--with-muted": {
1161
+ "meaning": "with --all: also read the chats the owner muted, as history_muted true does"
1162
+ },
1157
1163
  "--with-notes": {
1158
1164
  "meaning": "include your private notes, subject to contacts.notes.list permission"
1159
1165
  },
@@ -1885,6 +1891,12 @@
1885
1891
  "bot messages edit": {
1886
1892
  "in": ["max", "tg"],
1887
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
+ },
1888
1900
  "--html": {
1889
1901
  "in": ["max", "tg"],
1890
1902
  "planned": {
@@ -1896,6 +1908,12 @@
1896
1908
  "planned": {
1897
1909
  "wa": "whatsapp-cli: wa bot API, plans/2026-10-22-wa-bot-api"
1898
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
+ }
1899
1917
  }
1900
1918
  },
1901
1919
  "planned": {
@@ -1945,6 +1963,12 @@
1945
1963
  "wa": "whatsapp-cli: wa bot API, plans/2026-10-22-wa-bot-api"
1946
1964
  }
1947
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
+ },
1948
1972
  "--file": {
1949
1973
  "in": ["max", "tg"],
1950
1974
  "planned": {
@@ -2884,7 +2908,10 @@
2884
2908
  "in": "all"
2885
2909
  },
2886
2910
  "contacts link": {
2887
- "in": "all"
2911
+ "in": "all",
2912
+ "options": {
2913
+ "--reason": "all"
2914
+ }
2888
2915
  },
2889
2916
  "contacts list": {
2890
2917
  "in": "all",
@@ -3581,7 +3608,8 @@
3581
3608
  "--no-catch-up": "all",
3582
3609
  "--page-size": "all",
3583
3610
  "--pause": "all",
3584
- "--since-time": "all"
3611
+ "--since-time": "all",
3612
+ "--with-muted": "all"
3585
3613
  }
3586
3614
  },
3587
3615
  "messages transcribe": {
@@ -4111,13 +4139,6 @@
4111
4139
  },
4112
4140
  "--exact": "all",
4113
4141
  "--limit": "all",
4114
- "--max-meetings": {
4115
- "in": ["wa"],
4116
- "planned": {
4117
- "max": "each CLI’s next cli-core bump",
4118
- "tg": "each CLI’s next cli-core bump"
4119
- }
4120
- },
4121
4142
  "--only": "all",
4122
4143
  "--page": "all",
4123
4144
  "--server-time": {
@@ -537,6 +537,9 @@
537
537
  },
538
538
  "phone": {
539
539
  "description": "Phone numbers, one or a list: an exact one, read to E.164, links like an e-mail"
540
+ },
541
+ "position": {
542
+ "description": "The job title, kept beside each member-of as its position: never the role"
540
543
  }
541
544
  },
542
545
  "additionalProperties": true