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