@wirecat/cli-core 0.550.0 → 0.552.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 (190) hide show
  1. package/CHANGELOG.md +235 -0
  2. package/README.md +1 -1
  3. package/THIRD_PARTY_NOTICES +41 -0
  4. package/dist/background/schedules.d.ts +12 -1
  5. package/dist/background/schedules.js +65 -24
  6. package/dist/background/units.d.ts +16 -9
  7. package/dist/background/units.js +26 -11
  8. package/dist/calendar/ics.d.ts +1 -1
  9. package/dist/calendar/ics.js +5 -2
  10. package/dist/calendar/windows-zones.generated.d.ts +1 -0
  11. package/dist/calendar/windows-zones.generated.js +146 -0
  12. package/dist/cli/compact.js +2 -0
  13. package/dist/cli/context.d.ts +2 -0
  14. package/dist/cli/index.d.ts +3 -0
  15. package/dist/cli/index.js +3 -0
  16. package/dist/cli/meeting-findings-input.js +4 -3
  17. package/dist/cli/meeting-preparation-answer.d.ts +3 -0
  18. package/dist/cli/meeting-preparation-projects.d.ts +3 -0
  19. package/dist/cli/meeting-preparation-read.d.ts +3 -0
  20. package/dist/cli/messenger/backfill-command.js +28 -1
  21. package/dist/cli/messenger/context.js +1 -0
  22. package/dist/cli/messenger/history-gaps.js +4 -4
  23. package/dist/cli/messenger/mcp-command.js +1 -0
  24. package/dist/cli/messenger/messages-delete-command.js +7 -8
  25. package/dist/cli/messenger/projects-command.js +47 -2
  26. package/dist/cli/messenger/search-answers.js +8 -1
  27. package/dist/cli/messenger/serve-catch-up.d.ts +43 -0
  28. package/dist/cli/messenger/serve-catch-up.js +90 -0
  29. package/dist/cli/messenger/serve-command.js +54 -1
  30. package/dist/cli/messenger/server-command.d.ts +4 -3
  31. package/dist/cli/messenger/server-command.js +30 -12
  32. package/dist/cli/payment-query.d.ts +8 -0
  33. package/dist/cli/payment-query.js +27 -0
  34. package/dist/cli/program.js +9 -4
  35. package/dist/cli/project-status-rows.d.ts +8 -0
  36. package/dist/cli/project-status-rows.js +102 -0
  37. package/dist/cli/project-status.d.ts +132 -0
  38. package/dist/cli/project-status.js +248 -0
  39. package/dist/cli/schedule/schedule-command.js +5 -1
  40. package/dist/cli/steps.js +4 -1
  41. package/dist/domain/knowledge.d.ts +1 -1
  42. package/dist/domain/knowledge.js +1 -1
  43. package/dist/domain/status-words.d.ts +3 -0
  44. package/dist/domain/status-words.js +44 -0
  45. package/dist/entities/fact.d.ts +12 -1
  46. package/dist/entities/fact.js +13 -0
  47. package/dist/entities/hit.d.ts +5 -0
  48. package/dist/entities/hit.js +5 -0
  49. package/dist/entities/index.d.ts +45 -2
  50. package/dist/entities/listener.d.ts +6 -0
  51. package/dist/entities/listener.js +1 -0
  52. package/dist/entities/meeting-findings.d.ts +1 -1
  53. package/dist/entities/meeting-preparation.d.ts +3 -0
  54. package/dist/entities/message-transfer.d.ts +16 -0
  55. package/dist/entities/message-transfer.js +6 -0
  56. package/dist/errors/reasons.js +1 -0
  57. package/dist/mcp/app-server.js +1 -0
  58. package/dist/mcp/http/oauth.d.ts +2 -1
  59. package/dist/mcp/http/oauth.js +2 -2
  60. package/dist/mcp/http/serve.d.ts +2 -0
  61. package/dist/mcp/http/serve.js +2 -1
  62. package/dist/mcp/meeting-preparation.d.ts +3 -0
  63. package/dist/mcp/server.js +1 -0
  64. package/dist/mcp/surface.js +1 -1
  65. package/dist/meetings/answers.d.ts +5 -0
  66. package/dist/meetings/answers.js +8 -0
  67. package/dist/meetings/cli/index.js +14 -0
  68. package/dist/meetings/findings-rules.d.ts +14 -3
  69. package/dist/meetings/findings-rules.js +16 -2
  70. package/dist/meetings/index.d.ts +5 -3
  71. package/dist/meetings/index.js +3 -1
  72. package/dist/meetings/ingest.js +2 -1
  73. package/dist/meetings/language.d.ts +5 -0
  74. package/dist/meetings/language.js +57 -0
  75. package/dist/meetings/mcp/search.d.ts +3 -0
  76. package/dist/meetings/meeting-context.d.ts +2 -3
  77. package/dist/meetings/meeting-context.js +3 -4
  78. package/dist/meetings/payment.d.ts +27 -0
  79. package/dist/meetings/payment.js +81 -0
  80. package/dist/meetings/project-evidence-answer.d.ts +3 -0
  81. package/dist/meetings/result-items.d.ts +9 -0
  82. package/dist/meetings/result-items.js +7 -0
  83. package/dist/meetings/store.d.ts +22 -0
  84. package/dist/meetings/testing/memory.js +3 -0
  85. package/dist/meetings/transcription.d.ts +2 -0
  86. package/dist/meetings/transcription.js +5 -1
  87. package/dist/search/lucene/types.d.ts +7 -0
  88. package/dist/search/lucene/types.js +11 -1
  89. package/dist/services/archive.d.ts +13 -0
  90. package/dist/services/archive.js +56 -5
  91. package/dist/services/deps.d.ts +3 -0
  92. package/dist/services/history-limits.d.ts +2 -0
  93. package/dist/services/index.d.ts +4 -1
  94. package/dist/services/index.js +4 -1
  95. package/dist/services/job-query.d.ts +5 -2
  96. package/dist/services/job-query.js +5 -2
  97. package/dist/services/link-scorers/alias-hits.d.ts +7 -0
  98. package/dist/services/link-scorers/alias-hits.js +54 -0
  99. package/dist/services/link-scorers/chat-senders.d.ts +6 -0
  100. package/dist/services/link-scorers/chat-senders.js +56 -0
  101. package/dist/services/link-scorers/chat-title.d.ts +6 -0
  102. package/dist/services/link-scorers/chat-title.js +44 -0
  103. package/dist/services/link-scorers/email-domain.d.ts +6 -0
  104. package/dist/services/link-scorers/email-domain.js +64 -0
  105. package/dist/services/link-scorers/index.d.ts +9 -0
  106. package/dist/services/link-scorers/index.js +8 -0
  107. package/dist/services/link-scorers/mail-thread.d.ts +3 -0
  108. package/dist/services/link-scorers/mail-thread.js +74 -0
  109. package/dist/services/link-scorers/member-chats.d.ts +3 -0
  110. package/dist/services/link-scorers/member-chats.js +40 -0
  111. package/dist/services/link-scorers/member-dialog.d.ts +3 -0
  112. package/dist/services/link-scorers/member-dialog.js +34 -0
  113. package/dist/services/link-scorers/scan.d.ts +41 -0
  114. package/dist/services/link-scorers/scan.js +244 -0
  115. package/dist/services/link-scorers/shared.d.ts +26 -0
  116. package/dist/services/link-scorers/shared.js +48 -0
  117. package/dist/services/link-scorers/types.d.ts +77 -0
  118. package/dist/services/link-scorers/types.js +1 -0
  119. package/dist/services/messages-archive-search.js +3 -2
  120. package/dist/services/messages-combined.js +2 -2
  121. package/dist/services/messages-discovery.js +2 -2
  122. package/dist/services/notes-search.js +4 -5
  123. package/dist/services/project-status/index.d.ts +71 -0
  124. package/dist/services/project-status/index.js +196 -0
  125. package/dist/services/project-status/items.d.ts +10 -0
  126. package/dist/services/project-status/items.js +23 -0
  127. package/dist/services/project-status/signals/amounts.d.ts +20 -0
  128. package/dist/services/project-status/signals/amounts.js +91 -0
  129. package/dist/services/project-status/signals/children.d.ts +13 -0
  130. package/dist/services/project-status/signals/children.js +28 -0
  131. package/dist/services/project-status/signals/coverage.d.ts +13 -0
  132. package/dist/services/project-status/signals/coverage.js +30 -0
  133. package/dist/services/project-status/signals/index.d.ts +3 -0
  134. package/dist/services/project-status/signals/index.js +21 -0
  135. package/dist/services/project-status/signals/last-message.d.ts +4 -0
  136. package/dist/services/project-status/signals/last-message.js +22 -0
  137. package/dist/services/project-status/signals/payments.d.ts +9 -0
  138. package/dist/services/project-status/signals/payments.js +24 -0
  139. package/dist/services/project-status/signals/promises.d.ts +17 -0
  140. package/dist/services/project-status/signals/promises.js +109 -0
  141. package/dist/services/project-status/signals/questions.d.ts +8 -0
  142. package/dist/services/project-status/signals/questions.js +38 -0
  143. package/dist/services/project-status/signals/reply-next.d.ts +19 -0
  144. package/dist/services/project-status/signals/reply-next.js +75 -0
  145. package/dist/services/project-status/signals/topics.d.ts +10 -0
  146. package/dist/services/project-status/signals/topics.js +50 -0
  147. package/dist/services/project-status/types.d.ts +84 -0
  148. package/dist/services/project-status/types.js +1 -0
  149. package/dist/services/proposals/index.d.ts +1 -0
  150. package/dist/services/proposals/index.js +1 -0
  151. package/dist/services/proposals/kinds/findings.d.ts +3 -0
  152. package/dist/services/proposals/kinds/findings.js +8 -1
  153. package/dist/services/search-all-meetings.d.ts +3 -0
  154. package/dist/services/search-all-meetings.js +6 -1
  155. package/dist/speech/local.d.ts +2 -0
  156. package/dist/speech/local.js +8 -1
  157. package/dist/speech/models.d.ts +2 -0
  158. package/dist/speech/models.js +2 -0
  159. package/dist/store/decisions.d.ts +5 -1
  160. package/dist/store/decisions.js +5 -1
  161. package/dist/store/driver.d.ts +11 -0
  162. package/dist/store/driver.js +13 -0
  163. package/dist/store/drivers/node-sqlite.d.ts +1 -1
  164. package/dist/store/drivers/node-sqlite.js +3 -0
  165. package/dist/store/evidence-findings.js +1 -0
  166. package/dist/store/index.d.ts +2 -1
  167. package/dist/store/index.js +1 -0
  168. package/dist/store/project-transfer/request.d.ts +1 -1
  169. package/dist/store/project-transfer/schema.d.ts +2 -2
  170. package/dist/store/project-transfer/snapshot-model.d.ts +2 -2
  171. package/dist/store/sqlite/evidence-findings.js +5 -1
  172. package/dist/store/sqlite/facts.d.ts +13 -0
  173. package/dist/store/sqlite/facts.js +64 -6
  174. package/dist/store/sqlite/findings-core.js +14 -1
  175. package/dist/store/sqlite/knowledge.d.ts +16 -2
  176. package/dist/store/sqlite/knowledge.js +1 -0
  177. package/dist/store/sqlite/lucene.d.ts +1 -1
  178. package/dist/store/sqlite/lucene.js +33 -7
  179. package/dist/store/sqlite/meeting-hit-search.js +10 -3
  180. package/dist/store/sqlite/meeting-languages.d.ts +4 -0
  181. package/dist/store/sqlite/meeting-languages.js +36 -0
  182. package/dist/store/sqlite/meetings.d.ts +2 -1
  183. package/dist/store/sqlite/meetings.js +9 -3
  184. package/dist/store/sqlite/note-search.js +2 -2
  185. package/dist/store/sqlite/project-transfer/snapshot.d.ts +1 -1
  186. package/dist/store/sqlite/relation-proposals.d.ts +29 -2
  187. package/dist/store/sqlite/relation-proposals.js +75 -4
  188. package/dist/store/store.d.ts +1 -0
  189. package/package.json +3 -3
  190. package/parity.json +11 -0
