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