@wirecat/tg-cli 0.113.0 → 0.115.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 (118) hide show
  1. package/dist/bin/tg.js +6 -2
  2. package/dist/bin/tg.js.map +1 -1
  3. package/dist/bundle/{adapter-EQKEFGPB.js → adapter-ODK7R4LY.js} +56 -53
  4. package/dist/bundle/{all-profiles-TTBFF663.js → all-profiles-AQYM65BS.js} +9 -8
  5. package/dist/bundle/{anthropic-XPZS7267.js → anthropic-VBDSVNIM.js} +6 -5
  6. package/dist/bundle/{app-server-ZSZ7KRAY.js → app-server-YOIHLBNS.js} +47 -43
  7. package/dist/bundle/{bot-api-X7BOVNIO.js → bot-api-TRYLGQKK.js} +51 -47
  8. package/dist/bundle/{bot-history-DWIUIPN5.js → bot-history-7DTJLBBJ.js} +18 -16
  9. package/dist/bundle/{bun-ZGZVAJU2.js → bun-XIMM6EHD.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-UN2UJ6SI.js → bun-sqlite-6B3BL5IV.js} +5 -4
  11. package/dist/bundle/{chunk-K3F46QVN.js → chunk-2TC76TLJ.js} +4 -4
  12. package/dist/bundle/{chunk-JRTZ5I6M.js → chunk-5ROWSRK7.js} +2 -2
  13. package/dist/bundle/{chunk-PHYDBR5M.js → chunk-63YKD7YA.js} +2 -2
  14. package/dist/bundle/{chunk-PCRLXJRH.js → chunk-77M3IAVU.js} +193 -129
  15. package/dist/bundle/{chunk-VDATXIO4.js → chunk-A4BQGSKI.js} +9 -9
  16. package/dist/bundle/{chunk-HO53POQG.js → chunk-AICS3TSF.js} +8 -41
  17. package/dist/bundle/{chunk-AVUIWZTP.js → chunk-AVWPMJ6E.js} +2 -2
  18. package/dist/bundle/{chunk-G74QMORP.js → chunk-BEQPZA3S.js} +2 -2
  19. package/dist/bundle/{chunk-JO45BOYE.js → chunk-BIEBJLYO.js} +8 -3
  20. package/dist/bundle/{chunk-J6USEBA6.js → chunk-BPPRR7TV.js} +2200 -945
  21. package/dist/bundle/chunk-CCHHEMPM.js +71 -0
  22. package/dist/bundle/{chunk-T4TTRFP5.js → chunk-CNO3R4O4.js} +10 -8
  23. package/dist/bundle/{chunk-IDUYRTPF.js → chunk-D4E345BC.js} +2 -2
  24. package/dist/bundle/{chunk-OYNSFQ7K.js → chunk-D72URWJE.js} +1 -39
  25. package/dist/bundle/{chunk-T5RM4Y35.js → chunk-DIABP7ZP.js} +3 -3
  26. package/dist/bundle/chunk-EW3XTUPB.js +166 -0
  27. package/dist/bundle/{chunk-KOWQVHXI.js → chunk-GCFU6WBE.js} +3 -3
  28. package/dist/bundle/{chunk-6WJ5M2Q4.js → chunk-GWDMKEDY.js} +4 -4
  29. package/dist/bundle/{chunk-TQ6EA7TB.js → chunk-GX4DMI4H.js} +17 -16
  30. package/dist/bundle/{chunk-KK3JVOOV.js → chunk-HZKWB6WS.js} +36 -35
  31. package/dist/bundle/chunk-ILHTNOIV.js +23 -0
  32. package/dist/bundle/{chunk-JDQSX2JQ.js → chunk-IUDIRZVU.js} +8443 -7398
  33. package/dist/bundle/{chunk-TUD4MU7S.js → chunk-JZXQZW2D.js} +2 -2
  34. package/dist/bundle/{chunk-Q264PYGE.js → chunk-KDOBY524.js} +55 -20
  35. package/dist/bundle/{chunk-OQR442B6.js → chunk-KIZT2MI6.js} +1 -1
  36. package/dist/bundle/chunk-L4CMCC3V.js +34 -0
  37. package/dist/bundle/{chunk-IYKRHDX6.js → chunk-LUIPXRKN.js} +188 -57
  38. package/dist/bundle/{chunk-GX4LRLVD.js → chunk-M7B5IMH3.js} +5103 -937
  39. package/dist/bundle/{chunk-4GLMEES6.js → chunk-MUZ4KYGY.js} +4 -2
  40. package/dist/bundle/{chunk-KQ23JWLJ.js → chunk-NTW5ZE47.js} +164 -276
  41. package/dist/bundle/{chunk-UIVLDKWT.js → chunk-O7CBGHI7.js} +1 -1
  42. package/dist/bundle/{chunk-KVLCIZUK.js → chunk-OMP6ALBT.js} +3 -3
  43. package/dist/bundle/{chunk-VVA4555T.js → chunk-OSP335AJ.js} +8 -8
  44. package/dist/bundle/{chunk-EGR5IJCG.js → chunk-OUX3QMYI.js} +39 -31
  45. package/dist/bundle/{chunk-VDEXNNMH.js → chunk-PEJHI7QO.js} +6 -4
  46. package/dist/bundle/{chunk-6F6K3LWV.js → chunk-PEKTB3FQ.js} +18 -15
  47. package/dist/bundle/{chunk-Z6TRIW2O.js → chunk-POKTQZOM.js} +11 -9
  48. package/dist/bundle/chunk-PQLBPYJR.js +46 -0
  49. package/dist/bundle/{chunk-BI5YJZJB.js → chunk-PZAEI4NM.js} +115 -29
  50. package/dist/bundle/{chunk-HNN7EKIM.js → chunk-QK6VLKG5.js} +338 -169
  51. package/dist/bundle/{chunk-5NF7M4MN.js → chunk-RFRI2HFT.js} +1 -1
  52. package/dist/bundle/{chunk-OC4RRFKH.js → chunk-RHUNMU4Q.js} +6 -6
  53. package/dist/bundle/{chunk-PHPNA2HU.js → chunk-TMATSEP5.js} +14 -12
  54. package/dist/bundle/{chunk-JW7BMJ6O.js → chunk-TQYMLXDS.js} +5 -3
  55. package/dist/bundle/{chunk-MTX5EDYJ.js → chunk-U67TSAAO.js} +1136 -535
  56. package/dist/bundle/{chunk-7IWDS2CM.js → chunk-UBQ3LOF6.js} +4 -4
  57. package/dist/bundle/{chunk-UE75KPAC.js → chunk-UY7GJRGY.js} +4 -4
  58. package/dist/bundle/{chunk-OSBAISA5.js → chunk-VQCWVZWG.js} +8 -13
  59. package/dist/bundle/{chunk-XZ2ZHIAO.js → chunk-VVKEWWSO.js} +1 -1
  60. package/dist/bundle/{chunk-ENXO43TV.js → chunk-WDNNN3J4.js} +8 -8
  61. package/dist/bundle/{chunk-AGUCXSSM.js → chunk-WINKEV4F.js} +7 -20
  62. package/dist/bundle/{chunk-XXNJF3ZM.js → chunk-WMG4IGEB.js} +75 -33
  63. package/dist/bundle/{chunk-6OKGHHRL.js → chunk-WMRFAK5B.js} +35 -35
  64. package/dist/bundle/{chunk-4SQB5VKL.js → chunk-WOQGUIXE.js} +1 -1
  65. package/dist/bundle/{chunk-U3MJQLZQ.js → chunk-XIYRHIBK.js} +13 -13
  66. package/dist/bundle/{chunk-ZID2Y4XU.js → chunk-XY7IGVVS.js} +2 -2
  67. package/dist/bundle/{chunk-3MAYYFKY.js → chunk-Y3AQHPAJ.js} +1 -1
  68. package/dist/bundle/{chunk-WSAHUQ6K.js → chunk-YCUQKFGD.js} +3 -3
  69. package/dist/bundle/command-contract-YF4KGFXC.js +32 -0
  70. package/dist/bundle/{decode-AMQVTEMW.js → decode-2GATBZGH.js} +7 -6
  71. package/dist/bundle/dispatch-MJMW7WDH.js +411 -0
  72. package/dist/bundle/{echarts-ECYONFQJ.js → echarts-GKEZEAL7.js} +2 -2
  73. package/dist/bundle/{embed-VZYBZEWI.js → embed-TBQPLA4Y.js} +6 -5
  74. package/dist/bundle/{embedder-GSWBGHRK.js → embedder-B5DTNCRO.js} +11 -10
  75. package/dist/bundle/entry-A6DEW2TD.js +18 -0
  76. package/dist/bundle/failure-TLF3SISS.js +24 -0
  77. package/dist/bundle/first-run-3N5AABEY.js +27 -0
  78. package/dist/bundle/first-screen-HANARM67.js +30 -0
  79. package/dist/bundle/{instructions-AXLQQS3G.js → instructions-P5E34PQR.js} +1 -1
  80. package/dist/bundle/{mcp-VVMPUDSL.js → mcp-MNI62HHE.js} +5 -3
  81. package/dist/bundle/{node-7JHC5K77.js → node-GKPRXS5Y.js} +2 -2
  82. package/dist/bundle/{node-sqlite-LYJEK46T.js → node-sqlite-GIDPALK3.js} +11 -4
  83. package/dist/bundle/{oauth-BROPKI3K.js → oauth-C57W4IMD.js} +7 -6
  84. package/dist/bundle/{open-C6XQ46JK.js → open-E6Q4WRPU.js} +5 -3
  85. package/dist/bundle/{openai-VWSU7ZDD.js → openai-5WMXY2KP.js} +15 -14
  86. package/dist/bundle/{process-QKEFL5HL.js → process-U2P5Z6UF.js} +1 -1
  87. package/dist/bundle/{program-ACY7O33O.js → program-FEUDU6GF.js} +62 -57
  88. package/dist/bundle/{prompt-EGULVW2F.js → prompt-4NGAZGHE.js} +5 -4
  89. package/dist/bundle/{proxy-transport-KIMADLQ2.js → proxy-transport-MGCJ7JAW.js} +5 -4
  90. package/dist/bundle/{recognize-UMTKLWVR.js → recognize-EUHRBA7V.js} +4 -3
  91. package/dist/bundle/{remote-DABI7PSQ.js → remote-3JHLB2FV.js} +7 -6
  92. package/dist/bundle/{rerank-ZFATWWBE.js → rerank-ZZ45SZPC.js} +7 -6
  93. package/dist/bundle/{serve-B7YYCMGN.js → serve-XOGX5FC5.js} +12 -10
  94. package/dist/bundle/server-DRE5MJ76.js +59 -0
  95. package/dist/bundle/{server-DGKZISZH.js → server-I6O72XP5.js} +36 -34
  96. package/dist/bundle/{state-AQ2PABA5.js → state-BIUYTGH6.js} +6 -5
  97. package/dist/bundle/{store-46GJTFLJ.js → store-FOJFYOMR.js} +12 -10
  98. package/dist/bundle/store-maintenance-command-YKV2C34N.js +49 -0
  99. package/dist/bundle/tg.js +159 -14
  100. package/dist/commands/context.d.ts.map +1 -1
  101. package/dist/commands/context.js +6 -4
  102. package/dist/commands/context.js.map +1 -1
  103. package/dist/reasons.d.ts.map +1 -1
  104. package/dist/reasons.js +5 -0
  105. package/dist/reasons.js.map +1 -1
  106. package/dist/version.d.ts +1 -1
  107. package/dist/version.js +1 -1
  108. package/package.json +5 -4
  109. package/skills/tg-cli/SKILL.md +2 -0
  110. package/dist/bundle/chunk-452UZ2PU.js +0 -3603
  111. package/dist/bundle/command-contract-GV67H22L.js +0 -32
  112. package/dist/bundle/entry-LALZILY4.js +0 -14
  113. package/dist/bundle/first-run-LEAI623Q.js +0 -24
  114. package/dist/bundle/first-screen-MOCVLE23.js +0 -30
  115. package/dist/bundle/identity-54HA5GN6.js +0 -11
  116. package/dist/bundle/server-UC7UWUIS.js +0 -56
  117. package/dist/bundle/store-maintenance-command-FCFKHGRM.js +0 -45
  118. /package/dist/bundle/{chunk-HPXYN7F3.js → chunk-NUN6OGOV.js} +0 -0
