@wirecat/zoom-cli 0.70.0 → 0.71.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 (144) hide show
  1. package/dist/answer-entities.d.ts +2 -0
  2. package/dist/answer-entities.d.ts.map +1 -1
  3. package/dist/bin/zm.js +2 -2
  4. package/dist/bundle/{all-profiles-GE2TFJJP.js → all-profiles-O4YNVPZX.js} +7 -7
  5. package/dist/bundle/{answer-policy-GOXSDYDD.js → answer-policy-PPSPMCLH.js} +52 -52
  6. package/dist/bundle/{anthropic-FA6NHENI.js → anthropic-7GGRX3RX.js} +13 -4
  7. package/dist/bundle/{app-server-IRADMSNX.js → app-server-CPMKM3HI.js} +46 -46
  8. package/dist/bundle/{bun-ZYZGGCX5.js → bun-POHZKEPV.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-Y24TUIGS.js → bun-sqlite-PGYMBPEL.js} +2 -2
  10. package/dist/bundle/{chunk-DCUWJITQ.js → chunk-2FV5JUQU.js} +38 -592
  11. package/dist/bundle/{chunk-DNR4B5YV.js → chunk-2KESWII5.js} +2 -2
  12. package/dist/bundle/{chunk-KWRCP55G.js → chunk-2RUAMDVV.js} +10 -10
  13. package/dist/bundle/{chunk-IS3ZTT2Z.js → chunk-2U27KIKU.js} +2 -2
  14. package/dist/bundle/chunk-4LAQDZXU.js +1635 -0
  15. package/dist/bundle/{chunk-6IF5ZHDS.js → chunk-4QPQ7MDA.js} +1 -1
  16. package/dist/bundle/{chunk-MVOMLJYQ.js → chunk-4QUFFB2U.js} +3 -3
  17. package/dist/bundle/{chunk-AUNW7N4I.js → chunk-54YDWBYG.js} +1 -1
  18. package/dist/bundle/{chunk-AISJCF7A.js → chunk-5J4AMBMM.js} +4 -4
  19. package/dist/bundle/{chunk-UVPL7YAY.js → chunk-5K7OGPGA.js} +4 -4
  20. package/dist/bundle/{chunk-RO3ZR4VP.js → chunk-5LJTU4LY.js} +12 -12
  21. package/dist/bundle/{chunk-YTN2JN6N.js → chunk-633QXP57.js} +9 -7
  22. package/dist/bundle/{chunk-DXCTW3MV.js → chunk-64ZHF6PJ.js} +1 -1
  23. package/dist/bundle/{chunk-JRO2FWO2.js → chunk-77TCCHMP.js} +1 -1
  24. package/dist/bundle/{chunk-CIZ25UPK.js → chunk-7ROXXRGG.js} +2282 -1087
  25. package/dist/bundle/{chunk-OA37BWE5.js → chunk-ALIT5QFT.js} +1 -1
  26. package/dist/bundle/{chunk-V2E7QFZ3.js → chunk-BBTQIVFP.js} +1 -1
  27. package/dist/bundle/{chunk-M7E44TMT.js → chunk-BGTEVIW4.js} +5 -5
  28. package/dist/bundle/{chunk-2QFPVUM3.js → chunk-CFQF6IGY.js} +2 -2
  29. package/dist/bundle/{chunk-XWQNJKTP.js → chunk-CKPCVEXU.js} +5 -5
  30. package/dist/bundle/{chunk-L24UOUWG.js → chunk-CRFOGYDG.js} +1 -1
  31. package/dist/bundle/{chunk-OAQLVV6W.js → chunk-CT4WVR4N.js} +2 -2
  32. package/dist/bundle/{chunk-SNIY3JDN.js → chunk-DHWBSXG3.js} +20 -20
  33. package/dist/bundle/{chunk-CHGUNZ3L.js → chunk-DIQLXAAZ.js} +3 -3
  34. package/dist/bundle/{chunk-RRRJCHUC.js → chunk-DK6ICIGL.js} +3141 -982
  35. package/dist/bundle/{chunk-YUHM2OJM.js → chunk-DRBQDCDU.js} +9 -9
  36. package/dist/bundle/{chunk-LAG5O2FV.js → chunk-DSVZEXYJ.js} +1093 -895
  37. package/dist/bundle/{chunk-4DSIWYGO.js → chunk-FSHCAWZS.js} +29110 -16686
  38. package/dist/bundle/{chunk-SVF3NDAO.js → chunk-GGS6D4W4.js} +2 -2
  39. package/dist/bundle/{chunk-V5GRSOCZ.js → chunk-GL3MYFMX.js} +3 -3
  40. package/dist/bundle/{chunk-VSLDWT4E.js → chunk-GXF5HFFP.js} +3 -3
  41. package/dist/bundle/{chunk-ZV3INEKM.js → chunk-HB6XJQ3Y.js} +4 -4
  42. package/dist/bundle/{chunk-GB5X3GBE.js → chunk-I4DFFR7F.js} +2 -2
  43. package/dist/bundle/{chunk-ZS55EERO.js → chunk-IAV5BG3I.js} +1 -1
  44. package/dist/bundle/{chunk-VNU5L37V.js → chunk-IED3NS7G.js} +27 -35
  45. package/dist/bundle/{chunk-W7ZEEC4K.js → chunk-INVTDIF6.js} +1 -1
  46. package/dist/bundle/{chunk-GVT5363M.js → chunk-KMV7GZB6.js} +1 -1
  47. package/dist/bundle/{chunk-LXXCLQCW.js → chunk-LE7MDAQG.js} +2 -2
  48. package/dist/bundle/{chunk-2JEM2YNV.js → chunk-M76MXMLY.js} +1 -1
  49. package/dist/bundle/{chunk-RWIILYKW.js → chunk-MEED7YFG.js} +1 -1
  50. package/dist/bundle/{chunk-56OV5ASY.js → chunk-MRI6QMZ3.js} +9 -9
  51. package/dist/bundle/{chunk-BSS6HX4O.js → chunk-MW4EGDDV.js} +2 -2
  52. package/dist/bundle/{chunk-6HJFIMT7.js → chunk-N2FNMION.js} +1 -1
  53. package/dist/bundle/{chunk-J3SKXICS.js → chunk-OHWMIUCT.js} +139 -544
  54. package/dist/bundle/{chunk-M7VUXXGS.js → chunk-OWEBWDHV.js} +58 -3
  55. package/dist/bundle/{chunk-BVWF4B33.js → chunk-P3XC6EDU.js} +15 -19
  56. package/dist/bundle/{chunk-JULBAECW.js → chunk-Q2SUFGSH.js} +16 -6
  57. package/dist/bundle/{chunk-QL7EMFIC.js → chunk-Q3XLZIY3.js} +16 -16
  58. package/dist/bundle/{chunk-M6JIXMQZ.js → chunk-Q5PI72CR.js} +1 -1
  59. package/dist/bundle/{chunk-X4ZF4XXI.js → chunk-QTHIU7CO.js} +1 -1
  60. package/dist/bundle/{chunk-CSEBB4OP.js → chunk-QVSLSWAL.js} +7 -7
  61. package/dist/bundle/{chunk-VJ5ZU4UF.js → chunk-RN4EHCC5.js} +2 -2
  62. package/dist/bundle/{chunk-D3PNCJD5.js → chunk-SELXER2Q.js} +3 -3
  63. package/dist/bundle/{chunk-YJSPBUGB.js → chunk-TM4JSVGQ.js} +38 -49
  64. package/dist/bundle/{chunk-5XWCBLUR.js → chunk-UG447QY2.js} +1 -1
  65. package/dist/bundle/{chunk-RIPAUCKJ.js → chunk-ULDXZ6LH.js} +64 -57
  66. package/dist/bundle/chunk-USQ23X5V.js +1227 -0
  67. package/dist/bundle/{chunk-PV6OHXHN.js → chunk-VJXHIUFP.js} +14 -14
  68. package/dist/bundle/{chunk-3KC7C465.js → chunk-VRH7VRTK.js} +7 -7
  69. package/dist/bundle/{chunk-ZSKE7N2U.js → chunk-X277FBTF.js} +2 -2
  70. package/dist/bundle/{chunk-KM736RMJ.js → chunk-X3ZDN3U7.js} +1 -1
  71. package/dist/bundle/{chunk-CEJJBZAE.js → chunk-X4GWR6GO.js} +8 -8
  72. package/dist/bundle/chunk-XI3VIQKW.js +756 -0
  73. package/dist/bundle/{chunk-IWPXWGF7.js → chunk-YD2RYVMK.js} +33 -33
  74. package/dist/bundle/{chunk-RB33VTUW.js → chunk-YPO2U2YB.js} +473 -118
  75. package/dist/bundle/{chunk-IINZIP73.js → chunk-ZBFL5JPT.js} +7 -6
  76. package/dist/bundle/{chunk-QO2KPU26.js → chunk-ZVI6TFQR.js} +100 -43
  77. package/dist/bundle/{cli-VRSQ7HAE.js → cli-KHMEUXNG.js} +117 -64
  78. package/dist/bundle/command-contract-4K6XXZYE.js +41 -0
  79. package/dist/bundle/config-EEDB632I.js +90 -0
  80. package/dist/bundle/{decode-523PUQMR.js → decode-7RP4HSVE.js} +2 -2
  81. package/dist/bundle/{dist-6WWKPEVW.js → dist-BFT2SUBV.js} +60 -40
  82. package/dist/bundle/{echarts-S5UMX2D3.js → echarts-T2BSQ2YV.js} +2 -2
  83. package/dist/bundle/{embed-ODPDVHUK.js → embed-BAS6YPDT.js} +3 -3
  84. package/dist/bundle/{embedder-PAXRBSZE.js → embedder-5XD5FCAO.js} +6 -6
  85. package/dist/bundle/{first-run-NVTDR5VO.js → first-run-23WWZ2PW.js} +5 -5
  86. package/dist/bundle/first-screen-6HFUYVFR.js +39 -0
  87. package/dist/bundle/{instructions-DUB7E6C5.js → instructions-XZPROPKY.js} +1 -1
  88. package/dist/bundle/{main-A7JSYQI6.js → main-TZXKGL3L.js} +12 -12
  89. package/dist/bundle/{meetings-BDZQV3HR.js → meetings-JB2ISPND.js} +3 -1
  90. package/dist/bundle/{node-E25KP53H.js → node-A3B3MJWX.js} +2 -2
  91. package/dist/bundle/{node-sqlite-PHWDFZCP.js → node-sqlite-QVWDLGDX.js} +3 -3
  92. package/dist/bundle/{oauth-G2K46IYP.js → oauth-YA6IYV4O.js} +4 -4
  93. package/dist/bundle/{open-INWS5HIZ.js → open-SY7TXJBS.js} +2 -2
  94. package/dist/bundle/{openai-T44ORVGQ.js → openai-2AU24NRN.js} +8 -8
  95. package/dist/bundle/{process-UJ2JHMJN.js → process-6HNBTJIY.js} +1 -1
  96. package/dist/bundle/{program-LYTGFV6L.js → program-77BUCJ4H.js} +78 -89
  97. package/dist/bundle/{prompt-VTUCRCE4.js → prompt-YDG73YDS.js} +2 -2
  98. package/dist/bundle/{recognize-3CEPOW2F.js → recognize-ECXDGTB7.js} +1 -1
  99. package/dist/bundle/{remote-DRQEXEZL.js → remote-K4JHGBVJ.js} +4 -4
  100. package/dist/bundle/{rerank-UL4KNNVN.js → rerank-IU2YYD4T.js} +4 -4
  101. package/dist/bundle/{run-log-UZAB5CWF.js → run-log-LFEXNZ74.js} +50 -50
  102. package/dist/bundle/{serve-P5UWUOWQ.js → serve-3XWIF3HI.js} +6 -6
  103. package/dist/bundle/{server-M6XK2Y3X.js → server-56VYOHWP.js} +38 -38
  104. package/dist/bundle/server-YSTMUZ22.js +72 -0
  105. package/dist/bundle/{services-4HRYNY62.js → services-X7IPEGQ5.js} +85 -33
  106. package/dist/bundle/{speech-BBPBMFAO.js → speech-E2OBQWYA.js} +10 -10
  107. package/dist/bundle/{state-GDSUNUSY.js → state-4GMJYK4H.js} +3 -3
  108. package/dist/bundle/{store-VWLABMLF.js → store-KPI7GB5Y.js} +37 -19
  109. package/dist/bundle/{store-LBQ6FZP2.js → store-LA4TV4DM.js} +19 -13
  110. package/dist/bundle/store-connection-AZTIF6IH.js +83 -0
  111. package/dist/bundle/store-maintenance-command-LR572PS4.js +61 -0
  112. package/dist/bundle/zm.js +2 -2
  113. package/dist/bundle/{zoom-app-YIEJLWCW.js → zoom-app-QEJBTIJ4.js} +2 -2
  114. package/dist/contract-overrides.d.ts.map +1 -1
  115. package/dist/contract-overrides.js +0 -6
  116. package/dist/contract-overrides.js.map +1 -1
  117. package/dist/ingestion-search-commands.d.ts.map +1 -1
  118. package/dist/ingestion-search-commands.js +0 -10
  119. package/dist/ingestion-search-commands.js.map +1 -1
  120. package/dist/meeting-integration-commands.d.ts.map +1 -1
  121. package/dist/meeting-integration-commands.js +8 -6
  122. package/dist/meeting-integration-commands.js.map +1 -1
  123. package/dist/meeting-integration.d.ts +3 -1
  124. package/dist/meeting-integration.d.ts.map +1 -1
  125. package/dist/store-connection.d.ts.map +1 -1
  126. package/dist/store-connection.js +4 -3
  127. package/dist/store-connection.js.map +1 -1
  128. package/dist/unified-search.d.ts +4 -4
  129. package/dist/unified-search.d.ts.map +1 -1
  130. package/dist/unified-search.js +1 -24
  131. package/dist/unified-search.js.map +1 -1
  132. package/dist/version.d.ts +1 -1
  133. package/dist/version.js +1 -1
  134. package/package.json +3 -3
  135. package/skills/zoom-cli/SKILL.md +2 -2
  136. package/dist/bundle/chunk-AT2XKNFN.js +0 -342
  137. package/dist/bundle/chunk-VE2VNECR.js +0 -380
  138. package/dist/bundle/chunk-Y6C3N7YG.js +0 -12434
  139. package/dist/bundle/command-contract-RPRKHVU6.js +0 -41
  140. package/dist/bundle/config-QU6A6VIO.js +0 -90
  141. package/dist/bundle/first-screen-5RWZDWLK.js +0 -39
  142. package/dist/bundle/server-F3NPVMS2.js +0 -72
  143. package/dist/bundle/store-connection-XEBFP56U.js +0 -83
  144. package/dist/bundle/store-maintenance-command-G43JN57J.js +0 -61
