@wirecat/cli-core 3.1.0-dev → 3.2.0-dev

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 (351) hide show
  1. package/CHANGELOG.md +102 -0
  2. package/dist/background/daily-archive-timer.d.ts +1 -1
  3. package/dist/bundle/{agent-RMLBQXJF-CuqJBQqf.js → agent-J75WGZEV-K_l-bQ-h.js} +5 -5
  4. package/dist/bundle/{all-profiles-3GEKS7PR-Bi_zb5_-.js → all-profiles-3GEKS7PR-BohqgNvP.js} +6 -6
  5. package/dist/bundle/{anthropic-EVM6I7MZ-BWI01JgC.js → anthropic-EVM6I7MZ-CqB3j7dB.js} +2 -2
  6. package/dist/bundle/{app-server-76XGUZHU-__6SrMhc.js → app-server-5BL62GAL-Osw_tMej.js} +20 -15
  7. package/dist/bundle/{bun-AWMVU72K-COHrAYHA.js → bun-AWMVU72K-Bk0oN5Sm.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-CYFVVXXR-r_kJOwku.js → bun-sqlite-CYFVVXXR-4iGlaI9X.js} +3 -3
  9. package/dist/bundle/{chunk-4ZM6SE7G-DNDxhi8l.js → chunk-4HGRFFTO-fNvELOjI.js} +330 -56
  10. package/dist/bundle/{chunk-6G6TIMKP-CoVYG_I3.js → chunk-6G6TIMKP-Byea1UGV.js} +4 -4
  11. package/dist/bundle/{chunk-M5CHOMME-BIcASmVb.js → chunk-6OLVBOBX-Ch2rblZk.js} +17 -11
  12. package/dist/bundle/{chunk-CCFBHR4O-DAuKd8rI.js → chunk-CCFBHR4O-Bhxq5eaI.js} +1 -1
  13. package/dist/bundle/{chunk-DDXCCEI4-CHLrblc1.js → chunk-DDXCCEI4-CBg_l4Ro.js} +2 -2
  14. package/dist/bundle/{chunk-DZPIGAKP-nrRAPNTz.js → chunk-DZPIGAKP-BZy6DShN.js} +1 -1
  15. package/dist/bundle/{chunk-ERNCGLKE-4JdU74o6.js → chunk-ERNCGLKE-D3HStkJC.js} +1 -1
  16. package/dist/bundle/{chunk-GBNNGOIB-DVUFOYzA.js → chunk-GBNNGOIB-DS3rusdH.js} +5 -5
  17. package/dist/bundle/{chunk-GJTANPFI-5L6Owk-H.js → chunk-GJTANPFI-DlUMnFUQ.js} +3 -3
  18. package/dist/bundle/{chunk-6ZUQA7OL-ofpF0AvH.js → chunk-GRGGW52W-Fkw6omOx.js} +5 -5
  19. package/dist/bundle/{chunk-KSUALCA7-DB6cYuSU.js → chunk-KSUALCA7-SMNQ85c6.js} +1 -1
  20. package/dist/bundle/{chunk-LBVI4Z2X-COUoJmWU.js → chunk-LBVI4Z2X-D9_8iC1S.js} +1 -1
  21. package/dist/bundle/{chunk-M23BPYSL-ChiHsEsy.js → chunk-M23BPYSL-ByTcRixP.js} +3 -3
  22. package/dist/bundle/{chunk-Z3ZVBBWR-whNBW-iH.js → chunk-M4KMNZN6-CBeUwDlF.js} +2 -2
  23. package/dist/bundle/{chunk-NG7F5L7N-BKCEXGxy.js → chunk-NG7F5L7N-Ch_ERSNz.js} +1 -1
  24. package/dist/bundle/{chunk-NX2VS2ER-DS6Urg3e.js → chunk-NX2VS2ER-CWN0zXqZ.js} +1 -1
  25. package/dist/bundle/{chunk-O2HOOK7X-Dboq6vxP.js → chunk-O2HOOK7X-Dyw_Dcql.js} +4 -4
  26. package/dist/bundle/{chunk-PSD6373C-wlicX185.js → chunk-PSD6373C-DgL0rhKe.js} +1 -1
  27. package/dist/bundle/{chunk-RTCT4N7Y-Dn-lP1zF.js → chunk-RTCT4N7Y-BEZ3cJ5d.js} +1 -1
  28. package/dist/bundle/{chunk-S34BE7ZC-p6NeYmqQ.js → chunk-S34BE7ZC-BO0yaVoX.js} +1 -1
  29. package/dist/bundle/{chunk-E6KETVFF-wOOXf4op.js → chunk-SRAGL5LI-CKhhwRrx.js} +5 -5
  30. package/dist/bundle/{chunk-T6V6LFHT-Dwv7XUuC.js → chunk-T6V6LFHT-BazTZ25Y.js} +1 -1
  31. package/dist/bundle/{chunk-ACWFPMZF-DkR70AOW.js → chunk-TFRAD7RO-BVAK9frq.js} +50 -4
  32. package/dist/bundle/{chunk-UH2H3OLE-R_6H5D7o.js → chunk-UH2H3OLE-QNxQo07O.js} +1 -1
  33. package/dist/bundle/{chunk-UQJGYQ56-CANeLx5l.js → chunk-UQJGYQ56-PoYTv6WX.js} +1 -1
  34. package/dist/bundle/{chunk-VKZDPPVI-d7RS_QOW.js → chunk-VKZDPPVI-BOmnhxVJ.js} +2 -2
  35. package/dist/bundle/{chunk-UNGNJ255-CtLEiDap.js → chunk-W3AAOYWE-Cyx1kZsd.js} +7 -7
  36. package/dist/bundle/{chunk-WXEJSLMO-DbSxVCq9.js → chunk-WXEJSLMO-DCjDRcYe.js} +8 -8
  37. package/dist/bundle/{chunk-XW3IHFDH-CjmXc8aI.js → chunk-XW3IHFDH-CA9Bby7o.js} +1 -1
  38. package/dist/bundle/{chunk-YHBBPJW6-jAof9asy.js → chunk-YHBBPJW6-DKIU2gC4.js} +2 -2
  39. package/dist/bundle/{chunk-YITG2CE5-Bg4SA8X1.js → chunk-YITG2CE5-o18mzaka.js} +1 -1
  40. package/dist/bundle/{chunk-ZMRSCVFX-Dwxb-Yg1.js → chunk-ZMRSCVFX-uhwzmZUP.js} +1 -1
  41. package/dist/bundle/chunks.json +83 -83
  42. package/dist/bundle/{command-contract-4X4JDKH7-BsU8tW9N.js → command-contract-DHFUF6RM-Bnc6nJSk.js} +2 -2
  43. package/dist/bundle/{command-server-entry-3JEJBUK5-CF-VyCRd.js → command-server-entry-UQSMAHYK-DzjTaTCZ.js} +2 -2
  44. package/dist/bundle/{decode-KVUA3TLF-Ds0C1R9U.js → decode-KVUA3TLF-BoJfgCpS.js} +2 -2
  45. package/dist/bundle/{dist-TPSNLFVO-D1tJd0aB.js → dist-TPSNLFVO-55jBf4N-.js} +2 -2
  46. package/dist/bundle/documents.js +5 -5
  47. package/dist/bundle/{echarts-6Q4CQ2DC-BvZMDYNl.js → echarts-6Q4CQ2DC-w9WhKUJu.js} +1 -1
  48. package/dist/bundle/{embed-JGGK2WKR-h5ppwooq.js → embed-JGGK2WKR-Cl3meWl4.js} +2 -2
  49. package/dist/bundle/{embedder-5SIVKVWO-D4yt4YCy.js → embedder-5SIVKVWO-DJEa9hBn.js} +2 -2
  50. package/dist/bundle/{first-run-FFHXPGFC-CyHZ4KM3.js → first-run-BT3X33BP-JikrW5_w.js} +2 -2
  51. package/dist/bundle/{first-screen-2NGQNWIN-BkvwnUdE.js → first-screen-KGQQK446-D2MchUuo.js} +2 -2
  52. package/dist/bundle/{hast-util-from-html-WLAUHN53-BfAYjYKc.js → hast-util-from-html-WLAUHN53-BOWgHBLv.js} +4 -4
  53. package/dist/bundle/{hast-util-to-html-PJC36XDP-C8DGIyzU.js → hast-util-to-html-PJC36XDP-QwbM5c4F.js} +5 -5
  54. package/dist/bundle/{hast-util-to-mdast-ZQ5OFYUM-9p6MJEBi.js → hast-util-to-mdast-ZQ5OFYUM-BidjUANu.js} +6 -6
  55. package/dist/bundle/{index-BOgkxLir.js → index-CTvUjqLX.js} +331 -345
  56. package/dist/bundle/index.js +66 -66
  57. package/dist/bundle/install-IPXFNLYZ-BGKW94IA.js +5 -0
  58. package/dist/bundle/{instructions-NHSD6EUE-BfefgySD.js → instructions-34FSWDC6-BR7mbjJH.js} +2 -2
  59. package/dist/bundle/mail.js +3 -3
  60. package/dist/bundle/{mcp-server-5FM4GA2C-CNWjKPAi.js → mcp-server-5FM4GA2C-B4Sqou0Z.js} +2 -2
  61. package/dist/bundle/mcp.js +12 -12
  62. package/dist/bundle/{mdast-util-from-markdown-Y7N3XA5A-ZkhTz5VO.js → mdast-util-from-markdown-Y7N3XA5A-CBCtetYX.js} +8 -8
  63. package/dist/bundle/{mdast-util-gfm-52PMOHWQ-gfhFQVZ5.js → mdast-util-gfm-52PMOHWQ-Bv-Hkixb.js} +12 -12
  64. package/dist/bundle/{mdast-util-to-hast-4MTEM3TB-Bomsq1EU.js → mdast-util-to-hast-4MTEM3TB-40gSN0gV.js} +6 -6
  65. package/dist/bundle/mdast-util-to-markdown-UGCOLDXA-DnYraMQX.js +12 -0
  66. package/dist/bundle/{meeting-combined-G3OVTNM6-CFHWFlT-.js → meeting-combined-G3OVTNM6-C4Jdctiy.js} +2 -2
  67. package/dist/bundle/{meeting-model-RINL42I5-Bab4crMQ.js → meeting-model-RINL42I5-BLAAT6mv.js} +2 -2
  68. package/dist/bundle/meeting-semantic-I7AZQTEI-DQ19wjn5.js +5 -0
  69. package/dist/bundle/{micromark-extension-gfm-FRHRNOIW-81l4O6kr.js → micromark-extension-gfm-FRHRNOIW-BvJCT_wq.js} +6 -6
  70. package/dist/bundle/{node-ZIYT5JOL-WfCpdwZ2.js → node-ZIYT5JOL-DoWqiI0I.js} +2 -2
  71. package/dist/bundle/{node-sqlite-VFGFD4MA-CrKdzJgw.js → node-sqlite-VFGFD4MA-QH9swjUN.js} +3 -3
  72. package/dist/bundle/notes-search-2Q3C65PA-D2HqYyaY.js +5 -0
  73. package/dist/bundle/oauth-TVUNW3GM-uN6u_RWy.js +7 -0
  74. package/dist/bundle/{open-36SZHLGF-kGan0BjP.js → open-36SZHLGF-CPBs6fdy.js} +1 -1
  75. package/dist/bundle/{openai-Z2WIZ6AC-D-aH-As-.js → openai-Z2WIZ6AC-CcEngcFj.js} +2 -2
  76. package/dist/bundle/preload.js +1 -1
  77. package/dist/bundle/{process-KJQOPRSP-C6W_P1_I.js → process-KJQOPRSP-BNqvUqBZ.js} +2 -2
  78. package/dist/bundle/{prompt-S2W33X57-BEDbCA8B.js → prompt-S2W33X57-BiF1939t.js} +2 -2
  79. package/dist/bundle/{recognize-NBWDLXLD-B2LTlDUy.js → recognize-NBWDLXLD-BCqQ8iG1.js} +2 -2
  80. package/dist/bundle/{remote-O54ANXYL-DOEubnhV.js → remote-O54ANXYL-BixLG9XM.js} +2 -2
  81. package/dist/bundle/{rerank-HTCSXPM6-CVIU4cUa.js → rerank-HTCSXPM6-FGYUs2VW.js} +2 -2
  82. package/dist/bundle/serve-7KRXCBBZ-EVSG16Mc.js +8 -0
  83. package/dist/bundle/server-BFD6QUV7-OmgCCeuX.js +11 -0
  84. package/dist/bundle/server-G7VWUBA2-C3Gq_HlM.js +12 -0
  85. package/dist/bundle/{sqlite-runtime-KC3NKKRB-DYslMC-g.js → sqlite-runtime-KC3NKKRB-y_O8PNsQ.js} +1 -1
  86. package/dist/bundle/{start-Dtq56YXe.js → start-CqQGB7xI.js} +5 -5
  87. package/dist/bundle/start.js +1 -1
  88. package/dist/bundle/state-3CFS2SAC-CYYQ103I.js +5 -0
  89. package/dist/bundle/store-BSVRVKTV-Uot4OGm0.js +5 -0
  90. package/dist/bundle/{store-6CM2A3HP-CtnMVUVK.js → store-LGAEGNFF-BzNIKnoK.js} +2 -2
  91. package/dist/bundle/{store-maintenance-command-WYO5PN4V-B0wefBHZ.js → store-maintenance-command-Z27R7URJ-CoJCYGVq.js} +2 -2
  92. package/dist/bundle/surface-ZEEHYD5Q-DRIV3XG3.js +8 -0
  93. package/dist/bundle/testing.js +8 -8
  94. package/dist/cli/app-doctor-command.d.ts +187 -1
  95. package/dist/cli/app-doctor-command.d.ts.map +1 -1
  96. package/dist/cli/app-doctor-command.js +3 -2
  97. package/dist/cli/app-doctor-command.js.map +1 -1
  98. package/dist/cli/app-mcp-command.d.ts +187 -2
  99. package/dist/cli/app-mcp-command.d.ts.map +1 -1
  100. package/dist/cli/app-mcp-command.js +3 -2
  101. package/dist/cli/app-mcp-command.js.map +1 -1
  102. package/dist/cli/built-commands.d.ts +10 -0
  103. package/dist/cli/built-commands.d.ts.map +1 -0
  104. package/dist/cli/built-commands.js +33 -0
  105. package/dist/cli/built-commands.js.map +1 -0
  106. package/dist/cli/commands-command.d.ts.map +1 -1
  107. package/dist/cli/commands-command.js +3 -2
  108. package/dist/cli/commands-command.js.map +1 -1
  109. package/dist/cli/complete-command.d.ts +187 -2
  110. package/dist/cli/complete-command.d.ts.map +1 -1
  111. package/dist/cli/complete-command.js +3 -2
  112. package/dist/cli/complete-command.js.map +1 -1
  113. package/dist/cli/config-command.d.ts +189 -3
  114. package/dist/cli/config-command.d.ts.map +1 -1
  115. package/dist/cli/config-command.js +3 -2
  116. package/dist/cli/config-command.js.map +1 -1
  117. package/dist/cli/context.d.ts +8 -0
  118. package/dist/cli/context.d.ts.map +1 -1
  119. package/dist/cli/context.js +39 -2
  120. package/dist/cli/context.js.map +1 -1
  121. package/dist/cli/documents/words.d.ts +1 -1
  122. package/dist/cli/dry-run-guard.d.ts.map +1 -1
  123. package/dist/cli/dry-run-guard.js +6 -28
  124. package/dist/cli/dry-run-guard.js.map +1 -1
  125. package/dist/cli/first-run.js +1 -1
  126. package/dist/cli/first-run.js.map +1 -1
  127. package/dist/cli/guide.d.ts.map +1 -1
  128. package/dist/cli/guide.js +3 -2
  129. package/dist/cli/guide.js.map +1 -1
  130. package/dist/cli/messenger/archive-commands.d.ts.map +1 -1
  131. package/dist/cli/messenger/archive-commands.js +3 -2
  132. package/dist/cli/messenger/archive-commands.js.map +1 -1
  133. package/dist/cli/messenger/complete-command.d.ts +187 -2
  134. package/dist/cli/messenger/complete-command.d.ts.map +1 -1
  135. package/dist/cli/messenger/complete-command.js +3 -2
  136. package/dist/cli/messenger/complete-command.js.map +1 -1
  137. package/dist/cli/messenger/doctor-command.d.ts.map +1 -1
  138. package/dist/cli/messenger/doctor-command.js +3 -2
  139. package/dist/cli/messenger/doctor-command.js.map +1 -1
  140. package/dist/cli/messenger/flood-command.d.ts.map +1 -1
  141. package/dist/cli/messenger/flood-command.js +3 -2
  142. package/dist/cli/messenger/flood-command.js.map +1 -1
  143. package/dist/cli/messenger/mcp-command.d.ts.map +1 -1
  144. package/dist/cli/messenger/mcp-command.js +3 -2
  145. package/dist/cli/messenger/mcp-command.js.map +1 -1
  146. package/dist/cli/messenger/metadata-command.d.ts.map +1 -1
  147. package/dist/cli/messenger/metadata-command.js +3 -2
  148. package/dist/cli/messenger/metadata-command.js.map +1 -1
  149. package/dist/cli/messenger/models-command.d.ts.map +1 -1
  150. package/dist/cli/messenger/models-command.js +3 -2
  151. package/dist/cli/messenger/models-command.js.map +1 -1
  152. package/dist/cli/messenger/server-command.d.ts +1 -1
  153. package/dist/cli/messenger/server-command.d.ts.map +1 -1
  154. package/dist/cli/messenger/server-command.js +3 -2
  155. package/dist/cli/messenger/server-command.js.map +1 -1
  156. package/dist/cli/messenger/session-commands.d.ts.map +1 -1
  157. package/dist/cli/messenger/session-commands.js +3 -2
  158. package/dist/cli/messenger/session-commands.js.map +1 -1
  159. package/dist/cli/messenger/store-maintenance-command.d.ts.map +1 -1
  160. package/dist/cli/messenger/store-maintenance-command.js +11 -5
  161. package/dist/cli/messenger/store-maintenance-command.js.map +1 -1
  162. package/dist/cli/model-catalogue-command.d.ts.map +1 -1
  163. package/dist/cli/model-catalogue-command.js +3 -2
  164. package/dist/cli/model-catalogue-command.js.map +1 -1
  165. package/dist/cli/oauth-session.d.ts.map +1 -1
  166. package/dist/cli/oauth-session.js +3 -2
  167. package/dist/cli/oauth-session.js.map +1 -1
  168. package/dist/cli/runs/command.d.ts.map +1 -1
  169. package/dist/cli/runs/command.js +3 -2
  170. package/dist/cli/runs/command.js.map +1 -1
  171. package/dist/cli/schedule/schedule-command.d.ts +1 -1
  172. package/dist/cli/schedule/schedule-command.d.ts.map +1 -1
  173. package/dist/cli/schedule/schedule-command.js +5 -3
  174. package/dist/cli/schedule/schedule-command.js.map +1 -1
  175. package/dist/cli/setup-command.d.ts.map +1 -1
  176. package/dist/cli/setup-command.js +3 -2
  177. package/dist/cli/setup-command.js.map +1 -1
  178. package/dist/cli/skill-command.d.ts.map +1 -1
  179. package/dist/cli/skill-command.js +3 -2
  180. package/dist/cli/skill-command.js.map +1 -1
  181. package/dist/cli/store-info.d.ts.map +1 -1
  182. package/dist/cli/store-info.js +5 -4
  183. package/dist/cli/store-info.js.map +1 -1
  184. package/dist/cli/token-session.d.ts.map +1 -1
  185. package/dist/cli/token-session.js +2 -1
  186. package/dist/cli/token-session.js.map +1 -1
  187. package/dist/cli/upgrade-command.d.ts.map +1 -1
  188. package/dist/cli/upgrade-command.js +4 -5
  189. package/dist/cli/upgrade-command.js.map +1 -1
  190. package/dist/cli/upkeep.d.ts +8 -0
  191. package/dist/cli/upkeep.d.ts.map +1 -0
  192. package/dist/cli/upkeep.js +11 -0
  193. package/dist/cli/upkeep.js.map +1 -0
  194. package/dist/entities/attachment.d.ts +0 -8
  195. package/dist/entities/attachment.d.ts.map +1 -1
  196. package/dist/entities/attachment.js +22 -20
  197. package/dist/entities/attachment.js.map +1 -1
  198. package/dist/entities/chat.d.ts +0 -4
  199. package/dist/entities/chat.d.ts.map +1 -1
  200. package/dist/entities/chat.js +6 -10
  201. package/dist/entities/chat.js.map +1 -1
  202. package/dist/entities/contact.d.ts +0 -7
  203. package/dist/entities/contact.d.ts.map +1 -1
  204. package/dist/entities/contact.js +9 -16
  205. package/dist/entities/contact.js.map +1 -1
  206. package/dist/entities/deal.d.ts +0 -36
  207. package/dist/entities/deal.d.ts.map +1 -1
  208. package/dist/entities/deal.js +22 -48
  209. package/dist/entities/deal.js.map +1 -1
  210. package/dist/entities/document.d.ts +0 -2
  211. package/dist/entities/document.d.ts.map +1 -1
  212. package/dist/entities/document.js +3 -5
  213. package/dist/entities/document.js.map +1 -1
  214. package/dist/entities/fields.d.ts +5 -1
  215. package/dist/entities/fields.d.ts.map +1 -1
  216. package/dist/entities/fields.js +6 -2
  217. package/dist/entities/fields.js.map +1 -1
  218. package/dist/entities/hit.d.ts +0 -18
  219. package/dist/entities/hit.d.ts.map +1 -1
  220. package/dist/entities/hit.js +19 -37
  221. package/dist/entities/hit.js.map +1 -1
  222. package/dist/entities/index.d.ts +0 -1
  223. package/dist/entities/index.d.ts.map +1 -1
  224. package/dist/entities/index.js +2 -3
  225. package/dist/entities/index.js.map +1 -1
  226. package/dist/entities/message.d.ts +2 -34
  227. package/dist/entities/message.d.ts.map +1 -1
  228. package/dist/entities/message.js +35 -67
  229. package/dist/entities/message.js.map +1 -1
  230. package/dist/entities/task.d.ts +0 -19
  231. package/dist/entities/task.d.ts.map +1 -1
  232. package/dist/entities/task.js +18 -35
  233. package/dist/entities/task.js.map +1 -1
  234. package/dist/mcp/agent.d.ts +3 -0
  235. package/dist/mcp/agent.d.ts.map +1 -1
  236. package/dist/mcp/agent.js +48 -1
  237. package/dist/mcp/agent.js.map +1 -1
  238. package/dist/mcp/app-server.d.ts.map +1 -1
  239. package/dist/mcp/app-server.js +8 -5
  240. package/dist/mcp/app-server.js.map +1 -1
  241. package/dist/mcp/bot/instructions.js +1 -1
  242. package/dist/mcp/bot/instructions.js.map +1 -1
  243. package/dist/mcp/index.d.ts +4 -0
  244. package/dist/mcp/index.d.ts.map +1 -1
  245. package/dist/mcp/index.js +4 -0
  246. package/dist/mcp/index.js.map +1 -1
  247. package/dist/mcp/instructions.js +4 -4
  248. package/dist/mcp/instructions.js.map +1 -1
  249. package/dist/mcp/lean.d.ts +9 -0
  250. package/dist/mcp/lean.d.ts.map +1 -0
  251. package/dist/mcp/lean.js +7 -0
  252. package/dist/mcp/lean.js.map +1 -0
  253. package/dist/mcp/server.d.ts.map +1 -1
  254. package/dist/mcp/server.js +6 -2
  255. package/dist/mcp/server.js.map +1 -1
  256. package/dist/mcp/surface.d.ts +51 -2
  257. package/dist/mcp/surface.d.ts.map +1 -1
  258. package/dist/mcp/surface.js +379 -52
  259. package/dist/mcp/surface.js.map +1 -1
  260. package/dist/mcp/tool.d.ts +9 -1
  261. package/dist/mcp/tool.d.ts.map +1 -1
  262. package/dist/mcp/tool.js +20 -6
  263. package/dist/mcp/tool.js.map +1 -1
  264. package/dist/output-detail.d.ts +8 -0
  265. package/dist/output-detail.d.ts.map +1 -1
  266. package/dist/output-detail.js +55 -0
  267. package/dist/output-detail.js.map +1 -1
  268. package/dist/services/package-upgrade.d.ts.map +1 -1
  269. package/dist/services/package-upgrade.js +3 -1
  270. package/dist/services/package-upgrade.js.map +1 -1
  271. package/dist/store/compatibility.d.ts +2 -0
  272. package/dist/store/compatibility.d.ts.map +1 -1
  273. package/dist/store/compatibility.js +12 -0
  274. package/dist/store/compatibility.js.map +1 -1
  275. package/dist/store/migrations.d.ts +3 -3
  276. package/dist/store/migrations.js +3 -3
  277. package/dist/store/sqlite/clients.d.ts +6 -0
  278. package/dist/store/sqlite/clients.d.ts.map +1 -1
  279. package/dist/store/sqlite/clients.js +6 -4
  280. package/dist/store/sqlite/clients.js.map +1 -1
  281. package/dist/store/sqlite/manifest.d.ts +4 -0
  282. package/dist/store/sqlite/manifest.d.ts.map +1 -1
  283. package/dist/store/sqlite/manifest.js.map +1 -1
  284. package/package.json +1 -1
  285. package/skills/link-conversations/SKILL.md +1 -1
  286. package/src/cli/app-doctor-command.ts +41 -42
  287. package/src/cli/app-mcp-command.ts +55 -52
  288. package/src/cli/built-commands.ts +32 -0
  289. package/src/cli/commands-command.ts +3 -2
  290. package/src/cli/complete-command.ts +53 -48
  291. package/src/cli/config-command.ts +180 -177
  292. package/src/cli/context.ts +44 -2
  293. package/src/cli/dry-run-guard.ts +11 -23
  294. package/src/cli/first-run.ts +1 -1
  295. package/src/cli/guide.ts +3 -2
  296. package/src/cli/messenger/archive-commands.ts +3 -2
  297. package/src/cli/messenger/complete-command.ts +30 -30
  298. package/src/cli/messenger/doctor-command.ts +3 -2
  299. package/src/cli/messenger/flood-command.ts +3 -2
  300. package/src/cli/messenger/mcp-command.ts +3 -2
  301. package/src/cli/messenger/metadata-command.ts +3 -2
  302. package/src/cli/messenger/models-command.ts +3 -2
  303. package/src/cli/messenger/server-command.ts +3 -2
  304. package/src/cli/messenger/session-commands.ts +3 -2
  305. package/src/cli/messenger/store-maintenance-command.ts +18 -12
  306. package/src/cli/model-catalogue-command.ts +3 -2
  307. package/src/cli/oauth-session.ts +3 -2
  308. package/src/cli/runs/command.ts +3 -2
  309. package/src/cli/schedule/schedule-command.ts +412 -410
  310. package/src/cli/setup-command.ts +3 -2
  311. package/src/cli/skill-command.ts +3 -2
  312. package/src/cli/store-info.ts +21 -16
  313. package/src/cli/token-session.ts +3 -2
  314. package/src/cli/upgrade-command.ts +59 -62
  315. package/src/cli/upkeep.ts +15 -0
  316. package/src/entities/attachment.ts +44 -30
  317. package/src/entities/chat.ts +9 -10
  318. package/src/entities/contact.ts +20 -21
  319. package/src/entities/deal.ts +66 -53
  320. package/src/entities/document.ts +3 -5
  321. package/src/entities/fields.ts +11 -2
  322. package/src/entities/hit.ts +52 -37
  323. package/src/entities/index.ts +2 -3
  324. package/src/entities/message.ts +101 -80
  325. package/src/entities/task.ts +37 -38
  326. package/src/mcp/agent.ts +51 -1
  327. package/src/mcp/app-server.ts +8 -5
  328. package/src/mcp/bot/instructions.ts +1 -1
  329. package/src/mcp/index.ts +4 -0
  330. package/src/mcp/instructions.ts +4 -4
  331. package/src/mcp/lean.ts +8 -0
  332. package/src/mcp/server.ts +6 -2
  333. package/src/mcp/surface.ts +436 -64
  334. package/src/mcp/tool.ts +27 -4
  335. package/src/output-detail.ts +61 -0
  336. package/src/services/package-upgrade.ts +3 -1
  337. package/src/store/compatibility.ts +12 -0
  338. package/src/store/migrations.ts +3 -3
  339. package/src/store/sqlite/clients.ts +17 -6
  340. package/src/store/sqlite/manifest.ts +4 -0
  341. package/dist/bundle/install-IPXFNLYZ-BSWiztYR.js +0 -5
  342. package/dist/bundle/mdast-util-to-markdown-UGCOLDXA-7D6EJn9r.js +0 -12
  343. package/dist/bundle/meeting-semantic-I7AZQTEI-BgZ3ZzQB.js +0 -5
  344. package/dist/bundle/notes-search-2Q3C65PA-CWKHboCy.js +0 -5
  345. package/dist/bundle/oauth-TVUNW3GM-BqlyhUfp.js +0 -7
  346. package/dist/bundle/serve-7KRXCBBZ-BO9BKhWL.js +0 -8
  347. package/dist/bundle/server-PIT6UZRZ-C6I-VrDd.js +0 -11
  348. package/dist/bundle/server-ZL4FMEHH-DP1oYgCn.js +0 -12
  349. package/dist/bundle/state-3CFS2SAC-xptBCfut.js +0 -5
  350. package/dist/bundle/store-ASWYHJ4Q-C7EFfvzB.js +0 -5
  351. package/dist/bundle/surface-DDH4HGT3-CBZnEqH_.js +0 -8