@@ -1,3603 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- WEIGHTS,
5
- agenda,
6
- attachment,
7
- childTrace,
8
- closeSuggestion,
9
- conversation,
10
- hitFile,
11
- recordLogFor,
12
- storeTable,
13
- tagging,
14
- task
15
- } from "./chunk-GX4LRLVD.js";
16
- import {
17
- author,
18
- count,
19
- evidenceSource,
20
- id,
21
- note,
22
- organization,
23
- project,
24
- providerMetadata,
25
- reminder,
26
- text,
27
- time,
28
- untrusted
29
- } from "./chunk-6OKGHHRL.js";
30
- import {
31
- envName
32
- } from "./chunk-IDUYRTPF.js";
33
- import {
34
- carries
35
- } from "./chunk-OQR442B6.js";
36
- import {
37
- FACT_STATUSES,
38
- FACT_TYPES,
39
- LINK_KINDS,
40
- LINK_SOURCES,
41
- MEETING_RESULT_ENTITIES,
42
- MEMORY_KINDS,
43
- MEMORY_SCOPES,
44
- MEMORY_STATUSES,
45
- PRIORITY_LABELS,
46
- RELATION_KINDS,
47
- TASK_KINDS,
48
- TASK_ORIGINS,
49
- TASK_STATES,
50
- TASK_TYPES,
51
- TASK_VERDICTS,
52
- WORK_TASK_TYPES,
53
- event,
54
- meeting,
55
- meetingDetails,
56
- meetingHit,
57
- meetingLink,
58
- meetingParticipants,
59
- meetingPassage,
60
- meetingProjectEvidence,
61
- meetingReview,
62
- meetingSpeaker,
63
- meetingStats,
64
- meetingSummary,
65
- meetingTranscript
66
- } from "./chunk-HNN7EKIM.js";
67
- import {
68
- resolvePaths,
69
- writeSecurely
70
- } from "./chunk-KQ23JWLJ.js";
71
- import {
72
- CliError,
73
- array,
74
- boolean,
75
- integer,
76
- isoDate,
77
- isoTime,
78
- jsonSchemaOf,
79
- literal,
80
- maxLength,
81
- minLength,
82
- minValue,
83
- null_,
84
- nullable,
85
- number,
86
- objectWithRest,
87
- omit,
88
- optional,
89
- pageSchema,
90
- partial,
91
- pick,
92
- picklist,
93
- pipe,
94
- record,
95
- reference,
96
- regex,
97
- safeInteger,
98
- strictObject,
99
- string,
100
- union,
101
- unknown,
102
- unwrap,
103
- variant
104
- } from "./chunk-PCRLXJRH.js";
105
- import {
106
- __name
107
- } from "./chunk-ZVVMGPBJ.js";
108
-
109
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/member.js
110
- var member = strictObject({
111
- id,
112
- name: nullable(text),
113
- username: nullable(text),
114
- role: optional(picklist(["owner", "admin", "member"])),
115
- /** `null` when their privacy hides it. */
116
- last_seen_at: optional(nullable(time)),
117
- registered_at: optional(nullable(time)),
118
- joined_at: optional(nullable(time)),
119
- /** Who added them or whose invite they used. */
120
- invited_by: optional(nullable(id)),
121
- is_bot: optional(boolean()),
122
- deleted: optional(boolean()),
123
- flagged: optional(picklist(["scam", "fake"])),
124
- has_photo: optional(boolean()),
125
- /** `chats members check`: how much they look like a bot — a hint, never a verdict. */
126
- score: optional(count),
127
- reasons: optional(array(text)),
128
- /** `chats members check --deep`: the whole person check, as `contacts check` answers it. */
129
- check: optional(record(string(), unknown()))
130
- });
131
-
132
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/chat.js
133
- var setting = optional(nullable(boolean()));
134
- var chat = strictObject({
135
- ref: reference,
136
- id,
137
- provider: optional(text),
138
- account: optional(text),
139
- title: nullable(text),
140
- kind: picklist(["dialog", "group", "channel", "saved", "unknown"]),
141
- unread_count: nullable(count),
142
- unread_mentions: optional(count),
143
- last_message_at: nullable(time),
144
- participants_count: nullable(count),
145
- muted: optional(boolean()),
146
- /** When the mute ends; absent with `muted` true is for good. */
147
- muted_until: optional(time),
148
- archived: optional(boolean()),
149
- /** The owner marked it unread, whatever `unread_count` says. */
150
- marked_unread: optional(boolean()),
151
- membership_state: optional(picklist(["joined", "left", "public", "imported", "archived", "external"])),
152
- parent_chat_id: optional(id),
153
- scope: optional(picklist(["personal", "work"])),
154
- provider_metadata: providerMetadata,
155
- /** `chats show`, a group or channel: what it says about itself. */
156
- description: optional(nullable(text)),
157
- invite_link: optional(nullable(text)),
158
- settings: optional(strictObject({
159
- all_can_pin: setting,
160
- only_admins_add: setting,
161
- only_admins_call: setting,
162
- only_owner_edits_info: setting,
163
- members_see_link: setting,
164
- join_approval: setting,
165
- only_admins_send: setting,
166
- only_admins_edit_info: setting,
167
- disappearing_seconds: optional(nullable(count))
168
- })),
169
- /** `chats show`: absent when no roster is known; an empty list is a known empty roster. */
170
- members: optional(array(member))
171
- });
172
-
173
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/list-results.js
174
- var botProfile = strictObject({
175
- name: text,
176
- token: text,
177
- bot: optional(text),
178
- id: optional(id),
179
- problem: optional(text)
180
- });
181
- var botSeenChat = strictObject({
182
- ...partial(omit(chat, ["ref", "provider", "account", "description", "invite_link", "settings", "members"])).entries,
183
- id,
184
- parent_chat_id: optional(nullable(id)),
185
- muted_until: optional(nullable(time)),
186
- first_seen_at: optional(time),
187
- last_seen_at: optional(time)
188
- });
189
- var botAdmin = strictObject({
190
- id,
191
- name: nullable(text),
192
- username: nullable(text),
193
- role: picklist(["owner", "admin"]),
194
- rights: array(picklist(["read", "members", "admins", "info", "pin", "link", "post", "edit", "delete"])),
195
- title: nullable(text)
196
- });
197
- var botMenuEntry = strictObject({ name: text, description: nullable(text) });
198
- var topicIcon = strictObject({ emoji: text });
199
- var botWebhook = strictObject({ url: text, types: optional(array(text)) });
200
- var scheduledJob = strictObject({
201
- name: text,
202
- kind: picklist(["command", "agent"]),
203
- when: text,
204
- last: nullable(strictObject({
205
- at: time,
206
- exit_code: number(),
207
- output: text,
208
- trace_id: optional(text),
209
- reason: optional(text),
210
- error_code: optional(text),
211
- failing_since: optional(time),
212
- failures: optional(number())
213
- }))
214
- });
215
- var botTemplate = strictObject({
216
- name: nullable(text),
217
- status: nullable(text),
218
- language: nullable(text),
219
- category: nullable(text)
220
- });
221
- var callRecord = strictObject({
222
- id,
223
- chat_id: nullable(id),
224
- caller_id: nullable(id),
225
- direction: picklist(["incoming", "outgoing"]),
226
- outcome: picklist(["answered", "missed", "declined"]),
227
- kind: picklist(["audio", "video"]),
228
- at: time,
229
- duration_seconds: nullable(number())
230
- });
231
- var stickerInventory = strictObject({
232
- id,
233
- title: optional(text),
234
- count: optional(number()),
235
- link: optional(nullable(text)),
236
- set_id: optional(nullable(id)),
237
- emoji: optional(array(text)),
238
- url: optional(nullable(text))
239
- });
240
-
241
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
242
- var actionableError = objectWithRest({
243
- code: text,
244
- message: text,
245
- retryable: boolean(),
246
- retry_after_ms: optional(number())
247
- }, unknown());
248
- var batchResult = strictObject({
249
- attempted: count,
250
- succeeded: count,
251
- failed: count,
252
- error_rate: number(),
253
- failures: array(strictObject({ id, stage: text, error: actionableError, attachment: optional(count) })),
254
- stop_reason: optional(picklist(["rate_limited", "authentication", "error_rate", "cancelled"])),
255
- max_error_percent: count
256
- });
257
-
258
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
259
- var conversationBuild = strictObject({
260
- chat: id,
261
- messages: count,
262
- links: count,
263
- conversations: count,
264
- built_at: time,
265
- rules_version: count
266
- });
267
- var chatEmbedding = strictObject({ chat: id, model: text, embedded: count, skipped: count });
268
- var conversationPreparation = strictObject({
269
- model: text,
270
- model_available: boolean(),
271
- built: array(conversationBuild),
272
- embedded: array(chatEmbedding),
273
- left: array(strictObject({ chat: id, needs: picklist(["build", "embed"]) })),
274
- /** Messages given their own vector, which `search messages --discover` reads, and how many still lack one. */
275
- messages: optional(strictObject({ embedded: count, left: count }))
276
- });
277
- var catchUpPreparation = strictObject({
278
- complete: boolean(),
279
- reason: optional(picklist(["message_bound", "time_or_abort_bound", "preparation_failed", "pending"])),
280
- prepared: optional(conversationPreparation)
281
- });
282
-
283
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
284
- import { spawn } from "node:child_process";
285
- import { randomBytes } from "node:crypto";
286
- import { closeSync, existsSync, mkdirSync, openSync, readdirSync, readFileSync, realpathSync, rmSync } from "node:fs";
287
- import { dirname, join } from "node:path";
288
-
289
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
290
- var progressOf = /* @__PURE__ */ __name((input) => {
291
- const total = input.total ?? null;
292
- const updated = input.updatedAt ?? null;
293
- return {
294
- job: input.job,
295
- profile: input.profile,
296
- done: input.done,
297
- total,
298
- remaining: total === null ? null : Math.max(0, total - input.done),
299
- state: input.complete ?? (total !== null && input.done >= total) ? "complete" : "partial",
300
- updated_at: updated,
301
- cursor_age_ms: updated === null ? null : Math.max(0, (input.now ?? /* @__PURE__ */ new Date()).getTime() - Date.parse(updated))
302
- };
303
- }, "progressOf");
304
-
305
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
306
- var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
307
- var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
308
- const out = openSync(log, "a", 384);
309
- try {
310
- const child = spawn(process.execPath, [realpathSync(process.argv[1] ?? ""), ...argv], {
311
- detached: true,
312
- stdio: ["ignore", out, out],
313
- env
314
- });
315
- child.unref();
316
- return child.pid ?? 0;
317
- } finally {
318
- closeSync(out);
319
- }
320
- }, "spawnDetached");
321
- var jobsDir = /* @__PURE__ */ __name((app, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "backfill"), "jobsDir");
322
- var jobPath = /* @__PURE__ */ __name((dir, id6) => join(dir, `${id6}.json`), "jobPath");
323
- var saveJob = /* @__PURE__ */ __name((dir, job2) => {
324
- mkdirSync(dir, { recursive: true, mode: 448 });
325
- writeSecurely(jobPath(dir, job2.id), `${JSON.stringify(job2, null, 2)}
326
- `, 384);
327
- }, "saveJob");
328
- var readJob = /* @__PURE__ */ __name((dir, id6) => {
329
- if (!/^[\w-]+$/.test(id6) || !existsSync(jobPath(dir, id6)))
330
- return void 0;
331
- try {
332
- return JSON.parse(readFileSync(jobPath(dir, id6), "utf8"));
333
- } catch {
334
- return void 0;
335
- }
336
- }, "readJob");
337
- var recordsPath = /* @__PURE__ */ __name((dir, id6) => join(dir, `${id6}.jsonl`), "recordsPath");
338
- var tracedJob = /* @__PURE__ */ __name((env) => {
339
- const trace = childTrace();
340
- return { env: { ...env, TRACEPARENT: trace.traceparent }, traceId: trace.traceId };
341
- }, "tracedJob");
342
- var jobStarted = /* @__PURE__ */ __name((app, dir, job2) => {
343
- saveJob(dir, job2);
344
- recordLogFor(recordsPath(dir, job2.id), app, job2.traceId ? { traceId: job2.traceId } : {}).info({
345
- event: "job.start",
346
- job: job2.id,
347
- pid: job2.pid
348
- });
349
- }, "jobStarted");
350
- var finishJob = /* @__PURE__ */ __name((app, dir, id6, change) => {
351
- updateJob(dir, id6, change);
352
- const job2 = readJob(dir, id6);
353
- if (!job2)
354
- return;
355
- const outcome2 = stateOf(job2);
356
- recordLogFor(recordsPath(dir, id6), app, job2.traceId ? { traceId: job2.traceId } : {})[job2.error ? "error" : "info"]({
357
- event: "job.exit",
358
- job: id6,
359
- outcome: outcome2,
360
- ...job2.error ? { errorCode: job2.error.code } : {}
361
- });
362
- }, "finishJob");
363
- var updateJob = /* @__PURE__ */ __name((dir, id6, change) => {
364
- const job2 = readJob(dir, id6);
365
- if (job2)
366
- saveJob(dir, { ...job2, ...change });
367
- }, "updateJob");
368
- var removeJob = /* @__PURE__ */ __name((dir, job2) => {
369
- rmSync(jobPath(dir, job2.id), { force: true });
370
- rmSync(recordsPath(dir, job2.id), { force: true });
371
- if (dirname(job2.log) === dir)
372
- rmSync(job2.log, { force: true });
373
- }, "removeJob");
374
- var listJobs = /* @__PURE__ */ __name((dir) => existsSync(dir) ? readdirSync(dir).filter((name) => name.endsWith(".json")).flatMap((name) => readJob(dir, name.slice(0, -".json".length)) ?? []).sort((a, b) => b.startedAt.localeCompare(a.startedAt)) : [], "listJobs");
375
- var jobDetails = /* @__PURE__ */ __name((job2) => ({
376
- job: job2.id,
377
- profile: job2.profile,
378
- chat: job2.chat,
379
- state: stateOf(job2),
380
- pid: job2.pid,
381
- startedAt: job2.startedAt,
382
- ...job2.finishedAt ? { finishedAt: job2.finishedAt } : {},
383
- fetched: Number(job2.result?.fetched ?? job2.progress?.fetched ?? 0),
384
- ...job2.limit === void 0 ? {} : { messageLimit: job2.limit },
385
- ...job2.pageSize === void 0 ? {} : { pageSize: job2.pageSize },
386
- ...job2.last === void 0 ? {} : { last: job2.last },
387
- ...job2.result ? {
388
- complete: job2.result.complete === true,
389
- ...job2.result.issue ? { issue: job2.result.issue } : {},
390
- ...job2.result.batch ? { batch: job2.result.batch } : {},
391
- ...job2.result.resume ? { resume: job2.result.resume } : {}
392
- } : {},
393
- ...job2.error ? { error: job2.error } : {},
394
- progress: progressOf({
395
- job: job2.id,
396
- profile: job2.profile,
397
- done: Number(job2.result?.fetched ?? job2.progress?.fetched ?? 0),
398
- ...job2.limit === void 0 ? {} : { total: job2.limit },
399
- complete: job2.result?.complete === true,
400
- ...job2.progress?.at ?? job2.finishedAt ? { updatedAt: job2.progress?.at ?? job2.finishedAt } : {}
401
- })
402
- }), "jobDetails");
403
- var jobItem = /* @__PURE__ */ __name((job2) => {
404
- const issue = job2.result?.issue;
405
- return {
406
- id: job2.id,
407
- chat: job2.chat,
408
- state: stateOf(job2),
409
- pid: job2.pid,
410
- started_at: job2.startedAt,
411
- ...job2.finishedAt ? { finished_at: job2.finishedAt } : {},
412
- fetched: Number(job2.result?.fetched ?? job2.progress?.fetched ?? 0),
413
- ...job2.limit === void 0 ? {} : { message_limit: job2.limit },
414
- ...job2.pageSize === void 0 ? {} : { page_size: job2.pageSize },
415
- ...job2.last === void 0 ? {} : { last: job2.last },
416
- ...job2.result ? { complete: job2.result.complete === true } : {},
417
- ...issue ? { issue: { code: String(issue.code), message: String(issue.message) } } : {},
418
- ...job2.error ? { error: { code: job2.error.code, message: job2.error.message } } : {}
419
- };
420
- }, "jobItem");
421
- var stateOf = /* @__PURE__ */ __name((job2) => {
422
- if (job2.finishedAt !== void 0) {
423
- if (job2.cancelRequestedAt)
424
- return "cancelled";
425
- return job2.error ? "failed" : job2.result?.batch || job2.result?.issue ? "partial" : "done";
426
- }
427
- if (isJob(job2))
428
- return "running";
429
- return job2.cancelRequestedAt ? "cancelled" : "died";
430
- }, "stateOf");
431
- var isJob = /* @__PURE__ */ __name((job2) => carries(job2.pid, `_BACKFILL_JOB=${job2.id}`), "isJob");
432
- var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob = spawnDetached) => {
433
- const dir = jobsDir(app, env);
434
- const running = listJobs(dir).find((job3) => job3.profile === profile && job3.chat === input.chat && stateOf(job3) === "running");
435
- if (running)
436
- throw new CliError("validation_error", `job ${running.id} already works on this chat; inspect store jobs show first`);
437
- const startedAt = (/* @__PURE__ */ new Date()).toISOString();
438
- const id6 = `${startedAt.replace(/[-:]/g, "").slice(0, 15)}-${randomBytes(3).toString("hex")}`;
439
- mkdirSync(dir, { recursive: true, mode: 448 });
440
- const log = join(dir, `${id6}.log`);
441
- const job2 = {
442
- id: id6,
443
- chat: input.chat,
444
- profile,
445
- pid: 0,
446
- startedAt,
447
- limit: input.limit,
448
- pageSize: input.pageSize,
449
- argv: input.argv,
450
- log
451
- };
452
- saveJob(dir, job2);
453
- const { [envName(app, "TIMEOUT")]: _timeout, ...inherited } = env;
454
- const traced = tracedJob({ ...inherited, [envName(app, "PROFILE")]: profile, [envName(app, "BACKFILL_JOB")]: id6 });
455
- const pid = spawnJob(input.argv, traced.env, log);
456
- jobStarted(app, dir, { ...job2, pid, traceId: traced.traceId });
457
- return { job: id6, pid, chat: input.chat, log };
458
- }, "startArchiveJob");
459
-
460
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/job.js
461
- var problem = strictObject({ code: text, message: text });
462
- var job = strictObject({
463
- id,
464
- /** The chat as the sync was given it. */
465
- chat: text,
466
- state: picklist(JOB_STATES),
467
- pid: count,
468
- started_at: time,
469
- finished_at: optional(time),
470
- /** Messages fetched so far, or in all once it finished. */
471
- fetched: count,
472
- /** The `--limit` the sync was started with: how many messages it may fetch. */
473
- message_limit: optional(count),
474
- page_size: optional(count),
475
- last: optional(count),
476
- /** Whether the sync reached its window; set once it finished. */
477
- complete: optional(boolean()),
478
- /** Why a partial job stopped short; `store jobs retry` resumes it. */
479
- issue: optional(problem),
480
- error: optional(problem)
481
- });
482
-
483
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/message.js
484
- var quoted = strictObject({
485
- id,
486
- sender_id: nullable(id),
487
- sender_name: nullable(text),
488
- timestamp: nullable(time),
489
- text,
490
- attachments: array(attachment),
491
- outgoing: nullable(boolean())
492
- });
493
- var mailPerson = strictObject({ name: nullable(text), address: text, ref: nullable(reference) });
494
- var message = strictObject({
495
- /** The message's locator. */
496
- ref: reference,
497
- id,
498
- provider: optional(text),
499
- account: optional(text),
500
- chat_id: id,
501
- chat_title: optional(nullable(text)),
502
- sender_id: nullable(id),
503
- sender_name: nullable(text),
504
- sender_username: optional(text),
505
- sender_is_chat: optional(boolean()),
506
- sender_is_me: boolean(),
507
- mentions: optional(array(id)),
508
- /** When it was sent. */
509
- timestamp: time,
510
- edited_at: nullable(time),
511
- text,
512
- /** What a voice message says, once heard. */
513
- transcript: optional(text),
514
- /** In a window of messages around one, the one asked for. */
515
- anchor: optional(boolean()),
516
- /** A stretch of the text, transcript, file name or file text around what a search matched. */
517
- excerpt: optional(text),
518
- /** `picture`: the picture search lane found it by what the picture shows; it follows the text hits. */
519
- matched_in: optional(picklist(["text", "transcript", "filename", "file", "context", "picture"])),
520
- score: optional(number()),
521
- /**
522
- * `corrected`: a query word matched only a spelling speech recognition garbled in a voice note's transcript,
523
- * listed in `corrections`. `words` and `beginnings`: what a discovery search matched.
524
- */
525
- match: optional(picklist(["words", "beginnings", "corrected"])),
526
- corrections: optional(array(strictObject({ from: text, to: array(text) }))),
527
- /** Where a search found it: the local archive, the messenger's server, or both. */
528
- found_in: optional(picklist(["archive", "server", "both"])),
529
- /** A discovery search's partial match: how much of the question it covers, and which words it lacks. */
530
- discovery: optional(strictObject({
531
- coverage: number(),
532
- matched_terms: array(text),
533
- missing_terms: array(text),
534
- parent: optional(reference),
535
- /** Present when meaning was searched too: which of the two lists found it. */
536
- found_by: optional(array(picklist(["words", "meaning"]))),
537
- /** Present when the reranker read it: its own score, higher is better. It ordered the first hits with `score`. */
538
- reranker_score: optional(number())
539
- })),
540
- /** The messages around a search hit, or its thread, oldest first; the hit itself is among them. */
541
- context: optional(array(strictObject({ ref: reference, timestamp: time, sender_name: nullable(text), text }))),
542
- /**
543
- * A discovery hit's later messages, from any chat the search reads, that share a rare word with it, latest first:
544
- * one may change or cancel what the hit says. An excerpt, as the hit's own: `messages context <ref>` has the whole text.
545
- */
546
- follow_ups: optional(array(strictObject({
547
- ref: reference,
548
- chat_title: nullable(text),
549
- timestamp: time,
550
- sender_name: nullable(text),
551
- excerpt: text
552
- }))),
553
- outgoing: nullable(boolean()),
554
- attachments: array(attachment),
555
- reply_to: nullable(quoted),
556
- /** The id a reply answers, also when the provider sent no copy of that message. */
557
- reply_to_id: optional(id),
558
- forwarded_from: nullable(quoted),
559
- thread_id: optional(id),
560
- thread_root_id: optional(id),
561
- reactions: optional(nullable(strictObject({
562
- counts: array(strictObject({ reaction: text, count })),
563
- mine: nullable(text),
564
- total: count
565
- }))),
566
- scheduled_for: optional(time),
567
- /** The owner starred it; only where the messenger has stars, and only when set. */
568
- starred: optional(literal(true)),
569
- /** The owner's own message in a one-to-one chat: `delivered`, or `read` once opened; absent when no receipt came. */
570
- delivery: optional(picklist(["delivered", "read"])),
571
- email: optional(strictObject({
572
- subject: nullable(text),
573
- from: nullable(mailPerson),
574
- to: array(mailPerson),
575
- cc: array(mailPerson),
576
- bcc: array(mailPerson),
577
- /** The mail header Reply-To; `reply_to` is the quoted message a chat reply answers. */
578
- reply_addresses: array(mailPerson),
579
- labels: array(text),
580
- /** The thread as a `chat:` reference. */
581
- thread: reference,
582
- read: nullable(boolean()),
583
- flagged: nullable(boolean()),
584
- /** How much the sender's mail looks like spam, a scam or a robot (memo's score), and why; absent when unscored. */
585
- sender_score: optional(strictObject({ score: number(), signals: array(text), demoted: optional(literal(true)) }))
586
- })),
587
- provider_metadata: providerMetadata
588
- });
589
-
590
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
591
- var extractionItem = strictObject({
592
- ref: reference,
593
- attachment: count,
594
- kind: text,
595
- name: nullable(text),
596
- status: picklist(["extracted", "needs-agent", "unreadable", "engine-missing", "too-large", "missing"]),
597
- extractor: optional(text),
598
- chars: optional(count),
599
- local_path: optional(text),
600
- pages: optional(count),
601
- ocr_pages: optional(count),
602
- error: optional(text),
603
- issue: optional(actionableError)
604
- });
605
- var extractionSummary = strictObject({
606
- extracted: count,
607
- failed: count,
608
- needs_agent: count,
609
- complete: boolean(),
610
- batch: optional(batchResult)
611
- });
612
- var extractionReport = strictObject({
613
- ...extractionSummary.entries,
614
- items: array(extractionItem),
615
- unchanged: count,
616
- not_downloaded: count,
617
- unsupported: count,
618
- /** Reader package names, such as unpdf or @napi-rs/canvas. */
619
- engines_missing: array(text),
620
- cursor: optional(text)
621
- });
622
-
623
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
624
- var savedMessageFile = strictObject({
625
- kind: text,
626
- path: text,
627
- bytes: count,
628
- existing: optional(literal(true))
629
- });
630
- var files = array(savedMessageFile);
631
- var messageDownload = union([
632
- strictObject({
633
- files,
634
- extraction: optional(extractionReport),
635
- complete: optional(literal(false)),
636
- batch: optional(batchResult)
637
- }),
638
- strictObject({
639
- files,
640
- chat: nullable(id),
641
- saved: count,
642
- existing: count,
643
- complete: boolean(),
644
- batch: optional(batchResult),
645
- stopped: optional(literal(true)),
646
- extraction: optional(extractionSummary)
647
- })
648
- ]);
649
- var historyRange = strictObject({ from: number(), to: number() });
650
- var messageSyncEstimate = strictObject({
651
- chat: id,
652
- held: count,
653
- ranges: array(historyRange),
654
- missing: nullable(count),
655
- requests: nullable(count),
656
- runs: nullable(count),
657
- seconds: nullable(count)
658
- });
659
- var tasks = optional(strictObject({
660
- added: count,
661
- closed: count,
662
- review: count,
663
- held: optional(count),
664
- held_chats: optional(count)
665
- }));
666
- var messageSyncChat = strictObject({
667
- issue: optional(actionableError),
668
- resume: optional(strictObject({ before: optional(text) })),
669
- prepared: optional(catchUpPreparation),
670
- window_complete: optional(boolean()),
671
- requests: optional(count),
672
- chat: nullable(id),
673
- fetched: count,
674
- complete: boolean(),
675
- ranges: array(historyRange),
676
- reached_since: optional(literal(true)),
677
- reached_last: optional(literal(true)),
678
- stopped: optional(literal(true)),
679
- tasks
680
- });
681
- var messageSyncAll = strictObject({
682
- batch: optional(batchResult),
683
- chats: count,
684
- fetched: count,
685
- complete: boolean(),
686
- stopped: optional(literal(true)),
687
- items: array(strictObject({
688
- chat: id,
689
- title: nullable(text),
690
- fetched: count,
691
- complete: boolean(),
692
- current: optional(literal(true)),
693
- stopped: optional(literal(true)),
694
- error: optional(text),
695
- issue: optional(actionableError)
696
- })),
697
- tasks
698
- });
699
- var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
700
- var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
701
-
702
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/store-records.js
703
- var range = strictObject({ from: number(), to: number() });
704
- var storeChatStatus = strictObject({
705
- chat_id: id,
706
- title: nullable(text),
707
- kind: chat.entries.kind,
708
- messages: count,
709
- oldest_at: nullable(time),
710
- newest_at: nullable(time),
711
- last_stored_at: nullable(time),
712
- held: array(range)
713
- });
714
- var storeClear = strictObject({
715
- cleared: boolean(),
716
- dry_run: optional(literal(true)),
717
- chats: count,
718
- messages: count,
719
- left: array(strictObject({ id, title: nullable(text), messages: count }))
720
- });
721
- var storeExport = union([
722
- message,
723
- strictObject({
724
- path: text,
725
- format: picklist(["jsonl", "markdown"]),
726
- count,
727
- encrypted: optional(literal(true))
728
- }),
729
- strictObject({
730
- path: text,
731
- encrypted: optional(literal(true)),
732
- chats: array(strictObject({ id, title: nullable(text), file: nullable(text), messages: count, deleted: count }))
733
- })
734
- ]);
735
- var storeGapPlan = strictObject({
736
- version: literal(1),
737
- scope: literal("interior"),
738
- account: strictObject({ provider: text, account: id }),
739
- chat: id,
740
- ordering: picklist(["id", "time"]),
741
- held: array(range),
742
- gaps: array(range),
743
- unknown: strictObject({ older: boolean(), newer: literal(true) }),
744
- fingerprint: text,
745
- limits: strictObject({ max_gaps: count, limit: count, time_ms: count, page_size: count })
746
- });
747
- var storeGapRepair = union([
748
- messageSyncStarted,
749
- strictObject({
750
- version: literal(1),
751
- scope: literal("interior"),
752
- chat: id,
753
- before: storeGapPlan,
754
- after: storeGapPlan,
755
- repaired: array(range),
756
- fetched: count,
757
- requests: count,
758
- complete: boolean(),
759
- prepared: optional(catchUpPreparation),
760
- stopped: optional(picklist(["bound", "partial_or_inaccessible", "fetch_failed"]))
761
- })
762
- ]);
763
- var problem2 = objectWithRest({ code: text, message: text, retryable: optional(boolean()), retry_after_ms: optional(number()) }, unknown());
764
- var progress = strictObject({
765
- job: id,
766
- profile: text,
767
- done: count,
768
- total: nullable(count),
769
- remaining: nullable(count),
770
- state: picklist(["partial", "complete"]),
771
- updated_at: nullable(time),
772
- cursor_age_ms: nullable(count)
773
- });
774
- var storeJobDetails = strictObject({
775
- ...omit(job, ["id", "issue", "error"]).entries,
776
- job: id,
777
- profile: text,
778
- issue: optional(problem2),
779
- error: optional(problem2),
780
- batch: optional(batchResult),
781
- resume: optional(strictObject({ before: optional(text) })),
782
- progress,
783
- held: optional(array(range)),
784
- log: text
785
- });
786
- var storeJobCancel = strictObject({ job: id, cancelled: literal(true) });
787
- var storeJobRetry = union([
788
- strictObject({ ...messageSyncStarted.entries, retried: id }),
789
- strictObject({ retried: id, chat: text, error: strictObject({ code: text, message: text }) })
790
- ]);
791
- var storeJobClear = strictObject({ cleared: array(id) });
792
-
793
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/account.js
794
- var account = strictObject({
795
- provider: text,
796
- id,
797
- name: nullable(text),
798
- username: nullable(text),
799
- phone: optional(nullable(text)),
800
- scope: optional(picklist(["personal", "work"]))
801
- });
802
-
803
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/account-session.js
804
- var accountSession = strictObject({
805
- current: boolean(),
806
- client: nullable(text),
807
- device: nullable(text),
808
- location: nullable(text),
809
- last_active_at: nullable(time),
810
- created_at: optional(nullable(time))
811
- });
812
-
813
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/account-change.js
814
- var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
815
- var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
816
- var audience = picklist(["everyone", "contacts", "nobody"]);
817
- var shownAudience = picklist(["everyone", "contacts", "nobody", "contacts_except"]);
818
- var accountPrivacy = strictObject({
819
- find_by_phone: optional(audience),
820
- phone_number: optional(audience),
821
- calls: optional(audience),
822
- chat_invites: optional(audience),
823
- hide_online: optional(boolean()),
824
- read_receipts: optional(boolean()),
825
- profile_photo: optional(shownAudience),
826
- about: optional(shownAudience),
827
- last_seen: optional(shownAudience)
828
- });
829
- var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
830
-
831
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
832
- var accountProfile = strictObject({
833
- profile: id,
834
- current: boolean(),
835
- account: nullable(id),
836
- name: nullable(text),
837
- /** False for a profile with no session on this computer; absent when the messenger does not say. */
838
- signed_in: optional(boolean())
839
- });
840
-
841
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
842
- var milliseconds = pipe(number(), minValue(0));
843
- var counterReading = strictObject({
844
- counter: picklist(["views", "reactions", "comments"]),
845
- value: nullable(number()),
846
- observed_at: nullable(time),
847
- source: nullable(text),
848
- age_ms: nullable(milliseconds),
849
- freshness: picklist(["fresh", "stale", "unknown"])
850
- });
851
- var selection = record(string(), unknown());
852
-
853
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
854
- var adminRow = strictObject({
855
- ref: reference,
856
- /** What `stats * evidence` takes: a person id, a stay or a message locator. */
857
- id,
858
- status: picklist(["observed", "no-observed-answer", "partial", "unknown"]),
859
- chat_ref: optional(reference),
860
- person_ref: optional(reference),
861
- identity_known: optional(boolean()),
862
- questions: optional(count),
863
- answered: optional(count),
864
- median_ms: optional(nullable(milliseconds)),
865
- p90_ms: optional(nullable(milliseconds)),
866
- age_ms: optional(milliseconds),
867
- joined_at: optional(time),
868
- window_end: optional(time),
869
- pending: optional(boolean()),
870
- views: optional(count),
871
- observed_replies: optional(count),
872
- comment_snapshot: optional(nullable(count)),
873
- counters: optional(array(counterReading)),
874
- selection
875
- });
876
- var adminReport = strictObject({
877
- report: picklist(["unanswered", "responses", "newcomers", "discussion"]),
878
- cutoff: time,
879
- /** Rows the report found; `rows` holds the first `--limit` of them. */
880
- total: count,
881
- summary: strictObject({
882
- questions: count,
883
- answered: count,
884
- no_observed_answer: count,
885
- excluded_future: count,
886
- unknown_join: count,
887
- missing_views: count
888
- }),
889
- quality: strictObject({
890
- graph: strictObject({
891
- unknown_links: count,
892
- unknown_authors: count,
893
- missing_parents: count,
894
- cycles: count,
895
- complete: boolean()
896
- }),
897
- archives: array(strictObject({ chat_ref: reference, state: text, fetched_at: nullable(time) })),
898
- archives_total: count,
899
- membership: text,
900
- counter_freshness: text,
901
- answerer_roles: text
902
- }),
903
- rows: array(adminRow)
904
- });
905
-
906
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
907
- var analysisConsent = strictObject({ chat: id, provider: text, at: time });
908
- var analysisConsentRevocation = strictObject({ revoked: boolean() });
909
-
910
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
911
- var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
912
- var attachmentBytes = strictObject({
913
- ref: reference,
914
- attachment: count,
915
- name: nullable(text),
916
- mime_type: text,
917
- total_bytes: count,
918
- sha256: fingerprint,
919
- offset_bytes: count,
920
- read_bytes: count,
921
- next_offset_bytes: nullable(count),
922
- complete: boolean(),
923
- base64: optional(text),
924
- pdf: optional(strictObject({ page: count, page_count: count, source_sha256: fingerprint, source_bytes: count }))
925
- });
926
- var attachmentExtraction = union([
927
- strictObject({ ...omit(extractionReport, ["items"]).entries, files: array(extractionItem) }),
928
- extractionItem
929
- ]);
930
- var attachmentTextChange = strictObject({
931
- ref: reference,
932
- attachment: count,
933
- origin: literal("agent"),
934
- chars: count,
935
- replaced: nullable(picklist(["extracted", "agent"]))
936
- });
937
-
938
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/chart.js
939
- var chart = strictObject({
940
- version: literal(1),
941
- kind: picklist(["bar", "line", "grouped-bar"]),
942
- title: text,
943
- x: strictObject({ type: picklist(["day", "week"]), values: array(text) }),
944
- series: array(strictObject({ name: text, values: array(nullable(number())) })),
945
- unit: picklist(["messages", "people"]),
946
- timezone: text,
947
- /** Lower bounds: the store or the events did not hold the whole period. */
948
- partial: boolean(),
949
- reasons: array(picklist(["store-incomplete", "events-incomplete"])),
950
- file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
951
- });
952
-
953
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/folder.js
954
- var named = strictObject({
955
- id,
956
- title: nullable(text),
957
- kind: nullable(picklist(["dialog", "group", "channel", "saved", "unknown"]))
958
- });
959
- var folder = strictObject({
960
- id,
961
- title: text,
962
- /** Chats added by hand; a folder that selects chats by a rule of its own lists none. */
963
- chat_ids: array(id),
964
- emoji: optional(text),
965
- /** Kinds of chat it takes by itself. */
966
- include: optional(array(picklist(["contacts", "non-contacts", "groups", "channels", "bots"]))),
967
- skip: optional(array(picklist(["muted", "read", "archived"]))),
968
- excluded_chat_ids: optional(array(id)),
969
- pinned_chat_ids: optional(array(id)),
970
- /** `chats folders show`: the chats in it, pinned and left out, by name. */
971
- chats: optional(array(named)),
972
- pinned_chats: optional(array(named)),
973
- excluded_chats: optional(array(named))
974
- });
975
-
976
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
977
- var inviteLink = strictObject({
978
- link: text,
979
- /** Who joins by it asks first, and an admin lets them in. */
980
- approval: boolean(),
981
- /** `null` when it never expires. */
982
- expires_at: nullable(time),
983
- /** `null` for no limit. */
984
- max_uses: nullable(count),
985
- /** The group's own link; revoking it makes the messenger issue a new one. */
986
- primary: optional(boolean()),
987
- revoked: optional(boolean()),
988
- pending_count: optional(count),
989
- joined_count: optional(count)
990
- });
991
-
992
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
993
- var operated = { operation_id: id, chat_id: id };
994
- var group = strictObject({
995
- ...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
996
- parent_chat_id: optional(nullable(id)),
997
- muted_until: optional(nullable(time)),
998
- description: nullable(text),
999
- link: nullable(text),
1000
- settings: strictObject({
1001
- ...unwrap(chat.entries.settings).entries,
1002
- all_can_pin: nullable(boolean()),
1003
- only_admins_add: nullable(boolean()),
1004
- only_admins_call: nullable(boolean()),
1005
- only_owner_edits_info: nullable(boolean()),
1006
- members_see_link: nullable(boolean())
1007
- })
1008
- });
1009
- var chatGroupChange = union([
1010
- strictObject({ operation_id: id, chat: group }),
1011
- strictObject({ operation_id: id, requested: literal(true) })
1012
- ]);
1013
- var chatInspection = strictObject({
1014
- kind: chat.entries.kind,
1015
- title: nullable(text),
1016
- id: nullable(id),
1017
- username: nullable(text),
1018
- participants_count: nullable(count),
1019
- description: nullable(text),
1020
- member: nullable(boolean()),
1021
- approval_needed: optional(boolean())
1022
- });
1023
- var chatSender = strictObject({
1024
- id,
1025
- title: text,
1026
- kind: picklist(["self", "channel", "group"]),
1027
- premium_required: boolean(),
1028
- default: boolean()
1029
- });
1030
- var chatRead = strictObject({ ...operated, until: nullable(id), thread_id: optional(id) });
1031
- var chatMembersFetch = strictObject({
1032
- chat_id: id,
1033
- joined: array(id),
1034
- gone: array(id),
1035
- changed: array(id),
1036
- read: count,
1037
- participants: nullable(count),
1038
- complete: boolean(),
1039
- more: boolean(),
1040
- tracked: boolean()
1041
- });
1042
- var chatMembersChange = union([
1043
- strictObject({ ...operated, added: array(id), not_added: array(id) }),
1044
- strictObject({ ...operated, removed: array(id) })
1045
- ]);
1046
- var chatInvite = strictObject({ chat_id: id, title: nullable(text), link: text });
1047
- var chatInviteChange = strictObject({
1048
- ...operated,
1049
- ...omit(inviteLink, ["pending_count", "joined_count"]).entries,
1050
- pending: optional(count),
1051
- joined: optional(count)
1052
- });
1053
- var chatRequestChange = union([
1054
- strictObject({ ...operated, person_id: id, accepted: boolean(), already: boolean() }),
1055
- strictObject({ chat_id: id, accepted: boolean(), counted: count, operation_id: optional(id) })
1056
- ]);
1057
- var chatAdminChange = strictObject({
1058
- ...operated,
1059
- person_id: id,
1060
- rights: optional(array(picklist(["read", "members", "admins", "info", "pin", "link", "post", "edit", "delete"])))
1061
- });
1062
- var chatFolderChange = strictObject({
1063
- operation_id: id,
1064
- folder: omit(folder, ["chats", "pinned_chats", "excluded_chats"])
1065
- });
1066
- var chatFolderRemoval = strictObject({ operation_id: id, folder_id: id });
1067
- var chatFolderOrder = strictObject({
1068
- operation_id: id,
1069
- folders: array(strictObject({ id, title: text }))
1070
- });
1071
-
1072
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
1073
- var operated2 = { operation_id: id, chat_id: id };
1074
- var chatRemoval = strictObject(operated2);
1075
- var chatMuting = strictObject({
1076
- ...operated2,
1077
- muted_until: nullable(union([time, literal("forever")]))
1078
- });
1079
- var chatArchive = strictObject({ ...operated2, archived: boolean() });
1080
- var chatPin = strictObject({ ...operated2, pinned: boolean() });
1081
- var chatUnread = strictObject({ ...operated2, unread: literal(true) });
1082
-
1083
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
1084
- var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
1085
- var chatEvent = strictObject({
1086
- chat_id: id,
1087
- time,
1088
- /** `join`, `leave`, `add`, `remove`, `create`, `title`, `pin`, `profile`; a messenger may pass others through. */
1089
- type: text,
1090
- /** The service message that says so, where there is one. */
1091
- message_id: optional(id),
1092
- by: optional(who),
1093
- people: array(who),
1094
- /** `create` and `title` carry the chat's title. */
1095
- title: optional(text),
1096
- /** `profile`: the name and username seen before. */
1097
- before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
1098
- });
1099
-
1100
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
1101
- var chatMetadata = strictObject({
1102
- chat_id: id,
1103
- title: nullable(text),
1104
- username: nullable(text),
1105
- description: nullable(text),
1106
- fetched_at: time
1107
- });
1108
- var cachedChatMetadata = strictObject({ chat_id: id, metadata: nullable(chatMetadata) });
1109
- var failedChatMetadata = strictObject({ chat_id: id, error: strictObject({ code: text, message: text }) });
1110
- var chatMetadataRefresh = strictObject({
1111
- chats: array(union([chatMetadata, failedChatMetadata])),
1112
- has_more: boolean()
1113
- });
1114
-
1115
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
1116
- var action = picklist(["report", "delete", "remove"]);
1117
- var level = picklist(["deny", "readonly", "ask", "allow"]);
1118
- var chatRules = strictObject({
1119
- chat_id: id,
1120
- title: nullable(text),
1121
- file: text,
1122
- saved: boolean(),
1123
- rules: strictObject({
1124
- title: nullable(text),
1125
- trusted: array(id),
1126
- blocked: array(id),
1127
- blocked_names: array(text),
1128
- links: action,
1129
- invites: action,
1130
- forwards: action,
1131
- blocked_people: action,
1132
- flood: strictObject({ messages: count, minutes: count, action }),
1133
- new_account: strictObject({ days: count, action: picklist(["report", "remove"]) }),
1134
- consent: strictObject({ delete: level, remove: level })
1135
- })
1136
- });
1137
- var chatModeration = strictObject({
1138
- chat_id: id,
1139
- rows: array(strictObject({
1140
- kind: picklist(["message", "member"]),
1141
- rule: picklist(["blocked", "invites", "links", "forwards", "flood", "newAccount"]),
1142
- person_id: id,
1143
- person_name: nullable(text),
1144
- message_id: optional(id),
1145
- action,
1146
- outcome: picklist(["reported", "done", "planned", "forbidden", "declined", "refused", "failed", "skipped"]),
1147
- reason: optional(text),
1148
- command: optional(text)
1149
- }))
1150
- });
1151
-
1152
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
1153
- var optionalCount = optional(count);
1154
- var minutes = nullable(number());
1155
- var chatStats = strictObject({
1156
- chat: reference,
1157
- since: time,
1158
- until: time,
1159
- /** The store holds the chat whole and the messenger read every join and leave; otherwise lower bounds. */
1160
- complete: boolean(),
1161
- completeness: strictObject({
1162
- state: picklist(["complete", "partial", "unknown"]),
1163
- up_to_date: nullable(boolean()),
1164
- gaps: boolean(),
1165
- reaches_start: boolean(),
1166
- fetched_at: nullable(time)
1167
- }),
1168
- messages: count,
1169
- senders: count,
1170
- replies: count,
1171
- threads: count,
1172
- reactions: count,
1173
- views: optionalCount,
1174
- forwards: optionalCount,
1175
- comments: optionalCount,
1176
- top_posts: array(strictObject({
1177
- ref: reference,
1178
- timestamp: time,
1179
- reactions: count,
1180
- views: optionalCount,
1181
- forwards: optionalCount,
1182
- comments: optionalCount
1183
- })),
1184
- questions: strictObject({
1185
- asked: count,
1186
- answered: count,
1187
- median_minutes_to_answer: minutes,
1188
- answered_by: picklist(["owner", "owner-and-admins"])
1189
- }),
1190
- member_counts: optional(array(strictObject({ day: text, participants: nullable(count), listed: count, complete: boolean() }))),
1191
- /** Absent where joins and leaves were not asked, or not recorded for the chat yet (then `missing` says so). */
1192
- members: optional(strictObject({
1193
- joined: count,
1194
- left: count,
1195
- net: number(),
1196
- wrote: count,
1197
- median_minutes_to_first_message: minutes,
1198
- /** The messenger stopped reading its history before `since`: the counts are lower bounds. */
1199
- more: boolean()
1200
- })),
1201
- series: optional(array(strictObject({ key: text, messages: count, senders: count, joined: optionalCount, left: optionalCount })))
1202
- });
1203
- var taskStats = strictObject({
1204
- /** Open tasks across every row. */
1205
- open: count,
1206
- rows: array(strictObject({
1207
- chat: reference,
1208
- open: count,
1209
- oldest_open_at: nullable(time),
1210
- median_close_ms: nullable(pipe(number(), minValue(0)))
1211
- }))
1212
- });
1213
-
1214
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
1215
- var memberCount = strictObject({
1216
- day: pipe(text, isoDate()),
1217
- participants: nullable(count),
1218
- listed: count,
1219
- complete: boolean()
1220
- });
1221
- var trackedChat = strictObject({
1222
- chat_id: id,
1223
- title: nullable(text),
1224
- tracked_at: time,
1225
- last_count: nullable(memberCount)
1226
- });
1227
- var trackedChatHistory = strictObject({
1228
- chat_id: id,
1229
- tracked_at: nullable(time),
1230
- counts: array(memberCount)
1231
- });
1232
- var chatTracking = strictObject({
1233
- chat_id: id,
1234
- tracked: boolean()
1235
- });
1236
-
1237
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
1238
- var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
1239
- var contactSync = strictObject({ added: count, changed: count, known: count });
1240
- var profileFields = {
1241
- usernames: array(text),
1242
- birthday: optional(nullable(text)),
1243
- phone: optional(nullable(text)),
1244
- flags: partial(strictObject({
1245
- bot: boolean(),
1246
- verified: boolean(),
1247
- premium: boolean(),
1248
- scam: boolean(),
1249
- fake: boolean(),
1250
- restricted: boolean(),
1251
- deleted: boolean(),
1252
- support: boolean()
1253
- })),
1254
- seen: optional(text),
1255
- contact: optional(boolean()),
1256
- mutual_contact: optional(boolean()),
1257
- common_chats_count: optional(nullable(count)),
1258
- registered: optional(nullable(strictObject({
1259
- at: text,
1260
- source: picklist(["telegram", "max", "estimate"]),
1261
- precision: picklist(["day", "month"])
1262
- }))),
1263
- has_photo: optional(boolean()),
1264
- /** Earlier names and usernames, oldest first; the current ones are not repeated. */
1265
- aliases: array(strictObject({
1266
- name: optional(text),
1267
- username: optional(text),
1268
- link: optional(text),
1269
- first_seen_at: time,
1270
- last_seen_at: time,
1271
- source: picklist(["profile", "messages"])
1272
- }))
1273
- };
1274
-
1275
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/contact.js
1276
- var contact = strictObject({
1277
- ref: reference,
1278
- id,
1279
- name: nullable(text),
1280
- username: nullable(text),
1281
- alias: optional(nullable(text)),
1282
- display_name: optional(nullable(text)),
1283
- /** Whatever they wrote about themselves. */
1284
- description: nullable(text),
1285
- /** The newest message in a one-to-one chat with them. */
1286
- last_messaged_at: nullable(time),
1287
- /** For a source that knows it, such as a Zoom contact. */
1288
- email: optional(nullable(text)),
1289
- phones: optional(array(strictObject({ number: text, label: nullable(text) }))),
1290
- /** `contacts show`: the chats shared with them, and what the store holds of their messages in each. */
1291
- chats: optional(array(strictObject({
1292
- ...pick(chat, ["ref", "id", "title", "kind", "last_message_at"]).entries,
1293
- /** Their messages stored; a floor unless `complete`. */
1294
- their_messages: optional(count),
1295
- first_at: optional(nullable(time)),
1296
- last_at: optional(nullable(time)),
1297
- /** The store holds the whole chat, so the count is the real one. */
1298
- complete: optional(boolean())
1299
- }))),
1300
- /** `contacts show`: what the messenger says about them, or with `--offline` what the store saw of them. */
1301
- ...partial(strictObject(profileFields)).entries,
1302
- /** `contacts show --with-notes`: the owner's private notes about them. */
1303
- notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
1304
- });
1305
-
1306
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
1307
- var linkedIdentity = strictObject({
1308
- provider: text,
1309
- id,
1310
- name: nullable(text),
1311
- username: nullable(text),
1312
- is_bot: nullable(boolean()),
1313
- accounts: array(id),
1314
- method: text,
1315
- linked_by: text,
1316
- linked_at: time
1317
- });
1318
- var linkedPerson = strictObject({ uid: id, name: nullable(text), identities: array(linkedIdentity) });
1319
- var contactActivity = strictObject({
1320
- at: time,
1321
- subject: text,
1322
- subject_id: count,
1323
- role: text,
1324
- scope: text,
1325
- provider: nullable(text),
1326
- account: nullable(text),
1327
- chat_id: nullable(text),
1328
- locator: nullable(text),
1329
- project_id: nullable(count)
1330
- });
1331
- var botReason = picklist(Object.keys(WEIGHTS));
1332
- var contactCheck = strictObject({
1333
- person: strictObject({ id, name: nullable(text), username: nullable(text), provider: text }),
1334
- score: count,
1335
- reasons: array(strictObject({ reason: botReason, weight: count, source: text, detail: optional(text) })),
1336
- registries: array(strictObject({
1337
- name: picklist(["cas", "lols"]),
1338
- answer: picklist(["listed", "clean", "unknown"]),
1339
- checked_at: time,
1340
- detail: optional(text),
1341
- reasons: optional(array(picklist(["cas_banned", "lols_banned", "lols_scammer"])))
1342
- })),
1343
- unknown: array(botReason),
1344
- checked_at: time
1345
- });
1346
-
1347
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
1348
- var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
1349
- var contextMessage = strictObject({
1350
- locator: reference,
1351
- provider: text,
1352
- account: id,
1353
- chat_id: id,
1354
- chat_title: nullable(text),
1355
- id,
1356
- timestamp: time,
1357
- sender_id: nullable(id),
1358
- sender_name: nullable(text),
1359
- outgoing: nullable(boolean()),
1360
- text
1361
- });
1362
- var sharedChat = strictObject({
1363
- provider: text,
1364
- account: id,
1365
- chat_id: id,
1366
- title: nullable(text),
1367
- kind: chat.entries.kind,
1368
- last_message_at: nullable(time)
1369
- });
1370
- var contextEvent = strictObject({
1371
- ref: reference,
1372
- title: nullable(text),
1373
- starts_at: nullable(time),
1374
- ends_at: nullable(time),
1375
- all_day: boolean(),
1376
- location: nullable(text),
1377
- status: nullable(text)
1378
- });
1379
- var context = strictObject({
1380
- person: contextPerson,
1381
- shared: array(sharedChat),
1382
- last: strictObject({
1383
- from_them: nullable(contextMessage),
1384
- from_me: nullable(contextMessage),
1385
- from_them_anywhere: nullable(contextMessage)
1386
- }),
1387
- recent: strictObject({ direct: array(contextMessage), groups: array(contextMessage) }),
1388
- mentions: array(contextMessage),
1389
- /** Calendar events they are invited to, one occurrence per series. */
1390
- events: optional(strictObject({ upcoming: array(contextEvent), recent: array(contextEvent) })),
1391
- limits: strictObject({ messages: count, bytes: count }),
1392
- complete: boolean(),
1393
- not_read: array(strictObject({
1394
- provider: text,
1395
- account: id,
1396
- chat_id: id,
1397
- title: nullable(text),
1398
- reason: picklist(["not_fetched", "partial"])
1399
- }))
1400
- });
1401
- var shortMessage = strictObject({ at: time, text, transcript: optional(text) });
1402
- var identifiedMessage = strictObject({
1403
- ...shortMessage.entries,
1404
- id,
1405
- locator: reference,
1406
- sender_id: nullable(id),
1407
- reply_to: nullable(id)
1408
- });
1409
- var counterObservation = strictObject({
1410
- value: number(),
1411
- observed_at: time,
1412
- source: picklist(["remote_fetch", "remote_update"]),
1413
- reactions: optional(message.entries.reactions.wrapped.wrapped)
1414
- });
1415
- var { reply_addresses: mailReplyTo, ...mailFields } = message.entries.email.wrapped.entries;
1416
- var fullMessage = strictObject({
1417
- ...pick(message, [
1418
- "id",
1419
- "chat_id",
1420
- "chat_title",
1421
- "excerpt",
1422
- "sender_id",
1423
- "sender_name",
1424
- "sender_username",
1425
- "mentions",
1426
- "sender_is_chat",
1427
- "timestamp",
1428
- "edited_at",
1429
- "text",
1430
- "outgoing",
1431
- "attachments",
1432
- "reply_to",
1433
- "reply_to_id",
1434
- "forwarded_from",
1435
- "thread_id",
1436
- "thread_root_id",
1437
- "scheduled_for",
1438
- "provider_metadata",
1439
- "delivery"
1440
- ]).entries,
1441
- reactions: nullable(message.entries.reactions.wrapped.wrapped),
1442
- starred: optional(boolean()),
1443
- email: optional(strictObject({ ...mailFields, reply_to: mailReplyTo })),
1444
- counter_observations: optional(partial(strictObject({
1445
- views: counterObservation,
1446
- reactions: counterObservation,
1447
- comments: counterObservation
1448
- }))),
1449
- ...shortMessage.entries,
1450
- locator: reference
1451
- });
1452
- var contactMessages = strictObject({
1453
- person: strictObject({ uid: id, provider: text, id, name: nullable(text) }),
1454
- chats: array(strictObject({
1455
- chat: pick(chat, ["id", "title", "kind"]),
1456
- messages: array(union([shortMessage, identifiedMessage, fullMessage])),
1457
- complete: boolean(),
1458
- more: boolean()
1459
- })),
1460
- limits: strictObject({ messages: count })
1461
- });
1462
- var contactContext = union([context, contactMessages]);
1463
- var coverage = strictObject({
1464
- included: count,
1465
- has_more: boolean(),
1466
- cut_by: nullable(picklist(["limit", "bytes"]))
1467
- });
1468
- var meetingCue = strictObject({
1469
- reference,
1470
- fingerprint: text,
1471
- transcript_id: count,
1472
- content_hash: nullable(text),
1473
- position: count,
1474
- start_ms: count,
1475
- end_ms: count,
1476
- speaker_participant_id: nullable(count),
1477
- speaker_name: nullable(text),
1478
- text,
1479
- revision: picklist(["current", "superseded"])
1480
- });
1481
- var contactPreparation = strictObject({
1482
- ...context.entries,
1483
- prepare: strictObject({
1484
- waiting: array(strictObject({
1485
- provider: text,
1486
- account: id,
1487
- chat_id: id,
1488
- title: nullable(text),
1489
- message: contextMessage,
1490
- partial: boolean()
1491
- })),
1492
- tasks: array(strictObject({
1493
- ref: reference,
1494
- title: text,
1495
- role: text,
1496
- due_at: nullable(time),
1497
- project: reference,
1498
- source: nullable(reference),
1499
- created_at: time
1500
- })),
1501
- facts: array(strictObject({
1502
- ref: reference,
1503
- type: text,
1504
- statement: text,
1505
- subject: nullable(reference),
1506
- project: nullable(reference),
1507
- updated_at: time
1508
- })),
1509
- notes: array(strictObject({ ref: reference, title: nullable(text), text, revision: count, updated_at: time })),
1510
- meetings: array(strictObject({
1511
- reference,
1512
- cues: array(meetingCue),
1513
- cue_coverage: strictObject({ included: count, omitted: nullable(count), has_more: boolean() })
1514
- })),
1515
- limits: strictObject({ items: count, bytes: count }),
1516
- coverage: strictObject({
1517
- waiting: strictObject({
1518
- ...coverage.entries,
1519
- rule: literal("their message is the newest the store holds in a one-to-one chat")
1520
- }),
1521
- tasks: strictObject({
1522
- ...coverage.entries,
1523
- selection: literal("open, assigned to them in any role"),
1524
- accounts: array(text)
1525
- }),
1526
- facts: strictObject({
1527
- ...coverage.entries,
1528
- selection: literal("accepted, about them or a project they are a member of")
1529
- }),
1530
- notes: strictObject({
1531
- ...coverage.entries,
1532
- selection: literal("written by you, about them"),
1533
- withheld: optional(literal("contacts.notes.list"))
1534
- }),
1535
- meetings: strictObject({
1536
- ...coverage.entries,
1537
- read: literal("every account of the store that saw them"),
1538
- accounts: array(text),
1539
- pending: count
1540
- })
1541
- })
1542
- })
1543
- });
1544
-
1545
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
1546
- var contactNote = strictObject({
1547
- id,
1548
- /** The contact, as a `contact:` reference. */
1549
- contact: reference,
1550
- text,
1551
- /** Starts at 1; an edit names the revision it read. */
1552
- revision: count,
1553
- created_at: time,
1554
- updated_at: time
1555
- });
1556
-
1557
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
1558
- var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
1559
- var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
1560
- var contactStateChange = strictObject({ operation_id: id, person_id: id });
1561
- var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
1562
-
1563
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
1564
- var conversationDetails = union([
1565
- strictObject({ ...conversation.entries, messages: array(message) }),
1566
- message
1567
- ]);
1568
- var conversationBatchStatus = strictObject({
1569
- chat: id,
1570
- messages: count,
1571
- characters: count,
1572
- batches: count,
1573
- tokens_estimate: count
1574
- });
1575
- var batchMessage = strictObject({
1576
- id,
1577
- at: time,
1578
- sender: strictObject({ id: nullable(id), name: nullable(text) }),
1579
- text,
1580
- reply_to: optional(id),
1581
- thread: optional(id),
1582
- mentions: optional(array(id)),
1583
- answer: boolean(),
1584
- candidates: optional(array(strictObject({ parent: nullable(id), source: text, kind: text, confidence: number() })))
1585
- });
1586
- var conversationBatch = union([
1587
- strictObject({ batch: null_() }),
1588
- strictObject({
1589
- batch: id,
1590
- chat: id,
1591
- messages: array(batchMessage),
1592
- remaining: strictObject({ messages: count, characters: count })
1593
- })
1594
- ]);
1595
- var analyzedConversation = strictObject({
1596
- chat: id,
1597
- model: text,
1598
- batches: count,
1599
- stored: count,
1600
- tokens: count,
1601
- reserved_tokens: count,
1602
- max_tokens: count,
1603
- stopped: picklist(["complete", "budget"]),
1604
- remaining: conversationBatchStatus,
1605
- built: optional(conversationBuild)
1606
- });
1607
- var conversationBuildResult = union([conversationBuild, conversationPreparation, analyzedConversation]);
1608
- var conversationEmbedding = union([chatEmbedding, conversationPreparation]);
1609
- var conversationChange = union([
1610
- strictObject({ chat: id, stored: count }),
1611
- strictObject({ chat: id, cleared: count })
1612
- ]);
1613
- var conversationReadiness = strictObject({
1614
- chat: id,
1615
- model: text,
1616
- state: picklist(["ready", "stale", "partial", "words-only", "not-built"]),
1617
- graph: nullable(strictObject({ built_at: time, rules_version: nullable(count), outdated_rules: boolean() })),
1618
- pending: strictObject({ new: count, edited: count, deleted: count }),
1619
- vectors: strictObject({ chunks: count, current: count, stale: count, missing: count })
1620
- });
1621
- var conversationEmbeddingStatus = strictObject({
1622
- chat: id,
1623
- model: text,
1624
- chunks: count,
1625
- embedded: count,
1626
- left: count,
1627
- estimate_seconds: nullable(number()),
1628
- tokens_at_most: count,
1629
- price_at_most: optional(strictObject({ usd: number(), read: text }))
1630
- });
1631
- var summary = strictObject({
1632
- id,
1633
- chat_id: id,
1634
- first_message_id: id,
1635
- first_at: time,
1636
- last_at: time,
1637
- message_count: count,
1638
- senders: count,
1639
- built_at: time,
1640
- algorithm_version: count
1641
- });
1642
- var conversationHit = strictObject({
1643
- source: optional(strictObject({ provider: text, account: id })),
1644
- locator: optional(reference),
1645
- summary,
1646
- chunk: strictObject({ first_message_id: id, last_message_id: id }),
1647
- score: nullable(number()),
1648
- matched_in: optional(literal("context")),
1649
- by: array(picklist(["meaning", "words"])),
1650
- stale: boolean()
1651
- });
1652
-
1653
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/counters.js
1654
- var counters = strictObject({
1655
- cutoff: time,
1656
- max_age_ms: milliseconds,
1657
- /** Pins exactly these messages for `counters refresh --selection`. */
1658
- selection: strictObject({
1659
- kind: literal("counter-targets"),
1660
- version: literal(1),
1661
- locators: array(reference)
1662
- }),
1663
- rows: array(strictObject({ ref: reference, counters: array(counterReading) }))
1664
- });
1665
- var counterRefresh = strictObject({
1666
- dry_run: boolean(),
1667
- targets: array(reference),
1668
- counters: array(text),
1669
- supported: array(text),
1670
- unsupported: array(text),
1671
- max_messages: count,
1672
- time_ms: milliseconds,
1673
- results: optional(array(strictObject({
1674
- ref: reference,
1675
- updated: array(text),
1676
- missing: array(text),
1677
- status: text
1678
- }))),
1679
- stopped: optional(text),
1680
- complete: optional(boolean())
1681
- });
1682
-
1683
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/document.js
1684
- var document = strictObject({
1685
- ref: reference,
1686
- id,
1687
- title: nullable(text),
1688
- url: nullable(text),
1689
- mime: optional(text),
1690
- size: optional(count),
1691
- /** When its source last changed it. */
1692
- source_modified_at: nullable(time),
1693
- /** When the store last read it; not the source's time. */
1694
- stored_at: optional(nullable(time)),
1695
- owners: optional(array(text))
1696
- });
1697
-
1698
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/document-link.js
1699
- var documentLink = strictObject({
1700
- ref: reference,
1701
- url: text,
1702
- document_id: nullable(id),
1703
- title: nullable(text),
1704
- in_store: boolean(),
1705
- sent_at: time,
1706
- sender: strictObject({ id: nullable(id), name: nullable(text) })
1707
- });
1708
-
1709
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/evidence.js
1710
- var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
1711
- var contribution = strictObject({
1712
- message: evidenceMessage,
1713
- related: optional(evidenceMessage),
1714
- contribution: nullable(number()),
1715
- counters: optional(array(counterReading))
1716
- });
1717
- var retentionStay = strictObject({
1718
- person_ref: reference,
1719
- joined_at: time,
1720
- cohort: text,
1721
- checkpoints: array(strictObject({
1722
- checkpoint_ms: milliseconds,
1723
- target_at: time,
1724
- state: text,
1725
- observed_at: nullable(time),
1726
- lag_ms: nullable(milliseconds),
1727
- complete: boolean()
1728
- })),
1729
- activity: strictObject({
1730
- state: text,
1731
- first_message_at: nullable(time),
1732
- window_end: nullable(time),
1733
- archive_covered: boolean()
1734
- }),
1735
- departure: strictObject({ after: nullable(time), at_or_before: nullable(time), early: text })
1736
- });
1737
- var evidence = union([contribution, retentionStay]);
1738
-
1739
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/fact.js
1740
- var fact = strictObject({
1741
- ref: reference,
1742
- id,
1743
- kind: picklist(FACT_TYPES),
1744
- text,
1745
- status: picklist(FACT_STATUSES),
1746
- project: nullable(text),
1747
- /** What the project is called. */
1748
- project_name: optional(nullable(text)),
1749
- subject: nullable(reference),
1750
- /** What the subject is called; `null` for the owner and for a row with no name. */
1751
- subject_name: optional(nullable(text)),
1752
- subject_is_owner: optional(boolean()),
1753
- occurred_at: nullable(time),
1754
- supersedes: nullable(reference),
1755
- author,
1756
- model: nullable(text),
1757
- /** Who accepted it; `null` while it is proposed. */
1758
- confirmed_by: optional(nullable(strictObject({ type: picklist(["person", "bot"]), id }))),
1759
- scope: nullable(picklist(MEMORY_SCOPES)),
1760
- /** Who recorded it: the owner, or an agent whose fact waits as proposed. */
1761
- origin: picklist(["owner", "agent"]),
1762
- evidence: array(reference),
1763
- /** With `--sources`: each piece of evidence read back. */
1764
- sources: optional(array(evidenceSource)),
1765
- created_at: time,
1766
- updated_at: time
1767
- });
1768
-
1769
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/hit.js
1770
- var hit = strictObject({
1771
- kind: picklist(["message", "mail", "note", "document", "event", "meeting"]),
1772
- ref: reference,
1773
- provider: text,
1774
- url: optional(text),
1775
- /** The account it was found in; a note's folder id, or `internal` for a note written in memo. */
1776
- account: text,
1777
- /** The chat, the mail thread's subject, the note's, the event's or the meeting's title. */
1778
- title: nullable(text),
1779
- /** Null for a meeting whose start is unknown. */
1780
- timestamp: nullable(time),
1781
- excerpt: text,
1782
- sender_name: optional(nullable(text)),
1783
- /** A message's or a mail's: whether the owner wrote it. */
1784
- sender_is_me: optional(boolean()),
1785
- /** The writer's `person:` reference, where the store has one. */
1786
- sender_ref: optional(nullable(reference)),
1787
- found_by: optional(array(picklist(["title", "words", "meaning"]))),
1788
- /** How far into the meeting the passage is. */
1789
- offset_ms: optional(nullable(count)),
1790
- /** A meeting passage's place: its transcript, chat or summary. */
1791
- scope: optional(picklist(["transcript", "chat", "summary"])),
1792
- /** A meeting transcript hit's cue, which `meetings passage` opens with the lines around it. */
1793
- cue_ref: optional(reference),
1794
- /** A meeting passage's stored line, so two passages of one meeting stay apart; `search meetings` gives the same. */
1795
- id: optional(pipe(string(), minLength(1))),
1796
- /** A message's files; absent when it has none. */
1797
- attachments: optional(array(hitFile)),
1798
- /** Absent on a note hit: the owner wrote it. */
1799
- untrusted
1800
- });
1801
-
1802
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/identity.js
1803
- var identity = strictObject({
1804
- ref: reference,
1805
- provider: text,
1806
- account: text,
1807
- /** The messenger's own id for them. */
1808
- id,
1809
- name: nullable(text),
1810
- username: nullable(text),
1811
- /** The `person:` they are linked to, when one is. */
1812
- person: optional(nullable(reference))
1813
- });
1814
-
1815
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
1816
- var imageEmbedding = strictObject({
1817
- model: text,
1818
- embedded: count,
1819
- skipped: count,
1820
- failed: count,
1821
- more: boolean()
1822
- });
1823
-
1824
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/join-request.js
1825
- var joinRequest = strictObject({
1826
- person_id: id,
1827
- name: nullable(text),
1828
- username: nullable(text),
1829
- /** `null` where the messenger does not say. */
1830
- requested_at: nullable(time),
1831
- /** The note they sent with the request. */
1832
- about: optional(text)
1833
- });
1834
-
1835
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
1836
- var pollVote = strictObject({
1837
- person_id: id,
1838
- name: nullable(text),
1839
- username: nullable(text),
1840
- /** Answer ids, as `polls show` prints them. */
1841
- answers: array(id),
1842
- voted_at: time
1843
- });
1844
-
1845
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/listener.js
1846
- var reactions = unwrap(unwrap(message.entries.reactions));
1847
- var observation = strictObject({
1848
- value: pipe(number(), minValue(0)),
1849
- observed_at: time,
1850
- source: picklist(["remote_fetch", "remote_update"]),
1851
- reactions: optional(reactions)
1852
- });
1853
- var watchedMessage = strictObject({
1854
- ...message.entries,
1855
- starred: optional(boolean()),
1856
- counter_observations: optional(partial(strictObject({ views: observation, reactions: observation, comments: observation })))
1857
- });
1858
- var target = { chat_id: id, chat_title: nullable(text), message_id: id };
1859
- var messageEvent = variant("event", [
1860
- strictObject({ event: picklist(["message", "edit"]), message: watchedMessage }),
1861
- strictObject({ event: literal("delete"), ...target, chat_id: nullable(id) }),
1862
- strictObject({ event: literal("reaction"), ...target, reactions, counter_observation: optional(observation) }),
1863
- strictObject({ event: literal("vote"), ...target, vote: pollVote }),
1864
- strictObject({
1865
- event: literal("person_reaction"),
1866
- ...target,
1867
- reaction: strictObject({ person: member, own: boolean(), reaction: nullable(text), reacted_at: time })
1868
- }),
1869
- strictObject({ event: literal("star"), ...target, starred: boolean() }),
1870
- strictObject({ event: literal("delivery"), ...target, delivery: unwrap(message.entries.delivery), at: time }),
1871
- strictObject({ event: literal("chat_event"), chat_id: id, chat_title: nullable(text), change: chatEvent })
1872
- ]);
1873
- var watchItem = union([watchedMessage, messageEvent]);
1874
- var totals = record(text, count);
1875
- var serveSummary = strictObject({
1876
- profile: text,
1877
- started_at: time,
1878
- stopped_at: time,
1879
- kept: totals,
1880
- replies: optional(strictObject({ sent: totals, skipped: totals, tasks: optional(totals) })),
1881
- members: optional(strictObject({ fetched: count, failed: count })),
1882
- stems: optional(strictObject({ stemmed: count })),
1883
- tasks: optional(strictObject({ added: count, closed: count, review: count }))
1884
- });
1885
-
1886
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
1887
- var mediaArchive = strictObject({
1888
- directory: text,
1889
- chats: count,
1890
- saved: count,
1891
- existing: count,
1892
- complete: boolean()
1893
- });
1894
- var mediaArchiveCheck = strictObject({
1895
- valid: boolean(),
1896
- checked: count,
1897
- files: array(strictObject({ path: text, valid: boolean(), archive_directory: optional(text) }))
1898
- });
1899
- var mediaArchiveMove = strictObject({
1900
- directory: text,
1901
- archive_directory: text,
1902
- before_time: time,
1903
- selected: count,
1904
- selected_bytes: count,
1905
- moved: count,
1906
- moved_bytes: count,
1907
- already_archived: count,
1908
- undated: count,
1909
- complete: boolean(),
1910
- dry_run: boolean()
1911
- });
1912
- var timer = { name: text, installed: boolean(), service_path: text, timer_path: text };
1913
- var mediaArchiveTimer = union([
1914
- strictObject({ ...timer, active: boolean() }),
1915
- strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
1916
- ]);
1917
-
1918
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
1919
- var preparationId = pipe(string(), minLength(1));
1920
- var preparationCount = pipe(number(), integer(), minValue(0));
1921
- var preparationTime = nullable(isoTime);
1922
- var text2 = nullable(string());
1923
- var id2 = preparationId;
1924
- var count2 = preparationCount;
1925
- var page = /* @__PURE__ */ __name((item) => strictObject({ items: array(item), has_more: boolean() }), "page");
1926
- var preparationUpcoming = strictObject({
1927
- scope: strictObject({ provider: id2, account: id2 }),
1928
- meeting_id: id2,
1929
- kind: picklist(["single", "recurring", "unscheduled", "unknown"]),
1930
- after: isoTime,
1931
- until: isoTime,
1932
- timezone: text2,
1933
- verified_next: boolean(),
1934
- candidate: nullable(strictObject({
1935
- id: text2,
1936
- start_at: preparationTime,
1937
- end_at: preparationTime,
1938
- status: picklist(["scheduled", "cancelled"]),
1939
- verified: boolean()
1940
- })),
1941
- coverage: strictObject({
1942
- schedule_complete: boolean(),
1943
- inspected: count2,
1944
- undated: count2,
1945
- unverified: count2,
1946
- cancelled: count2,
1947
- simultaneous: count2,
1948
- missing: array(picklist(["schedule-details", "occurrence-details"]))
1949
- })
1950
- });
1951
- var preparationCue = strictObject({
1952
- ref: reference,
1953
- fingerprint: id2,
1954
- transcript_id: id2,
1955
- content_hash: text2,
1956
- position: count2,
1957
- offset_ms: count2,
1958
- end_ms: count2,
1959
- speaker_participant_id: nullable(id2),
1960
- speaker_name: text2,
1961
- text: string(),
1962
- revision: picklist(["current", "superseded"])
1963
- });
1964
- var preparationEvidence = strictObject({
1965
- schema_version: literal(1),
1966
- kind: literal("meeting"),
1967
- source: reference,
1968
- fingerprint: id2,
1969
- limits: strictObject({ cues: count2, bytes: count2, max_read_bytes: count2, max_transcript_pages: count2 }),
1970
- content_bytes: count2,
1971
- coverage: strictObject({
1972
- provided: count2,
1973
- included: count2,
1974
- omitted: nullable(count2),
1975
- provided_exact: boolean(),
1976
- next_transcript_id: nullable(id2),
1977
- next_reference: nullable(reference),
1978
- transcript_pages: count2,
1979
- skipped_unavailable: count2,
1980
- has_more: boolean(),
1981
- truncated_by: nullable(picklist(["cues", "bytes", "transcripts"])),
1982
- input: literal("bounded-meeting-pages"),
1983
- archive_completeness: literal("unknown")
1984
- }),
1985
- items: array(preparationCue)
1986
- });
1987
- var preparationContext = strictObject({
1988
- participants: page(strictObject({ id: id2, identity_id: id2, display_name: text2, person_uid: nullable(id2) })),
1989
- projects: page(strictObject({ ref: reference, key: id2, name: string(), link_id: id2 })),
1990
- facts: page(strictObject({ ref: reference, type: id2, statement: string(), updated_at: isoTime })),
1991
- tasks: page(strictObject({
1992
- ref: reference,
1993
- key: id2,
1994
- title: string(),
1995
- status: id2,
1996
- priority: nullable(count2),
1997
- source: nullable(reference)
1998
- }))
1999
- });
2000
- var preparationMeeting = strictObject({
2001
- id: id2,
2002
- external_id: id2,
2003
- title: text2,
2004
- event_id: nullable(id2),
2005
- started_at: preparationTime,
2006
- ended_at: preparationTime,
2007
- updated_at: isoTime
2008
- });
2009
-
2010
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
2011
- var meetingEvidence = preparationEvidence;
2012
- var meetingPersonContext = strictObject({
2013
- person: strictObject({ uid: string(), name: nullable(string()) }),
2014
- items: array(strictObject({
2015
- ref: reference,
2016
- cues: array(preparationCue),
2017
- cue_coverage: strictObject({ included: preparationCount, omitted: nullable(preparationCount), has_more: boolean() })
2018
- })),
2019
- limits: strictObject({ meetings: preparationCount, cues: preparationCount, bytes: preparationCount, scan_limit: preparationCount }),
2020
- content_bytes: preparationCount,
2021
- coverage: strictObject({
2022
- involvements_scanned: preparationCount,
2023
- scan_limit_reached: boolean(),
2024
- pending: preparationCount,
2025
- truncated_by: nullable(picklist(["meetings", "bytes"])),
2026
- skipped_unavailable: preparationCount,
2027
- complete: literal(false),
2028
- input: literal("bounded-meeting-pages")
2029
- })
2030
- });
2031
-
2032
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
2033
- var evidence2 = strictObject({ reference, fingerprint: text });
2034
- var base = { id, project: reference, evidence: array(evidence2) };
2035
- var finding = variant("kind", [
2036
- strictObject({ ...base, kind: literal("fact"), type: picklist(FACT_TYPES), statement: text }),
2037
- strictObject({
2038
- ...base,
2039
- kind: literal("task"),
2040
- type: picklist(WORK_TASK_TYPES),
2041
- title: text,
2042
- reason: text,
2043
- commitment: picklist(["explicit", "inferred"]),
2044
- due_at: optional(time),
2045
- due_evidence: optional(array(reference)),
2046
- assignee: optional(reference),
2047
- assignee_evidence: optional(array(reference))
2048
- })
2049
- ]);
2050
- var outcome = strictObject({
2051
- id,
2052
- fingerprint: text,
2053
- status: picklist(["accepted", "rejected"]),
2054
- reference: nullable(reference),
2055
- reused: boolean()
2056
- });
2057
- var meetingFindings = strictObject({
2058
- id,
2059
- account: strictObject({ provider: text, account: text }),
2060
- input: strictObject({ schema_version: literal(1), key: text, extractor: text, findings: array(finding) }),
2061
- fingerprint: text,
2062
- status: picklist(["proposed", "reviewed"]),
2063
- author,
2064
- decided_by: nullable(strictObject({ type: picklist(["person", "bot"]), id })),
2065
- decided_at: nullable(time),
2066
- previous: array(outcome),
2067
- receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome) }))
2068
- });
2069
-
2070
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
2071
- var communicationCoverage = strictObject({
2072
- read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
2073
- query: string(),
2074
- window: strictObject({ after: isoTime, before: isoTime }),
2075
- selection: literal("explicit-host-grants/literal-words"),
2076
- sources: array(strictObject({
2077
- selection_id: preparationId,
2078
- source: strictObject({
2079
- kind: picklist(["message", "mail", "document"]),
2080
- account_id: preparationId,
2081
- provider: preparationId,
2082
- account: preparationId
2083
- }),
2084
- state: picklist(["searched", "unavailable", "read-limited"]),
2085
- index: picklist(["ready", "pending", "missing", "unknown"]),
2086
- has_more: boolean(),
2087
- has_undated: boolean(),
2088
- completeness: literal("unknown"),
2089
- consistency: literal("snapshot-per-page"),
2090
- next_cursor: nullable(string()),
2091
- restart_required: boolean(),
2092
- output_limited: boolean(),
2093
- read_bytes: nullable(preparationCount),
2094
- issue: nullable(picklist(["not_found", "validation_error", "configuration_error"]))
2095
- }))
2096
- });
2097
- var preparationCommunications = strictObject({
2098
- coverage: communicationCoverage,
2099
- items: array(strictObject({
2100
- selection_id: preparationId,
2101
- ref: reference,
2102
- provider: preparationId,
2103
- account: preparationId,
2104
- title: nullable(string()),
2105
- url: nullable(string()),
2106
- text: string(),
2107
- at: isoTime,
2108
- updated_at: isoTime,
2109
- revision: nullable(pipe(number(), safeInteger(), minValue(1))),
2110
- time_kind: picklist(["sent", "source-modified", "stored-update"]),
2111
- text_truncated: boolean()
2112
- }))
2113
- });
2114
-
2115
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
2116
- var meetingPreparation = strictObject({
2117
- communications: optional(preparationCommunications),
2118
- schema_version: literal(1),
2119
- kind: literal("meeting_preparation"),
2120
- account_id: preparationId,
2121
- upcoming: preparationUpcoming,
2122
- series: nullable(strictObject({
2123
- id: preparationId,
2124
- external_id: preparationId,
2125
- title: nullable(string()),
2126
- event_series_id: nullable(preparationId),
2127
- updated_at: isoTime
2128
- })),
2129
- history_window: strictObject({ after: isoTime, before: isoTime }),
2130
- meetings: array(strictObject({
2131
- ref: reference,
2132
- meeting: preparationMeeting,
2133
- evidence: preparationEvidence,
2134
- context: preparationContext
2135
- })),
2136
- related: strictObject({
2137
- anchors: array(reference),
2138
- items: array(strictObject({
2139
- ref: reference,
2140
- meeting: preparationMeeting,
2141
- evidence: preparationEvidence,
2142
- shared_person: boolean(),
2143
- shared_project: boolean()
2144
- })),
2145
- has_more: boolean(),
2146
- output_limited: boolean(),
2147
- selection: literal("explicit-person-links/confirmed-project-links")
2148
- }),
2149
- knowledge: optional(strictObject({
2150
- anchors: array(reference),
2151
- items: array(strictObject({
2152
- ref: reference,
2153
- type: picklist(["fact", "statement", "question", "decision", "promise"]),
2154
- statement: string(),
2155
- subject: nullable(reference),
2156
- project: nullable(reference),
2157
- updated_at: isoTime,
2158
- shared_person: boolean(),
2159
- shared_project: boolean()
2160
- })),
2161
- selection: literal("accepted-global-person/project-facts"),
2162
- coverage: strictObject({
2163
- has_more: boolean(),
2164
- output_limited: boolean(),
2165
- fact_evidence: literal("not-revalidated"),
2166
- other_sources: picklist(["not-queried", "see-communications"])
2167
- })
2168
- })),
2169
- notes: optional(strictObject({
2170
- anchors: array(reference),
2171
- items: array(strictObject({
2172
- ref: reference,
2173
- title: nullable(string()),
2174
- text: string(),
2175
- revision: pipe(number(), safeInteger(), minValue(1)),
2176
- updated_at: isoTime,
2177
- person: nullable(reference),
2178
- project: nullable(reference),
2179
- meeting: optional(nullable(reference))
2180
- })),
2181
- selection: picklist([
2182
- "owner-written-global-person/project-notes",
2183
- "owner-written-meeting/person/project-notes"
2184
- ]),
2185
- coverage: strictObject({
2186
- has_more: boolean(),
2187
- output_limited: boolean(),
2188
- source_evidence: literal("not-revalidated"),
2189
- other_sources: picklist(["not-queried", "see-communications"])
2190
- })
2191
- })),
2192
- project_evidence: optional(strictObject({
2193
- project: string(),
2194
- query: string(),
2195
- pages: array(meetingProjectEvidence),
2196
- continuation: nullable(strictObject({
2197
- command: literal("meetings projects evidence"),
2198
- project: string(),
2199
- query: string(),
2200
- cursor: nullable(string()),
2201
- limit: preparationCount,
2202
- max_read_bytes: preparationCount
2203
- })),
2204
- coverage: strictObject({ page_limit: preparationCount, has_more: boolean(), output_limited: boolean() })
2205
- })),
2206
- limits: strictObject({ meetings: preparationCount, cues: preparationCount, context_limit: preparationCount, max_read_bytes: preparationCount, bytes: preparationCount }),
2207
- coverage: strictObject({
2208
- archive_completeness: literal("unknown"),
2209
- consistency: literal("live-reads"),
2210
- history_has_more: boolean(),
2211
- has_undated: boolean(),
2212
- skipped_unavailable: array(reference),
2213
- output_limited: boolean(),
2214
- context: literal("observed-participants/confirmed-projects/accepted-meeting-subject-facts/direct-source-tasks"),
2215
- fact_evidence: literal("not-revalidated"),
2216
- unqueried: array(picklist([
2217
- "person-history",
2218
- "project-wide-context",
2219
- "person-nonmeeting-context",
2220
- "project-nonmeeting-context",
2221
- "project-alias-candidates",
2222
- "other-person-nonmeeting-context",
2223
- "other-project-nonmeeting-context"
2224
- ]))
2225
- })
2226
- });
2227
-
2228
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
2229
- var count3 = pipe(number(), integer(), minValue(0));
2230
- var id3 = pipe(string(), minLength(1));
2231
- var text3 = string();
2232
- var meetingProjectCandidates = strictObject({
2233
- schema_version: literal(1),
2234
- kind: literal("meeting_project_candidates"),
2235
- source: strictObject({ provider: text3, account: text3, account_id: id3, ref: reference }),
2236
- input_fingerprint: id3,
2237
- vocabulary_fingerprint: id3,
2238
- association: literal("unconfirmed-literal-evidence"),
2239
- items: array(strictObject({
2240
- project: strictObject({ ref: reference, id: id3, name: text3, key: nullable(text3) }),
2241
- matches: array(strictObject({
2242
- term: strictObject({
2243
- name: text3,
2244
- kind: picklist(["canonical", "key", "alias"]),
2245
- alias_id: optional(id3)
2246
- }),
2247
- ambiguous: boolean(),
2248
- source: strictObject({
2249
- kind: picklist(["metadata-title", "transcript"]),
2250
- ref: reference,
2251
- fingerprint: nullable(id3),
2252
- revision: nullable(picklist(["current", "superseded"]))
2253
- })
2254
- })),
2255
- omitted_matches: count3
2256
- })),
2257
- limits: strictObject({ limit: count3, max_projects: count3, max_vocabulary_read_bytes: count3, bytes: count3 }),
2258
- coverage: strictObject({
2259
- selection: literal("explicit-host-evidence/global-project-vocabulary"),
2260
- source_evidence: literal("not-revalidated"),
2261
- association: literal("unconfirmed-literal-evidence"),
2262
- archive_completeness: literal("unknown"),
2263
- omitted_matches: count3,
2264
- candidates_total: count3,
2265
- has_more: boolean(),
2266
- output_limited: boolean(),
2267
- matching: literal("unicode-normalized-literal-word-boundaries")
2268
- }),
2269
- evidence: strictObject({
2270
- fingerprint: id3,
2271
- limits: strictObject({ cues: count3, bytes: count3, max_read_bytes: count3, max_transcript_pages: count3 }),
2272
- coverage: strictObject({
2273
- provided: count3,
2274
- included: count3,
2275
- omitted: nullable(count3),
2276
- provided_exact: boolean(),
2277
- next_cursor: nullable(reference),
2278
- next_transcript_id: nullable(id3),
2279
- next_reference: nullable(reference),
2280
- transcript_pages: count3,
2281
- skipped_unavailable: count3,
2282
- has_more: boolean(),
2283
- truncated_by: nullable(picklist(["cues", "bytes", "transcripts"])),
2284
- input: literal("bounded-meeting-pages"),
2285
- archive_completeness: literal("unknown")
2286
- }),
2287
- consistency: literal("live-reads"),
2288
- max_store_calls: literal(8)
2289
- })
2290
- });
2291
-
2292
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
2293
- var count4 = pipe(number(), integer(), minValue(0));
2294
- var id4 = pipe(string(), minLength(1), maxLength(1e3));
2295
- var meetingSeriesInventory = strictObject({
2296
- schema_version: literal(1),
2297
- kind: literal("meeting_series_inventory"),
2298
- scope: strictObject({ provider: id4, account: id4 }),
2299
- after: isoTime,
2300
- until: isoTime,
2301
- items: array(strictObject({
2302
- meeting_id: id4,
2303
- title: nullable(pipe(string(), maxLength(8192))),
2304
- kind: picklist(["single", "recurring", "unscheduled", "unknown"]),
2305
- scheduled_start_at: nullable(isoTime)
2306
- })),
2307
- page: pageSchema,
2308
- fingerprint: pipe(string(), minLength(1), maxLength(200)),
2309
- limits: strictObject({ limit: count4, max_read_bytes: count4, bytes: count4 }),
2310
- coverage: strictObject({
2311
- selection: picklist(["provider-window", "provider-inventory"]),
2312
- source_partial: boolean(),
2313
- has_more: boolean(),
2314
- undated: count4,
2315
- date_hints_outside_window: count4,
2316
- calendar_completeness: literal("unknown"),
2317
- occurrence_proof: literal("not-read"),
2318
- consistency: literal("live-provider-pages")
2319
- })
2320
- });
2321
-
2322
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
2323
- var text4 = string();
2324
- var id5 = pipe(number(), integer(), minValue(1));
2325
- var revision = picklist(["current", "superseded"]);
2326
- var meetingTaskProposal = strictObject({
2327
- id: text4,
2328
- source: reference,
2329
- source_kind: literal("meeting"),
2330
- group: reference,
2331
- account_id: id5,
2332
- kind: picklist(TASK_KINDS),
2333
- preview: nullable(text4),
2334
- revision: nullable(revision),
2335
- applied: literal(false),
2336
- persistence: literal("proposal-only")
2337
- });
2338
-
2339
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/memory.js
2340
- var memory = strictObject({
2341
- ref: reference,
2342
- id,
2343
- kind: picklist(MEMORY_KINDS),
2344
- text,
2345
- subject: nullable(reference),
2346
- /** What the subject is called; `null` for the owner and for a row with no name. */
2347
- subject_name: optional(nullable(text)),
2348
- subject_is_owner: optional(boolean()),
2349
- /** The project it belongs to, and what that project is called. */
2350
- project: optional(nullable(reference)),
2351
- project_name: optional(nullable(text)),
2352
- author,
2353
- model: nullable(text),
2354
- confidence: nullable(number()),
2355
- status: picklist(MEMORY_STATUSES),
2356
- scope: picklist(MEMORY_SCOPES),
2357
- supersedes: nullable(reference),
2358
- evidence: array(reference),
2359
- /** With `--sources`: each piece of evidence read back. */
2360
- sources: optional(array(evidenceSource)),
2361
- last_verified_at: nullable(time),
2362
- created_at: time,
2363
- updated_at: time
2364
- });
2365
-
2366
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/mention.js
2367
- var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
2368
- var status = picklist(["found", "linked", "dismissed"]);
2369
- var mention = strictObject({
2370
- id: count,
2371
- kind,
2372
- value: text,
2373
- domain: nullable(text),
2374
- confidence: number(),
2375
- status,
2376
- field: text,
2377
- author: nullable(text),
2378
- target: nullable(reference),
2379
- sent_at: time,
2380
- found_at: time,
2381
- written: text,
2382
- locator: reference
2383
- });
2384
- var mentionDetails = strictObject({
2385
- ...mention.entries,
2386
- before: text,
2387
- after: text,
2388
- same_value: count,
2389
- candidates: array(reference)
2390
- });
2391
- var mentionDomain = strictObject({ domain: text, links: count, chats: count, first_at: time, last_at: time });
2392
- var place = strictObject({ id: count, address: text, mentions: count });
2393
- var mentionDecision = strictObject({
2394
- kind,
2395
- value: text,
2396
- status,
2397
- target: nullable(reference),
2398
- mentions: count
2399
- });
2400
- var mentionRebuild = strictObject({
2401
- messages: count,
2402
- attachments: count,
2403
- documents: count,
2404
- notes: count,
2405
- emails: count,
2406
- mentions: count
2407
- });
2408
-
2409
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/message-change.js
2410
- var operated3 = { operation_id: id, chat_id: id };
2411
- var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
2412
- var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
2413
- var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
2414
-
2415
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/message-read.js
2416
- var messageTranscript = strictObject({
2417
- message_id: id,
2418
- text,
2419
- pending: boolean(),
2420
- via: text,
2421
- model: optional(text)
2422
- });
2423
- var conversationLink = strictObject({
2424
- parent_id: nullable(id),
2425
- source: picklist(["provider", "rule", "agent"]),
2426
- kind: text,
2427
- confidence: number(),
2428
- method: text,
2429
- version: nullable(text),
2430
- created_at: time,
2431
- stale: boolean(),
2432
- chosen: boolean()
2433
- });
2434
- var messageLinks = strictObject({
2435
- chat: id,
2436
- message: id,
2437
- links: array(conversationLink),
2438
- chain: array(id)
2439
- });
2440
- var fingerprint2 = pipe(text, regex(/^[a-f0-9]{64}$/));
2441
- var evidencePacket = strictObject({
2442
- schema_version: literal(1),
2443
- id,
2444
- kind: picklist(["chats", "news", "person"]),
2445
- source: strictObject({ provider: text, account: id, chat: id }),
2446
- fingerprint: fingerprint2,
2447
- limits: strictObject({ messages: count, bytes: count }),
2448
- content_bytes: count,
2449
- coverage: strictObject({
2450
- provided: count,
2451
- included: count,
2452
- omitted: count,
2453
- has_more: boolean(),
2454
- history: literal("unknown"),
2455
- truncated_by: nullable(picklist(["messages", "bytes"]))
2456
- }),
2457
- items: array(strictObject({
2458
- locator: reference,
2459
- fingerprint: fingerprint2,
2460
- timestamp: time,
2461
- edited_at: nullable(time),
2462
- sender_id: nullable(id),
2463
- sender_name: nullable(text),
2464
- sender_is_chat: boolean(),
2465
- outgoing: nullable(boolean()),
2466
- text,
2467
- reply_to: nullable(reference),
2468
- thread_id: nullable(id),
2469
- attachment_kinds: array(text)
2470
- }))
2471
- });
2472
-
2473
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/message-context.js
2474
- var messageThread = strictObject({
2475
- ref: reference,
2476
- chat: id,
2477
- message: id,
2478
- mode: picklist(["thread", "time"]),
2479
- fallback: optional(picklist(["not_built", "not_stored", "not_linked"])),
2480
- items: array(message),
2481
- links: array(strictObject({ ...conversationLink.entries, message_id: id })),
2482
- chain: array(id),
2483
- stale: boolean(),
2484
- built_at: nullable(time),
2485
- stopped: array(picklist(["hops", "messages", "bytes", "time", "links", "cycle", "aborted", "thread"])),
2486
- bounds: strictObject({ max_hops: count, max_messages: count, max_bytes: count, within_ms: count })
2487
- });
2488
- var messageContext = union([message, messageThread]);
2489
-
2490
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
2491
- var messageCounts = strictObject({
2492
- by: picklist(["chat", "sender", "day", "hour"]),
2493
- total: count,
2494
- rows: array(strictObject({
2495
- /** The chat or sender id, or the calendar day or hour. */
2496
- key: text,
2497
- ref: optional(reference),
2498
- name: nullable(text),
2499
- count
2500
- }))
2501
- });
2502
-
2503
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/message-link.js
2504
- var messageLink = strictObject({
2505
- ref: reference,
2506
- url: nullable(text),
2507
- access: picklist(["public", "restricted", "unknown", "unavailable"]),
2508
- /** Why there is no link. */
2509
- reason: nullable(picklist(["unsupported_chat", "unsupported_provider", "offline"])),
2510
- /** The message's files, each with its own link where the messenger gives one; absent when it has none. */
2511
- files: optional(array(strictObject({
2512
- position: count,
2513
- kind: text,
2514
- name: optional(text),
2515
- url: nullable(text),
2516
- reason: nullable(picklist(["unsupported_provider"]))
2517
- })))
2518
- });
2519
-
2520
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/message-write.js
2521
- var messageWrite = strictObject({
2522
- operation_id: id,
2523
- message,
2524
- /** An album's messages, in order; `message` is the first. Absent for a single message. */
2525
- messages: optional(array(message)),
2526
- scheduled_for: optional(time)
2527
- });
2528
- var draftWrite = strictObject({
2529
- operation_id: id,
2530
- chat_id: id,
2531
- saved: literal(true)
2532
- });
2533
- var messageSend = union([messageWrite, draftWrite]);
2534
-
2535
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/model.js
2536
- var model = strictObject({
2537
- id,
2538
- kind: picklist(["audio", "text", "image", "reranker"]),
2539
- title: text,
2540
- /** Which languages it reads, in words. */
2541
- languages: text,
2542
- licence: optional(text),
2543
- /** What its files take on disk once downloaded. */
2544
- size_bytes: count,
2545
- downloaded: boolean(),
2546
- /** The one used when no model is named. */
2547
- default: boolean(),
2548
- /** The folder its files are in once downloaded, so an agent can place them by hand. */
2549
- path: text
2550
- });
2551
-
2552
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/model-key.js
2553
- var source = picklist(["environment", "keyring", "file"]);
2554
- var modelKey = strictObject({
2555
- provider: text,
2556
- stored: optional(source),
2557
- removed: optional(array(source))
2558
- });
2559
- var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
2560
- var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
2561
-
2562
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
2563
- var versus = strictObject({ current: number(), previous: number() });
2564
- var person = { person_ref: reference, name: nullable(text) };
2565
- var graph = strictObject({
2566
- kind: text,
2567
- x: strictObject({ type: picklist(["date", "time", "number"]), values: array(union([text, number()])) }),
2568
- series: array(strictObject({ key: text, name: text, kind: text, values: array(number()) })),
2569
- stacked: optional(boolean()),
2570
- percentage: optional(boolean())
2571
- });
2572
- var officialStats = strictObject({
2573
- chat_id: id,
2574
- title: text,
2575
- kind: picklist(["group", "channel"]),
2576
- since: time,
2577
- until: time,
2578
- totals: record(string(), versus),
2579
- top: optional(strictObject({
2580
- posters: array(strictObject({ ...person, messages: count, average_chars: number() })),
2581
- admins: array(strictObject({ ...person, deleted: count, removed: count, banned: count })),
2582
- inviters: array(strictObject({ ...person, invited: count }))
2583
- })),
2584
- notifications: optional(strictObject({ enabled: count, total: count })),
2585
- recent_posts: optional(array(strictObject({
2586
- kind: picklist(["message", "story"]),
2587
- id,
2588
- views: count,
2589
- forwards: count,
2590
- reactions: count
2591
- }))),
2592
- /** A graph the messenger did not give is `{ error }`; the others still answer. */
2593
- graphs: record(string(), union([graph, strictObject({ error: text })]))
2594
- });
2595
-
2596
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/person.js
2597
- var person2 = strictObject({
2598
- ref: reference,
2599
- name: nullable(text),
2600
- identities: optional(array(identity))
2601
- });
2602
-
2603
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/poll.js
2604
- var poll = strictObject({
2605
- chat_id: id,
2606
- message_id: id,
2607
- question: text,
2608
- answers: array(strictObject({ id, text, voters: nullable(count), chosen: boolean() })),
2609
- closed: boolean(),
2610
- multiple: boolean(),
2611
- anonymous: boolean(),
2612
- voters: nullable(count),
2613
- quiz: optional(boolean()),
2614
- revote: optional(boolean()),
2615
- creator: optional(boolean())
2616
- });
2617
- var pollChange = strictObject({ operation_id: id, poll });
2618
-
2619
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
2620
- var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
2621
- var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
2622
-
2623
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/ranking.js
2624
- var figures = record(string(), number());
2625
- var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
2626
- var rankingRow = strictObject({
2627
- rank: count,
2628
- /** The message's locator, or the author's `contact:` reference. */
2629
- ref: reference,
2630
- /** The message or person id, as `stats * evidence` takes it. */
2631
- id,
2632
- chat_ref: optional(reference),
2633
- name: nullable(text),
2634
- /** A message's kind (`posts`, `comments`); null for authors. */
2635
- kind: nullable(text),
2636
- value: number(),
2637
- components: record(string(), nullable(number())),
2638
- messages: count,
2639
- known_reactions: count,
2640
- unknown_reactions: count,
2641
- reactions: optional(array(strictObject({ reaction: string(), count }))),
2642
- score: nullable(strictObject({ score: number(), normalized: figures, contributions: figures })),
2643
- quality: strictObject({
2644
- reactions: picklist(["known", "partial", "unknown"]),
2645
- graph: picklist(["complete", "partial", "not_used"]),
2646
- counter_freshness: freshness
2647
- }),
2648
- counters: optional(array(counterReading)),
2649
- selection
2650
- });
2651
- var ranking = strictObject({
2652
- target: picklist(["messages", "contacts"]),
2653
- measure: text,
2654
- order: picklist(["ascending", "descending"]),
2655
- preset: nullable(text),
2656
- weights: nullable(figures),
2657
- min_messages: count,
2658
- message_kind: text,
2659
- /** Messages the query selected. */
2660
- total: count,
2661
- population: count,
2662
- eligible: count,
2663
- excluded: strictObject({ minimum: count, missing: count, unknown_sender: count, unknown_kind: count }),
2664
- maxima: figures,
2665
- counter_freshness: freshness,
2666
- expanded_discussion_chats: optional(array(text)),
2667
- rows: array(rankingRow)
2668
- });
2669
-
2670
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/reaction.js
2671
- var reaction = strictObject({
2672
- person: strictObject({ id, name: nullable(text), username: nullable(text) }),
2673
- /** The emoji, or `custom:<id>` for a custom one. */
2674
- reaction: text,
2675
- reacted_at: time
2676
- });
2677
-
2678
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
2679
- var reactionChange = strictObject({
2680
- operation_id: id,
2681
- chat_id: id,
2682
- message_id: id,
2683
- reaction: nullable(text)
2684
- });
2685
-
2686
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/recipient.js
2687
- var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
2688
- var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
2689
- var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
2690
- var recipientOff = strictObject({ off: boolean(), was_on: boolean() });
2691
- var recipientChange = strictObject({
2692
- ...partial(recipientAdded).entries,
2693
- ...partial(recipientRemoved).entries,
2694
- ...partial(recipientOff).entries
2695
- });
2696
-
2697
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
2698
- var events = array(record(string(), unknown()));
2699
- var recordedRun = strictObject({
2700
- run_id: id,
2701
- command: text,
2702
- profile: optional(text),
2703
- started_at: time,
2704
- completed_at: optional(time),
2705
- status: picklist(["success", "failed", "partial", "running"]),
2706
- requests: optional(count),
2707
- duration_ms: optional(count),
2708
- cli_version: text,
2709
- runtime: optional(text),
2710
- platform: optional(text),
2711
- arch: optional(text),
2712
- error_code: optional(text),
2713
- partial: optional(strictObject({
2714
- failed: count,
2715
- stop_reason: optional(text),
2716
- failures: array(strictObject({ id: text, stage: text, error_code: text, attachment: optional(count) }))
2717
- })),
2718
- provider_error: optional(text),
2719
- kept_because_failed: optional(boolean()),
2720
- operations: optional(array(text)),
2721
- codes: optional(array(text)),
2722
- trace_id: optional(id),
2723
- cli_command: optional(text),
2724
- argv: optional(array(text)),
2725
- unknown_command: optional(text),
2726
- agent: optional(strictObject({
2727
- kind: text,
2728
- session_id: nullable(text),
2729
- from_chat: optional(literal(true)),
2730
- client: optional(strictObject({ name: text, version: optional(text), id: optional(text) }))
2731
- })),
2732
- via: optional(picklist(["cli", "mcp-stdio", "mcp-http", "desktop"])),
2733
- mcp: optional(strictObject({
2734
- tool: text,
2735
- request_id: optional(text),
2736
- connection_id: optional(text),
2737
- proxied: optional(literal(true))
2738
- })),
2739
- events_dropped: optional(count),
2740
- error: optional(strictObject({
2741
- class: text,
2742
- code: optional(text),
2743
- reason: optional(text),
2744
- message: optional(text),
2745
- operation: optional(text),
2746
- http: optional(strictObject({ method: optional(text), endpoint_template: optional(text), status: optional(count) })),
2747
- provider: optional(strictObject({ key: optional(text), code: optional(number()) })),
2748
- causes: optional(array(strictObject({ class: text, message: optional(text) }))),
2749
- stack: optional(array(text))
2750
- })),
2751
- directory: optional(text),
2752
- event_count: optional(count),
2753
- events: optional(events),
2754
- events_truncated: optional(boolean())
2755
- });
2756
- var runDetails = strictObject({
2757
- ...omit(recordedRun, ["events_truncated"]).entries,
2758
- directory: text,
2759
- event_count: count,
2760
- events
2761
- });
2762
- var runHit = strictObject({
2763
- ...omit(recordedRun, ["directory", "event_count"]).entries,
2764
- events,
2765
- events_truncated: boolean()
2766
- });
2767
- var runLocation = strictObject({ path: text });
2768
-
2769
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/relationship.js
2770
- var relationship = strictObject({
2771
- id,
2772
- from: reference,
2773
- to: reference,
2774
- kind: picklist(RELATION_KINDS),
2775
- role: nullable(text),
2776
- evidence: nullable(text),
2777
- /** An agent's suggestion stays unconfirmed, and `weak`, until the owner confirms it. */
2778
- confirmed: boolean(),
2779
- provenance: nullable(text),
2780
- confidence_category: picklist(["owner-confirmed", "weak"]),
2781
- created_at: time
2782
- });
2783
-
2784
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/retention.js
2785
- var retentionCohort = strictObject({
2786
- /** The first day of the joining day or week. */
2787
- cohort: text,
2788
- stays: count,
2789
- checkpoints: array(strictObject({
2790
- age_ms: milliseconds,
2791
- eligible: count,
2792
- observable: count,
2793
- present: count,
2794
- absent: count,
2795
- unknown: count,
2796
- pending: count,
2797
- rate: nullable(number())
2798
- })),
2799
- activity: strictObject({ observed: count, no_observed: count, pending: count, archive_covered: count }),
2800
- early_departure: strictObject({ observed: count, not_observed: count, unknown: count, pending: count }),
2801
- selection
2802
- });
2803
- var retention = strictObject({
2804
- chat_ref: reference,
2805
- cutoff: time,
2806
- since: time,
2807
- until: time,
2808
- checkpoints_ms: array(milliseconds),
2809
- within_ms: milliseconds,
2810
- by: picklist(["day", "week"]),
2811
- timezone: text,
2812
- /** Cohorts found; `rows` holds the first `--limit` of them. */
2813
- total: count,
2814
- unknown_join: count,
2815
- eligible_stays: count,
2816
- quality: strictObject({
2817
- membership: text,
2818
- tolerance_ms: milliseconds,
2819
- archive: nullable(strictObject({
2820
- state: text,
2821
- up_to_date: nullable(boolean()),
2822
- gaps: boolean(),
2823
- reaches_start: boolean(),
2824
- fetched_at: nullable(time)
2825
- })),
2826
- continuous_survival: boolean(),
2827
- group_silent_rate: nullable(number())
2828
- }),
2829
- rows: array(retentionCohort)
2830
- });
2831
-
2832
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
2833
- var savedSearch = strictObject({
2834
- id,
2835
- /** `null` for a run in the history. */
2836
- name: nullable(text),
2837
- command: picklist(["search", "stats", "message-top", "author-top", "admin-statistics", "meetings-search"]),
2838
- /** The query and the options it runs with, as the command took them. */
2839
- params: record(string(), unknown()),
2840
- language: text,
2841
- version: count,
2842
- fields_version: count,
2843
- created_at: time,
2844
- last_run_at: nullable(time),
2845
- runs: count
2846
- });
2847
- var searchHistoryClear = strictObject({ cleared: count });
2848
-
2849
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
2850
- var sendAttempt = strictObject({
2851
- at: time,
2852
- profile: text,
2853
- chat_id: nullable(id),
2854
- outcome: picklist(["sent", "outcome_unknown", "refused", "failed", "reserved"]),
2855
- kind: optional(picklist(["message", "reaction", "edit", "forward", "pin", "read", "delete", "chat", "account"])),
2856
- action: optional(text),
2857
- people: optional(count),
2858
- message_id: optional(id),
2859
- key: optional(text),
2860
- count: optional(count),
2861
- for_everyone: optional(boolean()),
2862
- operation_id: optional(id),
2863
- parent_operation_id: optional(id),
2864
- reply_to: optional(id),
2865
- thread_id: optional(id),
2866
- send_as: optional(id),
2867
- result_chat_id: optional(id),
2868
- length: optional(count),
2869
- attachments: optional(array(strictObject({ kind: picklist(["photo", "file", "video", "voice", "sticker"]), bytes: count }))),
2870
- scheduled_for: optional(time),
2871
- notify: optional(boolean()),
2872
- origin: optional(text),
2873
- reservation: optional(id),
2874
- error_code: optional(text)
2875
- });
2876
-
2877
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
2878
- var absent = strictObject({ path: text, exists: literal(false) });
2879
- var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
2880
- var infoSchema = strictObject({
2881
- ...schema.entries,
2882
- reason: picklist(["missing", "older", "current", "newer", "too_new"]),
2883
- upgrade: nullable(strictObject({ version: count, min_compatible: count }))
2884
- });
2885
- var client = strictObject({ command: text, version: text, core: text, speaks: count, seen_at: time });
2886
- var wordIndex = strictObject({
2887
- watermark: count,
2888
- filled_through: count,
2889
- pending_normalization: count,
2890
- ready: boolean(),
2891
- terms_through: count,
2892
- newest: count,
2893
- terms_ready: boolean(),
2894
- built_at: nullable(time)
2895
- });
2896
- var stemIndex = strictObject({
2897
- watermark: count,
2898
- filled_through: count,
2899
- pending: count,
2900
- built: nullable(text),
2901
- wanted: text,
2902
- ready: boolean(),
2903
- cause: optional(picklist(["building", "stemmer_changed", "stemmer_unknown"])),
2904
- built_at: nullable(time)
2905
- });
2906
- var readFailure = { path: text, exists: literal(true), opens: literal(false), error: text };
2907
- var rows = partial(strictObject({
2908
- accounts: count,
2909
- chats: count,
2910
- messages: count,
2911
- emails: count,
2912
- documents: count,
2913
- meetings: count,
2914
- events: count,
2915
- attachments: count,
2916
- identities: count
2917
- }));
2918
- var perAccount = { chats: count, messages: count, emails: count, documents: count, meetings: count };
2919
- var contents = {
2920
- by_provider: optional(array(strictObject({ provider: text, accounts: count, ...perAccount }))),
2921
- by_chat_kind: optional(array(strictObject({ provider: text, kind: text, chats: count, messages: count }))),
2922
- /** `name` is the one `account list` shows; the messenger's own id for the account is left out. */
2923
- by_account: optional(array(strictObject({ provider: text, account_id: count, name: nullable(text), ...perAccount }))),
2924
- /** Calendar years in UTC. */
2925
- by_year: optional(array(strictObject({ provider: text, year: count, messages: count }))),
2926
- /** `type` is what the file is attached to: a message, an email, a document… `bytes` counts the sizes known. */
2927
- by_attachment_kind: optional(array(strictObject({ type: text, kind: text, count, bytes: count })))
2928
- };
2929
- var storeInfo = union([
2930
- strictObject({ ...absent.entries, schema: infoSchema }),
2931
- strictObject({ ...readFailure, schema: strictObject({ speaks: count }) }),
2932
- strictObject({
2933
- path: text,
2934
- exists: literal(true),
2935
- bytes: strictObject({ file: count, wal: count }),
2936
- journal_mode: text,
2937
- /** `free` pages hold nothing; a `VACUUM` would give them back. */
2938
- pages: strictObject({ size: count, count, free: count }),
2939
- migrations: array(strictObject({ version: count, min_compatible: count, applied_at: time })),
2940
- /** From the marker a backup job leaves in `backups/last.json` beside the store; null without one. */
2941
- backup: nullable(strictObject({ at: time, file: nullable(text), checked: nullable(text) })),
2942
- schema: infoSchema,
2943
- clients: array(client),
2944
- rows,
2945
- pending_normalization: nullable(count),
2946
- word_index: nullable(wordIndex),
2947
- stem_index: nullable(stemIndex),
2948
- ...contents
2949
- })
2950
- ]);
2951
- var storeCheck = union([
2952
- strictObject({ ...absent.entries, ok: literal(true) }),
2953
- strictObject({ ...readFailure, ok: literal(false) }),
2954
- strictObject({
2955
- path: text,
2956
- exists: literal(true),
2957
- opens: literal(true),
2958
- ok: boolean(),
2959
- checks: strictObject({
2960
- schema: boolean(),
2961
- integrity: boolean(),
2962
- foreign_keys: boolean(),
2963
- search_indexes: boolean(),
2964
- vector_indexes: boolean(),
2965
- disk: boolean()
2966
- }),
2967
- schema,
2968
- integrity: array(text),
2969
- foreign_key_violations: count,
2970
- search_indexes: record(text, text),
2971
- disk: strictObject({ free: count, needed: count }),
2972
- pending_normalization: nullable(count),
2973
- word_index: nullable(wordIndex),
2974
- stem_index: nullable(stemIndex),
2975
- chats_behind: array(strictObject({
2976
- provider: text,
2977
- account: text,
2978
- chat: text,
2979
- title: nullable(text),
2980
- newest: time,
2981
- held: nullable(time),
2982
- refreshed: time
2983
- })),
2984
- orphan_pointers: array(strictObject({ table: text, pointer: text, type: text, count, known: boolean() })),
2985
- conversations: array(strictObject({
2986
- provider: text,
2987
- account: text,
2988
- chat: text,
2989
- title: nullable(text),
2990
- built_at: nullable(time),
2991
- rules_version: nullable(count),
2992
- current: boolean(),
2993
- stale_agent_links: count
2994
- })),
2995
- vectors: nullable(strictObject({ models: record(text, count), unused: count })),
2996
- vector_indexes: array(strictObject({
2997
- model: text,
2998
- dims: count,
2999
- ready: boolean(),
3000
- indexed: count,
3001
- expected: count,
3002
- missing: count,
3003
- extra: count
3004
- }))
3005
- })
3006
- ]);
3007
- var indexed = { normalized: count, indexed: count, terms: count, stemmed: count, notes_indexed: count };
3008
- var storeMigration = union([
3009
- absent,
3010
- strictObject({ path: text, exists: literal(true), from: count, to: count, ...indexed })
3011
- ]);
3012
- var storeReindex = union([
3013
- absent,
3014
- strictObject({
3015
- path: text,
3016
- exists: literal(true),
3017
- ...indexed,
3018
- file_texts: count,
3019
- involvements: count,
3020
- unused_vectors_dropped: count
3021
- })
3022
- ]);
3023
- var storeBackup = strictObject({
3024
- path: text,
3025
- from: text,
3026
- bytes: count,
3027
- schema: count,
3028
- rows: strictObject({ chats: count, messages: count }),
3029
- encrypted: optional(literal(true))
3030
- });
3031
- var storeDecrypt = strictObject({ path: text, from: text, bytes: count });
3032
- var storeRestore = strictObject({
3033
- path: text,
3034
- restored_from: text,
3035
- kept_at: nullable(text),
3036
- schema: count
3037
- });
3038
- var storeReset = union([
3039
- strictObject({ ...absent.entries, reset: literal(false) }),
3040
- strictObject({
3041
- path: text,
3042
- exists: literal(true),
3043
- reset: literal(false),
3044
- dry_run: literal(true),
3045
- files: array(text),
3046
- bytes: count,
3047
- schema: count,
3048
- tables: array(strictObject({ name: text, rows: count })),
3049
- backup_first: boolean(),
3050
- in_use: nullable(boolean())
3051
- }),
3052
- strictObject({
3053
- path: text,
3054
- exists: literal(true),
3055
- reset: literal(true),
3056
- backup: nullable(text),
3057
- backed_up: nullable(strictObject({ schema: count, rows: partial(strictObject({ chats: count, messages: count })) })),
3058
- schema: count
3059
- })
3060
- ]);
3061
- var storeRepair = union([
3062
- absent,
3063
- strictObject({
3064
- path: text,
3065
- dry_run: boolean(),
3066
- repaired: array(strictObject({
3067
- table: text,
3068
- action: picklist(["created", "columns-added", "rebuilt"]),
3069
- columns_added: optional(array(text)),
3070
- copy: optional(text),
3071
- rows_in_copy: optional(count),
3072
- rows_copied: optional(count),
3073
- only_in_copy: optional(array(text)),
3074
- dropped_from_copy: optional(array(text))
3075
- })),
3076
- indexes_created: array(text),
3077
- triggers_created: array(text),
3078
- mismatches: array(strictObject({ table: text, what: text })),
3079
- foreign_key_violations: array(strictObject({ table: text, rows: count })),
3080
- copies: array(strictObject({ name: text, rows: count }))
3081
- })
3082
- ]);
3083
- var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
3084
-
3085
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
3086
- var tagTarget = variant("type", [
3087
- strictObject({ type: literal("chat"), chat_id: id }),
3088
- strictObject({ type: literal("contact"), person_id: id }),
3089
- strictObject({ type: literal("message"), chat_id: id, message_id: id, locator: reference }),
3090
- strictObject({ type: literal("task"), task_id: id })
3091
- ]);
3092
- var receipt = { target: tagTarget, unchanged: array(text) };
3093
- var tagChange = union([
3094
- strictObject({ ...receipt, added: array(text) }),
3095
- strictObject({ ...receipt, removed: array(text) })
3096
- ]);
3097
- var automaticTags = strictObject({
3098
- items: array(union([
3099
- strictObject({
3100
- chat_id: id,
3101
- tags: array(strictObject({
3102
- tag: text,
3103
- score: number(),
3104
- fields: array(picklist(["title", "username", "description"]))
3105
- })),
3106
- algorithm: text,
3107
- fetched_at: nullable(time),
3108
- source: picklist(["metadata", "stored-chat"])
3109
- }),
3110
- strictObject({ chat_id: id, error: strictObject({ code: text, message: text }) })
3111
- ])),
3112
- has_more: boolean(),
3113
- dry_run: boolean()
3114
- });
3115
-
3116
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
3117
- var side = strictObject({ ref: reference, key: text, title: text, status: text });
3118
- var taskPair = strictObject({
3119
- task: nullable(side),
3120
- source: nullable(reference),
3121
- other: side,
3122
- score: number(),
3123
- band: picklist(["likely", "maybe", "different"]),
3124
- levels: strictObject({
3125
- text: picklist(["high", "middle", "low"]),
3126
- person: picklist(["same", "different", "unknown"]),
3127
- amount: picklist(["equal", "different", "missing"]),
3128
- category: picklist(["same", "different", "unknown"]),
3129
- due: picklist(["near", "far", "missing"]),
3130
- reply: picklist(["yes", "no"]),
3131
- time: picklist(["near", "weeks", "far"])
3132
- }),
3133
- reasons: array(text),
3134
- decision: picklist(["review", "unsure", "merged", "rejected", "unmerged", "attached", "new"]),
3135
- decided_at: nullable(time),
3136
- created_at: time
3137
- });
3138
-
3139
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/task-results.js
3140
- var nullableTime = nullable(time);
3141
- var link = strictObject({
3142
- id,
3143
- from: reference,
3144
- to: nullable(reference),
3145
- kind: picklist(LINK_KINDS),
3146
- anchor: nullable(text),
3147
- origin: picklist(LINK_SOURCES),
3148
- target_text: nullable(text),
3149
- role: nullable(text),
3150
- evidence: nullable(text),
3151
- provenance: nullable(text),
3152
- confirmed: boolean(),
3153
- created_at: time
3154
- });
3155
- var taskCard = strictObject({
3156
- id,
3157
- ref: reference,
3158
- key: text,
3159
- project: reference,
3160
- project_key: text,
3161
- project_name: text,
3162
- created_by: nullable(strictObject({ type: picklist(["person", "bot"]), id, name: nullable(text), owner: boolean() })),
3163
- title: text,
3164
- description: nullable(text),
3165
- type: picklist(TASK_TYPES),
3166
- status: picklist(TASK_STATES),
3167
- priority: nullable(number()),
3168
- priority_label: nullable(picklist(PRIORITY_LABELS)),
3169
- agent: nullable(text),
3170
- revision: number(),
3171
- parent: nullable(reference),
3172
- source: nullable(text),
3173
- due_at: nullableTime,
3174
- next_check_at: nullableTime,
3175
- closed_at: nullableTime,
3176
- reason: nullable(text),
3177
- verdict: nullable(picklist(TASK_VERDICTS)),
3178
- category: nullable(text),
3179
- claimed_by: nullable(text),
3180
- claimed_until: nullableTime,
3181
- close_certainty: nullable(number()),
3182
- close_suggestion: nullable(closeSuggestion),
3183
- assignments: array(strictObject({ to: reference, role: picklist(["assignee", "reviewer", "watcher"]) })),
3184
- created_at: time,
3185
- updated_at: time,
3186
- links: array(link),
3187
- linked_from: array(link)
3188
- });
3189
- var taskView = strictObject({
3190
- id,
3191
- source: text,
3192
- source_kind: text,
3193
- account: text,
3194
- group: text,
3195
- kind: picklist(TASK_KINDS),
3196
- state: picklist(TASK_STATES),
3197
- reason: optional(text),
3198
- origin: picklist(TASK_ORIGINS),
3199
- created_at: time,
3200
- due_at: optional(time),
3201
- closed_at: optional(time),
3202
- closed_by: optional(picklist(TASK_ORIGINS)),
3203
- key: optional(text),
3204
- category: optional(text),
3205
- claimed_by: optional(text),
3206
- claimed_until: optional(time),
3207
- message: nullable(strictObject({ sender_name: nullable(text), text, timestamp: time })),
3208
- note: optional(nullable(strictObject({ id, title: nullable(text), text, updated_at: time })))
3209
- });
3210
- var taskCreated = strictObject({
3211
- ...taskView.entries,
3212
- created: boolean(),
3213
- attached: optional(literal(true)),
3214
- review: optional(count),
3215
- follow_up_of: optional(taskPair.entries.other),
3216
- card: optional(taskCard)
3217
- });
3218
- var taskClosed = strictObject({
3219
- ...taskView.entries,
3220
- close_certainty: nullable(number()),
3221
- close_suggestion: nullable(closeSuggestion)
3222
- });
3223
- var taskLinks = union([
3224
- strictObject({ ...taskCard.entries, review: optional(count) }),
3225
- strictObject({
3226
- relations: array(strictObject({
3227
- id,
3228
- from: reference,
3229
- to: reference,
3230
- kind: picklist(["blocked-by", "follow-up-of", "related-to", "duplicate-of", "discovered-from"])
3231
- }))
3232
- })
3233
- ]);
3234
- var taskSimilar = strictObject({
3235
- ref: reference,
3236
- key: text,
3237
- title: text,
3238
- status: text,
3239
- created_at: time,
3240
- found_by: array(picklist(["text", "person", "category", "reply"])),
3241
- score: number(),
3242
- band: taskPair.entries.band,
3243
- levels: taskPair.entries.levels,
3244
- reasons: array(text),
3245
- text: strictObject({ shared_stems: count, all_stems: count, stems: number(), trigrams: number() })
3246
- });
3247
- var taskMerge = strictObject({ pair: taskPair, linked: count, review: count, task: taskCard });
3248
- var taskUnmerge = strictObject({ pair: taskPair, task: taskCard });
3249
- var taskCategories = strictObject({
3250
- categories: array(strictObject({
3251
- name: text,
3252
- meaning: text,
3253
- triggers: strictObject({ en: array(text), ru: array(text), es: array(text) })
3254
- })),
3255
- unlisted: array(strictObject({ name: text, open: count, total: count })),
3256
- file: nullable(text)
3257
- });
3258
- var taskScan = strictObject({
3259
- chat: text,
3260
- messages: count,
3261
- added: count,
3262
- closed: count,
3263
- review: count,
3264
- held: optional(count),
3265
- held_chats: optional(count),
3266
- tasks: array(strictObject({ source: text, kind: picklist(TASK_KINDS), category: nullable(text) }))
3267
- });
3268
-
3269
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/topic.js
3270
- var topic = strictObject({
3271
- id,
3272
- title: text,
3273
- closed: boolean(),
3274
- pinned: boolean(),
3275
- /** The General topic only, where the messenger says. */
3276
- hidden: optional(boolean()),
3277
- unread_count: nullable(count),
3278
- last_message_at: nullable(time),
3279
- created_at: nullable(time),
3280
- untrusted
3281
- });
3282
-
3283
- // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/index.js
3284
- var ENTITIES = {
3285
- sync_progress: progress,
3286
- ...MEETING_RESULT_ENTITIES,
3287
- message,
3288
- message_context: messageContext,
3289
- message_download: messageDownload,
3290
- message_sync: messageSync,
3291
- "message.hit": strictObject({
3292
- ...pick(message, [
3293
- "ref",
3294
- "chat_title",
3295
- "timestamp",
3296
- "sender_name",
3297
- "sender_is_me",
3298
- "excerpt",
3299
- "matched_in",
3300
- "score",
3301
- "match",
3302
- "corrections",
3303
- "found_in",
3304
- "discovery",
3305
- "context",
3306
- "follow_ups",
3307
- "email"
3308
- ]).entries,
3309
- /** The files the message carries; absent when it has none. */
3310
- attachments: optional(array(hitFile)),
3311
- untrusted
3312
- }),
3313
- "message.summary": pick(message, [
3314
- "ref",
3315
- "chat_id",
3316
- "chat_title",
3317
- "timestamp",
3318
- "sender_name",
3319
- "sender_is_me",
3320
- "outgoing",
3321
- "text",
3322
- "transcript",
3323
- "attachments"
3324
- ]),
3325
- message_link: messageLink,
3326
- message_write: messageWrite,
3327
- message_send: messageSend,
3328
- message_pin: messagePin,
3329
- message_star: messageStar,
3330
- message_deletion: messageDeletion,
3331
- message_transcript: messageTranscript,
3332
- message_links: messageLinks,
3333
- evidence_packet: evidencePacket,
3334
- chat_metadata: cachedChatMetadata,
3335
- chat_metadata_refresh: chatMetadataRefresh,
3336
- chat,
3337
- mention,
3338
- "mention.details": mentionDetails,
3339
- mention_domain: mentionDomain,
3340
- mention_decision: mentionDecision,
3341
- mention_rebuild: mentionRebuild,
3342
- place,
3343
- person: person2,
3344
- identity,
3345
- contact_context: contactContext,
3346
- contact_preparation: contactPreparation,
3347
- contact_activity: contactActivity,
3348
- contact_check: contactCheck,
3349
- linked_person: linkedPerson,
3350
- contact,
3351
- contact_note: contactNote,
3352
- contact_lookup: contactLookup,
3353
- contact_sync: contactSync,
3354
- contact_update: contactUpdate,
3355
- contact_state_change: contactStateChange,
3356
- contact_import: contactImport,
3357
- contact_alias: contactAlias,
3358
- contact_note_removal: contactNoteRemoval,
3359
- account,
3360
- account_session: accountSession,
3361
- account_change: accountChange,
3362
- ended_account_sessions: endedAccountSessions,
3363
- account_privacy: accountPrivacy,
3364
- account_privacy_change: accountPrivacyChange,
3365
- account_profile: accountProfile,
3366
- organization,
3367
- project,
3368
- reminder,
3369
- bot_profile: botProfile,
3370
- bot_template: botTemplate,
3371
- bot_seen_chat: botSeenChat,
3372
- bot_admin: botAdmin,
3373
- bot_menu_entry: botMenuEntry,
3374
- topic_icon: topicIcon,
3375
- bot_webhook: botWebhook,
3376
- scheduled_job: scheduledJob,
3377
- call_record: callRecord,
3378
- sticker_inventory: stickerInventory,
3379
- note,
3380
- "note.hit": strictObject({
3381
- ...pick(note, [
3382
- "kind",
3383
- "provider",
3384
- "account",
3385
- "url",
3386
- "ref",
3387
- "source",
3388
- "folder_id",
3389
- "path",
3390
- "title",
3391
- "updated_at",
3392
- "excerpt",
3393
- "found_by",
3394
- "links"
3395
- ]).entries,
3396
- untrusted
3397
- }),
3398
- hit,
3399
- document,
3400
- document_link: documentLink,
3401
- image_embedding: imageEmbedding,
3402
- attachment,
3403
- attachment_bytes: attachmentBytes,
3404
- attachment_extraction: attachmentExtraction,
3405
- attachment_text_change: attachmentTextChange,
3406
- media_archive: mediaArchive,
3407
- media_archive_check: mediaArchiveCheck,
3408
- media_archive_move: mediaArchiveMove,
3409
- media_archive_timer: mediaArchiveTimer,
3410
- task,
3411
- task_pair: taskPair,
3412
- task_card: taskCard,
3413
- task_created: taskCreated,
3414
- task_closed: taskClosed,
3415
- task_links: taskLinks,
3416
- task_similar: taskSimilar,
3417
- task_merge: taskMerge,
3418
- task_unmerge: taskUnmerge,
3419
- task_categories: taskCategories,
3420
- task_scan: taskScan,
3421
- fact,
3422
- memory,
3423
- meeting,
3424
- meeting_details: meetingDetails,
3425
- meeting_hit: meetingHit,
3426
- meeting_series_inventory: meetingSeriesInventory,
3427
- meeting_project_candidates: meetingProjectCandidates,
3428
- meeting_project_evidence: meetingProjectEvidence,
3429
- meeting_preparation: meetingPreparation,
3430
- meeting_findings: meetingFindings,
3431
- meeting_transcript: meetingTranscript,
3432
- meeting_summary: meetingSummary,
3433
- meeting_evidence: meetingEvidence,
3434
- meeting_person_context: meetingPersonContext,
3435
- event,
3436
- meeting_review: meetingReview,
3437
- meeting_link: meetingLink,
3438
- meeting_stats: meetingStats,
3439
- meeting_speaker: meetingSpeaker,
3440
- meeting_participants: meetingParticipants,
3441
- meeting_passage: meetingPassage,
3442
- meeting_task_proposal: meetingTaskProposal,
3443
- reference,
3444
- relationship,
3445
- recipient,
3446
- recipient_change: recipientChange,
3447
- "recipient_change.added": recipientAdded,
3448
- "recipient_change.removed": recipientRemoved,
3449
- "recipient_change.off": recipientOff,
3450
- run: recordedRun,
3451
- "run.details": runDetails,
3452
- "run.hit": runHit,
3453
- run_location: runLocation,
3454
- tag_change: tagChange,
3455
- automatic_tags: automaticTags,
3456
- send_attempt: sendAttempt,
3457
- tagging,
3458
- "conversation.details": conversationDetails,
3459
- conversation_build: conversationBuildResult,
3460
- conversation_batch_status: conversationBatchStatus,
3461
- conversation_batch: conversationBatch,
3462
- conversation_change: conversationChange,
3463
- conversation_readiness: conversationReadiness,
3464
- conversation_embedding: conversationEmbedding,
3465
- conversation_embedding_status: conversationEmbeddingStatus,
3466
- conversation_preparation: conversationPreparation,
3467
- conversation_hit: conversationHit,
3468
- conversation,
3469
- saved_search: savedSearch,
3470
- search_history_clear: searchHistoryClear,
3471
- watch_item: watchItem,
3472
- serve_summary: serveSummary,
3473
- job,
3474
- store_chat_status: storeChatStatus,
3475
- store_clear: storeClear,
3476
- store_export: storeExport,
3477
- store_gap_plan: storeGapPlan,
3478
- store_gap_repair: storeGapRepair,
3479
- store_job_details: storeJobDetails,
3480
- store_job_cancel: storeJobCancel,
3481
- store_job_retry: storeJobRetry,
3482
- store_job_clear: storeJobClear,
3483
- store_info: storeInfo,
3484
- store_check: storeCheck,
3485
- store_migration: storeMigration,
3486
- store_reindex: storeReindex,
3487
- store_backup: storeBackup,
3488
- store_decrypt: storeDecrypt,
3489
- store_restore: storeRestore,
3490
- store_reset: storeReset,
3491
- store_repair: storeRepair,
3492
- store_copy_removal: storeCopyRemoval,
3493
- store_table: storeTable,
3494
- agenda,
3495
- model,
3496
- chat_group_change: chatGroupChange,
3497
- chat_inspection: chatInspection,
3498
- chat_sender: chatSender,
3499
- chat_read: chatRead,
3500
- chat_members_fetch: chatMembersFetch,
3501
- chat_members_change: chatMembersChange,
3502
- chat_invite: chatInvite,
3503
- chat_invite_change: chatInviteChange,
3504
- chat_request_change: chatRequestChange,
3505
- chat_admin_change: chatAdminChange,
3506
- chat_folder_change: chatFolderChange,
3507
- chat_folder_removal: chatFolderRemoval,
3508
- chat_folder_order: chatFolderOrder,
3509
- chat_rules: chatRules,
3510
- chat_moderation: chatModeration,
3511
- model_key: modelKey,
3512
- "model_key.stored": storedModelKey,
3513
- "model_key.removed": removedModelKey,
3514
- chat_event: chatEvent,
3515
- chat_removal: chatRemoval,
3516
- chat_muting: chatMuting,
3517
- chat_archive: chatArchive,
3518
- chat_pin: chatPin,
3519
- chat_unread: chatUnread,
3520
- invite_link: inviteLink,
3521
- join_request: joinRequest,
3522
- member,
3523
- poll,
3524
- poll_change: pollChange,
3525
- poll_vote: pollVote,
3526
- reaction,
3527
- reaction_change: reactionChange,
3528
- topic,
3529
- folder,
3530
- message_counts: messageCounts,
3531
- ranking,
3532
- admin_report: adminReport,
3533
- analysis_consent: analysisConsent,
3534
- analysis_consent_revocation: analysisConsentRevocation,
3535
- retention,
3536
- evidence,
3537
- counters,
3538
- counter_refresh: counterRefresh,
3539
- official_stats: officialStats,
3540
- chart,
3541
- chat_stats: chatStats,
3542
- tracked_chat: trackedChat,
3543
- tracked_chat_history: trackedChatHistory,
3544
- chat_tracking: chatTracking,
3545
- task_stats: taskStats
3546
- };
3547
- var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.entries(ENTITIES).map(([name, schema2]) => {
3548
- const { $schema: _, ...definition } = jsonSchemaOf(schema2);
3549
- return [name, definition];
3550
- })), "entityDefinitions");
3551
-
3552
- export {
3553
- accountSession,
3554
- accountProfile,
3555
- analysisConsent,
3556
- member,
3557
- chat,
3558
- folder,
3559
- inviteLink,
3560
- chatEvent,
3561
- contact,
3562
- message,
3563
- contactNote,
3564
- documentLink,
3565
- spawnDetached,
3566
- jobsDir,
3567
- saveJob,
3568
- readJob,
3569
- tracedJob,
3570
- jobStarted,
3571
- finishJob,
3572
- updateJob,
3573
- removeJob,
3574
- listJobs,
3575
- jobDetails,
3576
- jobItem,
3577
- stateOf,
3578
- startArchiveJob,
3579
- job,
3580
- joinRequest,
3581
- botProfile,
3582
- botSeenChat,
3583
- botAdmin,
3584
- botMenuEntry,
3585
- topicIcon,
3586
- botWebhook,
3587
- scheduledJob,
3588
- callRecord,
3589
- stickerInventory,
3590
- pollVote,
3591
- meetingPreparation,
3592
- meetingProjectCandidates,
3593
- meetingSeriesInventory,
3594
- model,
3595
- reaction,
3596
- recipient,
3597
- recordedRun,
3598
- savedSearch,
3599
- sendAttempt,
3600
- topic,
3601
- ENTITIES,
3602
- entityDefinitions
3603
- };