@@ -9,59 +9,46 @@ import {
9
9
  providerErrorKey,
10
10
  renderEvent,
11
11
  runContextOf
12
- } from "./chunk-YTN2JN6N.js";
12
+ } from "./chunk-633QXP57.js";
13
13
  import {
14
14
  permissionCeiling
15
- } from "./chunk-CHGUNZ3L.js";
15
+ } from "./chunk-DIQLXAAZ.js";
16
16
  import {
17
17
  fieldsOf,
18
18
  projectFields,
19
19
  resolveOutput
20
- } from "./chunk-D3PNCJD5.js";
20
+ } from "./chunk-SELXER2Q.js";
21
21
  import {
22
22
  carries
23
- } from "./chunk-OA37BWE5.js";
23
+ } from "./chunk-ALIT5QFT.js";
24
24
  import {
25
25
  DEFAULT_HISTORY_LIMITS,
26
26
  DEFAULT_RERANK_MODEL,
27
27
  HISTORY_MAX_DAYS,
28
28
  IMAGE_MODELS,
29
- KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
30
- LOG_ATTRIBUTES,
31
29
  RERANK_MODELS,
32
- RUNS_SIZE_LIMIT_MB,
33
30
  WEIGHTS,
34
31
  agenda,
35
32
  attachment,
36
- childTrace,
37
33
  closeSuggestion,
38
34
  conversation,
39
- currentRun,
40
- enclosingTraceId,
41
35
  endpoint,
42
36
  hitFile,
43
- inRun,
44
- logAttributes,
45
37
  modelSettingsShape,
46
- newRunId,
47
38
  parseDuration,
39
+ progressOf,
48
40
  resolveModelSettings,
49
- runsDirFor,
50
- snakeLogger,
51
- startRun,
41
+ runBudget,
52
42
  stopWrites,
53
43
  tagging,
54
44
  task,
55
- traceOf,
56
- typedCommand,
57
- useAsProcessRun,
58
45
  withWriteScope
59
- } from "./chunk-J3SKXICS.js";
46
+ } from "./chunk-OHWMIUCT.js";
60
47
  import {
61
48
  envName,
62
49
  readOnlyLockOf,
63
50
  readOnlyRefusal
64
- } from "./chunk-5XWCBLUR.js";
51
+ } from "./chunk-UG447QY2.js";
65
52
  import {
66
53
  CEILING_KEY,
67
54
  COMMAND_PATH_KEY,
@@ -72,18 +59,23 @@ import {
72
59
  keyForCommand,
73
60
  layerPermissions,
74
61
  permissionOverrides
75
- } from "./chunk-M6JIXMQZ.js";
62
+ } from "./chunk-Q5PI72CR.js";
76
63
  import {
77
64
  note
78
- } from "./chunk-ZSKE7N2U.js";
65
+ } from "./chunk-X277FBTF.js";
79
66
  import {
67
+ CATEGORIES,
80
68
  FACT_STATUSES,
69
+ KEEP_STORE_RUNS_FOR_DAYS,
70
+ KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
81
71
  LINK_KINDS,
82
72
  LINK_SOURCES,
73
+ LOG_ATTRIBUTES,
83
74
  MEMORY_KINDS,
84
75
  MEMORY_SCOPES,
85
76
  MEMORY_STATUSES,
86
77
  PRIORITY_LABELS,
78
+ RUNS_SIZE_LIMIT_MB,
87
79
  TASK_KINDS,
88
80
  TASK_ORIGINS,
89
81
  TASK_STATES,
@@ -91,38 +83,56 @@ import {
91
83
  TASK_VERDICTS,
92
84
  WORK_TASK_TYPES,
93
85
  author,
86
+ childTrace,
94
87
  count,
88
+ currentRun,
89
+ enclosingTraceId,
95
90
  evidenceSource,
96
91
  id,
92
+ inRun,
93
+ isGroupName,
94
+ logAttributes,
97
95
  markStoreDamaged,
96
+ newRunId,
98
97
  organization,
99
98
  project,
100
99
  providerMetadata,
101
100
  reminder,
101
+ runsDirFor,
102
+ snakeLogger,
103
+ sourceReview,
104
+ startRun,
102
105
  text,
103
106
  time,
104
- untrusted
105
- } from "./chunk-VE2VNECR.js";
107
+ traceOf,
108
+ typedCommand,
109
+ untrusted,
110
+ useAsProcessRun
111
+ } from "./chunk-USQ23X5V.js";
106
112
  import {
107
113
  isCliFailure,
108
114
  storeDamaged
109
- } from "./chunk-RWIILYKW.js";
115
+ } from "./chunk-MEED7YFG.js";
110
116
  import {
111
117
  sharedConfigPath
112
- } from "./chunk-UVPL7YAY.js";
118
+ } from "./chunk-5K7OGPGA.js";
113
119
  import {
114
120
  BUSINESS_KINDS,
121
+ DEAL_KINDS,
115
122
  DEAL_ROLES,
123
+ DEAL_STATUSES,
124
+ FINANCE_REVIEWS,
116
125
  INVOICE_DIRECTIONS,
126
+ INVOICE_STATUSES,
117
127
  MONEY_DIRECTIONS,
118
128
  ORDER_PURPOSES,
119
129
  ORDER_STATUSES,
120
130
  RELATION_KINDS,
121
131
  STANDINGS
122
- } from "./chunk-AT2XKNFN.js";
132
+ } from "./chunk-XI3VIQKW.js";
123
133
  import {
124
134
  storePath
125
- } from "./chunk-GVT5363M.js";
135
+ } from "./chunk-KMV7GZB6.js";
126
136
  import {
127
137
  FACT_TYPES,
128
138
  MEETING_RESULT_ENTITIES,
@@ -140,7 +150,7 @@ import {
140
150
  meetingStats,
141
151
  meetingSummary,
142
152
  meetingTranscript
143
- } from "./chunk-RIPAUCKJ.js";
153
+ } from "./chunk-ULDXZ6LH.js";
144
154
  import {
145
155
  FIELD_TYPES,
146
156
  QUERY_BACKENDS,
@@ -3725,7 +3735,7 @@ var hidden = /* @__PURE__ */ __name((command) => Boolean(command._hidden), "hidd
3725
3735
  var snapshot = /* @__PURE__ */ __name((command, known = /* @__PURE__ */ new Map(), children) => {
3726
3736
  if (hidden(command))
3727
3737
  throw new Error("a hidden command cannot own a shared contract");
3728
- const { commands: _, usage: __, path: ___, ...contract } = describeAlone(command, known);
3738
+ const { commands: _2, usage: __, path: ___, ...contract } = describeAlone(command, known);
3729
3739
  return {
3730
3740
  ...contract,
3731
3741
  aliases: [...command.aliases()],
@@ -4011,7 +4021,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
4011
4021
  }
4012
4022
  }, "refuseJoinedPath");
4013
4023
 
4014
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4024
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4015
4025
  var CORE_LOG_EVENTS = defineLogEvents([
4016
4026
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
4017
4027
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -4021,6 +4031,7 @@ var CORE_LOG_EVENTS = defineLogEvents([
4021
4031
  meaning: "a read was answered from what was kept, without asking the messenger",
4022
4032
  keys: ["operation", "reason"]
4023
4033
  },
4034
+ { id: "store.write", meaning: "a committed write changed rows of one store table", keys: ["table", "op", "n"] },
4024
4035
  { id: "command.crashed", meaning: "a command failed on a bug; where, never what", keys: ["error_class", "frames"] },
4025
4036
  {
4026
4037
  id: "events.dropped",
@@ -4042,10 +4053,11 @@ var DIAGNOSTIC_LOG_EVENTS = {
4042
4053
  request: "provider.request",
4043
4054
  response: "provider.response",
4044
4055
  warning: "client.warning",
4045
- cache: "cache.answered"
4056
+ cache: "cache.answered",
4057
+ store: "store.write"
4046
4058
  };
4047
4059
 
4048
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/runs/recording.js
4060
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/runs/recording.js
4049
4061
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
4050
4062
  const recording = startRecording(options);
4051
4063
  try {
@@ -4091,6 +4103,7 @@ var startRecording = /* @__PURE__ */ __name((options) => {
4091
4103
  }, "onError"),
4092
4104
  ...options.keepDays === void 0 ? {} : { keepDays: options.keepDays },
4093
4105
  ...options.keepSuccessDays === void 0 ? {} : { keepSuccessDays: options.keepSuccessDays },
4106
+ ...options.keepStoreDays === void 0 ? {} : { keepStoreDays: options.keepStoreDays },
4094
4107
  ...options.maxBytes === void 0 ? {} : { maxBytes: options.maxBytes },
4095
4108
  now,
4096
4109
  ...extra
@@ -4099,6 +4112,7 @@ var startRecording = /* @__PURE__ */ __name((options) => {
4099
4112
  const held = !run && options.keepFailed ? [] : void 0;
4100
4113
  const counted = { wire: 0, operation: 0 };
4101
4114
  let refused;
4115
+ let wroteStore = false;
4102
4116
  const cap = capped();
4103
4117
  const requests = /* @__PURE__ */ __name(() => counted.wire > 0 ? counted.wire : counted.operation, "requests");
4104
4118
  const events2 = /* @__PURE__ */ __name((event2) => {
@@ -4106,6 +4120,8 @@ var startRecording = /* @__PURE__ */ __name((options) => {
4106
4120
  counted[event2.level === "wire" ? "wire" : "operation"] += 1;
4107
4121
  if (event2.event === "response" && event2.outcome === "error")
4108
4122
  refused = event2;
4123
+ if (event2.event === "store")
4124
+ wroteStore = true;
4109
4125
  if (options.trace)
4110
4126
  streams.diagnostic(options.format === "pretty" ? renderEvent(event2) : JSON.stringify(logAttributes(event2)));
4111
4127
  if (run)
@@ -4127,13 +4143,14 @@ var startRecording = /* @__PURE__ */ __name((options) => {
4127
4143
  events: events2,
4128
4144
  succeed: /* @__PURE__ */ __name(async (answer) => {
4129
4145
  const partial2 = partialOutcome(answer);
4130
- const kept = run ?? (partial2 && held ? keep(open({ startedAt })) : void 0);
4146
+ const kept = run ?? ((partial2 || wroteStore) && held ? keep(open({ startedAt })) : void 0);
4131
4147
  if (kept)
4132
4148
  cap.close(kept);
4133
4149
  await kept?.finish(partial2 ? "partial" : "success", {
4134
4150
  requests: requests(),
4135
4151
  ...cap.dropped(),
4136
- ...partial2 ? { partial: partial2 } : {}
4152
+ ...partial2 ? { partial: partial2 } : {},
4153
+ ...!run && !partial2 && wroteStore ? { keptBecauseStore: true } : {}
4137
4154
  });
4138
4155
  }, "succeed"),
4139
4156
  fail: /* @__PURE__ */ __name(async (thrown) => {
@@ -4168,25 +4185,43 @@ var wasSettled = /* @__PURE__ */ __name((error) => typeof error === "object" &&
4168
4185
  var HELD_AT_MOST = 500;
4169
4186
  var EVENTS_AT_MOST = 2e3;
4170
4187
  var EVENT_BYTES_AT_MOST = 1024 * 1024;
4188
+ var STORE_EVENTS_AT_MOST = 100;
4171
4189
  var capped = /* @__PURE__ */ __name(() => {
4172
4190
  let lines = 0;
4173
4191
  let bytes = 0;
4174
4192
  let dropped = 0;
4193
+ let stores = 0;
4175
4194
  const byOperation = {};
4195
+ const summed = /* @__PURE__ */ new Map();
4196
+ const write = /* @__PURE__ */ __name((run, event2) => {
4197
+ const size = JSON.stringify(logAttributes(event2)).length + 200;
4198
+ if (lines >= EVENTS_AT_MOST || bytes + size > EVENT_BYTES_AT_MOST) {
4199
+ dropped += 1;
4200
+ const operation = "operation" in event2 && event2.operation ? event2.operation : event2.event;
4201
+ byOperation[operation] = (byOperation[operation] ?? 0) + 1;
4202
+ return;
4203
+ }
4204
+ lines += 1;
4205
+ bytes += size;
4206
+ logEvent(run, event2);
4207
+ }, "write");
4176
4208
  return {
4177
4209
  log: /* @__PURE__ */ __name((run, event2) => {
4178
- const size = JSON.stringify(logAttributes(event2)).length + 200;
4179
- if (lines >= EVENTS_AT_MOST || bytes + size > EVENT_BYTES_AT_MOST) {
4180
- dropped += 1;
4181
- const operation = "operation" in event2 && event2.operation ? event2.operation : event2.event;
4182
- byOperation[operation] = (byOperation[operation] ?? 0) + 1;
4210
+ if (event2.event === "store" && ++stores > STORE_EVENTS_AT_MOST) {
4211
+ const key = `${event2.table} ${event2.op}`;
4212
+ const sum = summed.get(key);
4213
+ if (sum)
4214
+ sum.n += event2.n;
4215
+ else
4216
+ summed.set(key, { ...event2 });
4183
4217
  return;
4184
4218
  }
4185
- lines += 1;
4186
- bytes += size;
4187
- logEvent(run, event2);
4219
+ write(run, event2);
4188
4220
  }, "log"),
4189
4221
  close: /* @__PURE__ */ __name((run) => {
4222
+ for (const sum of summed.values())
4223
+ write(run, sum);
4224
+ summed.clear();
4190
4225
  if (dropped > 0)
4191
4226
  run.logger.warn({ event: "events.dropped", dropped, counts: byOperation });
4192
4227
  }, "close"),
@@ -4201,7 +4236,7 @@ var logEvent = /* @__PURE__ */ __name((run, event2) => {
4201
4236
  };
4202
4237
  if (event2.event === "warning")
4203
4238
  run.logger.warn(record2);
4204
- else if (event2.event !== "cache" && event2.outcome === "error")
4239
+ else if ((event2.event === "request" || event2.event === "response") && event2.outcome === "error")
4205
4240
  run.logger.error(record2);
4206
4241
  else
4207
4242
  run.logger.info(record2);
@@ -4237,14 +4272,14 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
4237
4272
  return void 0;
4238
4273
  }, "partialOutcome");
4239
4274
 
4240
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/deadline.js
4275
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/deadline.js
4241
4276
  var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
4242
4277
  if (ms2 === void 0)
4243
4278
  return body();
4244
4279
  let timer2;
4245
4280
  let timedOut;
4246
4281
  const writes2 = /* @__PURE__ */ new Set();
4247
- const expired = new Promise((_, reject) => {
4282
+ const expired = new Promise((_2, reject) => {
4248
4283
  timer2 = setTimeout(() => {
4249
4284
  const pending = [...writes2];
4250
4285
  const cut2 = pending.filter((write) => !write.preparing);
@@ -4263,7 +4298,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
4263
4298
  }
4264
4299
  }, "withDeadline");
4265
4300
 
4266
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/execution.js
4301
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/execution.js
4267
4302
  var DEFAULT_COMMAND_MS = 3e4;
4268
4303
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
4269
4304
  var DEFAULT_SYNC_MS = 15 * 6e4;
@@ -4288,7 +4323,7 @@ var execution = /* @__PURE__ */ __name((streams, { timeoutMs, fields, maxOutputB
4288
4323
  let interrupted;
4289
4324
  let reject = /* @__PURE__ */ __name(() => {
4290
4325
  }, "reject");
4291
- const interruption = new Promise((_, fail) => {
4326
+ const interruption = new Promise((_2, fail) => {
4292
4327
  reject = fail;
4293
4328
  });
4294
4329
  void interruption.catch(() => {
@@ -4435,7 +4470,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
4435
4470
  throw signal.reason;
4436
4471
  let abort = /* @__PURE__ */ __name(() => {
4437
4472
  }, "abort");
4438
- const interrupted = new Promise((_, reject) => {
4473
+ const interrupted = new Promise((_2, reject) => {
4439
4474
  abort = /* @__PURE__ */ __name(() => reject(signal.reason), "abort");
4440
4475
  signal.addEventListener("abort", abort, { once: true });
4441
4476
  });
@@ -4446,7 +4481,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
4446
4481
  }
4447
4482
  }, "withAbort");
4448
4483
 
4449
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/profile.js
4484
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/profile.js
4450
4485
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
4451
4486
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
4452
4487
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -4481,6 +4516,24 @@ var liftProfile = /* @__PURE__ */ __name((argv, words, valued = /* @__PURE__ */
4481
4516
  return { rest: argv };
4482
4517
  return { profile: first2, rest: [...argv.slice(0, at2), ...argv.slice(at2 + 1)] };
4483
4518
  }, "liftProfile");
4519
+ var runGroup = /* @__PURE__ */ __name((app, env, word) => {
4520
+ const GROUP = envName(app, "GROUP");
4521
+ const LOCK = envName(app, "GROUP_LOCK");
4522
+ const lock = env[LOCK]?.trim() || void 0;
4523
+ const named2 = word ?? (env[GROUP]?.trim() || void 0);
4524
+ const from = word === void 0 ? GROUP : "first word";
4525
+ for (const [name, origin] of [
4526
+ [named2, from],
4527
+ [lock, LOCK]
4528
+ ])
4529
+ if (name !== void 0 && !isGroupName(name))
4530
+ throw new CliError("validation_error", `"${name}" (${origin}) is not a group name \u2014 letters, digits, - and _, starting with a letter or a digit`);
4531
+ if (lock === void 0 || lock.toLowerCase() === "all")
4532
+ return named2 === void 0 || named2.toLowerCase() === "all" ? void 0 : { name: named2, from, locked: false };
4533
+ if (named2 !== void 0 && named2 !== lock)
4534
+ throw new CliError("permission_error", `this process is locked to group ${lock} (${LOCK}) \u2014 group "${named2}" (${from}) is refused`);
4535
+ return { name: lock, from: LOCK, locked: true };
4536
+ }, "runGroup");
4484
4537
  var valuedOptions = /* @__PURE__ */ __name((program2) => new Set(program2.options.filter((option) => option.required).flatMap((option) => [option.long, option.short].filter((flag2) => flag2 !== void 0))), "valuedOptions");
4485
4538
  var refuseCommandName = /* @__PURE__ */ __name((profile, words, command) => {
4486
4539
  if (words.has(profile)) {
@@ -4515,7 +4568,7 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
4515
4568
  return void 0;
4516
4569
  }, "sampleCommand");
4517
4570
 
4518
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/analysis/settings.js
4571
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/analysis/settings.js
4519
4572
  var model = pipe(string(), trim(), minLength(1), maxLength(200));
4520
4573
  var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
4521
4574
  var AI_FIELDS = {
@@ -4559,7 +4612,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
4559
4612
  };
4560
4613
  }, "resolveAISettings");
4561
4614
 
4562
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
4615
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
4563
4616
  import { existsSync, readdirSync, readFileSync } from "node:fs";
4564
4617
  import { join } from "node:path";
4565
4618
  var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
@@ -4648,10 +4701,10 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
4648
4701
  return readdirSync(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
4649
4702
  }, "registryProfiles");
4650
4703
 
4651
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
4704
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
4652
4705
  import { readFileSync as readFileSync2 } from "node:fs";
4653
4706
 
4654
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
4707
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
4655
4708
  var REPAIR_WORDS = {
4656
4709
  byte_order_mark: "an invisible byte-order mark at the start",
4657
4710
  comment: "a comment, which JSON does not allow",
@@ -4892,7 +4945,7 @@ ${parts.join(",\n")}
4892
4945
  ${indent}${close}`;
4893
4946
  }, "serialise");
4894
4947
 
4895
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
4948
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
4896
4949
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
4897
4950
  var SECTIONS = ["personal", "bot"];
4898
4951
  var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
@@ -5079,12 +5132,12 @@ var scopes = /* @__PURE__ */ __name((raw) => {
5079
5132
  if (isNode(node))
5080
5133
  out.push([path2, node]);
5081
5134
  }, "add");
5082
- const addSection = /* @__PURE__ */ __name((path2, section) => {
5083
- if (!isNode(section))
5135
+ const addSection = /* @__PURE__ */ __name((path2, section2) => {
5136
+ if (!isNode(section2))
5084
5137
  return;
5085
- add([...path2, "defaults"], section.defaults);
5086
- if (isNode(section.profiles))
5087
- for (const [name, scope] of Object.entries(section.profiles))
5138
+ add([...path2, "defaults"], section2.defaults);
5139
+ if (isNode(section2.profiles))
5140
+ for (const [name, scope] of Object.entries(section2.profiles))
5088
5141
  add([...path2, "profiles", name], scope);
5089
5142
  }, "addSection");
5090
5143
  add([], raw);
@@ -5101,7 +5154,7 @@ var prune = /* @__PURE__ */ __name((raw, paths) => {
5101
5154
  const kept = /* @__PURE__ */ new Map();
5102
5155
  const walk = /* @__PURE__ */ __name((node, at2) => {
5103
5156
  if (Array.isArray(node)) {
5104
- const indices = node.flatMap((_, index) => drop.has(pathId([...at2, String(index)])) ? [] : [index]);
5157
+ const indices = node.flatMap((_2, index) => drop.has(pathId([...at2, String(index)])) ? [] : [index]);
5105
5158
  kept.set(pathId(at2), indices);
5106
5159
  return indices.map((index) => walk(node[index], [...at2, String(index)]));
5107
5160
  }
@@ -5138,7 +5191,7 @@ var withoutPath = /* @__PURE__ */ __name((raw, at2) => {
5138
5191
  return { config: prune(raw, [gone]).pruned, removed: true };
5139
5192
  }, "withoutPath");
5140
5193
  var withoutSetting = /* @__PURE__ */ __name((raw, setting2) => withoutPath(raw, settingPathOf(setting2)), "withoutSetting");
5141
- var publicIssue = /* @__PURE__ */ __name(({ at: _, ...issue }) => issue, "publicIssue");
5194
+ var publicIssue = /* @__PURE__ */ __name(({ at: _2, ...issue }) => issue, "publicIssue");
5142
5195
  var fixVerb = /* @__PURE__ */ __name((issue) => issue.kind === "invalid_json" ? "repair" : "remove", "fixVerb");
5143
5196
  var issueMessage = /* @__PURE__ */ __name((issues, doctor = "doctor") => {
5144
5197
  const [first2] = issues;
@@ -5187,7 +5240,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
5187
5240
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
5188
5241
  }, "readConfigFile");
5189
5242
 
5190
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/default-config.js
5243
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/default-config.js
5191
5244
  import { existsSync as existsSync2, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
5192
5245
  import { dirname, join as join2 } from "node:path";
5193
5246
  var DEFAULT_CONFIG = {
@@ -5216,7 +5269,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
5216
5269
  }
5217
5270
  __name(ensureDefaultConfig, "ensureDefaultConfig");
5218
5271
 
5219
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
5272
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
5220
5273
  import { existsSync as existsSync3, readdirSync as readdirSync2, readFileSync as readFileSync3 } from "node:fs";
5221
5274
  import { join as join3 } from "node:path";
5222
5275
  var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
@@ -5238,7 +5291,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
5238
5291
  }, "profilesWithAccounts");
5239
5292
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
5240
5293
 
5241
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
5294
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
5242
5295
  var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
5243
5296
  var parentOf = /* @__PURE__ */ __name((config, key) => {
5244
5297
  const path2 = key.split(".");
@@ -5271,7 +5324,7 @@ var settingRows = /* @__PURE__ */ __name((raw, declared) => declared.map((settin
5271
5324
  };
5272
5325
  }), "settingRows");
5273
5326
 
5274
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/settings.js
5327
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/settings.js
5275
5328
  import { existsSync as existsSync4 } from "node:fs";
5276
5329
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
5277
5330
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
@@ -5311,6 +5364,7 @@ var SHARED_PROFILE_ENTRIES = {
5311
5364
  record_input: optional(recordInputSetting),
5312
5365
  keep_runs_for_days: optional(count2),
5313
5366
  keep_successful_runs_for_days: optional(count2),
5367
+ keep_store_runs_for_days: optional(count2),
5314
5368
  runs_size_limit_mb: optional(count2),
5315
5369
  permissions: optional(permissionLevels),
5316
5370
  sends_per_hour: optional(count2),
@@ -5321,6 +5375,7 @@ var SHARED_PROFILE_ENTRIES = {
5321
5375
  history_dialog_days: optional(historyDays),
5322
5376
  history_group_days: optional(historyDays),
5323
5377
  history_group_members_max: optional(count2),
5378
+ history_muted: optional(flag),
5324
5379
  picture_search: optional(flag),
5325
5380
  search_reranker: optional(picklist([...RERANK_MODELS.map((model3) => model3.id), "off"], plain(`has to be off or a reranker id: ${RERANK_MODELS.map((model3) => model3.id).join(", ")}`))),
5326
5381
  ...AI_ENTRIES
@@ -5336,6 +5391,7 @@ var MESSENGER_ONLY_SETTINGS = [
5336
5391
  "history_dialog_days",
5337
5392
  "history_group_days",
5338
5393
  "history_group_members_max",
5394
+ "history_muted",
5339
5395
  "read_other_bots",
5340
5396
  "speech_model",
5341
5397
  "picture_search"
@@ -5369,6 +5425,11 @@ var SHARED_SETTINGS = [
5369
5425
  default: KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
5370
5426
  description: "days a successful run is kept"
5371
5427
  },
5428
+ {
5429
+ key: "keep_store_runs_for_days",
5430
+ default: KEEP_STORE_RUNS_FOR_DAYS,
5431
+ description: "days a successful run that wrote the store is kept, even unrecorded"
5432
+ },
5372
5433
  { key: "runs_size_limit_mb", default: RUNS_SIZE_LIMIT_MB, description: "the most megabytes all runs may take" },
5373
5434
  { key: "sender_colors", default: false, description: "color each sender's name in a conversation" },
5374
5435
  { key: "search_catch_up", default: false, description: "prepare local search after a gaps repair" },
@@ -5387,6 +5448,7 @@ var SHARED_SETTINGS = [
5387
5448
  default: DEFAULT_HISTORY_LIMITS.groupMembersMax,
5388
5449
  description: "a group with more people than this keeps no pushed history"
5389
5450
  },
5451
+ { key: "history_muted", default: false, description: "messages sync --all reads muted chats too" },
5390
5452
  {
5391
5453
  key: "picture_search",
5392
5454
  default: false,
@@ -5511,7 +5573,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5511
5573
  const env = options.env ?? process.env;
5512
5574
  const configPath = configPathFor(options);
5513
5575
  try {
5514
- if (!options.readOnly)
5576
+ if (!options.readOnly && !readOnlyLockOf(app, env))
5515
5577
  ensureDefaultConfig(configPath, withDefaults(DEFAULT_CONFIG).config);
5516
5578
  } catch (error) {
5517
5579
  throw new CliError("configuration_error", error instanceof Error ? error.message : String(error));
@@ -5532,11 +5594,11 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5532
5594
  const name = usableProfileName(profile.value);
5533
5595
  const configured = config.profiles[name] ?? {};
5534
5596
  const shared = config.defaults ?? {};
5535
- const section = config[kind2];
5597
+ const section2 = config[kind2];
5536
5598
  const layers = [
5537
- [`config file: ${kind2}.profiles.${name}`, section?.profiles?.[name]],
5599
+ [`config file: ${kind2}.profiles.${name}`, section2?.profiles?.[name]],
5538
5600
  [extension.sourcePaths ? `config file: profiles.${name}` : "config file", configured],
5539
- [`config file: ${kind2}.defaults`, section?.defaults],
5601
+ [`config file: ${kind2}.defaults`, section2?.defaults],
5540
5602
  [extension.sourcePaths ? "config file: defaults" : "config defaults", shared]
5541
5603
  ];
5542
5604
  const fromLayers = /* @__PURE__ */ __name((key, fallback, only = layers) => first(only.map(([from, scope]) => [from, scope?.[key]]), fallback), "fromLayers");
@@ -5550,11 +5612,13 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5550
5612
  const historyDialogDays = fromLayers("history_dialog_days", DEFAULT_HISTORY_LIMITS.dialogDays);
5551
5613
  const historyGroupDays = fromLayers("history_group_days", DEFAULT_HISTORY_LIMITS.groupDays);
5552
5614
  const historyGroupMembersMax = fromLayers("history_group_members_max", DEFAULT_HISTORY_LIMITS.groupMembersMax);
5615
+ const historyMuted = fromLayers("history_muted", false);
5553
5616
  const pictureSearch = fromLayers("picture_search", false);
5554
5617
  const searchReranker = fromLayers("search_reranker", DEFAULT_RERANK_MODEL);
5555
5618
  const recordInput = fromLayers("record_input", true);
5556
5619
  const keepRunsForDays = fromLayers("keep_runs_for_days", DEFAULT_KEEP_RUNS_FOR_DAYS);
5557
5620
  const keepSuccessfulRunsForDays = fromLayers("keep_successful_runs_for_days", KEEP_SUCCESSFUL_RUNS_FOR_DAYS);
5621
+ const keepStoreRunsForDays = fromLayers("keep_store_runs_for_days", KEEP_STORE_RUNS_FOR_DAYS);
5558
5622
  const runsSizeLimitMb = fromLayers("runs_size_limit_mb", RUNS_SIZE_LIMIT_MB);
5559
5623
  const readOnlyLock = readOnlyLockOf(app, env);
5560
5624
  const sendsPerHour = kind2 === "bot" ? fromLayers("sends_per_hour", Number.POSITIVE_INFINITY, kindLayers) : fromLayers("sends_per_hour", DEFAULT_SENDS_PER_HOUR);
@@ -5597,6 +5661,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5597
5661
  groupDays: historyGroupDays.value,
5598
5662
  groupMembersMax: historyGroupMembersMax.value
5599
5663
  },
5664
+ historyMuted: historyMuted.value,
5600
5665
  pictureSearch: pictureSearch.value,
5601
5666
  searchReranker: searchReranker.value,
5602
5667
  limit: limit.value,
@@ -5609,6 +5674,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5609
5674
  keepFailedRuns: record2.value || record2.from !== "flag",
5610
5675
  keepRunsForDays: keepRunsForDays.value,
5611
5676
  keepSuccessfulRunsForDays: keepSuccessfulRunsForDays.value,
5677
+ keepStoreRunsForDays: keepStoreRunsForDays.value,
5612
5678
  runsSizeLimitMb: runsSizeLimitMb.value,
5613
5679
  ...readOnlyLock ? { readOnlyLock } : {},
5614
5680
  permissions: permissions.levels,
@@ -5637,12 +5703,14 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5637
5703
  historyDialogDays: historyDialogDays.from,
5638
5704
  historyGroupDays: historyGroupDays.from,
5639
5705
  historyGroupMembersMax: historyGroupMembersMax.from,
5706
+ historyMuted: historyMuted.from,
5640
5707
  pictureSearch: pictureSearch.from,
5641
5708
  searchReranker: searchReranker.from,
5642
5709
  record: record2.from,
5643
5710
  recordInput: recordInput.from,
5644
5711
  keepRunsForDays: keepRunsForDays.from,
5645
5712
  keepSuccessfulRunsForDays: keepSuccessfulRunsForDays.from,
5713
+ keepStoreRunsForDays: keepStoreRunsForDays.from,
5646
5714
  runsSizeLimitMb: runsSizeLimitMb.from,
5647
5715
  sendsPerHour: sendsPerHour.from,
5648
5716
  requestsPerMinute: requestsPerMinute.from,
@@ -5782,50 +5850,7 @@ var given = /* @__PURE__ */ __name((value) => {
5782
5850
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
5783
5851
  }, "given");
5784
5852
 
5785
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/background/budget.js
5786
- var DEADLINE_MARGIN_MS = 5e3;
5787
- var DEADLINE_MARGIN_SHARE = 0.15;
5788
- var DEFAULT_REQUEST_MS = 2e3;
5789
- var deadlineMargin = /* @__PURE__ */ __name((deadline) => Math.max(DEADLINE_MARGIN_MS, deadline.ms * DEADLINE_MARGIN_SHARE), "deadlineMargin");
5790
- var requestsFor = /* @__PURE__ */ __name((deadline, requestMs = DEFAULT_REQUEST_MS) => deadline === void 0 ? null : Math.max(1, Math.floor((deadline.ms - deadlineMargin(deadline)) / requestMs)), "requestsFor");
5791
- var runBudget = /* @__PURE__ */ __name(({ requests, deadline, requestMs, signal, now = Date.now } = {}) => {
5792
- const fits = requestsFor(deadline, requestMs);
5793
- const limit = fits === null ? requests ?? null : Math.min(fits, requests ?? fits);
5794
- const margin = deadline ? deadlineMargin(deadline) : 0;
5795
- let used = 0;
5796
- let stopped = null;
5797
- let last;
5798
- let slowest = 0;
5799
- return {
5800
- take() {
5801
- if (stopped)
5802
- return stopped;
5803
- const at2 = now();
5804
- if (last !== void 0)
5805
- slowest = Math.max(slowest, at2 - last);
5806
- if (signal?.aborted)
5807
- stopped = "cancelled";
5808
- else if (limit !== null && used >= limit)
5809
- stopped = "requests";
5810
- else if (deadline && at2 + margin + slowest >= deadline.endsAt)
5811
- stopped = "deadline";
5812
- if (stopped)
5813
- return stopped;
5814
- used += 1;
5815
- last = at2;
5816
- return null;
5817
- },
5818
- get used() {
5819
- return used;
5820
- },
5821
- limit,
5822
- get stopped() {
5823
- return stopped;
5824
- }
5825
- };
5826
- }, "runBudget");
5827
-
5828
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/context.js
5853
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/context.js
5829
5854
  var runBudgetOf = /* @__PURE__ */ __name((command, requests) => {
5830
5855
  const { deadline, signal, app } = environmentOf(command);
5831
5856
  const now = deadline?.();
@@ -5930,6 +5955,7 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
5930
5955
  trace: settings.trace,
5931
5956
  keepDays: settings.keepRunsForDays,
5932
5957
  ...settings.keepSuccessfulRunsForDays === void 0 ? {} : { keepSuccessDays: settings.keepSuccessfulRunsForDays },
5958
+ ...settings.keepStoreRunsForDays === void 0 ? {} : { keepStoreDays: settings.keepStoreRunsForDays },
5933
5959
  ...settings.runsSizeLimitMb === void 0 ? {} : { maxBytes: settings.runsSizeLimitMb * 1024 * 1024 },
5934
5960
  processRun: !environment.agent,
5935
5961
  format,
@@ -5957,7 +5983,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
5957
5983
  return words.join(" ");
5958
5984
  }, "commandPath");
5959
5985
 
5960
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/effects.js
5986
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/effects.js
5961
5987
  var REMOTE_READ = { remote: "read", local: "read" };
5962
5988
  var FETCH = { remote: "read", local: "write" };
5963
5989
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -6103,7 +6129,55 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
6103
6129
  throw readOnlyRefusal(lock, what);
6104
6130
  }, "refuseUnderReadOnly");
6105
6131
 
6106
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/member.js
6132
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
6133
+ var linkedIdentity = strictObject({
6134
+ provider: text,
6135
+ id,
6136
+ name: nullable(text),
6137
+ username: nullable(text),
6138
+ is_bot: nullable(boolean()),
6139
+ accounts: array(id),
6140
+ seen_in: array(strictObject({ account: id, scope: picklist(["personal", "work"]) })),
6141
+ method: text,
6142
+ linked_by: text,
6143
+ linked_at: time
6144
+ });
6145
+ var linkedPerson = strictObject({
6146
+ uid: id,
6147
+ name: nullable(text),
6148
+ identities: array(linkedIdentity),
6149
+ /** An agent's link: the `identity_link` proposal the owner decides; the person is still as it was. */
6150
+ proposal: optional(text)
6151
+ });
6152
+ var contactActivity = strictObject({
6153
+ at: time,
6154
+ subject: text,
6155
+ subject_id: count,
6156
+ role: text,
6157
+ scope: text,
6158
+ provider: nullable(text),
6159
+ account: nullable(text),
6160
+ chat_id: nullable(text),
6161
+ locator: nullable(text),
6162
+ project_id: nullable(count)
6163
+ });
6164
+ var botReason = picklist(Object.keys(WEIGHTS));
6165
+ var contactCheck = strictObject({
6166
+ person: strictObject({ id, name: nullable(text), username: nullable(text), provider: text }),
6167
+ score: count,
6168
+ reasons: array(strictObject({ reason: botReason, weight: count, source: text, detail: optional(text) })),
6169
+ registries: array(strictObject({
6170
+ name: picklist(["cas", "lols"]),
6171
+ answer: picklist(["listed", "clean", "unknown"]),
6172
+ checked_at: time,
6173
+ detail: optional(text),
6174
+ reasons: optional(array(picklist(["cas_banned", "lols_banned", "lols_scammer"])))
6175
+ })),
6176
+ unknown: array(botReason),
6177
+ checked_at: time
6178
+ });
6179
+
6180
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/member.js
6107
6181
  var member = strictObject({
6108
6182
  id,
6109
6183
  name: nullable(text),
@@ -6126,7 +6200,7 @@ var member = strictObject({
6126
6200
  check: optional(record(string(), unknown()))
6127
6201
  });
6128
6202
 
6129
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/chat.js
6203
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/chat.js
6130
6204
  var setting = optional(nullable(boolean()));
6131
6205
  var chat = strictObject({
6132
6206
  ref: reference,
@@ -6167,74 +6241,665 @@ var chat = strictObject({
6167
6241
  members: optional(array(member))
6168
6242
  });
6169
6243
 
6170
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/list-results.js
6171
- var botProfile = strictObject({
6172
- name: text,
6173
- token: text,
6174
- bot: optional(text),
6175
- id: optional(id),
6176
- problem: optional(text)
6177
- });
6178
- var botSeenChat = strictObject({
6179
- ...partial(omit(chat, ["ref", "provider", "account", "description", "invite_link", "settings", "members"])).entries,
6244
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/message.js
6245
+ var quoted = strictObject({
6180
6246
  id,
6181
- parent_chat_id: optional(nullable(id)),
6182
- muted_until: optional(nullable(time)),
6183
- first_seen_at: optional(time),
6184
- last_seen_at: optional(time)
6247
+ sender_id: nullable(id),
6248
+ sender_name: nullable(text),
6249
+ timestamp: nullable(time),
6250
+ text,
6251
+ attachments: array(attachment),
6252
+ outgoing: nullable(boolean())
6185
6253
  });
6186
- var botAdmin = strictObject({
6254
+ var mailPerson = strictObject({ name: nullable(text), address: text, ref: nullable(reference) });
6255
+ var message = strictObject({
6256
+ /** The message's locator. */
6257
+ ref: reference,
6187
6258
  id,
6188
- name: nullable(text),
6189
- username: nullable(text),
6190
- role: picklist(["owner", "admin"]),
6191
- rights: array(picklist(["read", "members", "admins", "info", "pin", "link", "post", "edit", "delete"])),
6192
- title: nullable(text)
6193
- });
6194
- var botMenuEntry = strictObject({ name: text, description: nullable(text) });
6195
- var topicIcon = strictObject({ emoji: text });
6196
- var botWebhook = strictObject({ url: text, types: optional(array(text)) });
6197
- var scheduledJob = strictObject({
6198
- name: text,
6199
- kind: picklist(["command", "agent"]),
6200
- when: text,
6201
- /** When a finished run shows a desktop notice: `always`, `failures` or `never`; the default is shown, not left out. */
6202
- notify: optional(picklist(["always", "failures", "never"])),
6203
- /** Where a run's result is sent after it: `telegram-bot:<profile>/<chat>` or `email:<profile>/<address>`. */
6204
- deliver_to: optional(array(text)),
6205
- last: nullable(strictObject({
6206
- at: time,
6207
- exit_code: number(),
6208
- output: text,
6209
- trace_id: optional(text),
6210
- reason: optional(text),
6211
- error_code: optional(text),
6212
- failing_since: optional(time),
6213
- failures: optional(number()),
6214
- cost_usd: optional(number()),
6215
- /** The last time a run did not start, and why: the day's cost cap, or too little new mail. */
6216
- skipped: optional(strictObject({
6217
- at: time,
6218
- why: text,
6219
- /** A dotted id for `why`, so a client can translate it: `cost.day-cap`, `mail.none-new`, `mail.below-threshold`. */
6220
- reason: optional(pipe(text, regex(/^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$/)))
6221
- })),
6222
- /** How the run's result went along each route; `reason` a dotted id, `error` the sending CLI's code and reason id. */
6223
- deliveries: optional(array(strictObject({
6224
- to: text,
6225
- ok: boolean(),
6226
- reason: optional(pipe(text, regex(/^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$/))),
6227
- error: optional(text)
6228
- })))
6259
+ provider: optional(text),
6260
+ account: optional(text),
6261
+ chat_id: id,
6262
+ chat_title: optional(nullable(text)),
6263
+ sender_id: nullable(id),
6264
+ sender_name: nullable(text),
6265
+ sender_username: optional(text),
6266
+ sender_is_chat: optional(boolean()),
6267
+ sender_is_me: boolean(),
6268
+ mentions: optional(array(id)),
6269
+ /** When it was sent. */
6270
+ timestamp: time,
6271
+ edited_at: nullable(time),
6272
+ text,
6273
+ /** What a voice message says, once heard. */
6274
+ transcript: optional(text),
6275
+ /** In a window of messages around one, the one asked for. */
6276
+ anchor: optional(boolean()),
6277
+ /** A stretch of the text, transcript, file name or file text around what a search matched. */
6278
+ excerpt: optional(text),
6279
+ /** `picture`: the picture search lane found it by what the picture shows; it follows the text hits. */
6280
+ matched_in: optional(picklist(["text", "transcript", "filename", "file", "context", "picture"])),
6281
+ score: optional(number()),
6282
+ /**
6283
+ * `corrected`: a query word matched only a spelling speech recognition garbled in a voice note's transcript,
6284
+ * listed in `corrections`. `words` and `beginnings`: what a discovery search matched.
6285
+ */
6286
+ match: optional(picklist(["words", "beginnings", "corrected"])),
6287
+ corrections: optional(array(strictObject({ from: text, to: array(text) }))),
6288
+ /** Where a search found it: the local archive, the messenger's server, or both. */
6289
+ found_in: optional(picklist(["archive", "server", "both"])),
6290
+ /** A discovery search's partial match: how much of the question it covers, and which words it lacks. */
6291
+ discovery: optional(strictObject({
6292
+ coverage: number(),
6293
+ matched_terms: array(text),
6294
+ missing_terms: array(text),
6295
+ parent: optional(reference),
6296
+ /** Present when meaning was searched too: which of the two lists found it. */
6297
+ found_by: optional(array(picklist(["words", "meaning"]))),
6298
+ /** Present when the reranker read it: its own score, higher is better. It ordered the first hits with `score`. */
6299
+ reranker_score: optional(number())
6229
6300
  })),
6230
- /** Agent schedules: what today's runs cost, in US dollars. */
6231
- spent_today_usd: optional(number()),
6232
- /** Agent schedules: the cap on one run (`--max-cost`), null when none. */
6233
- max_cost_usd: optional(nullable(number())),
6234
- /** Agent schedules: the daily cap in force, the schedule's `--max-cost-per-day` or the config's; 0 for none. */
6235
- max_cost_per_day_usd: optional(number())
6301
+ /** The messages around a search hit, or its thread, oldest first; the hit itself is among them. */
6302
+ context: optional(array(strictObject({ ref: reference, timestamp: time, sender_name: nullable(text), text }))),
6303
+ /**
6304
+ * A discovery hit's later messages, from any chat the search reads, that share a rare word with it, latest first:
6305
+ * one may change or cancel what the hit says. An excerpt, as the hit's own: `messages context <ref>` has the whole text.
6306
+ */
6307
+ follow_ups: optional(array(strictObject({
6308
+ ref: reference,
6309
+ chat_title: nullable(text),
6310
+ timestamp: time,
6311
+ sender_name: nullable(text),
6312
+ excerpt: text
6313
+ }))),
6314
+ outgoing: nullable(boolean()),
6315
+ attachments: array(attachment),
6316
+ reply_to: nullable(quoted),
6317
+ /** The id a reply answers, also when the provider sent no copy of that message. */
6318
+ reply_to_id: optional(id),
6319
+ forwarded_from: nullable(quoted),
6320
+ thread_id: optional(id),
6321
+ thread_root_id: optional(id),
6322
+ reactions: optional(nullable(strictObject({
6323
+ counts: array(strictObject({ reaction: text, count })),
6324
+ mine: nullable(text),
6325
+ total: count
6326
+ }))),
6327
+ scheduled_for: optional(time),
6328
+ /** The owner starred it; only where the messenger has stars, and only when set. */
6329
+ starred: optional(literal(true)),
6330
+ /** The owner's own message in a one-to-one chat: `delivered`, or `read` once opened; absent when no receipt came. */
6331
+ delivery: optional(picklist(["delivered", "read"])),
6332
+ email: optional(strictObject({
6333
+ subject: nullable(text),
6334
+ from: nullable(mailPerson),
6335
+ to: array(mailPerson),
6336
+ cc: array(mailPerson),
6337
+ bcc: array(mailPerson),
6338
+ /** The mail header Reply-To; `reply_to` is the quoted message a chat reply answers. */
6339
+ reply_addresses: array(mailPerson),
6340
+ labels: array(text),
6341
+ /** The thread as a `chat:` reference. */
6342
+ thread: reference,
6343
+ read: nullable(boolean()),
6344
+ flagged: nullable(boolean()),
6345
+ /** How much the sender's mail looks like spam, a scam or a robot (memo's score), and why; absent when unscored. */
6346
+ sender_score: optional(strictObject({ score: number(), signals: array(text), demoted: optional(literal(true)) })),
6347
+ /** Mail `review`: filed in the mailbox of mail sent to many. */
6348
+ bulk: optional(boolean()),
6349
+ /** Mail `review`: its List-Id, `null` when it has none. */
6350
+ list_id: optional(nullable(text)),
6351
+ /** Mail `review`: the mail rule that decided how it is stored, by its id in `rules list`; `null` when none. */
6352
+ rule_id: optional(nullable(number())),
6353
+ /** Mail `review`: the evidence fingerprint a finding cites this email by. */
6354
+ fingerprint: optional(pipe(text, regex(/^[a-f0-9]{64}$/))),
6355
+ /** Mail `review`: no earlier stored email, in any account, came from this address. */
6356
+ new_sender: optional(boolean()),
6357
+ /** Mail `review`: how many identities the sender's person has; 1 is this address alone. */
6358
+ sender_identities: optional(number())
6359
+ })),
6360
+ provider_metadata: providerMetadata
6236
6361
  });
6237
- var botTemplate = strictObject({
6362
+
6363
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
6364
+ var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
6365
+ var contextMessage = strictObject({
6366
+ locator: reference,
6367
+ provider: text,
6368
+ account: id,
6369
+ chat_id: id,
6370
+ chat_title: nullable(text),
6371
+ id,
6372
+ timestamp: time,
6373
+ sender_id: nullable(id),
6374
+ sender_name: nullable(text),
6375
+ outgoing: nullable(boolean()),
6376
+ text
6377
+ });
6378
+ var sharedChat = strictObject({
6379
+ provider: text,
6380
+ account: id,
6381
+ chat_id: id,
6382
+ title: nullable(text),
6383
+ kind: chat.entries.kind,
6384
+ last_message_at: nullable(time)
6385
+ });
6386
+ var contextEvent = strictObject({
6387
+ ref: reference,
6388
+ title: nullable(text),
6389
+ starts_at: nullable(time),
6390
+ ends_at: nullable(time),
6391
+ all_day: boolean(),
6392
+ location: nullable(text),
6393
+ status: nullable(text)
6394
+ });
6395
+ var context = strictObject({
6396
+ person: contextPerson,
6397
+ /** The accounts read: only those of the scopes the caller may read. */
6398
+ accounts: array(strictObject({ provider: text, account: id, scope: picklist(["personal", "work"]) })),
6399
+ shared: array(sharedChat),
6400
+ last: strictObject({
6401
+ from_them: nullable(contextMessage),
6402
+ from_me: nullable(contextMessage),
6403
+ from_them_anywhere: nullable(contextMessage)
6404
+ }),
6405
+ recent: strictObject({ direct: array(contextMessage), groups: array(contextMessage) }),
6406
+ mentions: array(contextMessage),
6407
+ /** Calendar events they are invited to, one occurrence per series. */
6408
+ events: optional(strictObject({ upcoming: array(contextEvent), recent: array(contextEvent) })),
6409
+ limits: strictObject({ messages: count, bytes: count }),
6410
+ complete: boolean(),
6411
+ not_read: array(strictObject({
6412
+ provider: text,
6413
+ account: id,
6414
+ chat_id: id,
6415
+ title: nullable(text),
6416
+ reason: picklist(["not_fetched", "partial"])
6417
+ }))
6418
+ });
6419
+ var shortMessage = strictObject({ at: time, text, transcript: optional(text) });
6420
+ var identifiedMessage = strictObject({
6421
+ ...shortMessage.entries,
6422
+ id,
6423
+ locator: reference,
6424
+ sender_id: nullable(id),
6425
+ reply_to: nullable(id)
6426
+ });
6427
+ var counterObservation = strictObject({
6428
+ value: number(),
6429
+ observed_at: time,
6430
+ source: picklist(["remote_fetch", "remote_update"]),
6431
+ reactions: optional(message.entries.reactions.wrapped.wrapped)
6432
+ });
6433
+ var { reply_addresses: mailReplyTo, ...mailFields } = message.entries.email.wrapped.entries;
6434
+ var fullMessage = strictObject({
6435
+ ...pick(message, [
6436
+ "id",
6437
+ "chat_id",
6438
+ "chat_title",
6439
+ "excerpt",
6440
+ "sender_id",
6441
+ "sender_name",
6442
+ "sender_username",
6443
+ "mentions",
6444
+ "sender_is_chat",
6445
+ "timestamp",
6446
+ "edited_at",
6447
+ "text",
6448
+ "outgoing",
6449
+ "attachments",
6450
+ "reply_to",
6451
+ "reply_to_id",
6452
+ "forwarded_from",
6453
+ "thread_id",
6454
+ "thread_root_id",
6455
+ "scheduled_for",
6456
+ "provider_metadata",
6457
+ "delivery"
6458
+ ]).entries,
6459
+ reactions: nullable(message.entries.reactions.wrapped.wrapped),
6460
+ starred: optional(boolean()),
6461
+ email: optional(strictObject({ ...mailFields, reply_to: mailReplyTo })),
6462
+ counter_observations: optional(partial(strictObject({
6463
+ views: counterObservation,
6464
+ reactions: counterObservation,
6465
+ comments: counterObservation
6466
+ }))),
6467
+ ...shortMessage.entries,
6468
+ locator: reference
6469
+ });
6470
+ var contactMessages = strictObject({
6471
+ person: strictObject({ uid: id, provider: text, id, name: nullable(text) }),
6472
+ chats: array(strictObject({
6473
+ chat: pick(chat, ["id", "title", "kind"]),
6474
+ messages: array(union([shortMessage, identifiedMessage, fullMessage])),
6475
+ complete: boolean(),
6476
+ more: boolean()
6477
+ })),
6478
+ limits: strictObject({ messages: count })
6479
+ });
6480
+ var contactContext = union([context, contactMessages]);
6481
+ var coverage = strictObject({
6482
+ included: count,
6483
+ has_more: boolean(),
6484
+ cut_by: nullable(picklist(["limit", "bytes"]))
6485
+ });
6486
+ var meetingCue = strictObject({
6487
+ reference,
6488
+ fingerprint: text,
6489
+ transcript_id: count,
6490
+ content_hash: nullable(text),
6491
+ position: count,
6492
+ start_ms: count,
6493
+ end_ms: count,
6494
+ speaker_participant_id: nullable(count),
6495
+ speaker_name: nullable(text),
6496
+ text,
6497
+ revision: picklist(["current", "superseded"])
6498
+ });
6499
+ var scopes2 = array(picklist(["personal", "work"]));
6500
+ var contactPreparation = strictObject({
6501
+ ...context.entries,
6502
+ prepare: strictObject({
6503
+ waiting: array(strictObject({
6504
+ provider: text,
6505
+ account: id,
6506
+ chat_id: id,
6507
+ title: nullable(text),
6508
+ message: contextMessage,
6509
+ partial: boolean()
6510
+ })),
6511
+ tasks: array(strictObject({
6512
+ ref: reference,
6513
+ title: text,
6514
+ role: text,
6515
+ due_at: nullable(time),
6516
+ project: reference,
6517
+ source: nullable(reference),
6518
+ created_at: time
6519
+ })),
6520
+ facts: array(strictObject({
6521
+ ref: reference,
6522
+ type: text,
6523
+ statement: text,
6524
+ subject: nullable(reference),
6525
+ project: nullable(reference),
6526
+ updated_at: time
6527
+ })),
6528
+ notes: array(strictObject({ ref: reference, title: nullable(text), text, revision: count, updated_at: time })),
6529
+ meetings: array(strictObject({
6530
+ reference,
6531
+ cues: array(meetingCue),
6532
+ cue_coverage: strictObject({ included: count, omitted: nullable(count), has_more: boolean() })
6533
+ })),
6534
+ limits: strictObject({ items: count, bytes: count }),
6535
+ coverage: strictObject({
6536
+ waiting: strictObject({
6537
+ ...coverage.entries,
6538
+ rule: literal("their message is the newest the store holds in a one-to-one chat")
6539
+ }),
6540
+ tasks: strictObject({
6541
+ ...coverage.entries,
6542
+ selection: literal("open, assigned to them in any role"),
6543
+ accounts: array(text),
6544
+ scopes: scopes2
6545
+ }),
6546
+ facts: strictObject({
6547
+ ...coverage.entries,
6548
+ selection: literal("accepted, about them or a project they are a member of"),
6549
+ scopes: scopes2
6550
+ }),
6551
+ notes: strictObject({
6552
+ ...coverage.entries,
6553
+ selection: literal("written by you, about them"),
6554
+ scopes: scopes2,
6555
+ withheld: optional(literal("contacts.notes.list"))
6556
+ }),
6557
+ meetings: strictObject({
6558
+ ...coverage.entries,
6559
+ read: literal("every account of the store that saw them"),
6560
+ accounts: array(text),
6561
+ pending: count
6562
+ })
6563
+ })
6564
+ })
6565
+ });
6566
+
6567
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/deal.js
6568
+ var nullableText = nullable(text);
6569
+ var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
6570
+ var outcome = picklist(["open", "won", "lost"]);
6571
+ var crmAccount = nullable(strictObject({ provider: text, account: text }));
6572
+ var day = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
6573
+ var deal = strictObject({
6574
+ id,
6575
+ ref: reference,
6576
+ kind: picklist(["deal", "lead"]),
6577
+ title: text,
6578
+ /** One line with the stage, amount and status. */
6579
+ summary: text,
6580
+ pipeline: reference,
6581
+ pipeline_name: text,
6582
+ stage: text,
6583
+ /** The base stage `stage` maps to, once the owner confirmed it; `null` while unsorted. */
6584
+ base_stage: nullable(strictObject({ ref: reference, name: text })),
6585
+ status: outcome,
6586
+ organization: nullable(party),
6587
+ currency: nullableText,
6588
+ amount: nullableText,
6589
+ close_date: day,
6590
+ closed_date: day,
6591
+ closed_reason: nullableText,
6592
+ rank: nullable(number()),
6593
+ /** A lead's deal, once it became one. */
6594
+ deal: nullable(reference),
6595
+ /** The CRM account it is a copy from; `null` for the owner's own. */
6596
+ account: crmAccount,
6597
+ external_id: nullableText,
6598
+ /** A CRM copy's assignee, the identity `<account>/user/<id>`. */
6599
+ assignee: nullableText,
6600
+ /** A CRM copy's own fields by code; a list field's value is its option's label, `option_id` its id. */
6601
+ provider_metadata: record(string(), strictObject({
6602
+ label: nullable(string()),
6603
+ value: unknown(),
6604
+ option_id: optional(union([string(), array(string())]))
6605
+ })),
6606
+ people: array(strictObject({ ...party.entries, role: picklist(DEAL_ROLES) })),
6607
+ author: strictObject({
6608
+ type: picklist(["person", "bot"]),
6609
+ id,
6610
+ name: nullableText,
6611
+ kind: nullable(picklist(["agent", "rule"]))
6612
+ }),
6613
+ model: nullableText,
6614
+ source: text,
6615
+ reason: nullableText,
6616
+ evidence: array(reference),
6617
+ project: nullable(reference),
6618
+ project_name: nullableText,
6619
+ created_at: time,
6620
+ updated_at: time,
6621
+ untrusted
6622
+ });
6623
+ var lead = deal;
6624
+ var pipelineStage = strictObject({
6625
+ name: text,
6626
+ position: count,
6627
+ outcome,
6628
+ external_id: nullableText,
6629
+ /** Open deals or leads in it now. */
6630
+ open: count,
6631
+ /** With a funnel: rows that got this far, and the share of them that reached the next stage. */
6632
+ reached: optional(count),
6633
+ conversion: optional(nullable(number())),
6634
+ /** With a funnel: rows standing in it now, and their sum per currency, never converted. */
6635
+ items: optional(count),
6636
+ amounts: optional(array(strictObject({ amount: text, currency: text, items: count })))
6637
+ });
6638
+ var pipeline = strictObject({
6639
+ id,
6640
+ ref: reference,
6641
+ name: text,
6642
+ kind: picklist(["deal", "lead"]),
6643
+ account: crmAccount,
6644
+ external_id: nullableText,
6645
+ stages: array(pipelineStage),
6646
+ created_at: time,
6647
+ totals: optional(strictObject({ items: count, open: count, won: count, lost: count, win_rate: nullable(number()) })),
6648
+ since: optional(day),
6649
+ untrusted
6650
+ });
6651
+ var stage = strictObject({
6652
+ ...pipelineStage.entries,
6653
+ pipeline: reference,
6654
+ pipeline_name: text,
6655
+ kind: picklist(["deal", "lead"]),
6656
+ untrusted
6657
+ });
6658
+
6659
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/business-context.js
6660
+ var nullableText2 = nullable(text);
6661
+ var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
6662
+ var standing = picklist(STANDINGS);
6663
+ var categories = array(picklist(CATEGORIES));
6664
+ var section = /* @__PURE__ */ __name((item) => strictObject({ items: array(item), total: count, has_more: boolean(), next: nullableText2 }), "section");
6665
+ var relationRole = strictObject({
6666
+ /** `link:<id>`; absent for a proposal. */
6667
+ link: optional(reference),
6668
+ /** A `relationship` proposal waiting for the owner: its id, with `standing: proposed`. */
6669
+ proposal: optional(text),
6670
+ kind: picklist(RELATION_KINDS),
6671
+ role: nullableText2,
6672
+ /** `reported`: a CRM account says so and nobody confirmed it; `ended`: it no longer holds. */
6673
+ standing,
6674
+ /** The source account that reported it, `<provider>:<account>`. */
6675
+ account: optional(text),
6676
+ /** A job title the source gave; never a role. */
6677
+ position: optional(text),
6678
+ /** How a source made it when it stated none, such as `department-head`. */
6679
+ derived: optional(text),
6680
+ starts_at: optional(time),
6681
+ ends_at: optional(time)
6682
+ });
6683
+ var related = strictObject({ ref: reference, name: nullableText2, roles: array(relationRole) });
6684
+ var coverage2 = strictObject({
6685
+ /** `<provider>:<account>` of every account read. */
6686
+ accounts: array(text),
6687
+ not_read: array(strictObject({ source: text, reason: text }))
6688
+ });
6689
+ var linkedBy = array(picklist(["project", "counterparty"]));
6690
+ var financeTotal = strictObject({
6691
+ status: text,
6692
+ currency: text,
6693
+ rows: count,
6694
+ total: text,
6695
+ open: optional(text)
6696
+ });
6697
+ var money = strictObject({
6698
+ invoices: section(strictObject({
6699
+ ref: reference,
6700
+ title: text,
6701
+ direction: picklist(INVOICE_DIRECTIONS),
6702
+ status: picklist(INVOICE_STATUSES),
6703
+ review: picklist(FINANCE_REVIEWS),
6704
+ currency: text,
6705
+ total: text,
6706
+ open: text,
6707
+ due_date: day2,
6708
+ linked_by: linkedBy
6709
+ })),
6710
+ payments: section(strictObject({
6711
+ ref: reference,
6712
+ title: text,
6713
+ direction: picklist(MONEY_DIRECTIONS),
6714
+ review: picklist(FINANCE_REVIEWS),
6715
+ currency: text,
6716
+ amount: text,
6717
+ date: day2,
6718
+ linked_by: linkedBy
6719
+ })),
6720
+ orders: optional(section(strictObject({
6721
+ ref: reference,
6722
+ title: text,
6723
+ status: picklist(ORDER_STATUSES),
6724
+ review: picklist(FINANCE_REVIEWS),
6725
+ currency: nullableText2,
6726
+ total: nullableText2,
6727
+ side: picklist(["customer", "supplier"])
6728
+ }))),
6729
+ /** Confirmed rows only, per status (payments: direction) and currency; nothing converted. */
6730
+ totals: strictObject({ invoices: array(financeTotal), payments: array(financeTotal) }),
6731
+ /** Invoices and payments still proposed, of every row read. */
6732
+ unconfirmed: count,
6733
+ /** `false` when a read stopped at the store's page: the totals may leave rows out. */
6734
+ complete: boolean()
6735
+ });
6736
+ var taskLine = strictObject({
6737
+ ref: reference,
6738
+ key: text,
6739
+ title: text,
6740
+ status: picklist(TASK_STATES),
6741
+ project: reference,
6742
+ due_at: nullable(time)
6743
+ });
6744
+ var counts = { messages: count, mail: count, meetings: count };
6745
+ var personBusiness = strictObject({
6746
+ organizations: section(strictObject({ ...related.entries, categories })),
6747
+ reports_to: section(related),
6748
+ direct_reports: section(related),
6749
+ deals: section(related),
6750
+ projects: section(related),
6751
+ categories
6752
+ });
6753
+ var personContext = strictObject({
6754
+ ...context.entries,
6755
+ person: linkedPerson,
6756
+ has_more: boolean(),
6757
+ business: personBusiness,
6758
+ coverage: coverage2
6759
+ });
6760
+ var organizationContext = strictObject({
6761
+ organization: strictObject({ ...organization.entries, own: boolean() }),
6762
+ categories,
6763
+ people: section(related),
6764
+ customers: section(related),
6765
+ /** Whom it is a customer of: "supplier of", read backwards. */
6766
+ suppliers: section(related),
6767
+ partners: section(related),
6768
+ projects: section(strictObject({ ref: reference, name: text, via: array(picklist(["organization", "deal"])) })),
6769
+ deals: section(strictObject({
6770
+ ref: reference,
6771
+ kind: picklist(DEAL_KINDS),
6772
+ title: text,
6773
+ summary: text,
6774
+ stage: text,
6775
+ status: picklist(DEAL_STATUSES),
6776
+ currency: nullableText2,
6777
+ amount: nullableText2,
6778
+ close_date: day2,
6779
+ project: nullable(reference)
6780
+ })),
6781
+ money,
6782
+ /** Counts only, through its own people, in the accounts read. */
6783
+ communications: strictObject({ ...counts, has_more: boolean() }),
6784
+ tasks: section(taskLine),
6785
+ coverage: coverage2
6786
+ });
6787
+ var { untrusted: _, ...dealRow } = deal.entries;
6788
+ var dealContext = strictObject({
6789
+ deal: strictObject(dealRow),
6790
+ stages: section(strictObject({ from: nullableText2, to: text, pipeline: reference, at: time })),
6791
+ organization: nullable(strictObject({ ref: reference, name: nullableText2, categories })),
6792
+ participants: section(related),
6793
+ owner: nullable(related),
6794
+ project: nullable(strictObject({ ref: reference, name: nullableText2 })),
6795
+ money,
6796
+ window: strictObject({ since: time, until: time }),
6797
+ /** Shared people within its lifetime: `proposed`, an overlap of people, never a link. */
6798
+ communications: strictObject({
6799
+ ...section(strictObject({
6800
+ kind: picklist(["message", "mail", "meeting"]),
6801
+ ref: reference,
6802
+ title: nullableText2,
6803
+ at: nullable(time),
6804
+ people: array(reference),
6805
+ standing: literal("proposed")
6806
+ })).entries,
6807
+ counts: strictObject(counts)
6808
+ }),
6809
+ tasks: section(taskLine),
6810
+ coverage: coverage2
6811
+ });
6812
+ var dealBrief = strictObject({
6813
+ ref: reference,
6814
+ kind: picklist(DEAL_KINDS),
6815
+ title: text,
6816
+ pipeline: text,
6817
+ stage: text,
6818
+ status: picklist(DEAL_STATUSES),
6819
+ amount: nullableText2,
6820
+ currency: nullableText2,
6821
+ close_date: day2,
6822
+ organization: nullableText2,
6823
+ owner: nullableText2,
6824
+ people: array(strictObject({ ref: reference, name: nullableText2, roles: array(text), standing })),
6825
+ project: nullableText2,
6826
+ stages: array(text),
6827
+ money: strictObject({ ...money.entries.totals.entries, unconfirmed: count, complete: boolean() }),
6828
+ communications: strictObject({ ...counts, standing: literal("proposed") }),
6829
+ open_tasks: count,
6830
+ not_read: coverage2.entries.not_read
6831
+ });
6832
+
6833
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/list-results.js
6834
+ var botProfile = strictObject({
6835
+ name: text,
6836
+ token: text,
6837
+ bot: optional(text),
6838
+ id: optional(id),
6839
+ problem: optional(text)
6840
+ });
6841
+ var botSeenChat = strictObject({
6842
+ ...partial(omit(chat, ["ref", "provider", "account", "description", "invite_link", "settings", "members"])).entries,
6843
+ id,
6844
+ parent_chat_id: optional(nullable(id)),
6845
+ muted_until: optional(nullable(time)),
6846
+ first_seen_at: optional(time),
6847
+ last_seen_at: optional(time)
6848
+ });
6849
+ var botAdmin = strictObject({
6850
+ id,
6851
+ name: nullable(text),
6852
+ username: nullable(text),
6853
+ role: picklist(["owner", "admin"]),
6854
+ rights: array(picklist(["read", "members", "admins", "info", "pin", "link", "post", "edit", "delete"])),
6855
+ title: nullable(text)
6856
+ });
6857
+ var botMenuEntry = strictObject({ name: text, description: nullable(text) });
6858
+ var topicIcon = strictObject({ emoji: text });
6859
+ var botWebhook = strictObject({ url: text, types: optional(array(text)) });
6860
+ var scheduledJob = strictObject({
6861
+ name: text,
6862
+ kind: picklist(["command", "agent"]),
6863
+ when: text,
6864
+ /** When a finished run shows a desktop notice: `always`, `failures` or `never`; the default is shown, not left out. */
6865
+ notify: optional(picklist(["always", "failures", "never"])),
6866
+ /** Where a run's result is sent after it: `telegram-bot:<profile>/<chat>` or `email:<profile>/<address>`. */
6867
+ deliver_to: optional(array(text)),
6868
+ last: nullable(strictObject({
6869
+ at: time,
6870
+ exit_code: number(),
6871
+ output: text,
6872
+ trace_id: optional(text),
6873
+ reason: optional(text),
6874
+ error_code: optional(text),
6875
+ failing_since: optional(time),
6876
+ failures: optional(number()),
6877
+ cost_usd: optional(number()),
6878
+ input_hash: optional(text),
6879
+ /** The last time a run did not start, and why: the day's cost cap, too little new mail, or the same input. */
6880
+ skipped: optional(strictObject({
6881
+ at: time,
6882
+ why: text,
6883
+ /** A dotted id for `why`, so a client can translate it: `cost.day-cap`, `mail.none-new`, `mail.below-threshold`,
6884
+ * `mail.same-input`. */
6885
+ reason: optional(pipe(text, regex(/^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$/)))
6886
+ })),
6887
+ /** How the run's result went along each route; `reason` a dotted id, `error` the sending CLI's code and reason id. */
6888
+ deliveries: optional(array(strictObject({
6889
+ to: text,
6890
+ ok: boolean(),
6891
+ reason: optional(pipe(text, regex(/^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$/))),
6892
+ error: optional(text)
6893
+ })))
6894
+ })),
6895
+ /** Agent schedules: what today's runs cost, in US dollars. */
6896
+ spent_today_usd: optional(number()),
6897
+ /** Agent schedules: the cap on one run (`--max-cost`), null when none. */
6898
+ max_cost_usd: optional(nullable(number())),
6899
+ /** Agent schedules: the daily cap in force, the schedule's `--max-cost-per-day` or the config's; 0 for none. */
6900
+ max_cost_per_day_usd: optional(number())
6901
+ });
6902
+ var botTemplate = strictObject({
6238
6903
  name: nullable(text),
6239
6904
  status: nullable(text),
6240
6905
  language: nullable(text),
@@ -6260,7 +6925,7 @@ var stickerInventory = strictObject({
6260
6925
  url: optional(nullable(text))
6261
6926
  });
6262
6927
 
6263
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
6928
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
6264
6929
  var actionableError = objectWithRest({
6265
6930
  code: text,
6266
6931
  message: text,
@@ -6277,7 +6942,7 @@ var batchResult = strictObject({
6277
6942
  max_error_percent: count
6278
6943
  });
6279
6944
 
6280
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
6945
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
6281
6946
  var conversationBuild = strictObject({
6282
6947
  chat: id,
6283
6948
  messages: count,
@@ -6302,53 +6967,13 @@ var catchUpPreparation = strictObject({
6302
6967
  prepared: optional(conversationPreparation)
6303
6968
  });
6304
6969
 
6305
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
6970
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
6306
6971
  import { spawn } from "node:child_process";
6307
6972
  import { randomBytes } from "node:crypto";
6308
- import { closeSync, existsSync as existsSync6, mkdirSync as mkdirSync2, openSync, readdirSync as readdirSync3, readFileSync as readFileSync5, realpathSync, rmSync as rmSync3 } from "node:fs";
6309
- import { dirname as dirname2, join as join5 } from "node:path";
6310
-
6311
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
6312
- import { existsSync as existsSync5, readFileSync as readFileSync4, rmSync as rmSync2 } from "node:fs";
6313
- import { join as join4 } from "node:path";
6314
- var PART = /^[\w@+-][\w.@+-]{0,99}$/;
6315
- var checkpointPath = /* @__PURE__ */ __name((state, profile, job2) => {
6316
- for (const part of [profile, job2]) {
6317
- if (!PART.test(part) || part.includes("..")) {
6318
- throw new CliError("validation_error", `a checkpoint is named by letters, digits, ".", "@" and "-" \u2014 not "${part}"`);
6319
- }
6320
- }
6321
- return join4(state, "checkpoints", profile, `${job2}.json`);
6322
- }, "checkpointPath");
6323
- var readCheckpoint = /* @__PURE__ */ __name((path2) => {
6324
- try {
6325
- return existsSync5(path2) ? JSON.parse(readFileSync4(path2, "utf8")) : void 0;
6326
- } catch {
6327
- return void 0;
6328
- }
6329
- }, "readCheckpoint");
6330
- var saveCheckpoint = /* @__PURE__ */ __name((path2, point, now = /* @__PURE__ */ new Date()) => {
6331
- const saved = { ...point, updated_at: now.toISOString() };
6332
- writeSecurely(path2, `${JSON.stringify(saved, null, 2)}
6333
- `, 384);
6334
- return saved;
6335
- }, "saveCheckpoint");
6336
- var progressOf = /* @__PURE__ */ __name((input) => {
6337
- const total = input.total ?? null;
6338
- const updated = input.updatedAt ?? null;
6339
- return {
6340
- job: input.job,
6341
- profile: input.profile,
6342
- done: input.done,
6343
- total,
6344
- remaining: total === null ? null : Math.max(0, total - input.done),
6345
- state: input.complete ?? (total !== null && input.done >= total) ? "complete" : "partial",
6346
- updated_at: updated,
6347
- cursor_age_ms: updated === null ? null : Math.max(0, (input.now ?? /* @__PURE__ */ new Date()).getTime() - Date.parse(updated))
6348
- };
6349
- }, "progressOf");
6973
+ import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync2, openSync, readdirSync as readdirSync3, readFileSync as readFileSync4, realpathSync, rmSync as rmSync2 } from "node:fs";
6974
+ import { dirname as dirname2, join as join4 } from "node:path";
6350
6975
 
6351
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/runs/record-log.js
6976
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/runs/record-log.js
6352
6977
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
6353
6978
  const run = currentRun();
6354
6979
  const trace = traceId ?? run.traceId;
@@ -6362,7 +6987,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
6362
6987
  }));
6363
6988
  }, "recordLogFor");
6364
6989
 
6365
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
6990
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
6366
6991
  var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
6367
6992
  var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
6368
6993
  const out = openSync(log, "a", 384);
@@ -6378,23 +7003,23 @@ var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
6378
7003
  closeSync(out);
6379
7004
  }
6380
7005
  }, "spawnDetached");
6381
- var jobsDir = /* @__PURE__ */ __name((app, env) => join5(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "backfill"), "jobsDir");
6382
- var jobPath = /* @__PURE__ */ __name((dir, id6) => join5(dir, `${id6}.json`), "jobPath");
7006
+ var jobsDir = /* @__PURE__ */ __name((app, env) => join4(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "backfill"), "jobsDir");
7007
+ var jobPath = /* @__PURE__ */ __name((dir, id6) => join4(dir, `${id6}.json`), "jobPath");
6383
7008
  var saveJob = /* @__PURE__ */ __name((dir, job2) => {
6384
7009
  mkdirSync2(dir, { recursive: true, mode: 448 });
6385
7010
  writeSecurely(jobPath(dir, job2.id), `${JSON.stringify(job2, null, 2)}
6386
7011
  `, 384);
6387
7012
  }, "saveJob");
6388
7013
  var readJob = /* @__PURE__ */ __name((dir, id6) => {
6389
- if (!/^[\w-]+$/.test(id6) || !existsSync6(jobPath(dir, id6)))
7014
+ if (!/^[\w-]+$/.test(id6) || !existsSync5(jobPath(dir, id6)))
6390
7015
  return void 0;
6391
7016
  try {
6392
- return JSON.parse(readFileSync5(jobPath(dir, id6), "utf8"));
7017
+ return JSON.parse(readFileSync4(jobPath(dir, id6), "utf8"));
6393
7018
  } catch {
6394
7019
  return void 0;
6395
7020
  }
6396
7021
  }, "readJob");
6397
- var recordsPath = /* @__PURE__ */ __name((dir, id6) => join5(dir, `${id6}.jsonl`), "recordsPath");
7022
+ var recordsPath = /* @__PURE__ */ __name((dir, id6) => join4(dir, `${id6}.jsonl`), "recordsPath");
6398
7023
  var tracedJob = /* @__PURE__ */ __name((env) => {
6399
7024
  const trace = childTrace();
6400
7025
  return { env: { ...env, TRACEPARENT: trace.traceparent }, traceId: trace.traceId };
@@ -6426,12 +7051,12 @@ var updateJob = /* @__PURE__ */ __name((dir, id6, change) => {
6426
7051
  saveJob(dir, { ...job2, ...change });
6427
7052
  }, "updateJob");
6428
7053
  var removeJob = /* @__PURE__ */ __name((dir, job2) => {
6429
- rmSync3(jobPath(dir, job2.id), { force: true });
6430
- rmSync3(recordsPath(dir, job2.id), { force: true });
7054
+ rmSync2(jobPath(dir, job2.id), { force: true });
7055
+ rmSync2(recordsPath(dir, job2.id), { force: true });
6431
7056
  if (dirname2(job2.log) === dir)
6432
- rmSync3(job2.log, { force: true });
7057
+ rmSync2(job2.log, { force: true });
6433
7058
  }, "removeJob");
6434
- var listJobs = /* @__PURE__ */ __name((dir) => existsSync6(dir) ? readdirSync3(dir).filter((name) => name.endsWith(".json")).flatMap((name) => readJob(dir, name.slice(0, -".json".length)) ?? []).sort((a, b) => b.startedAt.localeCompare(a.startedAt)) : [], "listJobs");
7059
+ var listJobs = /* @__PURE__ */ __name((dir) => existsSync5(dir) ? readdirSync3(dir).filter((name) => name.endsWith(".json")).flatMap((name) => readJob(dir, name.slice(0, -".json".length)) ?? []).sort((a, b) => b.startedAt.localeCompare(a.startedAt)) : [], "listJobs");
6435
7060
  var jobDetails = /* @__PURE__ */ __name((job2) => ({
6436
7061
  job: job2.id,
6437
7062
  profile: job2.profile,
@@ -6497,7 +7122,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
6497
7122
  const startedAt = (/* @__PURE__ */ new Date()).toISOString();
6498
7123
  const id6 = `${startedAt.replace(/[-:]/g, "").slice(0, 15)}-${randomBytes(3).toString("hex")}`;
6499
7124
  mkdirSync2(dir, { recursive: true, mode: 448 });
6500
- const log = join5(dir, `${id6}.log`);
7125
+ const log = join4(dir, `${id6}.log`);
6501
7126
  const job2 = {
6502
7127
  id: id6,
6503
7128
  chat: input.chat,
@@ -6517,149 +7142,30 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
6517
7142
  return { job: id6, pid, chat: input.chat, log };
6518
7143
  }, "startArchiveJob");
6519
7144
 
6520
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/job.js
6521
- var problem = strictObject({ code: text, message: text });
6522
- var job = strictObject({
6523
- id,
6524
- /** The chat as the sync was given it. */
6525
- chat: text,
6526
- state: picklist(JOB_STATES),
6527
- pid: count,
6528
- started_at: time,
6529
- finished_at: optional(time),
6530
- /** Messages fetched so far, or in all once it finished. */
6531
- fetched: count,
6532
- /** The `--limit` the sync was started with: how many messages it may fetch. */
6533
- message_limit: optional(count),
6534
- page_size: optional(count),
6535
- last: optional(count),
6536
- /** Whether the sync reached its window; set once it finished. */
6537
- complete: optional(boolean()),
6538
- /** Why a partial job stopped short; `store jobs retry` resumes it. */
6539
- issue: optional(problem),
6540
- error: optional(problem)
6541
- });
6542
-
6543
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/message.js
6544
- var quoted = strictObject({
6545
- id,
6546
- sender_id: nullable(id),
6547
- sender_name: nullable(text),
6548
- timestamp: nullable(time),
6549
- text,
6550
- attachments: array(attachment),
6551
- outgoing: nullable(boolean())
6552
- });
6553
- var mailPerson = strictObject({ name: nullable(text), address: text, ref: nullable(reference) });
6554
- var message = strictObject({
6555
- /** The message's locator. */
6556
- ref: reference,
6557
- id,
6558
- provider: optional(text),
6559
- account: optional(text),
6560
- chat_id: id,
6561
- chat_title: optional(nullable(text)),
6562
- sender_id: nullable(id),
6563
- sender_name: nullable(text),
6564
- sender_username: optional(text),
6565
- sender_is_chat: optional(boolean()),
6566
- sender_is_me: boolean(),
6567
- mentions: optional(array(id)),
6568
- /** When it was sent. */
6569
- timestamp: time,
6570
- edited_at: nullable(time),
6571
- text,
6572
- /** What a voice message says, once heard. */
6573
- transcript: optional(text),
6574
- /** In a window of messages around one, the one asked for. */
6575
- anchor: optional(boolean()),
6576
- /** A stretch of the text, transcript, file name or file text around what a search matched. */
6577
- excerpt: optional(text),
6578
- /** `picture`: the picture search lane found it by what the picture shows; it follows the text hits. */
6579
- matched_in: optional(picklist(["text", "transcript", "filename", "file", "context", "picture"])),
6580
- score: optional(number()),
6581
- /**
6582
- * `corrected`: a query word matched only a spelling speech recognition garbled in a voice note's transcript,
6583
- * listed in `corrections`. `words` and `beginnings`: what a discovery search matched.
6584
- */
6585
- match: optional(picklist(["words", "beginnings", "corrected"])),
6586
- corrections: optional(array(strictObject({ from: text, to: array(text) }))),
6587
- /** Where a search found it: the local archive, the messenger's server, or both. */
6588
- found_in: optional(picklist(["archive", "server", "both"])),
6589
- /** A discovery search's partial match: how much of the question it covers, and which words it lacks. */
6590
- discovery: optional(strictObject({
6591
- coverage: number(),
6592
- matched_terms: array(text),
6593
- missing_terms: array(text),
6594
- parent: optional(reference),
6595
- /** Present when meaning was searched too: which of the two lists found it. */
6596
- found_by: optional(array(picklist(["words", "meaning"]))),
6597
- /** Present when the reranker read it: its own score, higher is better. It ordered the first hits with `score`. */
6598
- reranker_score: optional(number())
6599
- })),
6600
- /** The messages around a search hit, or its thread, oldest first; the hit itself is among them. */
6601
- context: optional(array(strictObject({ ref: reference, timestamp: time, sender_name: nullable(text), text }))),
6602
- /**
6603
- * A discovery hit's later messages, from any chat the search reads, that share a rare word with it, latest first:
6604
- * one may change or cancel what the hit says. An excerpt, as the hit's own: `messages context <ref>` has the whole text.
6605
- */
6606
- follow_ups: optional(array(strictObject({
6607
- ref: reference,
6608
- chat_title: nullable(text),
6609
- timestamp: time,
6610
- sender_name: nullable(text),
6611
- excerpt: text
6612
- }))),
6613
- outgoing: nullable(boolean()),
6614
- attachments: array(attachment),
6615
- reply_to: nullable(quoted),
6616
- /** The id a reply answers, also when the provider sent no copy of that message. */
6617
- reply_to_id: optional(id),
6618
- forwarded_from: nullable(quoted),
6619
- thread_id: optional(id),
6620
- thread_root_id: optional(id),
6621
- reactions: optional(nullable(strictObject({
6622
- counts: array(strictObject({ reaction: text, count })),
6623
- mine: nullable(text),
6624
- total: count
6625
- }))),
6626
- scheduled_for: optional(time),
6627
- /** The owner starred it; only where the messenger has stars, and only when set. */
6628
- starred: optional(literal(true)),
6629
- /** The owner's own message in a one-to-one chat: `delivered`, or `read` once opened; absent when no receipt came. */
6630
- delivery: optional(picklist(["delivered", "read"])),
6631
- email: optional(strictObject({
6632
- subject: nullable(text),
6633
- from: nullable(mailPerson),
6634
- to: array(mailPerson),
6635
- cc: array(mailPerson),
6636
- bcc: array(mailPerson),
6637
- /** The mail header Reply-To; `reply_to` is the quoted message a chat reply answers. */
6638
- reply_addresses: array(mailPerson),
6639
- labels: array(text),
6640
- /** The thread as a `chat:` reference. */
6641
- thread: reference,
6642
- read: nullable(boolean()),
6643
- flagged: nullable(boolean()),
6644
- /** How much the sender's mail looks like spam, a scam or a robot (memo's score), and why; absent when unscored. */
6645
- sender_score: optional(strictObject({ score: number(), signals: array(text), demoted: optional(literal(true)) })),
6646
- /** Mail `review`: filed in the mailbox of mail sent to many. */
6647
- bulk: optional(boolean()),
6648
- /** Mail `review`: its List-Id, `null` when it has none. */
6649
- list_id: optional(nullable(text)),
6650
- /** Mail `review`: the mail rule that decided how it is stored, by its id in `rules list`; `null` when none. */
6651
- rule_id: optional(nullable(number())),
6652
- /** Mail `review`: the evidence fingerprint a finding cites this email by. */
6653
- fingerprint: optional(pipe(text, regex(/^[a-f0-9]{64}$/))),
6654
- /** Mail `review`: no earlier stored email, in any account, came from this address. */
6655
- new_sender: optional(boolean()),
6656
- /** Mail `review`: how many identities the sender's person has; 1 is this address alone. */
6657
- sender_identities: optional(number())
6658
- })),
6659
- provider_metadata: providerMetadata
7145
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/job.js
7146
+ var problem = strictObject({ code: text, message: text });
7147
+ var job = strictObject({
7148
+ id,
7149
+ /** The chat as the sync was given it. */
7150
+ chat: text,
7151
+ state: picklist(JOB_STATES),
7152
+ pid: count,
7153
+ started_at: time,
7154
+ finished_at: optional(time),
7155
+ /** Messages fetched so far, or in all once it finished. */
7156
+ fetched: count,
7157
+ /** The `--limit` the sync was started with: how many messages it may fetch. */
7158
+ message_limit: optional(count),
7159
+ page_size: optional(count),
7160
+ last: optional(count),
7161
+ /** Whether the sync reached its window; set once it finished. */
7162
+ complete: optional(boolean()),
7163
+ /** Why a partial job stopped short; `store jobs retry` resumes it. */
7164
+ issue: optional(problem),
7165
+ error: optional(problem)
6660
7166
  });
6661
7167
 
6662
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
7168
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
6663
7169
  var extractionItem = strictObject({
6664
7170
  ref: reference,
6665
7171
  attachment: count,
@@ -6692,7 +7198,7 @@ var extractionReport = strictObject({
6692
7198
  cursor: optional(text)
6693
7199
  });
6694
7200
 
6695
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
7201
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
6696
7202
  var savedMessageFile = strictObject({
6697
7203
  kind: text,
6698
7204
  path: text,
@@ -6772,14 +7278,14 @@ var messageSyncAll = strictObject({
6772
7278
  issue: optional(actionableError),
6773
7279
  limited: optional(historyLimited)
6774
7280
  })),
6775
- /** How many chats the history limits left unread (big groups) or read only to the window's start. */
6776
- limited: optional(strictObject({ group_too_large: count, older_than_window: count })),
7281
+ /** How many chats the history limits left unread (big groups) or read only to the window's start; muted, unread. */
7282
+ limited: optional(strictObject({ group_too_large: count, older_than_window: count, muted: optional(count) })),
6777
7283
  tasks
6778
7284
  });
6779
7285
  var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
6780
7286
  var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
6781
7287
 
6782
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/store-records.js
7288
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/store-records.js
6783
7289
  var range = strictObject({ from: number(), to: number() });
6784
7290
  var storeChatStatus = strictObject({
6785
7291
  chat_id: id,
@@ -6877,7 +7383,7 @@ var storeJobRetry = union([
6877
7383
  ]);
6878
7384
  var storeJobClear = strictObject({ cleared: array(id) });
6879
7385
 
6880
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/account.js
7386
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/account.js
6881
7387
  var account = strictObject({
6882
7388
  provider: text,
6883
7389
  id,
@@ -6887,7 +7393,7 @@ var account = strictObject({
6887
7393
  scope: optional(picklist(["personal", "work"]))
6888
7394
  });
6889
7395
 
6890
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/account-session.js
7396
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/account-session.js
6891
7397
  var accountSession = strictObject({
6892
7398
  current: boolean(),
6893
7399
  client: nullable(text),
@@ -6897,7 +7403,7 @@ var accountSession = strictObject({
6897
7403
  created_at: optional(nullable(time))
6898
7404
  });
6899
7405
 
6900
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/account-change.js
7406
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/account-change.js
6901
7407
  var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
6902
7408
  var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
6903
7409
  var audience = picklist(["everyone", "contacts", "nobody"]);
@@ -6926,7 +7432,7 @@ var accountRemoval = strictObject({
6926
7432
  kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
6927
7433
  });
6928
7434
 
6929
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
7435
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
6930
7436
  var accountProfile = strictObject({
6931
7437
  profile: id,
6932
7438
  current: boolean(),
@@ -6938,7 +7444,7 @@ var accountProfile = strictObject({
6938
7444
  bot: optional(literal(true))
6939
7445
  });
6940
7446
 
6941
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
7447
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
6942
7448
  var milliseconds = pipe(number(), minValue(0));
6943
7449
  var counterReading = strictObject({
6944
7450
  counter: picklist(["views", "reactions", "comments"]),
@@ -6950,7 +7456,7 @@ var counterReading = strictObject({
6950
7456
  });
6951
7457
  var selection = record(string(), unknown());
6952
7458
 
6953
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
7459
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
6954
7460
  var adminRow = strictObject({
6955
7461
  ref: reference,
6956
7462
  /** What `stats * evidence` takes: a person id, a stay or a message locator. */
@@ -7003,11 +7509,11 @@ var adminReport = strictObject({
7003
7509
  rows: array(adminRow)
7004
7510
  });
7005
7511
 
7006
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
7512
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
7007
7513
  var analysisConsent = strictObject({ chat: id, provider: text, at: time });
7008
7514
  var analysisConsentRevocation = strictObject({ revoked: boolean() });
7009
7515
 
7010
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
7516
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
7011
7517
  var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
7012
7518
  var attachmentBytes = strictObject({
7013
7519
  ref: reference,
@@ -7035,7 +7541,7 @@ var attachmentTextChange = strictObject({
7035
7541
  replaced: nullable(picklist(["extracted", "agent"]))
7036
7542
  });
7037
7543
 
7038
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/chart.js
7544
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/chart.js
7039
7545
  var chart = strictObject({
7040
7546
  version: literal(1),
7041
7547
  kind: picklist(["bar", "line", "grouped-bar"]),
@@ -7050,7 +7556,7 @@ var chart = strictObject({
7050
7556
  file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
7051
7557
  });
7052
7558
 
7053
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/folder.js
7559
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/folder.js
7054
7560
  var named = strictObject({
7055
7561
  id,
7056
7562
  title: nullable(text),
@@ -7073,7 +7579,7 @@ var folder = strictObject({
7073
7579
  excluded_chats: optional(array(named))
7074
7580
  });
7075
7581
 
7076
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
7582
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
7077
7583
  var inviteLink = strictObject({
7078
7584
  link: text,
7079
7585
  /** Who joins by it asks first, and an admin lets them in. */
@@ -7089,7 +7595,7 @@ var inviteLink = strictObject({
7089
7595
  joined_count: optional(count)
7090
7596
  });
7091
7597
 
7092
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
7598
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
7093
7599
  var operated = { operation_id: id, chat_id: id };
7094
7600
  var group = strictObject({
7095
7601
  ...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
@@ -7169,7 +7675,7 @@ var chatFolderOrder = strictObject({
7169
7675
  folders: array(strictObject({ id, title: text }))
7170
7676
  });
7171
7677
 
7172
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
7678
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
7173
7679
  var operated2 = { operation_id: id, chat_id: id };
7174
7680
  var chatRemoval = strictObject(operated2);
7175
7681
  var chatMuting = strictObject({
@@ -7180,7 +7686,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
7180
7686
  var chatPin = strictObject({ ...operated2, pinned: boolean() });
7181
7687
  var chatUnread = strictObject({ ...operated2, unread: literal(true) });
7182
7688
 
7183
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
7689
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
7184
7690
  var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
7185
7691
  var chatEvent = strictObject({
7186
7692
  chat_id: id,
@@ -7197,7 +7703,7 @@ var chatEvent = strictObject({
7197
7703
  before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
7198
7704
  });
7199
7705
 
7200
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
7706
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
7201
7707
  var chatMetadata = strictObject({
7202
7708
  chat_id: id,
7203
7709
  title: nullable(text),
@@ -7212,7 +7718,7 @@ var chatMetadataRefresh = strictObject({
7212
7718
  has_more: boolean()
7213
7719
  });
7214
7720
 
7215
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
7721
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
7216
7722
  var action = picklist(["report", "delete", "remove"]);
7217
7723
  var level = picklist(["deny", "readonly", "ask", "allow"]);
7218
7724
  var chatRules = strictObject({
@@ -7249,7 +7755,7 @@ var chatModeration = strictObject({
7249
7755
  }))
7250
7756
  });
7251
7757
 
7252
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
7758
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
7253
7759
  var optionalCount = optional(count);
7254
7760
  var minutes = nullable(number());
7255
7761
  var chatStats = strictObject({
@@ -7323,7 +7829,7 @@ var taskStats = strictObject({
7323
7829
  }))
7324
7830
  });
7325
7831
 
7326
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
7832
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
7327
7833
  var memberCount = strictObject({
7328
7834
  day: pipe(text, isoDate()),
7329
7835
  participants: nullable(count),
@@ -7332,332 +7838,90 @@ var memberCount = strictObject({
7332
7838
  });
7333
7839
  var trackedChat = strictObject({
7334
7840
  chat_id: id,
7335
- title: nullable(text),
7336
- tracked_at: time,
7337
- last_count: nullable(memberCount)
7338
- });
7339
- var trackedChatHistory = strictObject({
7340
- chat_id: id,
7341
- tracked_at: nullable(time),
7342
- counts: array(memberCount)
7343
- });
7344
- var chatTracking = strictObject({
7345
- chat_id: id,
7346
- tracked: boolean()
7347
- });
7348
-
7349
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
7350
- var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
7351
- var contactSync = strictObject({ added: count, changed: count, known: count });
7352
- var profileFields = {
7353
- usernames: array(text),
7354
- birthday: optional(nullable(text)),
7355
- phone: optional(nullable(text)),
7356
- flags: partial(strictObject({
7357
- bot: boolean(),
7358
- verified: boolean(),
7359
- premium: boolean(),
7360
- scam: boolean(),
7361
- fake: boolean(),
7362
- restricted: boolean(),
7363
- deleted: boolean(),
7364
- support: boolean()
7365
- })),
7366
- seen: optional(text),
7367
- contact: optional(boolean()),
7368
- mutual_contact: optional(boolean()),
7369
- common_chats_count: optional(nullable(count)),
7370
- registered: optional(nullable(strictObject({
7371
- at: text,
7372
- source: picklist(["telegram", "max", "estimate"]),
7373
- precision: picklist(["day", "month"])
7374
- }))),
7375
- has_photo: optional(boolean()),
7376
- /** Earlier names and usernames, oldest first; the current ones are not repeated. */
7377
- aliases: array(strictObject({
7378
- name: optional(text),
7379
- username: optional(text),
7380
- link: optional(text),
7381
- first_seen_at: time,
7382
- last_seen_at: time,
7383
- source: picklist(["profile", "messages"])
7384
- }))
7385
- };
7386
-
7387
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/contact.js
7388
- var contact = strictObject({
7389
- ref: reference,
7390
- id,
7391
- name: nullable(text),
7392
- username: nullable(text),
7393
- alias: optional(nullable(text)),
7394
- display_name: optional(nullable(text)),
7395
- /** Whatever they wrote about themselves. */
7396
- description: nullable(text),
7397
- /** The newest message in a one-to-one chat with them. */
7398
- last_messaged_at: nullable(time),
7399
- /** For a source that knows it, such as a Zoom contact. */
7400
- email: optional(nullable(text)),
7401
- phones: optional(array(strictObject({ number: text, label: nullable(text) }))),
7402
- /** `contacts show`: the chats shared with them, and what the store holds of their messages in each. */
7403
- chats: optional(array(strictObject({
7404
- ...pick(chat, ["ref", "id", "title", "kind", "last_message_at"]).entries,
7405
- /** Their messages stored; a floor unless `complete`. */
7406
- their_messages: optional(count),
7407
- first_at: optional(nullable(time)),
7408
- last_at: optional(nullable(time)),
7409
- /** The store holds the whole chat, so the count is the real one. */
7410
- complete: optional(boolean())
7411
- }))),
7412
- /** `contacts show`: what the messenger says about them, or with `--offline` what the store saw of them. */
7413
- ...partial(strictObject(profileFields)).entries,
7414
- /** `contacts show --with-notes`: the owner's private notes about them. */
7415
- notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
7416
- });
7417
-
7418
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
7419
- var linkedIdentity = strictObject({
7420
- provider: text,
7421
- id,
7422
- name: nullable(text),
7423
- username: nullable(text),
7424
- is_bot: nullable(boolean()),
7425
- accounts: array(id),
7426
- seen_in: array(strictObject({ account: id, scope: picklist(["personal", "work"]) })),
7427
- method: text,
7428
- linked_by: text,
7429
- linked_at: time
7430
- });
7431
- var linkedPerson = strictObject({ uid: id, name: nullable(text), identities: array(linkedIdentity) });
7432
- var contactActivity = strictObject({
7433
- at: time,
7434
- subject: text,
7435
- subject_id: count,
7436
- role: text,
7437
- scope: text,
7438
- provider: nullable(text),
7439
- account: nullable(text),
7440
- chat_id: nullable(text),
7441
- locator: nullable(text),
7442
- project_id: nullable(count)
7443
- });
7444
- var botReason = picklist(Object.keys(WEIGHTS));
7445
- var contactCheck = strictObject({
7446
- person: strictObject({ id, name: nullable(text), username: nullable(text), provider: text }),
7447
- score: count,
7448
- reasons: array(strictObject({ reason: botReason, weight: count, source: text, detail: optional(text) })),
7449
- registries: array(strictObject({
7450
- name: picklist(["cas", "lols"]),
7451
- answer: picklist(["listed", "clean", "unknown"]),
7452
- checked_at: time,
7453
- detail: optional(text),
7454
- reasons: optional(array(picklist(["cas_banned", "lols_banned", "lols_scammer"])))
7455
- })),
7456
- unknown: array(botReason),
7457
- checked_at: time
7458
- });
7459
-
7460
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
7461
- var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
7462
- var contextMessage = strictObject({
7463
- locator: reference,
7464
- provider: text,
7465
- account: id,
7466
- chat_id: id,
7467
- chat_title: nullable(text),
7468
- id,
7469
- timestamp: time,
7470
- sender_id: nullable(id),
7471
- sender_name: nullable(text),
7472
- outgoing: nullable(boolean()),
7473
- text
7474
- });
7475
- var sharedChat = strictObject({
7476
- provider: text,
7477
- account: id,
7478
- chat_id: id,
7479
- title: nullable(text),
7480
- kind: chat.entries.kind,
7481
- last_message_at: nullable(time)
7482
- });
7483
- var contextEvent = strictObject({
7484
- ref: reference,
7485
- title: nullable(text),
7486
- starts_at: nullable(time),
7487
- ends_at: nullable(time),
7488
- all_day: boolean(),
7489
- location: nullable(text),
7490
- status: nullable(text)
7491
- });
7492
- var context = strictObject({
7493
- person: contextPerson,
7494
- /** The accounts read: only those of the scopes the caller may read. */
7495
- accounts: array(strictObject({ provider: text, account: id, scope: picklist(["personal", "work"]) })),
7496
- shared: array(sharedChat),
7497
- last: strictObject({
7498
- from_them: nullable(contextMessage),
7499
- from_me: nullable(contextMessage),
7500
- from_them_anywhere: nullable(contextMessage)
7501
- }),
7502
- recent: strictObject({ direct: array(contextMessage), groups: array(contextMessage) }),
7503
- mentions: array(contextMessage),
7504
- /** Calendar events they are invited to, one occurrence per series. */
7505
- events: optional(strictObject({ upcoming: array(contextEvent), recent: array(contextEvent) })),
7506
- limits: strictObject({ messages: count, bytes: count }),
7507
- complete: boolean(),
7508
- not_read: array(strictObject({
7509
- provider: text,
7510
- account: id,
7511
- chat_id: id,
7512
- title: nullable(text),
7513
- reason: picklist(["not_fetched", "partial"])
7514
- }))
7515
- });
7516
- var shortMessage = strictObject({ at: time, text, transcript: optional(text) });
7517
- var identifiedMessage = strictObject({
7518
- ...shortMessage.entries,
7519
- id,
7520
- locator: reference,
7521
- sender_id: nullable(id),
7522
- reply_to: nullable(id)
7523
- });
7524
- var counterObservation = strictObject({
7525
- value: number(),
7526
- observed_at: time,
7527
- source: picklist(["remote_fetch", "remote_update"]),
7528
- reactions: optional(message.entries.reactions.wrapped.wrapped)
7529
- });
7530
- var { reply_addresses: mailReplyTo, ...mailFields } = message.entries.email.wrapped.entries;
7531
- var fullMessage = strictObject({
7532
- ...pick(message, [
7533
- "id",
7534
- "chat_id",
7535
- "chat_title",
7536
- "excerpt",
7537
- "sender_id",
7538
- "sender_name",
7539
- "sender_username",
7540
- "mentions",
7541
- "sender_is_chat",
7542
- "timestamp",
7543
- "edited_at",
7544
- "text",
7545
- "outgoing",
7546
- "attachments",
7547
- "reply_to",
7548
- "reply_to_id",
7549
- "forwarded_from",
7550
- "thread_id",
7551
- "thread_root_id",
7552
- "scheduled_for",
7553
- "provider_metadata",
7554
- "delivery"
7555
- ]).entries,
7556
- reactions: nullable(message.entries.reactions.wrapped.wrapped),
7557
- starred: optional(boolean()),
7558
- email: optional(strictObject({ ...mailFields, reply_to: mailReplyTo })),
7559
- counter_observations: optional(partial(strictObject({
7560
- views: counterObservation,
7561
- reactions: counterObservation,
7562
- comments: counterObservation
7563
- }))),
7564
- ...shortMessage.entries,
7565
- locator: reference
7566
- });
7567
- var contactMessages = strictObject({
7568
- person: strictObject({ uid: id, provider: text, id, name: nullable(text) }),
7569
- chats: array(strictObject({
7570
- chat: pick(chat, ["id", "title", "kind"]),
7571
- messages: array(union([shortMessage, identifiedMessage, fullMessage])),
7572
- complete: boolean(),
7573
- more: boolean()
7574
- })),
7575
- limits: strictObject({ messages: count })
7841
+ title: nullable(text),
7842
+ tracked_at: time,
7843
+ last_count: nullable(memberCount)
7576
7844
  });
7577
- var contactContext = union([context, contactMessages]);
7578
- var coverage = strictObject({
7579
- included: count,
7580
- has_more: boolean(),
7581
- cut_by: nullable(picklist(["limit", "bytes"]))
7845
+ var trackedChatHistory = strictObject({
7846
+ chat_id: id,
7847
+ tracked_at: nullable(time),
7848
+ counts: array(memberCount)
7582
7849
  });
7583
- var meetingCue = strictObject({
7584
- reference,
7585
- fingerprint: text,
7586
- transcript_id: count,
7587
- content_hash: nullable(text),
7588
- position: count,
7589
- start_ms: count,
7590
- end_ms: count,
7591
- speaker_participant_id: nullable(count),
7592
- speaker_name: nullable(text),
7593
- text,
7594
- revision: picklist(["current", "superseded"])
7850
+ var chatTracking = strictObject({
7851
+ chat_id: id,
7852
+ tracked: boolean()
7595
7853
  });
7596
- var contactPreparation = strictObject({
7597
- ...context.entries,
7598
- prepare: strictObject({
7599
- waiting: array(strictObject({
7600
- provider: text,
7601
- account: id,
7602
- chat_id: id,
7603
- title: nullable(text),
7604
- message: contextMessage,
7605
- partial: boolean()
7606
- })),
7607
- tasks: array(strictObject({
7608
- ref: reference,
7609
- title: text,
7610
- role: text,
7611
- due_at: nullable(time),
7612
- project: reference,
7613
- source: nullable(reference),
7614
- created_at: time
7615
- })),
7616
- facts: array(strictObject({
7617
- ref: reference,
7618
- type: text,
7619
- statement: text,
7620
- subject: nullable(reference),
7621
- project: nullable(reference),
7622
- updated_at: time
7623
- })),
7624
- notes: array(strictObject({ ref: reference, title: nullable(text), text, revision: count, updated_at: time })),
7625
- meetings: array(strictObject({
7626
- reference,
7627
- cues: array(meetingCue),
7628
- cue_coverage: strictObject({ included: count, omitted: nullable(count), has_more: boolean() })
7629
- })),
7630
- limits: strictObject({ items: count, bytes: count }),
7631
- coverage: strictObject({
7632
- waiting: strictObject({
7633
- ...coverage.entries,
7634
- rule: literal("their message is the newest the store holds in a one-to-one chat")
7635
- }),
7636
- tasks: strictObject({
7637
- ...coverage.entries,
7638
- selection: literal("open, assigned to them in any role"),
7639
- accounts: array(text)
7640
- }),
7641
- facts: strictObject({
7642
- ...coverage.entries,
7643
- selection: literal("accepted, about them or a project they are a member of")
7644
- }),
7645
- notes: strictObject({
7646
- ...coverage.entries,
7647
- selection: literal("written by you, about them"),
7648
- withheld: optional(literal("contacts.notes.list"))
7649
- }),
7650
- meetings: strictObject({
7651
- ...coverage.entries,
7652
- read: literal("every account of the store that saw them"),
7653
- accounts: array(text),
7654
- pending: count
7655
- })
7656
- })
7657
- })
7854
+
7855
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
7856
+ var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
7857
+ var contactSync = strictObject({ added: count, changed: count, known: count });
7858
+ var profileFields = {
7859
+ usernames: array(text),
7860
+ birthday: optional(nullable(text)),
7861
+ phone: optional(nullable(text)),
7862
+ flags: partial(strictObject({
7863
+ bot: boolean(),
7864
+ verified: boolean(),
7865
+ premium: boolean(),
7866
+ scam: boolean(),
7867
+ fake: boolean(),
7868
+ restricted: boolean(),
7869
+ deleted: boolean(),
7870
+ support: boolean()
7871
+ })),
7872
+ seen: optional(text),
7873
+ contact: optional(boolean()),
7874
+ mutual_contact: optional(boolean()),
7875
+ common_chats_count: optional(nullable(count)),
7876
+ registered: optional(nullable(strictObject({
7877
+ at: text,
7878
+ source: picklist(["telegram", "max", "estimate"]),
7879
+ precision: picklist(["day", "month"])
7880
+ }))),
7881
+ has_photo: optional(boolean()),
7882
+ /** Earlier names and usernames, oldest first; the current ones are not repeated. */
7883
+ aliases: array(strictObject({
7884
+ name: optional(text),
7885
+ username: optional(text),
7886
+ link: optional(text),
7887
+ first_seen_at: time,
7888
+ last_seen_at: time,
7889
+ source: picklist(["profile", "messages"])
7890
+ }))
7891
+ };
7892
+
7893
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/contact.js
7894
+ var contact = strictObject({
7895
+ ref: reference,
7896
+ id,
7897
+ name: nullable(text),
7898
+ username: nullable(text),
7899
+ alias: optional(nullable(text)),
7900
+ display_name: optional(nullable(text)),
7901
+ /** Whatever they wrote about themselves. */
7902
+ description: nullable(text),
7903
+ /** The newest message in a one-to-one chat with them. */
7904
+ last_messaged_at: nullable(time),
7905
+ /** For a source that knows it, such as a Zoom contact. */
7906
+ email: optional(nullable(text)),
7907
+ phones: optional(array(strictObject({ number: text, label: nullable(text) }))),
7908
+ /** `contacts show`: the chats shared with them, and what the store holds of their messages in each. */
7909
+ chats: optional(array(strictObject({
7910
+ ...pick(chat, ["ref", "id", "title", "kind", "last_message_at"]).entries,
7911
+ /** Their messages stored; a floor unless `complete`. */
7912
+ their_messages: optional(count),
7913
+ first_at: optional(nullable(time)),
7914
+ last_at: optional(nullable(time)),
7915
+ /** The store holds the whole chat, so the count is the real one. */
7916
+ complete: optional(boolean())
7917
+ }))),
7918
+ /** `contacts show`: what the messenger says about them, or with `--offline` what the store saw of them. */
7919
+ ...partial(strictObject(profileFields)).entries,
7920
+ /** `contacts show --with-notes`: the owner's private notes about them. */
7921
+ notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
7658
7922
  });
7659
7923
 
7660
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
7924
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
7661
7925
  var contactNote = strictObject({
7662
7926
  id,
7663
7927
  /** The contact, as a `contact:` reference. */
@@ -7669,13 +7933,13 @@ var contactNote = strictObject({
7669
7933
  updated_at: time
7670
7934
  });
7671
7935
 
7672
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
7936
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
7673
7937
  var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
7674
7938
  var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
7675
7939
  var contactStateChange = strictObject({ operation_id: id, person_id: id });
7676
7940
  var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
7677
7941
 
7678
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
7942
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
7679
7943
  var conversationDetails = union([
7680
7944
  strictObject({ ...conversation.entries, messages: array(message) }),
7681
7945
  message
@@ -7765,7 +8029,7 @@ var conversationHit = strictObject({
7765
8029
  stale: boolean()
7766
8030
  });
7767
8031
 
7768
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/counters.js
8032
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/counters.js
7769
8033
  var counters = strictObject({
7770
8034
  cutoff: time,
7771
8035
  max_age_ms: milliseconds,
@@ -7795,97 +8059,7 @@ var counterRefresh = strictObject({
7795
8059
  complete: optional(boolean())
7796
8060
  });
7797
8061
 
7798
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/deal.js
7799
- var nullableText = nullable(text);
7800
- var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
7801
- var outcome = picklist(["open", "won", "lost"]);
7802
- var crmAccount = nullable(strictObject({ provider: text, account: text }));
7803
- var day = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
7804
- var deal = strictObject({
7805
- id,
7806
- ref: reference,
7807
- kind: picklist(["deal", "lead"]),
7808
- title: text,
7809
- /** One line with the stage, amount and status. */
7810
- summary: text,
7811
- pipeline: reference,
7812
- pipeline_name: text,
7813
- stage: text,
7814
- status: outcome,
7815
- organization: nullable(party),
7816
- currency: nullableText,
7817
- amount: nullableText,
7818
- close_date: day,
7819
- closed_date: day,
7820
- closed_reason: nullableText,
7821
- rank: nullable(number()),
7822
- /** A lead's deal, once it became one. */
7823
- deal: nullable(reference),
7824
- /** The CRM account it is a copy from; `null` for the owner's own. */
7825
- account: crmAccount,
7826
- external_id: nullableText,
7827
- /** A CRM copy's assignee, the identity `<account>/user/<id>`. */
7828
- assignee: nullableText,
7829
- /** A CRM copy's own fields by code; a list field's value is its option's label, `option_id` its id. */
7830
- provider_metadata: record(string(), strictObject({
7831
- label: nullable(string()),
7832
- value: unknown(),
7833
- option_id: optional(union([string(), array(string())]))
7834
- })),
7835
- people: array(strictObject({ ...party.entries, role: picklist(DEAL_ROLES) })),
7836
- author: strictObject({
7837
- type: picklist(["person", "bot"]),
7838
- id,
7839
- name: nullableText,
7840
- kind: nullable(picklist(["agent", "rule"]))
7841
- }),
7842
- model: nullableText,
7843
- source: text,
7844
- reason: nullableText,
7845
- evidence: array(reference),
7846
- project: nullable(reference),
7847
- project_name: nullableText,
7848
- created_at: time,
7849
- updated_at: time,
7850
- untrusted
7851
- });
7852
- var lead = deal;
7853
- var pipelineStage = strictObject({
7854
- name: text,
7855
- position: count,
7856
- outcome,
7857
- external_id: nullableText,
7858
- /** Open deals or leads in it now. */
7859
- open: count,
7860
- /** With a funnel: rows that got this far, and the share of them that reached the next stage. */
7861
- reached: optional(count),
7862
- conversion: optional(nullable(number())),
7863
- /** With a funnel: rows standing in it now, and their sum per currency, never converted. */
7864
- items: optional(count),
7865
- amounts: optional(array(strictObject({ amount: text, currency: text, items: count })))
7866
- });
7867
- var pipeline = strictObject({
7868
- id,
7869
- ref: reference,
7870
- name: text,
7871
- kind: picklist(["deal", "lead"]),
7872
- account: crmAccount,
7873
- external_id: nullableText,
7874
- stages: array(pipelineStage),
7875
- created_at: time,
7876
- totals: optional(strictObject({ items: count, open: count, won: count, lost: count, win_rate: nullable(number()) })),
7877
- since: optional(day),
7878
- untrusted
7879
- });
7880
- var stage = strictObject({
7881
- ...pipelineStage.entries,
7882
- pipeline: reference,
7883
- pipeline_name: text,
7884
- kind: picklist(["deal", "lead"]),
7885
- untrusted
7886
- });
7887
-
7888
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/document.js
8062
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/document.js
7889
8063
  var document = strictObject({
7890
8064
  ref: reference,
7891
8065
  id,
@@ -7900,7 +8074,7 @@ var document = strictObject({
7900
8074
  owners: optional(array(text))
7901
8075
  });
7902
8076
 
7903
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/document-link.js
8077
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/document-link.js
7904
8078
  var documentLink = strictObject({
7905
8079
  ref: reference,
7906
8080
  url: text,
@@ -7911,7 +8085,7 @@ var documentLink = strictObject({
7911
8085
  sender: strictObject({ id: nullable(id), name: nullable(text) })
7912
8086
  });
7913
8087
 
7914
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/evidence.js
8088
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/evidence.js
7915
8089
  var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
7916
8090
  var contribution = strictObject({
7917
8091
  message: evidenceMessage,
@@ -7941,7 +8115,7 @@ var retentionStay = strictObject({
7941
8115
  });
7942
8116
  var evidence = union([contribution, retentionStay]);
7943
8117
 
7944
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/fact.js
8118
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/fact.js
7945
8119
  var fact = strictObject({
7946
8120
  ref: reference,
7947
8121
  id,
@@ -7967,11 +8141,12 @@ var fact = strictObject({
7967
8141
  evidence: array(reference),
7968
8142
  /** With `--sources`: each piece of evidence read back. */
7969
8143
  sources: optional(array(evidenceSource)),
8144
+ source_review: optional(sourceReview),
7970
8145
  created_at: time,
7971
8146
  updated_at: time
7972
8147
  });
7973
8148
 
7974
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/hit.js
8149
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/hit.js
7975
8150
  var hit = strictObject({
7976
8151
  kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead", ...BUSINESS_KINDS]),
7977
8152
  ref: reference,
@@ -7992,8 +8167,8 @@ var hit = strictObject({
7992
8167
  found_by: optional(array(picklist(["title", "words", "meaning"]))),
7993
8168
  /** How far into the meeting the passage is. */
7994
8169
  offset_ms: optional(nullable(count)),
7995
- /** A meeting passage's place: its transcript, chat or summary. */
7996
- scope: optional(picklist(["transcript", "chat", "summary"])),
8170
+ /** A meeting hit's place: its title, transcript, chat or summary. */
8171
+ scope: optional(picklist(["title", "transcript", "chat", "summary"])),
7997
8172
  /** A meeting transcript hit's cue, which `meetings passage` opens with the lines around it. */
7998
8173
  cue_ref: optional(reference),
7999
8174
  /** A meeting transcript hit's transcript language (`ru`, `en`…), `null` when unknown. */
@@ -8001,6 +8176,10 @@ var hit = strictObject({
8001
8176
  /** A meeting transcript hit's line, from 1, of `lines_total` lines in its transcript. */
8002
8177
  line: optional(pipe(count, minValue(1))),
8003
8178
  lines_total: optional(count),
8179
+ /** `corrected`: a meeting hit found only through a spelling speech recognition may have garbled. */
8180
+ match: optional(picklist(["corrected"])),
8181
+ /** For a `corrected` hit, the stored words each such query word matched. */
8182
+ corrections: optional(array(strictObject({ from: text, to: array(text) }))),
8004
8183
  /** A meeting passage's stored line, so two passages of one meeting stay apart; `search meetings` gives the same. */
8005
8184
  id: optional(pipe(string(), minLength(1))),
8006
8185
  /** A business hit's: `proposed` waits for the owner; a product or a wallet has no review and is `confirmed`. */
@@ -8013,7 +8192,7 @@ var hit = strictObject({
8013
8192
  untrusted
8014
8193
  });
8015
8194
 
8016
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/identity.js
8195
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/identity.js
8017
8196
  var identity = strictObject({
8018
8197
  ref: reference,
8019
8198
  provider: text,
@@ -8026,7 +8205,7 @@ var identity = strictObject({
8026
8205
  person: optional(nullable(reference))
8027
8206
  });
8028
8207
 
8029
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
8208
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
8030
8209
  var imageEmbedding = strictObject({
8031
8210
  model: text,
8032
8211
  embedded: count,
@@ -8035,7 +8214,7 @@ var imageEmbedding = strictObject({
8035
8214
  more: boolean()
8036
8215
  });
8037
8216
 
8038
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/join-request.js
8217
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/join-request.js
8039
8218
  var joinRequest = strictObject({
8040
8219
  person_id: id,
8041
8220
  name: nullable(text),
@@ -8046,7 +8225,7 @@ var joinRequest = strictObject({
8046
8225
  about: optional(text)
8047
8226
  });
8048
8227
 
8049
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
8228
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
8050
8229
  var pollVote = strictObject({
8051
8230
  person_id: id,
8052
8231
  name: nullable(text),
@@ -8056,7 +8235,7 @@ var pollVote = strictObject({
8056
8235
  voted_at: time
8057
8236
  });
8058
8237
 
8059
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/listener.js
8238
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/listener.js
8060
8239
  var reactions = unwrap(unwrap(message.entries.reactions));
8061
8240
  var observation = strictObject({
8062
8241
  value: pipe(number(), minValue(0)),
@@ -8098,7 +8277,7 @@ var serveSummary = strictObject({
8098
8277
  tasks: optional(strictObject({ added: count, closed: count, review: count }))
8099
8278
  });
8100
8279
 
8101
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
8280
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
8102
8281
  var mailCounts = strictObject({
8103
8282
  by: picklist(["day", "week", "sender"]),
8104
8283
  received: count,
@@ -8113,7 +8292,7 @@ var mailCounts = strictObject({
8113
8292
  }))
8114
8293
  });
8115
8294
 
8116
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
8295
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
8117
8296
  var evidence2 = strictObject({ reference, fingerprint: text });
8118
8297
  var base = { id, evidence: array(evidence2) };
8119
8298
  var finding = variant("kind", [
@@ -8257,7 +8436,7 @@ var mailFindings = strictObject({
8257
8436
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
8258
8437
  });
8259
8438
 
8260
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
8439
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
8261
8440
  var mediaArchive = strictObject({
8262
8441
  directory: text,
8263
8442
  chats: count,
@@ -8289,7 +8468,7 @@ var mediaArchiveTimer = union([
8289
8468
  strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
8290
8469
  ]);
8291
8470
 
8292
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
8471
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
8293
8472
  var preparationId = pipe(string(), minLength(1));
8294
8473
  var preparationCount = pipe(number(), integer(), minValue(0));
8295
8474
  var preparationTime = nullable(isoTime);
@@ -8381,7 +8560,7 @@ var preparationMeeting = strictObject({
8381
8560
  updated_at: isoTime
8382
8561
  });
8383
8562
 
8384
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
8563
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
8385
8564
  var meetingEvidence = preparationEvidence;
8386
8565
  var meetingPersonContext = strictObject({
8387
8566
  person: strictObject({ uid: string(), name: nullable(string()) }),
@@ -8403,7 +8582,7 @@ var meetingPersonContext = strictObject({
8403
8582
  })
8404
8583
  });
8405
8584
 
8406
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
8585
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
8407
8586
  var evidence3 = strictObject({ reference, fingerprint: text });
8408
8587
  var base2 = { id, project: reference, evidence: array(evidence3) };
8409
8588
  var finding2 = variant("kind", [
@@ -8441,7 +8620,7 @@ var meetingFindings = strictObject({
8441
8620
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
8442
8621
  });
8443
8622
 
8444
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
8623
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
8445
8624
  var communicationCoverage = strictObject({
8446
8625
  read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
8447
8626
  query: string(),
@@ -8486,7 +8665,7 @@ var preparationCommunications = strictObject({
8486
8665
  }))
8487
8666
  });
8488
8667
 
8489
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
8668
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
8490
8669
  var meetingPreparation = strictObject({
8491
8670
  communications: optional(preparationCommunications),
8492
8671
  schema_version: literal(1),
@@ -8599,7 +8778,7 @@ var meetingPreparation = strictObject({
8599
8778
  })
8600
8779
  });
8601
8780
 
8602
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
8781
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
8603
8782
  var count4 = pipe(number(), integer(), minValue(0));
8604
8783
  var id3 = pipe(string(), minLength(1));
8605
8784
  var text3 = string();
@@ -8663,7 +8842,7 @@ var meetingProjectCandidates = strictObject({
8663
8842
  })
8664
8843
  });
8665
8844
 
8666
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
8845
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
8667
8846
  var count5 = pipe(number(), integer(), minValue(0));
8668
8847
  var id4 = pipe(string(), minLength(1), maxLength(1e3));
8669
8848
  var meetingSeriesInventory = strictObject({
@@ -8693,7 +8872,7 @@ var meetingSeriesInventory = strictObject({
8693
8872
  })
8694
8873
  });
8695
8874
 
8696
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
8875
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
8697
8876
  var text4 = string();
8698
8877
  var id5 = pipe(number(), integer(), minValue(1));
8699
8878
  var revision = picklist(["current", "superseded"]);
@@ -8710,7 +8889,7 @@ var meetingTaskProposal = strictObject({
8710
8889
  persistence: literal("proposal-only")
8711
8890
  });
8712
8891
 
8713
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/memory.js
8892
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/memory.js
8714
8893
  var memory = strictObject({
8715
8894
  ref: reference,
8716
8895
  id,
@@ -8733,13 +8912,14 @@ var memory = strictObject({
8733
8912
  /** With `--sources`: each piece of evidence read back. */
8734
8913
  sources: optional(array(evidenceSource)),
8735
8914
  last_verified_at: nullable(time),
8915
+ source_review: optional(sourceReview),
8736
8916
  created_at: time,
8737
8917
  updated_at: time
8738
8918
  });
8739
8919
 
8740
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/mention.js
8920
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/mention.js
8741
8921
  var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
8742
- var status = picklist(["found", "linked", "dismissed"]);
8922
+ var status = picklist(["found", "linked", "proposed", "dismissed"]);
8743
8923
  var mention = strictObject({
8744
8924
  id: count,
8745
8925
  kind,
@@ -8769,7 +8949,8 @@ var mentionDecision = strictObject({
8769
8949
  value: text,
8770
8950
  status,
8771
8951
  target: nullable(reference),
8772
- mentions: count
8952
+ mentions: count,
8953
+ proposal: optional(text)
8773
8954
  });
8774
8955
  var mentionRebuild = strictObject({
8775
8956
  messages: count,
@@ -8780,13 +8961,13 @@ var mentionRebuild = strictObject({
8780
8961
  mentions: count
8781
8962
  });
8782
8963
 
8783
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/message-change.js
8964
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/message-change.js
8784
8965
  var operated3 = { operation_id: id, chat_id: id };
8785
8966
  var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
8786
8967
  var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
8787
8968
  var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
8788
8969
 
8789
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/message-read.js
8970
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/message-read.js
8790
8971
  var messageTranscript = strictObject({
8791
8972
  message_id: id,
8792
8973
  text,
@@ -8844,7 +9025,7 @@ var evidencePacket = strictObject({
8844
9025
  }))
8845
9026
  });
8846
9027
 
8847
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/message-context.js
9028
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/message-context.js
8848
9029
  var messageThread = strictObject({
8849
9030
  ref: reference,
8850
9031
  chat: id,
@@ -8861,7 +9042,7 @@ var messageThread = strictObject({
8861
9042
  });
8862
9043
  var messageContext = union([message, messageThread]);
8863
9044
 
8864
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
9045
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
8865
9046
  var messageCounts = strictObject({
8866
9047
  by: picklist(["chat", "sender", "day", "hour"]),
8867
9048
  total: count,
@@ -8874,7 +9055,7 @@ var messageCounts = strictObject({
8874
9055
  }))
8875
9056
  });
8876
9057
 
8877
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/message-link.js
9058
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/message-link.js
8878
9059
  var messageLink = strictObject({
8879
9060
  ref: reference,
8880
9061
  url: nullable(text),
@@ -8891,7 +9072,7 @@ var messageLink = strictObject({
8891
9072
  })))
8892
9073
  });
8893
9074
 
8894
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/message-write.js
9075
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/message-write.js
8895
9076
  var messageWrite = strictObject({
8896
9077
  operation_id: id,
8897
9078
  message,
@@ -8906,7 +9087,7 @@ var draftWrite = strictObject({
8906
9087
  });
8907
9088
  var messageSend = union([messageWrite, draftWrite]);
8908
9089
 
8909
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/model.js
9090
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/model.js
8910
9091
  var model2 = strictObject({
8911
9092
  id,
8912
9093
  kind: picklist(["audio", "text", "image", "reranker"]),
@@ -8914,7 +9095,7 @@ var model2 = strictObject({
8914
9095
  /** Which languages it reads, in words. */
8915
9096
  languages: text,
8916
9097
  licence: optional(text),
8917
- /** A text model's licence terms to accept with `models download --accept-terms`. */
9098
+ /** A text model's licence page, for a model under conditions of its own (`NOTICE` beside its files says the same). */
8918
9099
  terms: optional(text),
8919
9100
  /** A text model's size next to the others: small is fastest, large reads best. */
8920
9101
  size: optional(picklist(["small", "medium", "large"])),
@@ -8941,7 +9122,7 @@ var chosenModel = strictObject({
8941
9122
  estimate_seconds: nullable(count)
8942
9123
  });
8943
9124
 
8944
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/model-key.js
9125
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/model-key.js
8945
9126
  var source = picklist(["environment", "keyring", "file"]);
8946
9127
  var modelKey = strictObject({
8947
9128
  provider: text,
@@ -8951,7 +9132,7 @@ var modelKey = strictObject({
8951
9132
  var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
8952
9133
  var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
8953
9134
 
8954
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
9135
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
8955
9136
  var versus = strictObject({ current: number(), previous: number() });
8956
9137
  var person = { person_ref: reference, name: nullable(text) };
8957
9138
  var graph = strictObject({
@@ -8985,14 +9166,14 @@ var officialStats = strictObject({
8985
9166
  graphs: record(string(), union([graph, strictObject({ error: text })]))
8986
9167
  });
8987
9168
 
8988
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/person.js
9169
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/person.js
8989
9170
  var person2 = strictObject({
8990
9171
  ref: reference,
8991
9172
  name: nullable(text),
8992
9173
  identities: optional(array(identity))
8993
9174
  });
8994
9175
 
8995
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/poll.js
9176
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/poll.js
8996
9177
  var poll = strictObject({
8997
9178
  chat_id: id,
8998
9179
  message_id: id,
@@ -9008,11 +9189,11 @@ var poll = strictObject({
9008
9189
  });
9009
9190
  var pollChange = strictObject({ operation_id: id, poll });
9010
9191
 
9011
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
9192
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
9012
9193
  var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
9013
9194
  var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
9014
9195
 
9015
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/ranking.js
9196
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/ranking.js
9016
9197
  var figures = record(string(), number());
9017
9198
  var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
9018
9199
  var rankingRow = strictObject({
@@ -9059,7 +9240,7 @@ var ranking = strictObject({
9059
9240
  rows: array(rankingRow)
9060
9241
  });
9061
9242
 
9062
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/reaction.js
9243
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/reaction.js
9063
9244
  var reaction = strictObject({
9064
9245
  person: strictObject({ id, name: nullable(text), username: nullable(text) }),
9065
9246
  /** The emoji, or `custom:<id>` for a custom one. */
@@ -9067,7 +9248,7 @@ var reaction = strictObject({
9067
9248
  reacted_at: time
9068
9249
  });
9069
9250
 
9070
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
9251
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
9071
9252
  var reactionChange = strictObject({
9072
9253
  operation_id: id,
9073
9254
  chat_id: id,
@@ -9075,7 +9256,7 @@ var reactionChange = strictObject({
9075
9256
  reaction: nullable(text)
9076
9257
  });
9077
9258
 
9078
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/recipient.js
9259
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/recipient.js
9079
9260
  var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
9080
9261
  var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
9081
9262
  var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
@@ -9086,7 +9267,7 @@ var recipientChange = strictObject({
9086
9267
  ...partial(recipientOff).entries
9087
9268
  });
9088
9269
 
9089
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
9270
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
9090
9271
  var events = array(record(string(), unknown()));
9091
9272
  var recordedRun = strictObject({
9092
9273
  run_id: id,
@@ -9158,7 +9339,7 @@ var runHit = strictObject({
9158
9339
  });
9159
9340
  var runLocation = strictObject({ path: text });
9160
9341
 
9161
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/relationship.js
9342
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/relationship.js
9162
9343
  var relationship = strictObject({
9163
9344
  id,
9164
9345
  from: reference,
@@ -9178,10 +9359,14 @@ var relationship = strictObject({
9178
9359
  position: nullable(text),
9179
9360
  starts_at: nullable(time),
9180
9361
  ends_at: nullable(time),
9362
+ /** The source account that reported it, `<provider>:<account>`. */
9363
+ account: optional(text),
9364
+ /** How a source made it when it stated none, such as `department-head`. */
9365
+ derived: optional(text),
9181
9366
  created_at: time
9182
9367
  });
9183
9368
 
9184
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
9369
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
9185
9370
  var milliseconds2 = nullable(pipe(number(), minValue(0)));
9186
9371
  var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
9187
9372
  var responseTimes = strictObject({
@@ -9198,7 +9383,7 @@ var waitingChats = strictObject({
9198
9383
  by_kind: strictObject({ private: count, group: count })
9199
9384
  });
9200
9385
 
9201
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/retention.js
9386
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/retention.js
9202
9387
  var retentionCohort = strictObject({
9203
9388
  /** The first day of the joining day or week. */
9204
9389
  cohort: text,
@@ -9246,7 +9431,7 @@ var retention = strictObject({
9246
9431
  rows: array(retentionCohort)
9247
9432
  });
9248
9433
 
9249
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
9434
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
9250
9435
  var savedSearch = strictObject({
9251
9436
  id,
9252
9437
  /** `null` for a run in the history. */
@@ -9263,7 +9448,7 @@ var savedSearch = strictObject({
9263
9448
  });
9264
9449
  var searchHistoryClear = strictObject({ cleared: count });
9265
9450
 
9266
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
9451
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
9267
9452
  var sendAttempt = strictObject({
9268
9453
  at: time,
9269
9454
  profile: text,
@@ -9291,7 +9476,7 @@ var sendAttempt = strictObject({
9291
9476
  error_code: optional(text)
9292
9477
  });
9293
9478
 
9294
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
9479
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
9295
9480
  var absent = strictObject({ path: text, exists: literal(false) });
9296
9481
  var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
9297
9482
  var infoSchema = strictObject({
@@ -9512,7 +9697,7 @@ var storeRepair = union([
9512
9697
  ]);
9513
9698
  var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
9514
9699
 
9515
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/store-table.js
9700
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/store-table.js
9516
9701
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
9517
9702
  var storeTable = strictObject({
9518
9703
  name: text,
@@ -9521,7 +9706,7 @@ var storeTable = strictObject({
9521
9706
  bytes: optional(nullable(count))
9522
9707
  });
9523
9708
 
9524
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
9709
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
9525
9710
  var tagTarget = variant("type", [
9526
9711
  strictObject({ type: literal("chat"), chat_id: id }),
9527
9712
  strictObject({ type: literal("contact"), person_id: id }),
@@ -9552,7 +9737,7 @@ var automaticTags = strictObject({
9552
9737
  dry_run: boolean()
9553
9738
  });
9554
9739
 
9555
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
9740
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
9556
9741
  var side = strictObject({ ref: reference, key: text, title: text, status: text });
9557
9742
  var taskPair = strictObject({
9558
9743
  task: nullable(side),
@@ -9575,7 +9760,7 @@ var taskPair = strictObject({
9575
9760
  created_at: time
9576
9761
  });
9577
9762
 
9578
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/task-results.js
9763
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/task-results.js
9579
9764
  var nullableTime = nullable(time);
9580
9765
  var link = strictObject({
9581
9766
  id,
@@ -9749,7 +9934,19 @@ var taskReview = strictObject({
9749
9934
  untrusted
9750
9935
  });
9751
9936
 
9752
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/topic.js
9937
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/template.js
9938
+ var template = strictObject({
9939
+ key: text,
9940
+ channel: picklist(["telegram", "email", "text"]),
9941
+ language: text,
9942
+ about: text,
9943
+ renders: boolean(),
9944
+ source: picklist(["stored", "default"]),
9945
+ updated_at: nullable(time),
9946
+ updated_by: nullable(text)
9947
+ });
9948
+
9949
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/topic.js
9753
9950
  var topic = strictObject({
9754
9951
  id,
9755
9952
  title: text,
@@ -9763,7 +9960,7 @@ var topic = strictObject({
9763
9960
  untrusted
9764
9961
  });
9765
9962
 
9766
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/index.js
9963
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/entities/index.js
9767
9964
  var ENTITIES = {
9768
9965
  sync_progress: progress,
9769
9966
  deal,
@@ -9835,6 +10032,10 @@ var ENTITIES = {
9835
10032
  identity,
9836
10033
  contact_context: contactContext,
9837
10034
  contact_preparation: contactPreparation,
10035
+ person_context: personContext,
10036
+ organization_context: organizationContext,
10037
+ deal_context: dealContext,
10038
+ "deal_context.brief": dealBrief,
9838
10039
  contact_activity: contactActivity,
9839
10040
  contact_check: contactCheck,
9840
10041
  linked_person: linkedPerson,
@@ -10044,14 +10245,15 @@ var ENTITIES = {
10044
10245
  tracked_chat: trackedChat,
10045
10246
  tracked_chat_history: trackedChatHistory,
10046
10247
  chat_tracking: chatTracking,
10047
- task_stats: taskStats
10248
+ task_stats: taskStats,
10249
+ template
10048
10250
  };
10049
10251
  var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.entries(ENTITIES).map(([name, schema2]) => {
10050
- const { $schema: _, ...definition } = jsonSchemaOf(schema2);
10252
+ const { $schema: _2, ...definition } = jsonSchemaOf(schema2);
10051
10253
  return [name, definition];
10052
10254
  })), "entityDefinitions");
10053
10255
 
10054
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
10256
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
10055
10257
  var schemas = /* @__PURE__ */ new WeakMap();
10056
10258
  var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
10057
10259
  if (Object.hasOwn(ENTITIES, name))
@@ -10085,7 +10287,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
10085
10287
  return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
10086
10288
  }, "answerRow");
10087
10289
 
10088
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
10290
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
10089
10291
  var where = [{ field: "ref" }];
10090
10292
  var who2 = { field: ["who.owner", "who.name"], tag: "you" };
10091
10293
  var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
@@ -10177,7 +10379,7 @@ var STATUS_ROWS = {
10177
10379
  "status.failed": { columns: [{ field: "signal" }], text: ["why"] }
10178
10380
  };
10179
10381
 
10180
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/compact.js
10382
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/compact.js
10181
10383
  var TEXT_CHARS = 400;
10182
10384
  var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
10183
10385
  var messageRow = {
@@ -10362,8 +10564,8 @@ var cellOf = /* @__PURE__ */ __name((item, column, clock) => {
10362
10564
  const parts = clock.parts(iso);
10363
10565
  if (!parts)
10364
10566
  return { text: clean(iso) };
10365
- const day2 = parts.date.slice(5);
10366
- return column.as === "day" ? { text: day2, date: parts.date } : { text: `${day2} ${parts.time}`, date: parts.date, time: parts.time };
10567
+ const day3 = parts.date.slice(5);
10568
+ return column.as === "day" ? { text: day3, date: parts.date } : { text: `${day3} ${parts.time}`, date: parts.date, time: parts.time };
10367
10569
  }
10368
10570
  case "count":
10369
10571
  return typeof value === "number" && value !== 0 ? { text: column.tag ? `${value} ${column.tag}` : String(value) } : void 0;
@@ -10436,7 +10638,7 @@ var rowsOfItems = /* @__PURE__ */ __name((items, shape, clock, chars) => {
10436
10638
  const firstColumn = shape.columns[0];
10437
10639
  const refs = rows2.map(({ item }) => item && firstColumn ? firstSet(item, firstColumn.field) : void 0);
10438
10640
  const prefix = sharedPrefix(refs.map((ref) => typeof ref === "string" ? ref : void 0));
10439
- const hoisted = rows2.length < 2 ? [] : shape.columns.map((_, index) => index > 0 && sameEverywhere(rows2, index));
10641
+ const hoisted = rows2.length < 2 ? [] : shape.columns.map((_2, index) => index > 0 && sameEverywhere(rows2, index));
10440
10642
  const named2 = hoisted.flatMap((hoist, index) => {
10441
10643
  const column = shape.columns[index];
10442
10644
  const item = rows2[0]?.item;
@@ -10543,7 +10745,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
10543
10745
  return lines.concat(footerOf(body)).join("\n");
10544
10746
  }, "compactText");
10545
10747
 
10546
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/steps.js
10748
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/steps.js
10547
10749
  var STEPS2 = defineSteps([
10548
10750
  ...STEPS,
10549
10751
  {
@@ -10762,12 +10964,6 @@ var STEPS2 = defineSteps([
10762
10964
  command: "store recover",
10763
10965
  args: [],
10764
10966
  why: "the store file is damaged; this says what is lost and the commands that recover it"
10765
- },
10766
- {
10767
- id: "search.meetings",
10768
- command: "*",
10769
- args: [{ name: "max_meetings", required: true }],
10770
- why: "stopped after {scanned} meetings; more may match"
10771
10967
  }
10772
10968
  ]);
10773
10969
  var nextStep = /* @__PURE__ */ __name((id6, input) => {
@@ -10830,7 +11026,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
10830
11026
  ].join(" ");
10831
11027
  }, "stepLine");
10832
11028
 
10833
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
11029
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
10834
11030
  var SOFT_OUTPUT_BYTES = 256 * 1024;
10835
11031
  var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
10836
11032
  var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
@@ -10888,7 +11084,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
10888
11084
  return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
10889
11085
  }, "largeAnswerSteps");
10890
11086
 
10891
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
11087
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
10892
11088
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
10893
11089
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
10894
11090
  var strip = /* @__PURE__ */ __name((value) => {
@@ -10902,7 +11098,7 @@ var strip = /* @__PURE__ */ __name((value) => {
10902
11098
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
10903
11099
  }, "strip");
10904
11100
 
10905
- // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/envelope.js
11101
+ // node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/envelope.js
10906
11102
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
10907
11103
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
10908
11104
  var listOf = /* @__PURE__ */ __name((command, input) => {
@@ -11097,6 +11293,7 @@ export {
11097
11293
  takesProfile,
11098
11294
  commandWords,
11099
11295
  liftProfile,
11296
+ runGroup,
11100
11297
  valuedOptions,
11101
11298
  refuseCommandName,
11102
11299
  rootOf,
@@ -11188,17 +11385,17 @@ export {
11188
11385
  analysisConsent,
11189
11386
  member,
11190
11387
  chat,
11388
+ message,
11389
+ personContext,
11390
+ organizationContext,
11391
+ dealContext,
11392
+ dealBrief,
11191
11393
  folder,
11192
11394
  inviteLink,
11193
11395
  chatEvent,
11194
11396
  contact,
11195
- message,
11196
11397
  contactNote,
11197
11398
  documentLink,
11198
- checkpointPath,
11199
- readCheckpoint,
11200
- saveCheckpoint,
11201
- progressOf,
11202
11399
  recordLogFor,
11203
11400
  spawnDetached,
11204
11401
  jobsDir,
@@ -11238,6 +11435,7 @@ export {
11238
11435
  sendAttempt,
11239
11436
  progress,
11240
11437
  storeTable,
11438
+ template,
11241
11439
  topic,
11242
11440
  ENTITIES,
11243
11441
  entityDefinitions,