@@ -0,0 +1,8 @@
1
+ import type { Command } from "commander";
2
+ /**
3
+ * Marks what a factory builds as upkeep: cli-core's commands that run the CLI itself (config, sign-in, the store,
4
+ * MCP), not the service. Only those built by the factory: a CLI's own command added later under one stays its own.
5
+ */
6
+ export declare const upkeepCommand: <A extends unknown[], R>(factory: (...args: A) => R) => (...args: A) => R;
7
+ export declare const isUpkeep: (command: Command | undefined) => boolean;
8
+ //# sourceMappingURL=upkeep.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upkeep.d.ts","sourceRoot":"","sources":["../../src/cli/upkeep.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAKxC;;;GAGG;AACH,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,OAAO,EAAE,EAAE,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,CAAC,sBAG5E,CAAA;AAEJ,eAAO,MAAM,QAAQ,YAAa,OAAO,GAAG,SAAS,KAAG,OAAuD,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { onBuilt } from "./built-commands.js";
2
+ const marked = new WeakSet();
3
+ /**
4
+ * Marks what a factory builds as upkeep: cli-core's commands that run the CLI itself (config, sign-in, the store,
5
+ * MCP), not the service. Only those built by the factory: a CLI's own command added later under one stays its own.
6
+ */
7
+ export const upkeepCommand = (factory) => onBuilt(factory, (command) => {
8
+ marked.add(command);
9
+ });
10
+ export const isUpkeep = (command) => command !== undefined && marked.has(command);
11
+ //# sourceMappingURL=upkeep.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upkeep.js","sourceRoot":"","sources":["../../src/cli/upkeep.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAE7C,MAAM,MAAM,GAAG,IAAI,OAAO,EAAW,CAAA;AAErC;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAyB,OAA0B,EAAE,EAAE,CAClF,OAAO,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE;IAC3B,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;AACrB,CAAC,CAAC,CAAA;AAEJ,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,OAA4B,EAAW,EAAE,CAAC,OAAO,KAAK,SAAS,IAAI,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA"}
@@ -1,10 +1,7 @@
1
1
  import * as v from "valibot";