@@ -0,0 +1,248 @@
1
+ import * as v from "valibot";
2
+ import { snakeKeys } from "./envelope.js";
3
+ import { heldPhrase } from "./messenger/search-answers.js";
4
+ import { STATUS_SIGNAL_ROWS } from "./project-status-rows.js";
5
+ const day = (at) => new Date(at).toISOString().slice(0, 10);
6
+ const listKey = (signal) => signal.replaceAll("-", "_");
7
+ const SECTIONS = {
8
+ signals: "status.signal",
9
+ money: "status.money",
10
+ chats: "status.chat",
11
+ out_of_scope: "status.out-of-scope",
12
+ failed: "status.failed",
13
+ };
14
+ /** The `project_status` answer drawn by `--compact`: each signal's list with that signal's row. */
15
+ export const projectStatusRow = (signals) => ({
16
+ columns: [],
17
+ sections: {
18
+ ...SECTIONS,
19
+ ...Object.fromEntries(signals.map(({ id }) => [listKey(id), `status.${id}`])),
20
+ },
21
+ });
22
+ const statusItem = v.looseObject({
23
+ signal: v.string(),
24
+ ref: v.nullable(v.string()),
25
+ chat: v.nullable(v.string()),
26
+ chat_title: v.nullable(v.string()),
27
+ at: v.nullable(v.string()),
28
+ who: v.nullable(v.strictObject({ ref: v.nullable(v.string()), name: v.nullable(v.string()), owner: v.boolean() })),
29
+ evidence: v.array(v.strictObject({ ref: v.string(), fingerprint: v.nullable(v.string()) })),
30
+ basis: v.picklist(["store", "fact", "task", "pattern"]),
31
+ data: v.record(v.string(), v.unknown()),
32
+ });
33
+ /** Where a project stands: per chat signals, open money, and what was left out. Empty lists are left out. */
34
+ export const projectStatusSchema = v.looseObject({
35
+ project: v.string(),
36
+ key: v.nullable(v.string()),
37
+ name: v.string(),
38
+ window: v.strictObject({ since: v.string(), until: v.string() }),
39
+ signals: v.array(v.strictObject({ id: v.string(), version: v.number() })),
40
+ money: v.array(v.strictObject({ direction: v.string(), currency: v.nullable(v.string()), amount: v.string(), rows: v.number() })),
41
+ chats: v.array(v.strictObject({
42
+ chat: v.string(),
43
+ title: v.nullable(v.string()),
44
+ kind: v.string(),
45
+ role: v.nullable(v.string()),
46
+ purpose: v.string(),
47
+ project: v.string(),
48
+ coverage: v.string(),
49
+ attention: v.number(),
50
+ why: v.nullable(v.string()),
51
+ })),
52
+ out_of_scope: v.optional(v.array(v.strictObject({ chat: v.string(), reason: v.string(), purpose: v.optional(v.string()) }))),
53
+ failed: v.optional(v.array(v.strictObject({ signal: v.string(), why: v.string() }))),
54
+ ...Object.fromEntries(Object.keys(STATUS_SIGNAL_ROWS).map((name) => [listKey(name.slice(7)), v.optional(v.array(statusItem))])),
55
+ });
56
+ const coverageOf = (found, chat) => found.items.find((one) => one.signal === "coverage" && one.chat === chat)?.data;
57
+ const partial = (found, chat) => {
58
+ const held = coverageOf(found, chat.ref);
59
+ return held ? held.state !== "complete" && held.beforeHeld : chat.coverage.completeness.state !== "complete";
60
+ };
61
+ const readFrom = (found, chat) => {
62
+ const reply = found.items.find((one) => one.signal === "reply-next" && one.chat === chat)?.data;
63
+ const money = found.items
64
+ .filter((one) => one.signal === "amounts" && one.chat === chat && one.data.state === "open")
65
+ .map((one) => one.data.since)
66
+ .sort()[0];
67
+ return day([money, reply?.waitingSince, found.window.since].find((one) => typeof one === "string"));
68
+ };
69
+ /** At most two: the chats `attention` weighs highest, a chat held in part synced first. */
70
+ const nextOf = (found, hints) => {
71
+ const byRef = new Map(found.chats.map((chat) => [chat.ref, chat]));
72
+ const top = found.attention.slice(0, 2).flatMap((one) => {
73
+ const chat = byRef.get(one.chat);
74
+ return chat ? [{ chat, why: one.why }] : [];
75
+ });
76
+ const because = (step, why) => (step ? [{ ...step, why }] : []);
77
+ const syncs = top.flatMap(({ chat, why }) => partial(found, chat) ? because(hints.sync(chat, day(found.window.since)), why) : []);
78
+ const reads = top.flatMap(({ chat, why }) => partial(found, chat) ? [] : because(hints.read(chat, readFrom(found, chat.ref)), why));
79
+ return [...syncs, ...reads].slice(0, 2);
80
+ };
81
+ const missingOf = (found) => {
82
+ const held = found.chats.filter((chat) => partial(found, chat));
83
+ const [first] = held;
84
+ return [
85
+ ...(first
86
+ ? [
87
+ {
88
+ field: "history",
89
+ why: `${held.length} of ${found.chats.length} chats hold only part of the window; ` +
90
+ `the first is ${heldPhrase(first.coverage)}`,
91
+ step: "messages.sync",
92
+ },
93
+ ]
94
+ : []),
95
+ ...(found.outOfScope.length
96
+ ? [
97
+ {
98
+ field: "chats",
99
+ why: `${found.outOfScope.length} linked chats were not read here (${[
100
+ ...new Set(found.outOfScope.map((one) => one.reason)),
101
+ ].join(", ")}); memo projects status reads every account`,
102
+ },
103
+ ]
104
+ : []),
105
+ ...found.failed.map((one) => ({ field: `signal:${one.signal}`, why: one.why })),
106
+ ];
107
+ };
108
+ const withPlace = (found, hints) => {
109
+ const titles = new Map(found.chats.map((chat) => [chat.ref, chat.title]));
110
+ const sync = (one) => {
111
+ const chat = found.chats.find((each) => each.ref === one.chat);
112
+ const step = chat && partial(found, chat) ? hints.sync(chat, day(found.window.since)) : null;
113
+ return step ? hints.line(step) : null;
114
+ };
115
+ return (one) => ({
116
+ ...one,
117
+ ref: one.evidence[0]?.ref ?? one.chat,
118
+ chatTitle: one.chat === null ? null : (titles.get(one.chat) ?? null),
119
+ ...(one.signal === "coverage" ? { syncCommand: sync(one) } : {}),
120
+ });
121
+ };
122
+ /** The answer of `projects status`: the item, two steps at most, what is missing, and the window. */
123
+ export const projectStatusAnswer = (found, hints) => {
124
+ const weights = new Map(found.attention.map((one) => [one.chat, one]));
125
+ const place = withPlace(found, hints);
126
+ const lists = Object.fromEntries(found.signals.flatMap(({ id }) => {
127
+ const items = found.items.filter((one) => one.signal === id).map(place);
128
+ return items.length ? [[listKey(id), items]] : [];
129
+ }));
130
+ const item = snakeKeys({
131
+ project: found.project.ref,
132
+ key: found.project.key,
133
+ name: found.project.name,
134
+ window: found.window,
135
+ signals: found.signals,
136
+ money: found.money.open,
137
+ chats: found.chats.map((chat) => ({
138
+ chat: chat.ref,
139
+ title: chat.title,
140
+ kind: chat.kind,
141
+ role: chat.role,
142
+ purpose: chat.purpose,
143
+ project: chat.project,
144
+ coverage: chat.coverage.completeness.state,
145
+ attention: weights.get(chat.ref)?.weight ?? 0,
146
+ why: weights.get(chat.ref)?.why ?? null,
147
+ })),
148
+ ...(found.outOfScope.length ? { outOfScope: found.outOfScope } : {}),
149
+ ...(found.failed.length ? { failed: found.failed } : {}),
150
+ ...lists,
151
+ });
152
+ const missing = missingOf(found);
153
+ const complete = found.failed.length === 0 && !found.chats.some((chat) => partial(found, chat));
154
+ return {
155
+ item,
156
+ next: nextOf(found, hints),
157
+ missing,
158
+ meta: { window: found.window, complete, ...(found.accounts.length ? { accounts: found.accounts } : {}) },
159
+ };
160
+ };
161
+ const NEXT_WORDS = { owner: "YOU", them: "them", nobody: "nobody" };
162
+ const chatLine = (found, chat) => {
163
+ const of = (signal) => found.items.filter((one) => one.signal === signal && one.chat === chat.ref);
164
+ const [last] = of("last-message");
165
+ const reply = of("reply-next")[0]?.data;
166
+ const head = [
167
+ `${chat.title ?? chat.ref} (${[chat.role ?? "no role", chat.kind].join(", ")})`,
168
+ last
169
+ ? `last ${day(last.at)} ${last.who?.owner ? "you" : (last.who?.name ?? "them")}`
170
+ : "nothing in the window",
171
+ ...(reply
172
+ ? [
173
+ `next: ${reply.next === "named" ? `${reply.addressed?.name ?? "someone"} (named)` : NEXT_WORDS[reply.next]}` +
174
+ (reply.waitingSince ? ` since ${day(reply.waitingSince)}` : ""),
175
+ ]
176
+ : []),
177
+ ...(partial(found, chat) ? [heldPhrase(chat.coverage)] : []),
178
+ ].join(" · ");
179
+ const open = [];
180
+ const asked = of("questions").map((one) => one.data);
181
+ const yours = asked.filter((one) => one.side === "yours").length;
182
+ const theirs = asked.length - yours;
183
+ if (theirs)
184
+ open.push(`${theirs} question${theirs === 1 ? "" : "s"} to you unanswered`);
185
+ if (yours)
186
+ open.push(`${yours} question${yours === 1 ? "" : "s"} of yours unanswered`);
187
+ for (const topic of of("topics")) {
188
+ const data = topic.data;
189
+ if (data.silentSince)
190
+ open.push(`"${data.query}" quiet on their side since ${day(data.silentSince)}`);
191
+ }
192
+ const promised = of("promises").length;
193
+ if (promised)
194
+ open.push(`${promised} promise${promised === 1 ? "" : "s"}`);
195
+ return [` ${head}`, ...(open.length ? [` open: ${open.join(" · ")}`] : [])];
196
+ };
197
+ const moneyLine = (one, titles) => {
198
+ const data = one.data;
199
+ const asks = data.asks > 1 && data.lastAsked ? ` (asked ${data.asks}×, last ${day(data.lastAsked)})` : "";
200
+ const where = one.chat === null ? "" : ` · ${titles.get(one.chat) ?? one.chat}`;
201
+ const words = data.direction.replace("_", " ");
202
+ const sum = `${data.amount} ${data.currency ?? "?"} ${data.state} since ${day(data.since)}`;
203
+ return ` ${words.padEnd(7)} ${sum}${asks}${where} · ${one.evidence[0]?.ref ?? ""} [${one.basis}]`;
204
+ };
205
+ /** The human form: header, money, a line per chat with what is open, then the steps. */
206
+ export const projectStatusText = (found, hints) => {
207
+ const titles = new Map(found.chats.map((chat) => [chat.ref, chat.title]));
208
+ const { next } = projectStatusAnswer(found, hints);
209
+ const money = found.items.filter((one) => one.signal === "amounts" && one.data.state !== "mentioned");
210
+ const payments = found.items.filter((one) => one.signal === "payments");
211
+ const children = found.items.filter((one) => one.signal === "children");
212
+ const key = found.project.key ? `${found.project.key} · ` : "";
213
+ const lines = [
214
+ `${key}${found.project.name} · ${found.chats.length} linked chats in ${found.accounts.length} accounts, ` +
215
+ `${day(found.window.since)} to ${day(found.window.until)}`,
216
+ ];
217
+ if (money.length || payments.length) {
218
+ lines.push("Money");
219
+ for (const one of money)
220
+ lines.push(moneyLine(one, titles));
221
+ for (const one of payments) {
222
+ const data = one.data;
223
+ lines.push(` payment ${data.title} · ${one.evidence[0]?.ref ?? ""} [${data.status}]`);
224
+ }
225
+ }
226
+ if (found.chats.length)
227
+ lines.push("Chats");
228
+ for (const chat of found.chats)
229
+ for (const line of chatLine(found, chat))
230
+ lines.push(line);
231
+ if (children.length)
232
+ lines.push("Children");
233
+ for (const one of children) {
234
+ const data = one.data;
235
+ const cut = one.data.cut;
236
+ lines.push(` ${cut ? `${data.child} not read (${cut})` : `${data.key ?? data.child} · ${data.name} · ${data.chats} chats`}`);
237
+ }
238
+ if (found.outOfScope.length)
239
+ lines.push(`Not read here: ${found.outOfScope.map((one) => `${one.chat} (${one.reason})`).join(", ")}`);
240
+ for (const one of found.failed)
241
+ lines.push(`Signal ${one.signal} failed: ${one.why}`);
242
+ if (next.length)
243
+ lines.push("Next");
244
+ next.forEach((step, index) => {
245
+ lines.push(` ${index + 1}. ${hints.line(step)}`);
246
+ });
247
+ return lines.join("\n");
248
+ };
@@ -268,7 +268,11 @@ export const scheduleCommandFor = ({ app, context: contextOf }) => {
268
268
  .action(async function (file) {
269
269
  // A timer starts it with no profile named; the schedule's own environment carries the profile.
270
270
  const { context, system, timer } = prepare(this, { needsProfile: false });
271
- const last = await untilChildEnds(this, (signal) => runSchedule(app, system, context.env, file, { timer: timer(), ...(signal ? { signal } : {}) }));
271
+ const last = await untilChildEnds(this, (signal) => runSchedule(app, system, context.env, file, {
272
+ timer: timer(),
273
+ untilUnlocked: true,
274
+ ...(signal ? { signal } : {}),
275
+ }));
272
276
  if (last.exitCode !== 0)
273
277
  setExitCode(this, 1);
274
278
  });
package/dist/cli/steps.js CHANGED
@@ -48,7 +48,10 @@ export const STEPS = defineSteps([
48
48
  {
49
49
  id: "messages.list",
50
50
  command: "messages list",
51
- args: [{ name: "chat", required: true }],
51
+ args: [
52
+ { name: "chat", required: true },
53
+ { name: "query", required: false },
54
+ ],
52
55
  why: "only the newest were read here; this reads the chat itself",
53
56
  },
54
57
  {
@@ -1,4 +1,4 @@
1
- export declare const FACT_TYPES: readonly ["fact", "statement", "question", "decision", "promise"];
1
+ export { FACT_TYPES } from "../meetings/index.js";
2
2
  export declare const FACT_STATUSES: readonly ["proposed", "accepted", "superseded", "reversed", "rejected"];
3
3
  export declare const MEMORY_KINDS: readonly ["summary", "digest", "preference"];
4
4
  export declare const MEMORY_STATUSES: readonly ["proposed", "confirmed", "stale", "superseded"];
@@ -1,5 +1,5 @@
1
1
  import { TASK_KINDS } from "../tasks/index.js";
2
- export const FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
2
+ export { FACT_TYPES } from "../meetings/index.js";
3
3
  export const FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
4
4
  export const MEMORY_KINDS = ["summary", "digest", "preference"];
5
5
  export const MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
@@ -0,0 +1,3 @@
1
+ export declare const MONEY_DONE_FORMS: RegExp;
2
+ /** First person future: "I'll send", "сделаю", "lo envío". Labelled a guess wherever it is shown. */
3
+ export declare const PROMISE_FORMS: RegExp;
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Word patterns for project status, ru/en/es, matched on the text as written (case folded here). A stem cannot tell
3
+ * `оплатил` from `оплати`, so the past forms a money stem shares with a request are listed whole: a message with one
4
+ * of them reads as "done", whatever stems it also hits.
5
+ */
6
+ const words = (forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu");
7
+ export const MONEY_DONE_FORMS = words([
8
+ "оплатил[аи]?",
9
+ "заплатил[аи]?",
10
+ "перевел[аи]?",
11
+ "перевёл",
12
+ "отправил[аи]?",
13
+ "оплачено",
14
+ "переведено",
15
+ "paid",
16
+ "transferred",
17
+ "pagué",
18
+ "pagado",
19
+ "transferí",
20
+ ]);
21
+ /** First person future: "I'll send", "сделаю", "lo envío". Labelled a guess wherever it is shown. */
22
+ export const PROMISE_FORMS = words([
23
+ "сделаю",
24
+ "пришлю",
25
+ "отправлю",
26
+ "подготовлю",
27
+ "проверю",
28
+ "напишу",
29
+ "позвоню",
30
+ "скину",
31
+ "вышлю",
32
+ "оплачу",
33
+ "будет готов[аоы]?",
34
+ "i'?ll (?:send|do|check|call|write|pay|prepare|share|fix)",
35
+ "i will (?:send|do|check|call|write|pay|prepare|share|fix)",
36
+ "will be ready",
37
+ "lo envío",
38
+ "te envío",
39
+ "enviaré",
40
+ "haré",
41
+ "mandaré",
42
+ "te llamo",
43
+ "estará listo",
44
+ ]);
@@ -2,7 +2,7 @@ import * as v from "valibot";
2
2
  export declare const fact: v.StrictObjectSchema<{
3
3
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
4
4
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
5
- readonly kind: v.PicklistSchema<readonly ["fact", "statement", "question", "decision", "promise"], undefined>;
5
+ readonly kind: v.PicklistSchema<readonly ["fact", "statement", "question", "decision", "promise", "payment"], undefined>;
6
6
  readonly text: v.StringSchema<undefined>;
7
7
  readonly status: v.PicklistSchema<readonly ["proposed", "accepted", "superseded", "reversed", "rejected"], undefined>;
8
8
  readonly project: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -29,6 +29,17 @@ export declare const fact: v.StrictObjectSchema<{
29
29
  /** Who recorded it: the owner, or an agent whose fact waits as proposed. */
30
30
  readonly origin: v.PicklistSchema<["owner", "agent"], undefined>;
31
31
  readonly evidence: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
32
+ /** A `payment` fact's fields. */
33
+ readonly payment: v.OptionalSchema<v.NullableSchema<v.StrictObjectSchema<{
34
+ readonly amount: v.StringSchema<undefined>;
35
+ readonly currency: v.StringSchema<undefined>;
36
+ readonly direction: v.PicklistSchema<readonly ["to_us", "from_us"], undefined>;
37
+ readonly counterparty: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
38
+ readonly counterparty_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
39
+ readonly due_at: v.NullableSchema<v.StringSchema<undefined>, undefined>;
40
+ readonly state: v.PicklistSchema<readonly ["expected", "paid", "cancelled"], undefined>;
41
+ readonly item: v.NullableSchema<v.StringSchema<undefined>, undefined>;
42
+ }, undefined>, undefined>, undefined>;
32
43
  /** With `--sources`: each piece of evidence read back. */
33
44
  readonly sources: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
34
45
  readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -1,6 +1,17 @@
1
1
  import * as v from "valibot";
2
2
  import { FACT_STATUSES, FACT_TYPES, MEMORY_SCOPES } from "../domain/knowledge.js";
3
+ import { PAYMENT_DIRECTIONS, PAYMENT_STATES } from "../meetings/index.js";
3
4
  import { author, evidenceSource, id, reference, text, time } from "./fields.js";
5
+ const payment = v.strictObject({
6
+ amount: text,
7
+ currency: text,
8
+ direction: v.picklist(PAYMENT_DIRECTIONS),
9
+ counterparty: v.nullable(reference),
10
+ counterparty_name: v.nullable(text),
11
+ due_at: v.nullable(text),
12
+ state: v.picklist(PAYMENT_STATES),
13
+ item: v.nullable(text),
14
+ });
4
15
  export const fact = v.strictObject({
5
16
  ref: reference,
6
17
  id,
@@ -24,6 +35,8 @@ export const fact = v.strictObject({
24
35
  /** Who recorded it: the owner, or an agent whose fact waits as proposed. */
25
36
  origin: v.picklist(["owner", "agent"]),
26
37
  evidence: v.array(reference),
38
+ /** A `payment` fact's fields. */
39
+ payment: v.optional(v.nullable(payment)),
27
40
  /** With `--sources`: each piece of evidence read back. */
28
41
  sources: v.optional(v.array(evidenceSource)),
29
42
  created_at: time,
@@ -24,6 +24,11 @@ export declare const hit: v.StrictObjectSchema<{
24
24
  readonly scope: v.OptionalSchema<v.PicklistSchema<["transcript", "chat", "summary"], undefined>, undefined>;
25
25
  /** A meeting transcript hit's cue, which `meetings passage` opens with the lines around it. */
26
26
  readonly cue_ref: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
27
+ /** A meeting transcript hit's transcript language (`ru`, `en`…), `null` when unknown. */
28
+ readonly language: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
29
+ /** A meeting transcript hit's line, from 1, of `lines_total` lines in its transcript. */
30
+ readonly line: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>]>, undefined>;
31
+ readonly lines_total: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
27
32
  /** A meeting passage's stored line, so two passages of one meeting stay apart; `search meetings` gives the same. */
28
33
  readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
29
34
  /** A message's files; absent when it has none. */
@@ -26,6 +26,11 @@ export const hit = v.strictObject({
26
26
  scope: v.optional(v.picklist(["transcript", "chat", "summary"])),
27
27
  /** A meeting transcript hit's cue, which `meetings passage` opens with the lines around it. */
28
28
  cue_ref: v.optional(reference),
29
+ /** A meeting transcript hit's transcript language (`ru`, `en`…), `null` when unknown. */
30
+ language: v.optional(v.nullable(text)),
31
+ /** A meeting transcript hit's line, from 1, of `lines_total` lines in its transcript. */
32
+ line: v.optional(v.pipe(count, v.minValue(1))),
33
+ lines_total: v.optional(count),
29
34
  /** A meeting passage's stored line, so two passages of one meeting stay apart; `search meetings` gives the same. */
30
35
  id: v.optional(v.pipe(v.string(), v.minLength(1))),
31
36
  /** A message's files; absent when it has none. */
@@ -214,6 +214,15 @@ export declare const ENTITIES: {
214
214
  readonly next_transcript_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
215
215
  }, undefined>;
216
216
  }, undefined>], undefined>;
217
+ readonly meeting_repair: v.StrictObjectSchema<{
218
+ readonly account_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
219
+ readonly applied: v.BooleanSchema<undefined>;
220
+ readonly transcripts: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
221
+ readonly languages: v.ArraySchema<v.StrictObjectSchema<{
222
+ readonly language: v.NullableSchema<v.StringSchema<undefined>, undefined>;
223
+ readonly transcripts: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
224
+ }, undefined>, undefined>;
225
+ }, undefined>;
217
226
  readonly sync_progress: v.StrictObjectSchema<{
218
227
  readonly job: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
219
228
  readonly profile: v.StringSchema<undefined>;
@@ -1099,6 +1108,7 @@ export declare const ENTITIES: {
1099
1108
  readonly reached_since: v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
1100
1109
  readonly reached_last: v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
1101
1110
  readonly stopped: v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
1111
+ readonly limited: v.OptionalSchema<v.PicklistSchema<["group_too_large", "older_than_window"], undefined>, undefined>;
1102
1112
  readonly tasks: v.OptionalSchema<v.StrictObjectSchema<{
1103
1113
  readonly added: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1104
1114
  readonly closed: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
@@ -1145,6 +1155,11 @@ export declare const ENTITIES: {
1145
1155
  readonly retryable: v.BooleanSchema<undefined>;
1146
1156
  readonly retry_after_ms: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1147
1157
  }, v.UnknownSchema, undefined>, undefined>;
1158
+ readonly limited: v.OptionalSchema<v.PicklistSchema<["group_too_large", "older_than_window"], undefined>, undefined>;
1159
+ }, undefined>, undefined>;
1160
+ readonly limited: v.OptionalSchema<v.StrictObjectSchema<{
1161
+ readonly group_too_large: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1162
+ readonly older_than_window: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1148
1163
  }, undefined>, undefined>;
1149
1164
  readonly tasks: v.OptionalSchema<v.StrictObjectSchema<{
1150
1165
  readonly added: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
@@ -4569,6 +4584,9 @@ export declare const ENTITIES: {
4569
4584
  readonly offset_ms: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
4570
4585
  readonly scope: v.OptionalSchema<v.PicklistSchema<["transcript", "chat", "summary"], undefined>, undefined>;
4571
4586
  readonly cue_ref: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
4587
+ readonly language: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
4588
+ readonly line: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>]>, undefined>;
4589
+ readonly lines_total: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
4572
4590
  readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
4573
4591
  readonly attachments: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
4574
4592
  readonly position: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
@@ -5448,7 +5466,7 @@ export declare const ENTITIES: {
5448
5466
  readonly fact: v.StrictObjectSchema<{
5449
5467
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
5450
5468
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
5451
- readonly kind: v.PicklistSchema<readonly ["fact", "statement", "question", "decision", "promise"], undefined>;
5469
+ readonly kind: v.PicklistSchema<readonly ["fact", "statement", "question", "decision", "promise", "payment"], undefined>;
5452
5470
  readonly text: v.StringSchema<undefined>;
5453
5471
  readonly status: v.PicklistSchema<readonly ["proposed", "accepted", "superseded", "reversed", "rejected"], undefined>;
5454
5472
  readonly project: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -5471,6 +5489,16 @@ export declare const ENTITIES: {
5471
5489
  readonly scope: v.NullableSchema<v.PicklistSchema<readonly ["personal", "work"], undefined>, undefined>;
5472
5490
  readonly origin: v.PicklistSchema<["owner", "agent"], undefined>;
5473
5491
  readonly evidence: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
5492
+ readonly payment: v.OptionalSchema<v.NullableSchema<v.StrictObjectSchema<{
5493
+ readonly amount: v.StringSchema<undefined>;
5494
+ readonly currency: v.StringSchema<undefined>;
5495
+ readonly direction: v.PicklistSchema<readonly ["to_us", "from_us"], undefined>;
5496
+ readonly counterparty: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
5497
+ readonly counterparty_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
5498
+ readonly due_at: v.NullableSchema<v.StringSchema<undefined>, undefined>;
5499
+ readonly state: v.PicklistSchema<readonly ["expected", "paid", "cancelled"], undefined>;
5500
+ readonly item: v.NullableSchema<v.StringSchema<undefined>, undefined>;
5501
+ }, undefined>, undefined>, undefined>;
5474
5502
  readonly sources: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
5475
5503
  readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
5476
5504
  readonly kind: v.StringSchema<undefined>;
@@ -5609,6 +5637,9 @@ export declare const ENTITIES: {
5609
5637
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
5610
5638
  readonly excerpt: v.StringSchema<undefined>;
5611
5639
  readonly offset_ms: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
5640
+ readonly language: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
5641
+ readonly line: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>]>, undefined>;
5642
+ readonly lines_total: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
5612
5643
  readonly match: v.OptionalSchema<v.PicklistSchema<["words", "corrected"], undefined>, undefined>;
5613
5644
  readonly corrections: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
5614
5645
  readonly from: v.StringSchema<undefined>;
@@ -5774,6 +5805,9 @@ export declare const ENTITIES: {
5774
5805
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
5775
5806
  readonly excerpt: v.StringSchema<undefined>;
5776
5807
  readonly offset_ms: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
5808
+ readonly language: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
5809
+ readonly line: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>]>, undefined>;
5810
+ readonly lines_total: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
5777
5811
  readonly match: v.OptionalSchema<v.PicklistSchema<["words", "corrected"], undefined>, undefined>;
5778
5812
  readonly corrections: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
5779
5813
  readonly from: v.StringSchema<undefined>;
@@ -6145,6 +6179,9 @@ export declare const ENTITIES: {
6145
6179
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
6146
6180
  readonly excerpt: v.StringSchema<undefined>;
6147
6181
  readonly offset_ms: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
6182
+ readonly language: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
6183
+ readonly line: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>]>, undefined>;
6184
+ readonly lines_total: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
6148
6185
  readonly match: v.OptionalSchema<v.PicklistSchema<["words", "corrected"], undefined>, undefined>;
6149
6186
  readonly corrections: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
6150
6187
  readonly from: v.StringSchema<undefined>;
@@ -6257,7 +6294,7 @@ export declare const ENTITIES: {
6257
6294
  readonly fingerprint: v.StringSchema<undefined>;
6258
6295
  }, undefined>, undefined>;
6259
6296
  readonly kind: v.LiteralSchema<"fact", undefined>;
6260
- readonly type: v.PicklistSchema<readonly ["fact", "statement", "question", "decision", "promise"], undefined>;
6297
+ readonly type: v.PicklistSchema<readonly ["fact", "statement", "question", "decision", "promise", "payment"], undefined>;
6261
6298
  readonly statement: v.StringSchema<undefined>;
6262
6299
  }, undefined>, v.StrictObjectSchema<{
6263
6300
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
@@ -8796,6 +8833,12 @@ export declare const ENTITIES: {
8796
8833
  readonly stems: v.OptionalSchema<v.StrictObjectSchema<{
8797
8834
  readonly stemmed: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
8798
8835
  }, undefined>, undefined>;
8836
+ readonly caught_up: v.OptionalSchema<v.StrictObjectSchema<{
8837
+ readonly chats: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
8838
+ readonly fetched: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
8839
+ readonly failed: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
8840
+ readonly stopped: v.BooleanSchema<undefined>;
8841
+ }, undefined>, undefined>;
8799
8842
  readonly tasks: v.OptionalSchema<v.StrictObjectSchema<{
8800
8843
  readonly added: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
8801
8844
  readonly closed: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
@@ -2266,6 +2266,12 @@ export declare const serveSummary: v.StrictObjectSchema<{
2266
2266
  readonly stems: v.OptionalSchema<v.StrictObjectSchema<{
2267
2267
  readonly stemmed: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
2268
2268
  }, undefined>, undefined>;
2269
+ readonly caught_up: v.OptionalSchema<v.StrictObjectSchema<{
2270
+ readonly chats: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
2271
+ readonly fetched: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
2272
+ readonly failed: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
2273
+ readonly stopped: v.BooleanSchema<undefined>;
2274
+ }, undefined>, undefined>;
2269
2275
  readonly tasks: v.OptionalSchema<v.StrictObjectSchema<{
2270
2276
  readonly added: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
2271
2277
  readonly closed: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
@@ -42,5 +42,6 @@ export const serveSummary = v.strictObject({
42
42
  replies: v.optional(v.strictObject({ sent: totals, skipped: totals, tasks: v.optional(totals) })),
43
43
  members: v.optional(v.strictObject({ fetched: count, failed: count })),
44
44
  stems: v.optional(v.strictObject({ stemmed: count })),
45
+ caught_up: v.optional(v.strictObject({ chats: count, fetched: count, failed: count, stopped: v.boolean() })),
45
46
  tasks: v.optional(v.strictObject({ added: count, closed: count, review: count })),
46
47
  });
@@ -17,7 +17,7 @@ export declare const meetingFindings: v.StrictObjectSchema<{
17
17
  readonly fingerprint: v.StringSchema<undefined>;
18
18
  }, undefined>, undefined>;
19
19
  readonly kind: v.LiteralSchema<"fact", undefined>;
20
- readonly type: v.PicklistSchema<readonly ["fact", "statement", "question", "decision", "promise"], undefined>;
20
+ readonly type: v.PicklistSchema<readonly ["fact", "statement", "question", "decision", "promise", "payment"], undefined>;
21
21
  readonly statement: v.StringSchema<undefined>;
22
22
  }, undefined>, v.StrictObjectSchema<{
23
23
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
@@ -309,6 +309,9 @@ export declare const meetingPreparation: v.StrictObjectSchema<{
309
309
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
310
310
  readonly excerpt: v.StringSchema<undefined>;
311
311
  readonly offset_ms: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
312
+ readonly language: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
313
+ readonly line: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>]>, undefined>;
314
+ readonly lines_total: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
312
315
  readonly match: v.OptionalSchema<v.PicklistSchema<["words", "corrected"], undefined>, undefined>;
313
316
  readonly corrections: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
314
317
  readonly from: v.StringSchema<undefined>;