2
2
  export declare const attachment: v.StrictObjectSchema<{
3
- /** The message it came with, as a locator; absent inside that message. */
4
3
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
5
- /** Lower-cased: `photo`, `video`, `file`, `voice`… */
6
4
  readonly kind: v.StringSchema<undefined>;
7
- /** Its place among the message's attachments, from 1, as `attachments show --attachment` takes it. */
8
5
  readonly position: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
9
6
  readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
10
7
  readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
@@ -13,9 +10,7 @@ export declare const attachment: v.StrictObjectSchema<{
13
10
  readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
14
11
  readonly width: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
15
12
  readonly height: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
16
- /** Seconds, for audio and video. */
17
13
  readonly duration: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
18
- /** The text read out of it; how it was read is `extraction`. */
19
14
  readonly text: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
20
15
  readonly extraction: v.OptionalSchema<v.StrictObjectSchema<{
21
16
  readonly origin: v.StringSchema<undefined>;
@@ -24,7 +19,6 @@ export declare const attachment: v.StrictObjectSchema<{
24
19
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
25
20
  }, undefined>, undefined>;
26
21
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
27
- /** A shared contact card (`kind: "contact"`); the phone is the whole number as the sender put it. */
28
22
  readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
29
23
  readonly name: v.StringSchema<undefined>;
30
24
  readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
@@ -32,7 +26,6 @@ export declare const attachment: v.StrictObjectSchema<{
32
26
  readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
33
27
  readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
34
28
  }, undefined>, undefined>;
35
- /** A bot's keyboard under the message, row by row; `messages press` presses one. */
36
29
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
37
30
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
38
31
  readonly text: v.StringSchema<undefined>;
@@ -45,7 +38,6 @@ export declare const hitFile: v.StrictObjectSchema<{
45
38
  readonly kind: v.StringSchema<undefined>;
46
39
  readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
47
40
  readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
48
- /** The saved copy on this computer, once `messages download` fetched it; absent until then. */
49
41
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
50
42
  }, undefined>;
51
43
  //# sourceMappingURL=attachment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"attachment.d.ts","sourceRoot":"","sources":["../../src/entities/attachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAG5B,eAAO,MAAM,UAAU;IACrB,0EAA0E;;IAE1E,sDAAsD;;IAEtD,sGAAsG;;;;;;;;;IAStG,oCAAoC;;IAEpC,gEAAgE;;;;;;;;;IAIhE,qGAAqG;;;;;;;;IAUrG,oFAAoF;;;;;;aAYpF,CAAA;AAEF,2GAA2G;AAC3G,eAAO,MAAM,OAAO;;;;;IAKlB,+FAA+F;;aAE/F,CAAA"}
1
+ {"version":3,"file":"attachment.d.ts","sourceRoot":"","sources":["../../src/entities/attachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAG5B,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAsDrB,CAAA;AAEF,2GAA2G;AAC3G,eAAO,MAAM,OAAO;;;;;;aASlB,CAAA"}
@@ -1,12 +1,9 @@
1
1
  import * as v from "valibot";
2
- import { count, id, reference, text } from "./fields.js";
2
+ import { about, count, id, reference, text } from "./fields.js";
3
3
  export const attachment = v.strictObject({
4
- /** The message it came with, as a locator; absent inside that message. */
5
- message: v.optional(reference),
6
- /** Lower-cased: `photo`, `video`, `file`, `voice`… */
7
- kind: text,
8
- /** Its place among the message's attachments, from 1, as `attachments show --attachment` takes it. */
9
- position: v.optional(count),
4
+ message: about(v.optional(reference), "The message it came with, as a locator; absent inside that message."),
5
+ kind: about(text, "Lower-cased: `photo`, `video`, `file`, `voice`…"),
6
+ position: about(v.optional(count), "Its place among the message's attachments, from 1, as `attachments show --attachment` takes it."),
10
7
  url: v.optional(text),
11
8
  name: v.optional(text),
12
9
  title: v.optional(text),
@@ -14,26 +11,32 @@ export const attachment = v.strictObject({
14
11
  size: v.optional(count),
15
12
  width: v.optional(count),
16
13
  height: v.optional(count),
17
- /** Seconds, for audio and video. */
18
- duration: v.optional(v.number()),
19
- /** The text read out of it; how it was read is `extraction`. */
20
- text: v.optional(text),
14
+ duration: about(v.optional(v.number()), "Seconds, for audio and video."),
15
+ text: about(v.optional(text), "The text read out of it; how it was read is `extraction`."),
21
16
  extraction: v.optional(v.strictObject({ origin: text, extractor: text, chars: count, error: v.optional(text) })),
22
17
  local_path: v.optional(text),
23
- /** A shared contact card (`kind: "contact"`); the phone is the whole number as the sender put it. */
24
- contact: v.optional(v.strictObject({
18
+ contact: about(v.optional(v.strictObject({
25
19
  name: text,
26
20
  first_name: v.optional(text),
27
21
  last_name: v.optional(text),
28
22
  phone: v.optional(text),
29
23
  user_id: v.optional(id),
30
- })),
31
- /** A bot's keyboard under the message, row by row; `messages press` presses one. */
32
- buttons: v.optional(v.array(v.array(v.strictObject({
33
- kind: v.picklist(["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"]),
24
+ })), 'A shared contact card (`kind: "contact"`); the phone is the whole number as the sender put it.'),
25
+ buttons: about(v.optional(v.array(v.array(v.strictObject({
26
+ kind: v.picklist([
27
+ "callback",
28
+ "link",
29
+ "message",
30
+ "chat",
31
+ "contact",
32
+ "location",
33
+ "app",
34
+ "clipboard",
35
+ "other",
36
+ ]),
34
37
  text,
35
38
  url: v.optional(text),
36
- })))),
39
+ })))), "A bot's keyboard under the message, row by row; `messages press` presses one."),
37
40
  });
38
41
  /** A file named on a search hit: `position` is the one `attachments show` and `messages download` take. */
39
42
  export const hitFile = v.strictObject({
@@ -41,7 +44,6 @@ export const hitFile = v.strictObject({
41
44
  kind: text,
42
45
  name: v.optional(text),
43
46
  size: v.optional(count),
44
- /** The saved copy on this computer, once `messages download` fetched it; absent until then. */
45
- local_path: v.optional(text),
47
+ local_path: about(v.optional(text), "The saved copy on this computer, once `messages download` fetched it; absent until then."),
46
48
  });
47
49
  //# sourceMappingURL=attachment.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"attachment.js","sourceRoot":"","sources":["../../src/entities/attachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAExD,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,YAAY,CAAC;IACvC,0EAA0E;IAC1E,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC;IAC9B,sDAAsD;IACtD,IAAI,EAAE,IAAI;IACV,sGAAsG;IACtG,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC;IAC3B,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;IACrB,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;IACtB,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;IACvB,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;IACtB,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC;IACvB,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC;IACxB,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC;IACzB,oCAAoC;IACpC,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAChC,gEAAgE;IAChE,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,I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ithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
12
12
  readonly participants_count: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
13
13
  readonly muted: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
14
- /** When the mute ends; absent with `muted` true is for good. */
15
14
  readonly muted_until: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
16
15
  readonly archived: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
17
- /** The owner marked it unread, whatever `unread_count` says. */
18
16
  readonly marked_unread: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
19
17
  readonly membership_state: v.OptionalSchema<v.PicklistSchema<["joined", "left", "public", "imported", "archived", "external"], undefined>, undefined>;
20
18
  readonly parent_chat_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
21
19
  readonly scope: v.OptionalSchema<v.PicklistSchema<["personal", "work"], undefined>, undefined>;
22
20
  readonly provider_metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
23
- /** `chats show`, a group or channel: what it says about itself. */
24
21
  readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
25
22
  readonly invite_link: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
26
23
  readonly settings: v.OptionalSchema<v.StrictObjectSchema<{
@@ -34,7 +31,6 @@ export declare const chat: v.StrictObjectSchema<{
34
31
  readonly only_admins_edit_info: v.OptionalSchema<v.NullableSchema<v.BooleanSchema<undefined>, undefined>, undefined>;
35
32
  readonly disappearing_seconds: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
36
33
  }, undefined>, undefined>;
37
- /** `chats show`: absent when no roster is known; an empty list is a known empty roster. */
38
34
  readonly members: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
39
35
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
40
36
  readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/entities/chat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,IAAI;;;;;;;;;;;;IAYf,gEAAgE;;;IAGhE,gEAAgE;;;;;;IAMhE,mEAAmE;;;;;;;;;;;;;;IAgBnE,2FAA2F;;;;;;;;;;;;;;;;;;aAE3F,CAAA"}
1
+ {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/entities/chat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAsCf,CAAA"}
@@ -1,9 +1,9 @@
1
1
  import * as v from "valibot";
2
- import { count, id, providerMetadata, reference, text, time } from "./fields.js";
2
+ import { about, count, id, providerMetadata, reference, text, time } from "./fields.js";
3
3
  import { member } from "./member.js";
4
4
  const setting = v.optional(v.nullable(v.boolean()));
5
5
  export const chat = v.strictObject({
6
- ref: reference,
6
+ ref: about(reference, "The chat's locator, `chat:<provider>/<account>/<chat>`."),
7
7
  id,
8
8
  provider: v.optional(text),
9
9
  account: v.optional(text),
@@ -14,17 +14,14 @@ export const chat = v.strictObject({
14
14
  last_message_at: v.nullable(time),
15
15
  participants_count: v.nullable(count),
16
16
  muted: v.optional(v.boolean()),
17
- /** When the mute ends; absent with `muted` true is for good. */
18
- muted_until: v.optional(time),
17
+ muted_until: about(v.optional(time), "When the mute ends; absent with `muted` true is for good."),
19
18
  archived: v.optional(v.boolean()),
20
- /** The owner marked it unread, whatever `unread_count` says. */
21
- marked_unread: v.optional(v.boolean()),
19
+ marked_unread: about(v.optional(v.boolean()), "The owner marked it unread, whatever `unread_count` says."),
22
20
  membership_state: v.optional(v.picklist(["joined", "left", "public", "imported", "archived", "external"])),
23
21
  parent_chat_id: v.optional(id),
24
22
  scope: v.optional(v.picklist(["personal", "work"])),
25
23
  provider_metadata: providerMetadata,
26
- /** `chats show`, a group or channel: what it says about itself. */
27
- description: v.optional(v.nullable(text)),
24
+ description: about(v.optional(v.nullable(text)), "`chats show`, a group or channel: what it says about itself."),
28
25
  invite_link: v.optional(v.nullable(text)),
29
26
  settings: v.optional(v.strictObject({
30
27
  all_can_pin: setting,
@@ -37,7 +34,6 @@ export const chat = v.strictObject({
37
34
  only_admins_edit_info: setting,
38
35
  disappearing_seconds: v.optional(v.nullable(count)),
39
36
  })),
40
- /** `chats show`: absent when no roster is known; an empty list is a known empty roster. */
41
- members: v.optional(v.array(member)),
37
+ members: about(v.optional(v.array(member)), "`chats show`: absent when no roster is known; an empty list is a known empty roster."),
42
38
  });
43
39
  //# sourceMappingURL=chat.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chat.js","sourceRoot":"","sources":["../../src/entities/chat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,gBAAgB,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAChF,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC,MAAM,OAAO,GAAG,CAAC,CAAC,QAAQ,CAAC,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,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;IACnD,iBAAiB,EAAE,gBAAgB;IACnC,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,8DAA8D,CAAC;IAChH,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACzC,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAClB,CAAC,CAAC,YAAY,CAAC;QACb,WAAW,EAAE,OAAO;QACpB,eAAe,EAAE,OAAO;QACxB,gBAAgB,EAAE,OAAO;QACzB,qBAAqB,EAAE,OAAO;QAC9B,gBAAgB,EAAE,OAAO;QACzB,aAAa,EAAE,OAAO;QACtB,gBAAgB,EAAE,OAAO;QACzB,qBAAqB,EAAE,OAAO;QAC9B,oBAAoB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;KACpD,CAAC,CACH;IACD,OAAO,EAAE,KAAK,CACZ,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAC3B,sFAAsF,CACvF;CACF,CAAC,CAAA"}
@@ -101,31 +101,24 @@ export declare const contact: v.StrictObjectSchema<{
101
101
  readonly username: v.NullableSchema<v.StringSchema<undefined>, undefined>;
102
102
  readonly alias: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
103
103
  readonly display_name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
104
- /** Whatever they wrote about themselves. */
105
104
  readonly description: v.NullableSchema<v.StringSchema<undefined>, undefined>;
106
- /** The newest message in a one-to-one chat with them. */
107
105
  readonly last_messaged_at: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
108
- /** For a source that knows it, such as a Zoom contact. */
109
106
  readonly email: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
110
107
  readonly phones: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
111
108
  readonly number: v.StringSchema<undefined>;
112
109
  readonly label: v.NullableSchema<v.StringSchema<undefined>, undefined>;
113
110
  }, undefined>, undefined>, undefined>;
114
- /** `contacts show`: the chats shared with them, and what the store holds of their messages in each. */
115
111
  readonly chats: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
116
112
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
117
113
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
118
114
  readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
119
115
  readonly kind: v.PicklistSchema<["dialog", "group", "channel", "saved", "unknown"], undefined>;
120
116
  readonly last_message_at: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
121
- /** Their messages stored; a floor unless `complete`. */
122
117
  readonly their_messages: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
123
118
  readonly first_at: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>, undefined>;
124
119
  readonly last_at: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>, undefined>;
125
- /** The store holds the whole chat, so the count is the real one. */
126
120
  readonly complete: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
127
121
  }, undefined>, undefined>, undefined>;
128
- /** `contacts show --with-notes`: the owner's private notes about them. */
129
122
  readonly notes: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
130
123
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
131
124
  readonly text: v.StringSchema<undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../src/entities/contact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,8CAA8C;AAC9C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAOlB,4CAA4C;;IAE5C,yDAAyD;;IAEzD,0DAA0D;;;;;;IAG1D,uGAAuG;;;;;;;QAKjG,wDAAwD;;;;QAIxD,oEAAoE;;;IAO1E,0EAA0E;;;;;;;;aAE1E,CAAA"}
1
+ {"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../src/entities/contact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,8CAA8C;AAC9C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aA+BlB,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import * as v from "valibot";
2
2
  import { chat } from "./chat.js";
3
3
  import { profileFields } from "./contact-read.js";
4
- import { count, id, reference, text, time } from "./fields.js";
4
+ import { about, count, id, reference, text, time } from "./fields.js";
5
5
  /** Somebody in a messenger's contact list. */
6
6
  export const contact = v.strictObject({
7
7
  ref: reference,
@@ -10,26 +10,19 @@ export const contact = v.strictObject({
10
10
  username: v.nullable(text),
11
11
  alias: v.optional(v.nullable(text)),
12
12
  display_name: v.optional(v.nullable(text)),
13
- /** Whatever they wrote about themselves. */
14
- description: v.nullable(text),
15
- /** The newest message in a one-to-one chat with them. */
16
- last_messaged_at: v.nullable(time),
17
- /** For a source that knows it, such as a Zoom contact. */
18
- email: v.optional(v.nullable(text)),
13
+ description: about(v.nullable(text), "Whatever they wrote about themselves."),
14
+ last_messaged_at: about(v.nullable(time), "The newest message in a one-to-one chat with them."),
15
+ email: about(v.optional(v.nullable(text)), "For a source that knows it, such as a Zoom contact."),
19
16
  phones: v.optional(v.array(v.strictObject({ number: text, label: v.nullable(text) }))),
20
- /** `contacts show`: the chats shared with them, and what the store holds of their messages in each. */
21
- chats: v.optional(v.array(v.strictObject({
17
+ chats: about(v.optional(v.array(v.strictObject({
22
18
  ...v.pick(chat, ["ref", "id", "title", "kind", "last_message_at"]).entries,
23
- /** Their messages stored; a floor unless `complete`. */
24
- their_messages: v.optional(count),
19
+ their_messages: about(v.optional(count), "Their messages stored; a floor unless `complete`."),
25
20
  first_at: v.optional(v.nullable(time)),
26
21
  last_at: v.optional(v.nullable(time)),
27
- /** The store holds the whole chat, so the count is the real one. */
28
- complete: v.optional(v.boolean()),
29
- }))),
22
+ complete: about(v.optional(v.boolean()), "The store holds the whole chat, so the count is the real one."),
23
+ }))), "`contacts show`: the chats shared with them, and what the store holds of their messages in each."),
30
24
  /** `contacts show`: what the messenger says about them, or with `--offline` what the store saw of them. */
31
25
  ...v.partial(v.strictObject(profileFields)).entries,
32
- /** `contacts show --with-notes`: the owner's private notes about them. */
33
- notes: v.optional(v.array(v.strictObject({ id, text, revision: count, created_at: time, updated_at: time }))),
26
+ notes: about(v.optional(v.array(v.strictObject({ id, text, revision: count, created_at: time, updated_at: time }))), "`contacts show --with-notes`: the owner's private notes about them."),
34
27
  });
35
28
  //# sourceMappingURL=contact.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contact.js","sourceRoot":"","sources":["../../src/entities/contact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAE9D,8CAA8C;AAC9C,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC,YAAY,CAAC;IACpC,GAAG,EAAE,SAAS;IACd,EAAE;IACF,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;IACtB,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;IAC1B,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACnC,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC1C,4CAA4C;IAC5C,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;IAC7B,yDAAyD;IACzD,gBAAgB,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;IAClC,0DAA0D;IAC1D,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACnC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,EA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CAAC,KAAK,CAAC,EAAE,mDAAmD,CAAC;QAC7F,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACtC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACrC,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE,+DAA+D,CAAC;KAC1G,CAAC,CACH,CACF,EACD,kGAAkG,CACnG;IACD,2GAA2G;IAC3G,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO;IACnD,KAAK,EAAE,KAAK,CACV,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EACtG,qEAAqE,CACtE;CACF,CAAC,CAAA"}
@@ -28,12 +28,10 @@ export declare const deal: v.StrictObjectSchema<{
28
28
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
29
29
  readonly kind: v.PicklistSchema<["deal", "lead"], undefined>;
30
30
  readonly title: v.StringSchema<undefined>;
31
- /** One line with the stage, amount and status. */
32
31
  readonly summary: v.StringSchema<undefined>;
33
32
  readonly pipeline: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
34
33
  readonly pipeline_name: v.StringSchema<undefined>;
35
34
  readonly stage: v.StringSchema<undefined>;
36
- /** The base stage `stage` maps to, once the owner confirmed it; `null` while unsorted. */
37
35
  readonly base_stage: v.NullableSchema<v.StrictObjectSchema<{
38
36
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
39
37
  readonly name: v.StringSchema<undefined>;
@@ -44,7 +42,6 @@ export declare const deal: v.StrictObjectSchema<{
44
42
  readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
45
43
  readonly owner: v.BooleanSchema<undefined>;
46
44
  }, undefined>, undefined>;
47
- /** A CRM copy's own person and company as the CRM keeps them on it, such as a lead's with nobody linked yet. */
48
45
  readonly contact_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
49
46
  readonly company_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
50
47
  readonly currency: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -53,20 +50,13 @@ export declare const deal: v.StrictObjectSchema<{
53
50
  readonly closed_date: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
54
51
  readonly closed_reason: v.NullableSchema<v.StringSchema<undefined>, undefined>;
55
52
  readonly rank: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
56
- /** A lead's deal, once it became one. */
57
53
  readonly deal: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
58
- /** The CRM account it is a copy from; `null` for the owner's own. */
59
54
  readonly account: v.NullableSchema<v.StrictObjectSchema<{
60
55
  readonly provider: v.StringSchema<undefined>;
61
56
  readonly account: v.StringSchema<undefined>;
62
57
  }, undefined>, undefined>;
63
58
  readonly external_id: v.NullableSchema<v.StringSchema<undefined>, undefined>;
64
- /** A CRM copy's assignee, the identity `<account>/user/<id>`. */
65
59
  readonly assignee: v.NullableSchema<v.StringSchema<undefined>, undefined>;
66
- /**
67
- * A CRM copy's own fields by code; a list field's value is its option's label, `option_id` its id. `amount_note` is
68
- * WireCat's own note, not a CRM field: the CRM's amount the store could not keep, and why.
69
- */
70
60
  readonly provider_metadata: v.RecordSchema<v.StringSchema<undefined>, v.StrictObjectSchema<{
71
61
  readonly label: v.NullableSchema<v.StringSchema<undefined>, undefined>;
72
62
  readonly value: v.UnknownSchema;
@@ -92,14 +82,8 @@ export declare const deal: v.StrictObjectSchema<{
92
82
  readonly project_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
93
83
  readonly created_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
94
84
  readonly updated_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
95
- /** `show` of a CRM copy whose `activities` setting is on: its activities and tasks, open ones first. */
96
85
  readonly activities: v.OptionalSchema<v.ArraySchema<v.GenericSchema<DealActivity>, undefined>, undefined>;
97
- /** `show` of a CRM copy: the newest recorded meetings and calls of its people, in its account's scope. */
98
86
  readonly meetings: v.OptionalSchema<v.ArraySchema<v.GenericSchema<import("./recorded-meeting.js").RecordedMeeting>, undefined>, undefined>;
99
- /**
100
- * `show` of a CRM copy: every stage it entered, oldest first. Once the CRM's own history names any, it alone is
101
- * listed, from as far back as it was read; the copy's changes between syncs are left out.
102
- */
103
87
  readonly stage_history: v.OptionalSchema<v.ArraySchema<v.GenericSchema<DealStageEntry>, undefined>, undefined>;
104
88
  readonly untrusted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
105
89
  }, undefined>;
@@ -109,12 +93,10 @@ export declare const lead: v.StrictObjectSchema<{
109
93
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
110
94
  readonly kind: v.PicklistSchema<["deal", "lead"], undefined>;
111
95
  readonly title: v.StringSchema<undefined>;
112
- /** One line with the stage, amount and status. */
113
96
  readonly summary: v.StringSchema<undefined>;
114
97
  readonly pipeline: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
115
98
  readonly pipeline_name: v.StringSchema<undefined>;
116
99
  readonly stage: v.StringSchema<undefined>;
117
- /** The base stage `stage` maps to, once the owner confirmed it; `null` while unsorted. */
118
100
  readonly base_stage: v.NullableSchema<v.StrictObjectSchema<{
119
101
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
120
102
  readonly name: v.StringSchema<undefined>;
@@ -125,7 +107,6 @@ export declare const lead: v.StrictObjectSchema<{
125
107
  readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
126
108
  readonly owner: v.BooleanSchema<undefined>;
127
109
  }, undefined>, undefined>;
128
- /** A CRM copy's own person and company as the CRM keeps them on it, such as a lead's with nobody linked yet. */
129
110
  readonly contact_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
130
111
  readonly company_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
131
112
  readonly currency: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -134,20 +115,13 @@ export declare const lead: v.StrictObjectSchema<{
134
115
  readonly closed_date: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
135
116
  readonly closed_reason: v.NullableSchema<v.StringSchema<undefined>, undefined>;
136
117
  readonly rank: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
137
- /** A lead's deal, once it became one. */
138
118
  readonly deal: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
139
- /** The CRM account it is a copy from; `null` for the owner's own. */
140
119
  readonly account: v.NullableSchema<v.StrictObjectSchema<{
141
120
  readonly provider: v.StringSchema<undefined>;
142
121
  readonly account: v.StringSchema<undefined>;
143
122
  }, undefined>, undefined>;
144
123
  readonly external_id: v.NullableSchema<v.StringSchema<undefined>, undefined>;
145
- /** A CRM copy's assignee, the identity `<account>/user/<id>`. */
146
124
  readonly assignee: v.NullableSchema<v.StringSchema<undefined>, undefined>;
147
- /**
148
- * A CRM copy's own fields by code; a list field's value is its option's label, `option_id` its id. `amount_note` is
149
- * WireCat's own note, not a CRM field: the CRM's amount the store could not keep, and why.
150
- */
151
125
  readonly provider_metadata: v.RecordSchema<v.StringSchema<undefined>, v.StrictObjectSchema<{
152
126
  readonly label: v.NullableSchema<v.StringSchema<undefined>, undefined>;
153
127
  readonly value: v.UnknownSchema;
@@ -173,14 +147,8 @@ export declare const lead: v.StrictObjectSchema<{
173
147
  readonly project_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
174
148
  readonly created_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
175
149
  readonly updated_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
176
- /** `show` of a CRM copy whose `activities` setting is on: its activities and tasks, open ones first. */
177
150
  readonly activities: v.OptionalSchema<v.ArraySchema<v.GenericSchema<DealActivity>, undefined>, undefined>;
178
- /** `show` of a CRM copy: the newest recorded meetings and calls of its people, in its account's scope. */
179
151
  readonly meetings: v.OptionalSchema<v.ArraySchema<v.GenericSchema<import("./recorded-meeting.js").RecordedMeeting>, undefined>, undefined>;
180
- /**
181
- * `show` of a CRM copy: every stage it entered, oldest first. Once the CRM's own history names any, it alone is
182
- * listed, from as far back as it was read; the copy's changes between syncs are left out.
183
- */
184
152
  readonly stage_history: v.OptionalSchema<v.ArraySchema<v.GenericSchema<DealStageEntry>, undefined>, undefined>;
185
153
  readonly untrusted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
186
154
  }, undefined>;
@@ -233,7 +201,6 @@ export declare const pipeline: v.StrictObjectSchema<{
233
201
  readonly external_id: v.NullableSchema<v.StringSchema<undefined>, undefined>;
234
202
  readonly stages: v.ArraySchema<v.GenericSchema<PipelineStageAnswer>, undefined>;
235
203
  readonly created_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
236
- /** `show`: the rows made in the window. */
237
204
  readonly totals: v.OptionalSchema<v.StrictObjectSchema<{
238
205
  readonly items: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
239
206
  readonly open: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
@@ -246,9 +213,7 @@ export declare const pipeline: v.StrictObjectSchema<{
246
213
  readonly until: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
247
214
  }, undefined>, undefined>;
248
215
  readonly since: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, undefined>;
249
- /** `show`: rows closed on a day in the window, in the owner's zone. */
250
216
  readonly closed: v.OptionalSchema<v.GenericSchema<PipelineClosed>, undefined>;
251
- /** `show`: days from made to won, of the rows won in the window. */
252
217
  readonly cycle: v.OptionalSchema<v.StrictObjectSchema<{
253
218
  readonly median_days: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
254
219
  readonly items: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
@@ -258,7 +223,6 @@ export declare const pipeline: v.StrictObjectSchema<{
258
223
  readonly reason: v.StringSchema<undefined>;
259
224
  readonly items: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
260
225
  }, undefined>, undefined>, undefined>;
261
- /** `show`: rows whose stages came from the CRM's own history, and from the copy's diffs. */
262
226
  readonly history: v.OptionalSchema<v.StrictObjectSchema<{
263
227
  readonly exact: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
264
228
  readonly copy: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
@@ -1 +1 @@
1
- {"version":3,"file":"deal.d.ts","sourceRoot":"","sources":["../../src/entities/deal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAsB,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAW3E,0GAA0G;AAC1G,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,eAAe,CAAA;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,IAAI,EAAE,OAAO,CAAA;IACb,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB;AAgBD,gHAAgH;AAChH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,OAAO,CAAA;CACf;AASD;;;GAGG;AACH,eAAO,MAAM,IAAI;;;;;IAKf,kDAAkD;;;;;IAKlD,0FAA0F;;;;;;;;;;;IAI1F,gHAAgH;;;;;;;;;IAShH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