@wirecat/notion-cli 0.1.0 → 0.3.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 (212) hide show
  1. package/CHANGELOG.md +69 -0
  2. package/README.md +14 -4
  3. package/contracts/wirecat.json +698 -1
  4. package/dist/bin/notion.js +2 -2
  5. package/dist/bundle/{all-profiles-OETMCOLN.js → all-profiles-4IONYZB6.js} +10 -10
  6. package/dist/bundle/{anthropic-5Y3O2TYM.js → anthropic-OXF74J4P.js} +6 -6
  7. package/dist/bundle/{app-server-IVWBIVHC.js → app-server-M2VF6ABM.js} +61 -52
  8. package/dist/bundle/{bun-EO636SAD.js → bun-DLA6QRLL.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-C2T7QJ2M.js → bun-sqlite-F4BYLW3F.js} +7 -7
  10. package/dist/bundle/{chunk-QBC23NHD.js → chunk-2MHMKNWD.js} +1 -1
  11. package/dist/bundle/{chunk-TSCIIXN3.js → chunk-4KUJTSHG.js} +2 -2
  12. package/dist/bundle/{chunk-24FAYAML.js → chunk-4TQVZXOV.js} +3 -3
  13. package/dist/bundle/{chunk-FF4DDBCB.js → chunk-5LBJNTEJ.js} +6 -6
  14. package/dist/bundle/chunk-5UA2TYMI.js +29 -0
  15. package/dist/bundle/{chunk-DIM5YWBU.js → chunk-5XP4KQ2F.js} +1 -1
  16. package/dist/bundle/{chunk-WM7663C2.js → chunk-6GN7KU7X.js} +9 -9
  17. package/dist/bundle/chunk-6JBLIQQN.js +16 -0
  18. package/dist/bundle/{chunk-CLG2ISQH.js → chunk-7NF3V5L2.js} +4 -4
  19. package/dist/bundle/{chunk-TR7R5DL4.js → chunk-7NGFGFE5.js} +12 -63
  20. package/dist/bundle/{chunk-YA4LSSDZ.js → chunk-7NVPM55S.js} +2913 -2371
  21. package/dist/bundle/{chunk-XC5CKHX2.js → chunk-7YZPBAQX.js} +1 -1
  22. package/dist/bundle/{chunk-RSIS7BR7.js → chunk-AYU5TFDU.js} +21 -21
  23. package/dist/bundle/{chunk-64D5VUZ4.js → chunk-BEPFGITI.js} +68 -64
  24. package/dist/bundle/{chunk-HRTIRRXR.js → chunk-CBGBFAYJ.js} +41 -6
  25. package/dist/bundle/{chunk-QC3KOJT4.js → chunk-CDGZZNGY.js} +6 -6
  26. package/dist/bundle/{chunk-JK44XO2S.js → chunk-CIVXTBJY.js} +56 -56
  27. package/dist/bundle/{chunk-OWJDC4CB.js → chunk-COH7OEER.js} +14 -13
  28. package/dist/bundle/{chunk-XL2HXHP3.js → chunk-D6RCRBDH.js} +2 -2
  29. package/dist/bundle/{chunk-47R43UVJ.js → chunk-EQPAZ33O.js} +19 -19
  30. package/dist/bundle/{chunk-AE2KQ37N.js → chunk-EY6S7FV3.js} +6 -6
  31. package/dist/bundle/chunk-FEMHUSGO.js +88 -0
  32. package/dist/bundle/{chunk-NLDYZBTC.js → chunk-FSJHASRQ.js} +1146 -2555
  33. package/dist/bundle/chunk-GBFEEHQC.js +385 -0
  34. package/dist/bundle/{chunk-IQWEJEB5.js → chunk-GCCPFKSU.js} +26264 -21086
  35. package/dist/bundle/{chunk-RDZ7SVBZ.js → chunk-GK4GLPG2.js} +3 -3
  36. package/dist/bundle/{chunk-B2XKEEFX.js → chunk-GSNE7OB4.js} +4 -4
  37. package/dist/bundle/{chunk-UWW24JQF.js → chunk-HTKSCSJU.js} +4 -4
  38. package/dist/bundle/{chunk-7FII4DCE.js → chunk-IJMFG7HB.js} +7 -7
  39. package/dist/bundle/{chunk-WVZFXI36.js → chunk-JIRRF6BM.js} +4 -4
  40. package/dist/bundle/{chunk-ST2UC7FS.js → chunk-JODE2XED.js} +31 -27
  41. package/dist/bundle/{chunk-CWVAYQXI.js → chunk-K5I64ZVI.js} +9 -9
  42. package/dist/bundle/chunk-KFVDL2QS.js +146 -0
  43. package/dist/bundle/{chunk-JKIN5TOU.js → chunk-KL3P5TQK.js} +4 -4
  44. package/dist/bundle/chunk-L62XTC7N.js +726 -0
  45. package/dist/bundle/chunk-L6H7PY4X.js +170 -0
  46. package/dist/bundle/{chunk-F6MLJ3V5.js → chunk-LIQMUDIZ.js} +2 -2
  47. package/dist/bundle/{chunk-HWRKURQH.js → chunk-M2EEIYBU.js} +2 -2
  48. package/dist/bundle/chunk-M6DGZ2O6.js +823 -0
  49. package/dist/bundle/chunk-MGUEZYFA.js +5546 -0
  50. package/dist/bundle/{chunk-UWIA2G6Q.js → chunk-MRA62W5K.js} +404 -537
  51. package/dist/bundle/{chunk-XYIT2XB3.js → chunk-MVA5HVKL.js} +20 -0
  52. package/dist/bundle/{chunk-GA3URWIF.js → chunk-NO2LIHWA.js} +1 -1
  53. package/dist/bundle/{chunk-ESZT4WW3.js → chunk-OCDJ4FFA.js} +4 -4
  54. package/dist/bundle/{chunk-B4B65XIO.js → chunk-OI5DWZJG.js} +3 -3
  55. package/dist/bundle/chunk-P3P6DA6K.js +259 -0
  56. package/dist/bundle/chunk-QX3TPFEX.js +1977 -0
  57. package/dist/bundle/{chunk-EU5WCOMQ.js → chunk-R6SDRSZK.js} +76 -35
  58. package/dist/bundle/{chunk-K5TWMQSY.js → chunk-RMJMID5D.js} +8 -8
  59. package/dist/bundle/{chunk-RLSFOR2D.js → chunk-SGBS5QCU.js} +4 -4
  60. package/dist/bundle/{chunk-3D3PFXBP.js → chunk-T5UNSFES.js} +10 -15
  61. package/dist/bundle/{chunk-RAZKIHGH.js → chunk-TFNRCCGR.js} +4 -4
  62. package/dist/bundle/{chunk-WK3OSDNV.js → chunk-TJCPTRYD.js} +7 -7
  63. package/dist/bundle/{chunk-BWICUW7W.js → chunk-TXONV3HW.js} +2 -2
  64. package/dist/bundle/{chunk-AQZO3ITW.js → chunk-TZ2QJ53V.js} +2 -2
  65. package/dist/bundle/{chunk-35K5T6WV.js → chunk-UKE3CGHK.js} +1 -1
  66. package/dist/bundle/{chunk-7N5QB6NL.js → chunk-UROEWCOG.js} +5 -3
  67. package/dist/bundle/chunk-WHJWURZB.js +335 -0
  68. package/dist/bundle/{chunk-R6ZM45NF.js → chunk-WU3XHGOB.js} +185 -57
  69. package/dist/bundle/{chunk-2YR3RYT4.js → chunk-WZEEEQGC.js} +3 -3
  70. package/dist/bundle/{chunk-B2WFKFYL.js → chunk-XCTOCVMW.js} +20 -116
  71. package/dist/bundle/chunk-XFLCVHSQ.js +50 -0
  72. package/dist/bundle/{chunk-EGTBL3MJ.js → chunk-Y5LAJWR5.js} +1 -1
  73. package/dist/bundle/{chunk-66PL7P4C.js → chunk-YAPDU3SV.js} +1 -1
  74. package/dist/bundle/{chunk-WWMB4UHF.js → chunk-YFWLHTNO.js} +1 -1
  75. package/dist/bundle/{chunk-KHOVVPLC.js → chunk-YGCI3DHS.js} +1 -1
  76. package/dist/bundle/{chunk-4GC5DBHW.js → chunk-Z53LYX4M.js} +3 -3
  77. package/dist/bundle/{chunk-EPAZ7DJB.js → chunk-ZC6ZQQ55.js} +48 -45
  78. package/dist/bundle/command-contract-UBXS6NHI.js +38 -0
  79. package/dist/bundle/{command-server-entry-A66DJ3MH.js → command-server-entry-2SORMVRM.js} +27 -24
  80. package/dist/bundle/decode-5O7IEFPN.js +297 -0
  81. package/dist/bundle/{dispatch-FEKU5UXC.js → dispatch-YHQX6FEJ.js} +8 -8
  82. package/dist/bundle/{dist-YFKABFFF.js → dist-ILNOLGYN.js} +1 -1
  83. package/dist/bundle/{echarts-XD2JSWU4.js → echarts-ARLMVQC7.js} +2 -2
  84. package/dist/bundle/{embed-F3HYGAF7.js → embed-FUDUKQ3K.js} +7 -7
  85. package/dist/bundle/{embedder-GSEDDUH7.js → embedder-HDRV7GX3.js} +10 -10
  86. package/dist/bundle/{failure-HDJLR2YJ.js → failure-JHXICWIL.js} +3 -3
  87. package/dist/bundle/first-run-BGEFTXOE.js +29 -0
  88. package/dist/bundle/first-screen-F5F3VS6Y.js +38 -0
  89. package/dist/bundle/{instructions-NZGJ4FW5.js → instructions-MEFIKCDI.js} +1 -1
  90. package/dist/bundle/{mcp-VFIOZDVY.js → mcp-VMS6PBCU.js} +2 -2
  91. package/dist/bundle/mdast-util-from-markdown-R66F4HZA.js +1958 -0
  92. package/dist/bundle/mdast-util-gfm-LN2ELINH.js +2699 -0
  93. package/dist/bundle/meeting-combined-HNSS3FQY.js +24 -0
  94. package/dist/bundle/meeting-model-REZVYGQW.js +26 -0
  95. package/dist/bundle/meeting-semantic-R4CSLVRG.js +22 -0
  96. package/dist/bundle/micromark-extension-gfm-5X7YT43T.js +1838 -0
  97. package/dist/bundle/{node-RPKPDYQS.js → node-MAQALPLA.js} +2 -2
  98. package/dist/bundle/{node-sqlite-KH2UUYVO.js → node-sqlite-J7IJYNBO.js} +8 -8
  99. package/dist/bundle/notion.js +14 -14
  100. package/dist/bundle/{oauth-NKAI7TQD.js → oauth-AMV4YGJD.js} +8 -8
  101. package/dist/bundle/{open-WSAEAA2V.js → open-AB27MTGR.js} +6 -6
  102. package/dist/bundle/{openai-JPVDGHG5.js → openai-D77MU5XV.js} +31 -29
  103. package/dist/bundle/{process-5ZFVKOQX.js → process-SIOWTRJ6.js} +1 -1
  104. package/dist/bundle/{program-M3D56D6T.js → program-QC5MX4ZJ.js} +7533 -1997
  105. package/dist/bundle/{prompt-FROYQ5LV.js → prompt-W77YDHA6.js} +6 -6
  106. package/dist/bundle/{recognize-NYCHQMCX.js → recognize-3JAXQQ36.js} +5 -5
  107. package/dist/bundle/{remote-4OERF3Z4.js → remote-PSOJXCXO.js} +11 -11
  108. package/dist/bundle/{rerank-TEGXFUWY.js → rerank-EE44ZTGL.js} +8 -8
  109. package/dist/bundle/{schemas-MZNNOEYN.js → schemas-LBYUMBC6.js} +2 -2
  110. package/dist/bundle/{serve-HLYYBAXY.js → serve-XJMGAMFW.js} +10 -10
  111. package/dist/bundle/{server-D5OYNEUW.js → server-ASU6CP5R.js} +53 -44
  112. package/dist/bundle/server-WSPQ5EOA.js +72 -0
  113. package/dist/bundle/services-PT4PA4J6.js +588 -0
  114. package/dist/bundle/{sqlite-runtime-H2S5RR2F.js → sqlite-runtime-YHXRTVXE.js} +7 -7
  115. package/dist/bundle/{state-OPOXCDZL.js → state-T6ZKFWGD.js} +7 -7
  116. package/dist/bundle/{store-NHMXEJPD.js → store-3MUCZEI3.js} +20 -14
  117. package/dist/bundle/{store-Y3KRLCJ7.js → store-E5EE25FY.js} +30 -21
  118. package/dist/bundle/store-maintenance-command-ZZ55BBBG.js +63 -0
  119. package/dist/commands/api.d.ts.map +1 -1
  120. package/dist/commands/api.js +13 -4
  121. package/dist/commands/api.js.map +1 -1
  122. package/dist/commands/documents.d.ts +10 -1
  123. package/dist/commands/documents.d.ts.map +1 -1
  124. package/dist/commands/documents.js +175 -5
  125. package/dist/commands/documents.js.map +1 -1
  126. package/dist/commands/library.d.ts +10 -0
  127. package/dist/commands/library.d.ts.map +1 -0
  128. package/dist/commands/library.js +470 -0
  129. package/dist/commands/library.js.map +1 -0
  130. package/dist/commands/session.d.ts.map +1 -1
  131. package/dist/commands/session.js +4 -3
  132. package/dist/commands/session.js.map +1 -1
  133. package/dist/config.d.ts +19 -0
  134. package/dist/config.d.ts.map +1 -1
  135. package/dist/config.js +73 -5
  136. package/dist/config.js.map +1 -1
  137. package/dist/context.d.ts +8 -0
  138. package/dist/context.d.ts.map +1 -1
  139. package/dist/context.js +15 -3
  140. package/dist/context.js.map +1 -1
  141. package/dist/generated/types.d.ts +485 -375
  142. package/dist/generated/types.d.ts.map +1 -1
  143. package/dist/identity.d.ts.map +1 -1
  144. package/dist/identity.js +1 -0
  145. package/dist/identity.js.map +1 -1
  146. package/dist/knowledge.d.ts +27 -0
  147. package/dist/knowledge.d.ts.map +1 -0
  148. package/dist/knowledge.js +87 -0
  149. package/dist/knowledge.js.map +1 -0
  150. package/dist/library.d.ts +44 -0
  151. package/dist/library.d.ts.map +1 -0
  152. package/dist/library.js +149 -0
  153. package/dist/library.js.map +1 -0
  154. package/dist/notion/client.d.ts +4 -1
  155. package/dist/notion/client.d.ts.map +1 -1
  156. package/dist/notion/client.js +5 -2
  157. package/dist/notion/client.js.map +1 -1
  158. package/dist/notion/errors.d.ts +5 -0
  159. package/dist/notion/errors.d.ts.map +1 -1
  160. package/dist/notion/errors.js +33 -1
  161. package/dist/notion/errors.js.map +1 -1
  162. package/dist/notion/reads.d.ts +4 -0
  163. package/dist/notion/reads.d.ts.map +1 -1
  164. package/dist/notion/writes.d.ts +40 -0
  165. package/dist/notion/writes.d.ts.map +1 -0
  166. package/dist/notion/writes.js +112 -0
  167. package/dist/notion/writes.js.map +1 -0
  168. package/dist/program.js +2 -2
  169. package/dist/program.js.map +1 -1
  170. package/dist/sync/cursor.d.ts +93 -0
  171. package/dist/sync/cursor.d.ts.map +1 -1
  172. package/dist/sync/cursor.js +63 -2
  173. package/dist/sync/cursor.js.map +1 -1
  174. package/dist/sync/files.d.ts +87 -0
  175. package/dist/sync/files.d.ts.map +1 -0
  176. package/dist/sync/files.js +31 -0
  177. package/dist/sync/files.js.map +1 -0
  178. package/dist/sync/markdown.d.ts +4 -1
  179. package/dist/sync/markdown.d.ts.map +1 -1
  180. package/dist/sync/markdown.js +8 -6
  181. package/dist/sync/markdown.js.map +1 -1
  182. package/dist/sync/source.d.ts +6 -59
  183. package/dist/sync/source.d.ts.map +1 -1
  184. package/dist/sync/source.js +650 -271
  185. package/dist/sync/source.js.map +1 -1
  186. package/dist/version.d.ts +1 -1
  187. package/dist/version.js +1 -1
  188. package/package.json +3 -3
  189. package/skills/notion-cli/SKILL.md +18 -1
  190. package/dist/bundle/command-contract-6G5DC2FN.js +0 -35
  191. package/dist/bundle/decode-7XOFRAAT.js +0 -163
  192. package/dist/bundle/first-run-TXNTIUSP.js +0 -28
  193. package/dist/bundle/first-screen-JZPJND7J.js +0 -33
  194. package/dist/bundle/server-LWZGVMNW.js +0 -62
  195. package/dist/bundle/store-maintenance-command-D4W7WSLQ.js +0 -53
  196. package/dist/commands/comments.d.ts +0 -3
  197. package/dist/commands/comments.d.ts.map +0 -1
  198. package/dist/commands/comments.js +0 -114
  199. package/dist/commands/comments.js.map +0 -1
  200. package/dist/sample/comments.d.ts +0 -61
  201. package/dist/sample/comments.d.ts.map +0 -1
  202. package/dist/sample/comments.js +0 -39
  203. package/dist/sample/comments.js.map +0 -1
  204. package/dist/sample/records.d.ts +0 -16
  205. package/dist/sample/records.d.ts.map +0 -1
  206. package/dist/sample/records.js +0 -22
  207. package/dist/sample/records.js.map +0 -1
  208. package/dist/sample/transport.d.ts +0 -42
  209. package/dist/sample/transport.d.ts.map +0 -1
  210. package/dist/sample/transport.js +0 -153
  211. package/dist/sample/transport.js.map +0 -1
  212. /package/dist/bundle/{chunk-ZI3YTXSF.js → chunk-SHTHNBHG.js} +0 -0
@@ -9,16 +9,20 @@ import {
9
9
  providerErrorKey,
10
10
  renderEvent,
11
11
  runContextOf
12
- } from "./chunk-7FII4DCE.js";
13
- import {
14
- carries
15
- } from "./chunk-XC5CKHX2.js";
12
+ } from "./chunk-IJMFG7HB.js";
16
13
  import {
17
14
  permissionCeiling
18
- } from "./chunk-24FAYAML.js";
15
+ } from "./chunk-4TQVZXOV.js";
16
+ import {
17
+ DEFAULT_RERANK_MODEL,
18
+ RERANK_MODELS
19
+ } from "./chunk-WHJWURZB.js";
20
+ import {
21
+ carries
22
+ } from "./chunk-7YZPBAQX.js";
19
23
  import {
20
24
  note
21
- } from "./chunk-UWW24JQF.js";
25
+ } from "./chunk-HTKSCSJU.js";
22
26
  import {
23
27
  BUSINESS_KINDS,
24
28
  CATEGORIES,
@@ -27,8 +31,6 @@ import {
27
31
  DEAL_ROLES,
28
32
  DEAL_STATUSES,
29
33
  FACT_STATUSES,
30
- FACT_TYPES,
31
- FIELD_TYPES,
32
34
  FINANCE_REVIEWS,
33
35
  INVOICE_DIRECTIONS,
34
36
  INVOICE_STATUSES,
@@ -37,7 +39,6 @@ import {
37
39
  LINK_KINDS,
38
40
  LINK_SOURCES,
39
41
  LOG_ATTRIBUTES,
40
- MEETING_RESULT_ENTITIES,
41
42
  MEMORY_KINDS,
42
43
  MEMORY_SCOPES,
43
44
  MEMORY_STATUSES,
@@ -45,11 +46,9 @@ import {
45
46
  ORDER_PURPOSES,
46
47
  ORDER_STATUSES,
47
48
  PRIORITY_LABELS,
48
- QUERY_BACKENDS,
49
49
  RELATION_KINDS,
50
50
  RUNS_SIZE_LIMIT_MB,
51
51
  STANDINGS,
52
- TAG_TYPES,
53
52
  TASK_KINDS,
54
53
  TASK_ORIGINS,
55
54
  TASK_STATES,
@@ -57,37 +56,19 @@ import {
57
56
  TASK_VERDICTS,
58
57
  WORK_TASK_TYPES,
59
58
  author,
60
- callStats,
61
59
  childTrace,
62
60
  count,
63
61
  currentRun,
64
- describeQuery,
65
62
  enclosingTraceId,
66
- event,
67
63
  evidenceSource,
68
64
  id,
69
65
  inRun,
70
66
  logAttributes,
71
67
  markStoreDamaged,
72
- meeting,
73
- meetingCounts,
74
- meetingDetails,
75
- meetingHit,
76
- meetingLink,
77
- meetingParticipants,
78
- meetingPassage,
79
- meetingProjectEvidence,
80
- meetingReview,
81
- meetingSpeaker,
82
- meetingStats,
83
- meetingSummary,
84
- meetingTranscript,
85
68
  newRunId,
86
69
  organization,
87
- parseLucene,
88
70
  project,
89
71
  providerMetadata,
90
- readsZone,
91
72
  reminder,
92
73
  runsDirFor,
93
74
  snakeLogger,
@@ -95,32 +76,60 @@ import {
95
76
  startRun,
96
77
  text,
97
78
  time,
98
- timezoneOf,
99
79
  traceOf,
100
80
  typedCommand,
101
81
  untrusted,
102
82
  useAsProcessRun
103
- } from "./chunk-NLDYZBTC.js";
83
+ } from "./chunk-QX3TPFEX.js";
104
84
  import {
105
85
  isCliFailure,
106
86
  storeDamaged
107
- } from "./chunk-7N5QB6NL.js";
87
+ } from "./chunk-UROEWCOG.js";
88
+ import {
89
+ TAG_TYPES
90
+ } from "./chunk-5UA2TYMI.js";
91
+ import {
92
+ FACT_TYPES,
93
+ FIELD_TYPES,
94
+ MEETING_RESULT_ENTITIES,
95
+ QUERY_BACKENDS,
96
+ callStats,
97
+ describeQuery,
98
+ event,
99
+ meeting,
100
+ meetingCall,
101
+ meetingCounts,
102
+ meetingDetails,
103
+ meetingHit,
104
+ meetingLink,
105
+ meetingParticipants,
106
+ meetingPassage,
107
+ meetingProjectEvidence,
108
+ meetingReview,
109
+ meetingSpeaker,
110
+ meetingStats,
111
+ meetingSummary,
112
+ meetingTagChange,
113
+ meetingTagging,
114
+ meetingTranscript,
115
+ parseLucene,
116
+ readsZone,
117
+ timezoneOf
118
+ } from "./chunk-FSJHASRQ.js";
108
119
  import {
109
120
  endpoint
110
- } from "./chunk-2YR3RYT4.js";
121
+ } from "./chunk-WZEEEQGC.js";
111
122
  import {
112
- readSharedSection,
113
123
  repairConfigText,
114
- sharedConfigPath,
115
- writeSharedSection
116
- } from "./chunk-WK3OSDNV.js";
124
+ sharedConfigPath
125
+ } from "./chunk-TJCPTRYD.js";
117
126
  import {
118
127
  filesPresent,
119
128
  sharedModelsDirectory
120
- } from "./chunk-WVZFXI36.js";
129
+ } from "./chunk-JIRRF6BM.js";
121
130
  import {
122
131
  storePath
123
- } from "./chunk-HWRKURQH.js";
132
+ } from "./chunk-M2EEIYBU.js";
124
133
  import {
125
134
  configFilePath,
126
135
  createRecordLog,
@@ -132,7 +141,7 @@ import {
132
141
  resolvePaths,
133
142
  saveConfigFile,
134
143
  writeSecurely
135
- } from "./chunk-RSIS7BR7.js";
144
+ } from "./chunk-AYU5TFDU.js";
136
145
  import {
137
146
  COMPACT_FLAG,
138
147
  MAX_NEXT_STEPS,
@@ -149,7 +158,7 @@ import {
149
158
  reference,
150
159
  stepOf,
151
160
  writes
152
- } from "./chunk-WM7663C2.js";
161
+ } from "./chunk-6GN7KU7X.js";
153
162
  import {
154
163
  array,
155
164
  boolean,
@@ -179,27 +188,25 @@ import {
179
188
  regex,
180
189
  safeInteger,
181
190
  safeParse,
182
- startsWith,
183
191
  strictObject,
184
192
  string,
185
193
  trim,
186
194
  union,
187
195
  unknown,
188
196
  unwrap,
189
- url,
190
197
  variant
191
- } from "./chunk-XYIT2XB3.js";
198
+ } from "./chunk-MVA5HVKL.js";
192
199
  import {
193
200
  CliError,
194
201
  isCliError,
195
202
  singleLine,
196
203
  visibleControls
197
- } from "./chunk-F6MLJ3V5.js";
204
+ } from "./chunk-LIQMUDIZ.js";
198
205
  import {
199
206
  __name
200
207
  } from "./chunk-ZVVMGPBJ.js";
201
208
 
202
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/ports/app.js
209
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/ports/app.js
203
210
  import { readFileSync } from "node:fs";
204
211
  var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
205
212
  var locking = /* @__PURE__ */ __name((value) => value !== void 0 && value.trim() !== "" && value !== "0", "locking");
@@ -253,7 +260,7 @@ var mailHolderVariable = /* @__PURE__ */ __name((app) => envName(app, "MAIL_HOLD
253
260
  var MESSENGER_CHANGE_REFUSAL = "send, react, change chats or change the account";
254
261
  var readOnlyRefusal = /* @__PURE__ */ __name((lock, what) => new CliError("permission_error", `this process is read-only (${lock}) \u2014 it cannot ${what}`), "readOnlyRefusal");
255
262
 
256
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
263
+ // node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
257
264
  var labels = /* @__PURE__ */ new WeakMap();
258
265
  var annotate = /* @__PURE__ */ __name((command, meta) => {
259
266
  labels.set(command, { ...labels.get(command), ...meta });
@@ -3754,7 +3761,7 @@ __name(useColor, "useColor");
3754
3761
  // node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
3755
3762
  var program = new Command();
3756
3763
 
3757
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
3764
+ // node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
3758
3765
  var argumentInfoSchema = object({
3759
3766
  name: string(),
3760
3767
  required: boolean(),
@@ -3828,7 +3835,7 @@ var commandsDocumentSchema = strictObject({
3828
3835
  exit_codes: record(string(), pipe(number(), integer()))
3829
3836
  });
3830
3837
 
3831
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
3838
+ // node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
3832
3839
  import { isDeepStrictEqual } from "node:util";
3833
3840
  var protectedCommands = /* @__PURE__ */ new WeakMap();
3834
3841
  var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
@@ -3938,7 +3945,7 @@ var sharedCommand = /* @__PURE__ */ __name((factory) => (...args) => {
3938
3945
  return result;
3939
3946
  }, "sharedCommand");
3940
3947
 
3941
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
3948
+ // node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
3942
3949
  var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3943
3950
  let command = root;
3944
3951
  const path2 = [];
@@ -3956,7 +3963,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3956
3963
  }
3957
3964
  }, "refuseJoinedPath");
3958
3965
 
3959
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/sends/permissions.js
3966
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/sends/permissions.js
3960
3967
  var LEVELS = ["deny", "readonly", "ask", "allow"];
3961
3968
  var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
3962
3969
  var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
@@ -4382,7 +4389,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
4382
4389
  }
4383
4390
  }, "assertRetentionEvidenceRead");
4384
4391
 
4385
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/cli/command-server-request.js
4392
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/command-server-request.js
4386
4393
  import { AsyncLocalStorage } from "node:async_hooks";
4387
4394
  var requests = new AsyncLocalStorage();
4388
4395
  var inCommandServerRequest = /* @__PURE__ */ __name((request, work) => requests.run(request, work), "inCommandServerRequest");
@@ -4397,7 +4404,7 @@ var exitCodeSet = /* @__PURE__ */ __name(() => {
4397
4404
  return direct;
4398
4405
  }, "exitCodeSet");
4399
4406
 
4400
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/sends/guarded.js
4407
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/sends/guarded.js
4401
4408
  import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
4402
4409
  var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
4403
4410
  messageId: message2.id,
@@ -4503,7 +4510,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
4503
4510
  }, "guardedWrite");
4504
4511
  var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
4505
4512
 
4506
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
4513
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
4507
4514
  var named = /* @__PURE__ */ __name((work) => {
4508
4515
  try {
4509
4516
  return work();
@@ -4530,7 +4537,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
4530
4537
  return projectFields(value, fields);
4531
4538
  }), "projectFields");
4532
4539
 
4533
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/cli/execution.js
4540
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/execution.js
4534
4541
  var DEFAULT_COMMAND_MS = 3e4;
4535
4542
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
4536
4543
  var DEFAULT_SYNC_MS = 15 * 6e4;
@@ -4713,7 +4720,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
4713
4720
  }
4714
4721
  }, "withAbort");
4715
4722
 
4716
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
4723
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
4717
4724
  import { existsSync, readdirSync, readFileSync as readFileSync2 } from "node:fs";
4718
4725
  import { join } from "node:path";
4719
4726
  var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
@@ -4735,7 +4742,64 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
4735
4742
  }, "profilesWithAccounts");
4736
4743
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
4737
4744
 
4738
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/output-detail.js
4745
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/background/budget.js
4746
+ var DEADLINE_MARGIN_MS = 5e3;
4747
+ var DEADLINE_MARGIN_SHARE = 0.15;
4748
+ var DEFAULT_REQUEST_MS = 2e3;
4749
+ var ANSWER_RESERVE_MS = 500;
4750
+ var oneMoreFits = /* @__PURE__ */ __name((deadline, at2, requestMs = DEFAULT_REQUEST_MS) => deadline !== void 0 && at2 + requestMs + ANSWER_RESERVE_MS < deadline.endsAt, "oneMoreFits");
4751
+ var deadlineMargin = /* @__PURE__ */ __name((deadline) => Math.max(DEADLINE_MARGIN_MS, deadline.ms * DEADLINE_MARGIN_SHARE), "deadlineMargin");
4752
+ var requestsFor = /* @__PURE__ */ __name((deadline, requestMs = DEFAULT_REQUEST_MS) => deadline === void 0 ? null : Math.max(1, Math.floor((deadline.ms - deadlineMargin(deadline)) / requestMs)), "requestsFor");
4753
+ var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, requestMs, signal, now = Date.now } = {}) => {
4754
+ const fits = requestsFor(deadline, requestMs);
4755
+ const limit = fits === null ? requests2 ?? null : Math.min(fits, requests2 ?? fits);
4756
+ const margin = deadline ? deadlineMargin(deadline) : 0;
4757
+ let used = 0;
4758
+ let granted = false;
4759
+ let stopped2 = null;
4760
+ let last;
4761
+ let slowest = 0;
4762
+ return {
4763
+ take() {
4764
+ if (stopped2)
4765
+ return stopped2;
4766
+ const at2 = now();
4767
+ if (last !== void 0)
4768
+ slowest = Math.max(slowest, at2 - last);
4769
+ if (signal?.aborted)
4770
+ stopped2 = "cancelled";
4771
+ else if (limit !== null && used >= limit)
4772
+ stopped2 = "requests";
4773
+ else if (deadline && at2 + margin + slowest >= deadline.endsAt)
4774
+ stopped2 = "deadline";
4775
+ if (stopped2)
4776
+ return stopped2;
4777
+ used += 1;
4778
+ last = at2;
4779
+ return null;
4780
+ },
4781
+ first() {
4782
+ if (granted || used > 0 || stopped2 !== "deadline")
4783
+ return false;
4784
+ const at2 = now();
4785
+ if (!oneMoreFits(deadline, at2, Math.max(requestMs ?? DEFAULT_REQUEST_MS, slowest)))
4786
+ return false;
4787
+ granted = true;
4788
+ used += 1;
4789
+ last = at2;
4790
+ return true;
4791
+ },
4792
+ get used() {
4793
+ return used;
4794
+ },
4795
+ limit,
4796
+ get stopped() {
4797
+ return stopped2;
4798
+ }
4799
+ };
4800
+ }, "runBudget");
4801
+
4802
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/output-detail.js
4739
4803
  var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
4740
4804
  var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
4741
4805
  var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
@@ -4771,7 +4835,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
4771
4835
  return value;
4772
4836
  }, "atDetail");
4773
4837
 
4774
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/output.js
4838
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/output.js
4775
4839
  var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
4776
4840
  const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
4777
4841
  if (other)
@@ -4835,7 +4899,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
4835
4899
  }, "warn")
4836
4900
  }), "silence");
4837
4901
 
4838
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4902
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4839
4903
  var CORE_LOG_EVENTS = defineLogEvents([
4840
4904
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
4841
4905
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -4873,7 +4937,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
4873
4937
  progress: "sync.progress"
4874
4938
  };
4875
4939
 
4876
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/runs/recording.js
4940
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/runs/recording.js
4877
4941
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
4878
4942
  const recording = startRecording(options);
4879
4943
  try {
@@ -5088,7 +5152,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
5088
5152
  return void 0;
5089
5153
  }, "partialOutcome");
5090
5154
 
5091
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/cli/deadline.js
5155
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/deadline.js
5092
5156
  var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
5093
5157
  if (ms2 === void 0)
5094
5158
  return body();
@@ -5114,7 +5178,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
5114
5178
  }
5115
5179
  }, "withDeadline");
5116
5180
 
5117
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/cli/profile.js
5181
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/profile.js
5118
5182
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
5119
5183
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
5120
5184
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -5140,19 +5204,19 @@ var takesProfile = /* @__PURE__ */ __name((command) => {
5140
5204
  return top !== void 0 && !PROFILE_FREE.has(top.name());
5141
5205
  }, "takesProfile");
5142
5206
  var commandWords = /* @__PURE__ */ __name((program2) => /* @__PURE__ */ new Set(["help", ...program2.commands.flatMap((command) => [command.name(), ...command.aliases()])]), "commandWords");
5143
- var liftProfile = /* @__PURE__ */ __name((argv, words2, valued = /* @__PURE__ */ new Set()) => {
5207
+ var liftProfile = /* @__PURE__ */ __name((argv, words, valued = /* @__PURE__ */ new Set()) => {
5144
5208
  let at2 = 0;
5145
5209
  while (argv[at2]?.startsWith("-") && argv[at2] !== "--")
5146
5210
  at2 += valued.has(argv[at2]) ? 2 : 1;
5147
5211
  const first2 = argv[at2];
5148
- if (first2 === void 0 || first2.startsWith("-") || words2.has(first2))
5212
+ if (first2 === void 0 || first2.startsWith("-") || words.has(first2))
5149
5213
  return { rest: argv };
5150
5214
  return { profile: first2, rest: [...argv.slice(0, at2), ...argv.slice(at2 + 1)] };
5151
5215
  }, "liftProfile");
5152
5216
  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");
5153
- var refuseCommandName = /* @__PURE__ */ __name((profile, words2, command) => {
5154
- if (words2.has(profile)) {
5155
- throw new CliError("validation_error", `"${profile}" is a command, so \`${command} ${profile} \u2026\` would always mean the command and never this profile. Pick a name that is not one of: ` + [...words2].sort().join(", "));
5217
+ var refuseCommandName = /* @__PURE__ */ __name((profile, words, command) => {
5218
+ if (words.has(profile)) {
5219
+ throw new CliError("validation_error", `"${profile}" is a command, so \`${command} ${profile} \u2026\` would always mean the command and never this profile. Pick a name that is not one of: ` + [...words].sort().join(", "));
5156
5220
  }
5157
5221
  }, "refuseCommandName");
5158
5222
  var rootOf = /* @__PURE__ */ __name((command) => {
@@ -5183,10 +5247,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
5183
5247
  return void 0;
5184
5248
  }, "sampleCommand");
5185
5249
 
5186
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/cli/settings.js
5187
- import { existsSync as existsSync5 } from "node:fs";
5250
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/settings.js
5251
+ import { existsSync as existsSync4 } from "node:fs";
5188
5252
 
5189
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/models/settings.js
5253
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/models/settings.js
5190
5254
  var MODEL_FIELDS = ["provider", "model", "base_url"];
5191
5255
  var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
5192
5256
  provider: optional(picklist(["off", "openai", "anthropic"])),
@@ -5255,13 +5319,13 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
5255
5319
  };
5256
5320
  }, "modelTarget");
5257
5321
 
5258
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/analysis/settings.js
5322
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/analysis/settings.js
5259
5323
  var model = pipe(string(), trim(), minLength(1), maxLength(200));
5260
- var url2 = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
5324
+ var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
5261
5325
  var AI_FIELDS = {
5262
5326
  embeddingProvider: optional(picklist(["local", "openai"])),
5263
5327
  embeddingModel: optional(model),
5264
- embeddingBaseUrl: optional(url2),
5328
+ embeddingBaseUrl: optional(url),
5265
5329
  embeddingDims: optional(pipe(number(), integer(), minValue(1), maxValue(65536))),
5266
5330
  models: optional(modelSettingsShape)
5267
5331
  };
@@ -5299,7 +5363,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
5299
5363
  };
5300
5364
  }, "resolveAISettings");
5301
5365
 
5302
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/domain/duration.js
5366
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/domain/duration.js
5303
5367
  var DURATION = /^(\d+)(ms|s|m|h|d)$/;
5304
5368
  var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
5305
5369
  var parseDuration = /* @__PURE__ */ __name((value, source2) => {
@@ -5313,284 +5377,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
5313
5377
  return ms2;
5314
5378
  }, "parseDuration");
5315
5379
 
5316
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/embeddings/models.js
5317
- import { existsSync as existsSync2 } from "node:fs";
5318
- import { join as join2 } from "node:path";
5319
- var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
5320
- var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
5321
- var e5Large = huggingFace("Xenova/multilingual-e5-large", "00fc3aeb3dbb95842de2ac1961d33c6319acf57b");
5322
- var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
5323
- var TEXT_MODELS = [
5324
- {
5325
- id: "e5-small",
5326
- title: "multilingual-e5-small, 8-bit",
5327
- size: "small",
5328
- languages: "about 100 languages, Russian and English among them",
5329
- licence: "MIT",
5330
- dims: 384,
5331
- maxTokens: 512,
5332
- // 100k-message corpus, one 8-thread session on Ryzen AI 9 HX 470: 31–32 chunks/s.
5333
- chunksPerSecond: 31,
5334
- pooling: "mean",
5335
- prefix: { query: "query: ", passage: "passage: " },
5336
- onnx: "onnx/model_quantized.onnx",
5337
- files: [
5338
- {
5339
- name: "onnx/model_quantized.onnx",
5340
- url: e5("onnx/model_quantized.onnx"),
5341
- sha256: "f80102d3f2a1229f387d3c81909990d8945513e347b0eab049f7de3c6f98c193",
5342
- bytes: 118308185
5343
- },
5344
- {
5345
- name: "tokenizer.json",
5346
- url: e5("tokenizer.json"),
5347
- sha256: "0b44a9d7b51c3c62626640cda0e2c2f70fdacdc25bbbd68038369d14ebdf4c39",
5348
- bytes: 17082730
5349
- },
5350
- {
5351
- name: "tokenizer_config.json",
5352
- url: e5("tokenizer_config.json"),
5353
- sha256: "a1d6bc8734a6f635dc158508bef000f8e2e5a759c7d92f984b2c86e5ff53425b",
5354
- bytes: 443
5355
- }
5356
- ]
5357
- },
5358
- {
5359
- id: "embeddinggemma",
5360
- title: "EmbeddingGemma 300M, 4-bit",
5361
- size: "medium",
5362
- languages: "over 100 languages \u2014 the best of the two on chat, about seven times slower",
5363
- licence: "Gemma Terms of Use",
5364
- terms: "https://ai.google.dev/gemma/terms",
5365
- // Gemma Terms of Use §3.1: every copy carries this notice and the use restrictions of §3.2.
5366
- notice: "Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms. Its use is restricted by the Gemma Prohibited Use Policy: https://ai.google.dev/gemma/prohibited_use_policy",
5367
- dims: 768,
5368
- maxTokens: 2048,
5369
- // 2026-11-08, 1,200-character chunks, 8 threads on the Ryzen AI 9 HX 470: 8.3 chunks/s against e5-small's 52.7, so
5370
- // 5 on the scale e5-small's 31 sets. It was 2, which held a memo sync to 39 chunks.
5371
- chunksPerSecond: 5,
5372
- pooling: "sentence_embedding",
5373
- prefix: { query: "task: search result | query: ", passage: "title: none | text: " },
5374
- onnx: "onnx/model_q4.onnx",
5375
- externalData: "onnx/model_q4.onnx_data",
5376
- files: [
5377
- {
5378
- name: "onnx/model_q4.onnx",
5379
- url: gemma("onnx/model_q4.onnx"),
5380
- sha256: "ad1dfee81a70f7944b9b9d1cc6e48075b832881cf33fab2f2b248be78f3f0043",
5381
- bytes: 519322
5382
- },
5383
- {
5384
- name: "onnx/model_q4.onnx_data",
5385
- url: gemma("onnx/model_q4.onnx_data"),
5386
- sha256: "599962c3143b040de2dd05e5975be3e9091dd067cacc6a8f7186e3203bab9e02",
5387
- bytes: 196725760
5388
- },
5389
- {
5390
- name: "tokenizer.json",
5391
- url: gemma("tokenizer.json"),
5392
- sha256: "4dda02faaf32bc91031dc8c88457ac272b00c1016cc679757d1c441b248b9c47",
5393
- bytes: 20323312
5394
- },
5395
- {
5396
- name: "tokenizer_config.json",
5397
- url: gemma("tokenizer_config.json"),
5398
- sha256: "3ca953eea6c3c9fcda9cf3df22949ff18b216f7c74bd6459230f3f1013953f3a",
5399
- bytes: 1156830
5400
- }
5401
- ]
5402
- },
5403
- {
5404
- id: "e5-large",
5405
- title: "multilingual-e5-large, 8-bit",
5406
- size: "large",
5407
- languages: "about 100 languages, Russian and English among them \u2014 reads better than e5-small, several times slower",
5408
- licence: "MIT",
5409
- dims: 1024,
5410
- maxTokens: 512,
5411
- // 2026-11-07, one 8-thread session on the Ryzen AI 9 HX 470 while other benchmarks ran: 3.4 chunks/s.
5412
- chunksPerSecond: 4,
5413
- pooling: "mean",
5414
- prefix: { query: "query: ", passage: "passage: " },
5415
- onnx: "onnx/model_quantized.onnx",
5416
- files: [
5417
- {
5418
- name: "onnx/model_quantized.onnx",
5419
- url: e5Large("onnx/model_quantized.onnx"),
5420
- sha256: "0a8d65db9a36f810ba5da15249f13145fcdc7890e6656f1fd38cd8b7c4db1fca",
5421
- bytes: 561768762
5422
- },
5423
- {
5424
- name: "tokenizer.json",
5425
- url: e5Large("tokenizer.json"),
5426
- sha256: "62c24cdc13d4c9952d63718d6c9fa4c287974249e16b7ade6d5a85e7bbb75626",
5427
- bytes: 17082660
5428
- },
5429
- {
5430
- name: "tokenizer_config.json",
5431
- url: e5Large("tokenizer_config.json"),
5432
- sha256: "efb5c0d09722e5fe59a462cd2a9976ee216d55b037597d997cd3fe833216da15",
5433
- bytes: 418
5434
- }
5435
- ]
5436
- }
5437
- ];
5438
- var DEFAULT_TEXT_MODEL = "embeddinggemma";
5439
- var PREVIOUS_DEFAULT_TEXT_MODEL = "e5-small";
5440
- var SECTION = "text_models";
5441
- var slug = pipe(string(), regex(/^[a-z0-9][a-z0-9._-]{0,62}$/, "is not a model id: a-z, 0-9, . _ -"));
5442
- var words = pipe(string(), trim(), minLength(1), maxLength(300));
5443
- var fileName = pipe(string(), check((name) => /^[\w.-]+(\/[\w.-]+)*$/.test(name) && !name.split("/").some((part) => part === ".." || part === "."), "is not a file inside the model's folder"));
5444
- var modelFile = strictObject({
5445
- name: fileName,
5446
- url: pipe(string(), url(), startsWith("https://", "has to be an https address")),
5447
- sha256: pipe(string(), regex(/^[0-9a-f]{64}$/, "has to be a sha256 in hex")),
5448
- bytes: pipe(number(), integer(), minValue(1))
5449
- });
5450
- var CustomTextModelShape = pipe(strictObject({
5451
- id: slug,
5452
- title: words,
5453
- languages: words,
5454
- licence: words,
5455
- terms: optional(pipe(string(), url())),
5456
- dims: pipe(number(), integer(), minValue(1), maxValue(8192)),
5457
- maxTokens: pipe(number(), integer(), minValue(16), maxValue(32768)),
5458
- chunksPerSecond: optional(pipe(number(), minValue(0.01))),
5459
- pooling: picklist(["mean", "sentence_embedding"]),
5460
- prefix: strictObject({
5461
- query: pipe(string(), maxLength(200)),
5462
- passage: pipe(string(), maxLength(200))
5463
- }),
5464
- onnx: fileName,
5465
- externalData: optional(fileName),
5466
- files: pipe(array(modelFile), minLength(1), maxLength(16))
5467
- }), check((model3) => !TEXT_MODELS.some((one) => one.id === model3.id), "takes the id of a model this version ships; choose another"), check((model3) => {
5468
- const names = model3.files.map(({ name }) => name);
5469
- return [model3.onnx, model3.externalData, "tokenizer.json", "tokenizer_config.json"].every((name) => name === void 0 || names.includes(name));
5470
- }, "has to list its onnx file, its external data and tokenizer.json and tokenizer_config.json among files"));
5471
- var TextModelsSection = strictObject({
5472
- use: optional(slug),
5473
- custom: optional(array(CustomTextModelShape))
5474
- });
5475
- var textModelsFile = /* @__PURE__ */ __name((env = process.env) => sharedConfigPath(storePath(env), env), "textModelsFile");
5476
- var readTextModelsSection = /* @__PURE__ */ __name((env = process.env) => {
5477
- const path2 = textModelsFile(env);
5478
- const section2 = readSharedSection(path2, SECTION);
5479
- if (section2 === void 0)
5480
- return {};
5481
- const checked = safeParse(TextModelsSection, section2);
5482
- if (!checked.success) {
5483
- const issue = checked.issues[0];
5484
- const at2 = issue ? getDotPath(issue) : null;
5485
- throw new CliError("configuration_error", `${path2}: ${SECTION}${at2 ? `.${at2}` : ""} ${issue?.message ?? "is not valid"}`);
5486
- }
5487
- const ids = checked.output.custom?.map(({ id: id6 }) => id6) ?? [];
5488
- const twice = ids.find((id6, at2) => ids.indexOf(id6) !== at2);
5489
- if (twice)
5490
- throw new CliError("configuration_error", `${path2}: ${SECTION}.custom names ${twice} twice`);
5491
- return checked.output;
5492
- }, "readTextModelsSection");
5493
- var writeTextModelsSection = /* @__PURE__ */ __name((section2, env = process.env) => writeSharedSection(textModelsFile(env), SECTION, section2.use === void 0 && !section2.custom?.length ? void 0 : section2), "writeTextModelsSection");
5494
- var textModels = /* @__PURE__ */ __name((env = process.env) => [
5495
- ...TEXT_MODELS,
5496
- ...(readTextModelsSection(env).custom ?? []).map((model3) => ({ ...model3, custom: true }))
5497
- ], "textModels");
5498
- var textModel = /* @__PURE__ */ __name((id6, env = process.env) => {
5499
- const known = textModels(env);
5500
- const found = known.find((model3) => model3.id === id6);
5501
- if (!found) {
5502
- throw new CliError("validation_error", `no text model ${id6} \u2014 one of: ${known.map((model3) => model3.id).join(", ")}`);
5503
- }
5504
- return found;
5505
- }, "textModel");
5506
- var downloaded = /* @__PURE__ */ __name((id6, env) => {
5507
- const model3 = TEXT_MODELS.find((one) => one.id === id6);
5508
- const directory = sharedModelsDirectory("text", env);
5509
- return model3 !== void 0 && filesPresent(model3.files.map((file) => [file, join2(directory, model3.id, file.name)]));
5510
- }, "downloaded");
5511
- var chosenTextModel = /* @__PURE__ */ __name((env = process.env) => {
5512
- const use = readTextModelsSection(env).use;
5513
- if (use !== void 0)
5514
- return { id: use, from: "chosen" };
5515
- const kept = !downloaded(DEFAULT_TEXT_MODEL, env) && existsSync2(join2(sharedModelsDirectory("text", env), PREVIOUS_DEFAULT_TEXT_MODEL));
5516
- return { id: kept ? PREVIOUS_DEFAULT_TEXT_MODEL : DEFAULT_TEXT_MODEL, from: "default" };
5517
- }, "chosenTextModel");
5518
- var mmarco = huggingFace("cross-encoder/mmarco-mMiniLMv2-L12-H384-v1", "1427fd652930e4ba29e8149678df786c240d8825");
5519
- var bge = huggingFace("onnx-community/bge-reranker-v2-m3-ONNX", "6f5ff65298512715a1e669753bc754d2bc8f367b");
5520
- var RERANK_MODELS = [
5521
- {
5522
- id: "mmarco",
5523
- title: "mMARCO mMiniLMv2-L12 cross-encoder, 8-bit",
5524
- languages: "about 100 languages, Russian and English among them",
5525
- licence: "Apache-2.0",
5526
- maxTokens: 512,
5527
- // The x86 name is the quantizer's target; WebAssembly and native ONNX Runtime both run it on any processor.
5528
- onnx: "onnx/model_quint8_avx2.onnx",
5529
- files: [
5530
- {
5531
- name: "onnx/model_quint8_avx2.onnx",
5532
- url: mmarco("onnx/model_quint8_avx2.onnx"),
5533
- sha256: "6c2513767fb63d008a4377bef7a7a3555433d9436342bb53e35a3a72ffc52d4b",
5534
- bytes: 118620016
5535
- },
5536
- {
5537
- name: "tokenizer.json",
5538
- url: mmarco("tokenizer.json"),
5539
- sha256: "62c24cdc13d4c9952d63718d6c9fa4c287974249e16b7ade6d5a85e7bbb75626",
5540
- bytes: 17082660
5541
- },
5542
- {
5543
- name: "tokenizer_config.json",
5544
- url: mmarco("tokenizer_config.json"),
5545
- sha256: "e7fbfbfa6347b4e414c1cee50d142e2c2f9a895dad68b068ae83a8b564c3837e",
5546
- bytes: 435
5547
- }
5548
- ]
5549
- },
5550
- {
5551
- id: "bge-reranker-v2-m3",
5552
- title: "BGE reranker v2 m3, 8-bit",
5553
- languages: "over 100 languages \u2014 better than mmarco in the benchmark, about seven times slower",
5554
- licence: "Apache-2.0 (BAAI's; the ONNX export declares none)",
5555
- maxTokens: 512,
5556
- onnx: "onnx/model_quantized.onnx",
5557
- files: [
5558
- {
5559
- name: "onnx/model_quantized.onnx",
5560
- url: bge("onnx/model_quantized.onnx"),
5561
- sha256: "912fc1215c2dbff6499700534bd8d31253af01573861abbfc43afd1fab6cce5d",
5562
- bytes: 570727094
5563
- },
5564
- {
5565
- name: "tokenizer.json",
5566
- url: bge("tokenizer.json"),
5567
- sha256: "8bf8afbfd11306bd872018c53bfdf2e160a56f8edbcf49933324404791c148d3",
5568
- bytes: 17082900
5569
- },
5570
- {
5571
- name: "tokenizer_config.json",
5572
- url: bge("tokenizer_config.json"),
5573
- sha256: "b87c8703482b0300d3da30e201519aa641f6a450f5eb5bf1e624afbf70c74d80",
5574
- bytes: 1203
5575
- }
5576
- ]
5577
- }
5578
- ];
5579
- var DEFAULT_RERANK_MODEL = "mmarco";
5580
- var rerankModel = /* @__PURE__ */ __name((id6) => {
5581
- const found = RERANK_MODELS.find((model3) => model3.id === id6);
5582
- if (!found) {
5583
- throw new CliError("validation_error", `no reranker ${id6} \u2014 one of: ${RERANK_MODELS.map((model3) => model3.id).join(", ")}`);
5584
- }
5585
- return found;
5586
- }, "rerankModel");
5587
- var vectorModelKey = /* @__PURE__ */ __name((model3) => {
5588
- const weights = model3.custom ? model3.files.find(({ name }) => name === model3.onnx)?.sha256.slice(0, 12) : void 0;
5589
- return `local:${model3.id}${weights ? `@${weights}` : ""}:${model3.dims}`;
5590
- }, "vectorModelKey");
5591
- var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
5592
-
5593
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/services/history-limits.js
5380
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/history-limits.js
5594
5381
  var HISTORY_MAX_DAYS = 1095;
5595
5382
  var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
5596
5383
  var DAY_MS = 24 * 60 * 60 * 1e3;
@@ -5637,19 +5424,19 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
5637
5424
  return { batch: { ...batch, messages }, skipped };
5638
5425
  }, "limitBatch");
5639
5426
 
5640
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
5641
- import { existsSync as existsSync3, readdirSync as readdirSync2, readFileSync as readFileSync3 } from "node:fs";
5642
- import { join as join3 } from "node:path";
5643
- var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
5427
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
5428
+ import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync3 } from "node:fs";
5429
+ import { join as join2 } from "node:path";
5430
+ var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
5644
5431
  var botFiles = /* @__PURE__ */ __name((app, profile, env = process.env) => {
5645
5432
  const directory = botsDirectory(app, env);
5646
5433
  return {
5647
- registry: join3(directory, `${profile}.json`),
5648
- recipients: join3(directory, "recipients", `${profile}.json`),
5649
- journal: join3(directory, "sends", `${profile}.jsonl`),
5650
- updates: join3(directory, "updates", `${profile}.json`),
5651
- presses: join3(directory, "presses", `${profile}.json`),
5652
- checks: join3(directory, "checks", `${profile}.json`)
5434
+ registry: join2(directory, `${profile}.json`),
5435
+ recipients: join2(directory, "recipients", `${profile}.json`),
5436
+ journal: join2(directory, "sends", `${profile}.jsonl`),
5437
+ updates: join2(directory, "updates", `${profile}.json`),
5438
+ presses: join2(directory, "presses", `${profile}.json`),
5439
+ checks: join2(directory, "checks", `${profile}.json`)
5653
5440
  };
5654
5441
  }, "botFiles");
5655
5442
  var ChatRegistry = class {
@@ -5676,7 +5463,7 @@ var ChatRegistry = class {
5676
5463
  }
5677
5464
  /** Makes this bot known to `bot list` before it has seen any chat. */
5678
5465
  touch() {
5679
- if (!existsSync3(this.#path))
5466
+ if (!existsSync2(this.#path))
5680
5467
  writeSecurely(this.#path, `${JSON.stringify({ chats: [] }, null, 2)}
5681
5468
  `, 384);
5682
5469
  }
@@ -5705,7 +5492,7 @@ var ChatRegistry = class {
5705
5492
  this.#write({ ...this.#read(), chats: [...byId.values()] });
5706
5493
  }
5707
5494
  #read() {
5708
- if (!existsSync3(this.#path))
5495
+ if (!existsSync2(this.#path))
5709
5496
  return {};
5710
5497
  try {
5711
5498
  const parsed = JSON.parse(readFileSync3(this.#path, "utf8"));
@@ -5721,12 +5508,12 @@ var ChatRegistry = class {
5721
5508
  };
5722
5509
  var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
5723
5510
  const directory = botsDirectory(app, env);
5724
- if (!existsSync3(directory))
5511
+ if (!existsSync2(directory))
5725
5512
  return [];
5726
5513
  return readdirSync2(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
5727
5514
  }, "registryProfiles");
5728
5515
 
5729
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5516
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5730
5517
  import { readFileSync as readFileSync4 } from "node:fs";
5731
5518
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
5732
5519
  var SECTIONS = ["personal", "bot"];
@@ -6021,20 +5808,20 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
6021
5808
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
6022
5809
  }, "readConfigFile");
6023
5810
 
6024
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/cli/default-config.js
6025
- import { existsSync as existsSync4, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
6026
- import { dirname, join as join4 } from "node:path";
5811
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/default-config.js
5812
+ import { existsSync as existsSync3, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
5813
+ import { dirname, join as join3 } from "node:path";
6027
5814
  var DEFAULT_CONFIG = {
6028
5815
  defaults: { limit: 20, keep_runs_for_days: 30, sends_per_hour: 30, update_check: true, skill_hint: true },
6029
5816
  profiles: {}
6030
5817
  };
6031
5818
  function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
6032
- if (existsSync4(path2))
5819
+ if (existsSync3(path2))
6033
5820
  return;
6034
5821
  const directory = dirname(path2);
6035
5822
  mkdirSync(directory, { recursive: true, mode: 448 });
6036
- const temporary = mkdtempSync(join4(directory, ".config-"));
6037
- const candidate = join4(temporary, "config.json");
5823
+ const temporary = mkdtempSync(join3(directory, ".config-"));
5824
+ const candidate = join3(temporary, "config.json");
6038
5825
  try {
6039
5826
  writeFileSync(candidate, `${JSON.stringify(config, null, 2)}
6040
5827
  `, { flag: "wx", mode: 384 });
@@ -6050,7 +5837,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
6050
5837
  }
6051
5838
  __name(ensureDefaultConfig, "ensureDefaultConfig");
6052
5839
 
6053
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
5840
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
6054
5841
  var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
6055
5842
  var parentOf = /* @__PURE__ */ __name((config, key) => {
6056
5843
  const path2 = key.split(".");
@@ -6072,7 +5859,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
6072
5859
  return { config, added };
6073
5860
  }, "withSettingDefaults");
6074
5861
 
6075
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/cli/settings.js
5862
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/settings.js
6076
5863
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
6077
5864
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
6078
5865
  var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
@@ -6221,13 +6008,13 @@ var NoProfileHere = class extends CliError {
6221
6008
  }
6222
6009
  app;
6223
6010
  constructor(app) {
6224
- super("validation_error", `name a profile: there is none on this computer yet \u2014 create one with \`${app.command} personal setup\` (any name in place of personal)`, { profiles: [] });
6011
+ super("validation_error", `name a profile: there is none on this computer yet \u2014 create one with \`${app.command} personal setup\` (any name in place of personal)`, { reason: "profile.missing", profiles: [] });
6225
6012
  this.app = app;
6226
6013
  }
6227
6014
  /** `words`: the command that was typed, without its arguments, so the suggestion runs as written. */
6228
- withoutSetup(words2) {
6229
- const command = words2 ? `${this.app.command} personal ${words2}` : `${this.app.command} personal \u2026`;
6230
- return new CliError("validation_error", `name a profile: there is none on this computer yet \u2014 any name works, such as \`${command}\` (or set ${envName(this.app, "PROFILE")})`, { profiles: [] });
6015
+ withoutSetup(words) {
6016
+ const command = words ? `${this.app.command} personal ${words}` : `${this.app.command} personal \u2026`;
6017
+ return new CliError("validation_error", `name a profile: there is none on this computer yet \u2014 any name works, such as \`${command}\` (or set ${envName(this.app, "PROFILE")})`, { reason: "profile.missing", profiles: [] });
6231
6018
  }
6232
6019
  };
6233
6020
  var first = /* @__PURE__ */ __name((candidates, fallback) => {
@@ -6305,7 +6092,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
6305
6092
  const here = profilesOf(config, env);
6306
6093
  if (here.length === 0)
6307
6094
  throw new NoProfileHere(app);
6308
- throw new CliError("validation_error", `name a profile: \`${app.command} <profile> \u2026\` \u2014 profiles here: ${here.join(", ")} (or set ${PROFILE})`, { profiles: here });
6095
+ throw new CliError("validation_error", `name a profile: \`${app.command} <profile> \u2026\` \u2014 profiles here: ${here.join(", ")} (or set ${PROFILE})`, { reason: "profile.missing", profiles: here });
6309
6096
  }, "unnamed");
6310
6097
  const profilesOf = /* @__PURE__ */ __name((config, env) => profilesHere(app, [...namedProfiles(config), ...extension.profiles?.(env) ?? []], env), "profilesOf");
6311
6098
  const botsOf = /* @__PURE__ */ __name((config, env) => [.../* @__PURE__ */ new Set([...Object.keys(config.bot?.profiles ?? {}), ...registryProfiles(app, env)])].sort(), "botsOf");
@@ -6434,7 +6221,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
6434
6221
  updateCheck: updateCheck.value,
6435
6222
  skillHint: skillHint.value,
6436
6223
  configPath,
6437
- configFound: existsSync5(configPath),
6224
+ configFound: existsSync4(configPath),
6438
6225
  configuredProfiles: namedProfiles(config),
6439
6226
  profilesHere: profilesOf(config, env),
6440
6227
  accountProfiles: accountsOf(config, env, bots),
@@ -6552,9 +6339,11 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
6552
6339
  saveConfigFile(path2, config);
6553
6340
  return added;
6554
6341
  }, "migrate");
6342
+ const settingSchema = /* @__PURE__ */ __name((key) => Object.hasOwn(profileEntries, key) ? profileEntries[key] : void 0, "settingSchema");
6555
6343
  return {
6556
6344
  resolveSettings,
6557
6345
  configuredProfiles,
6346
+ settingSchema,
6558
6347
  changeSetting,
6559
6348
  migrate,
6560
6349
  declaredSettings,
@@ -6598,7 +6387,17 @@ var given = /* @__PURE__ */ __name((value) => {
6598
6387
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
6599
6388
  }, "given");
6600
6389
 
6601
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/cli/context.js
6390
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/context.js
6391
+ var runBudgetOf = /* @__PURE__ */ __name((command, requests2) => {
6392
+ const { deadline, signal, app } = environmentOf(command);
6393
+ const now = deadline?.();
6394
+ return runBudget({
6395
+ ...requests2 === void 0 ? {} : { requests: requests2 },
6396
+ ...app?.requestMs === void 0 ? {} : { requestMs: app.requestMs },
6397
+ ...now ? { deadline: now } : {},
6398
+ ...signal ? { signal } : {}
6399
+ });
6400
+ }, "runBudgetOf");
6602
6401
  var setExitCode = /* @__PURE__ */ __name((command, code) => {
6603
6402
  const slot = environmentOf(command).exit;
6604
6403
  const request = commandServerRequest();
@@ -6628,11 +6427,17 @@ var detailOf = /* @__PURE__ */ __name(({ brief, full }) => {
6628
6427
  return brief ? { hitDetail: "brief" } : full ? { hitDetail: "full" } : {};
6629
6428
  }, "detailOf");
6630
6429
  var COMPACT_KEY = new Option(COMPACT_FLAG).attributeName();
6430
+ var outputFieldsOf = /* @__PURE__ */ __name((command) => {
6431
+ const fields = rootOf(command).getOptionValue("fields");
6432
+ return typeof fields === "string" ? { fields } : {};
6433
+ }, "outputFieldsOf");
6631
6434
  var compactOf = /* @__PURE__ */ __name((command) => command.optsWithGlobals()[COMPACT_KEY] === true, "compactOf");
6632
6435
  var outputFor = /* @__PURE__ */ __name((command) => {
6633
6436
  const { streams, tty, env, agent } = environmentOf(command);
6437
+ const { fields: _own, ...flags } = command.optsWithGlobals();
6634
6438
  return resolveOutput({
6635
- ...command.optsWithGlobals(),
6439
+ ...flags,
6440
+ ...outputFieldsOf(command),
6636
6441
  ...detailOf(command.optsWithGlobals()),
6637
6442
  compact: compactOf(command),
6638
6443
  ...agent ? { capture: agent.result } : {},
@@ -6650,7 +6455,7 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
6650
6455
  env,
6651
6456
  compact: compactOf(command),
6652
6457
  ...detailOf(command.optsWithGlobals()),
6653
- ...command.optsWithGlobals().fields ? { fields: command.optsWithGlobals().fields } : {},
6458
+ ...outputFieldsOf(command),
6654
6459
  ...environment.agent ? { capture: environment.agent.result } : {},
6655
6460
  ...environment.streams ? { streams: environment.streams } : {},
6656
6461
  ...environment.tty === void 0 ? {} : { tty: environment.tty }
@@ -6722,13 +6527,13 @@ var inCommandRun = /* @__PURE__ */ __name((command, body) => {
6722
6527
  return baseContext(command, (flags, options) => resolveSettings(flags, { ...options, needsProfile: false })).run(body);
6723
6528
  }, "inCommandRun");
6724
6529
  var commandPath = /* @__PURE__ */ __name((command) => {
6725
- const words2 = [];
6530
+ const words = [];
6726
6531
  for (let current2 = command; current2?.parent; current2 = current2.parent)
6727
- words2.unshift(current2.name());
6728
- return words2.join(" ");
6532
+ words.unshift(current2.name());
6533
+ return words.join(" ");
6729
6534
  }, "commandPath");
6730
6535
 
6731
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/cli/effects.js
6536
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/effects.js
6732
6537
  var REMOTE_READ = { remote: "read", local: "read" };
6733
6538
  var FETCH = { remote: "read", local: "write" };
6734
6539
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -6786,6 +6591,10 @@ var changesStore = /* @__PURE__ */ __name((command) => {
6786
6591
  return command;
6787
6592
  }, "changesStore");
6788
6593
  var OWNER_FILES = /* @__PURE__ */ new WeakSet();
6594
+ var writesOwnerFiles = /* @__PURE__ */ __name((command) => {
6595
+ OWNER_FILES.add(command);
6596
+ return command;
6597
+ }, "writesOwnerFiles");
6789
6598
  var savesFiles = /* @__PURE__ */ __name((command) => OWNER_FILES.has(command) || command.name() === "download" || [...command.options.map((option) => option.attributeName()), ...command.registeredArguments.map((one) => one.name())].map((name) => name.toLowerCase()).some((name) => name === "dir" || name.endsWith("dir") || name === "output"), "savesFiles");
6790
6599
  var fetchesOnly = /* @__PURE__ */ __name((command) => {
6791
6600
  const effects = metaOf(command).effects;
@@ -6823,10 +6632,10 @@ var refuseStoreChange = /* @__PURE__ */ __name((app, env) => {
6823
6632
  throw readOnlyRefusal(lock, storeChangeRefusal(app));
6824
6633
  }, "refuseStoreChange");
6825
6634
  var pathOf2 = /* @__PURE__ */ __name((command) => {
6826
- const words2 = [];
6635
+ const words = [];
6827
6636
  for (let at2 = command; at2.parent; at2 = at2.parent)
6828
- words2.unshift(at2.name());
6829
- return words2;
6637
+ words.unshift(at2.name());
6638
+ return words;
6830
6639
  }, "pathOf");
6831
6640
  var changesMessenger = /* @__PURE__ */ __name((command) => {
6832
6641
  const { path: path2, effects, lifetime, reaches } = "path" in command ? command : { path: pathOf2(command), ...metaOf(command) };
@@ -6860,7 +6669,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
6860
6669
  throw readOnlyRefusal(lock, what);
6861
6670
  }, "refuseUnderReadOnly");
6862
6671
 
6863
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/account.js
6672
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/account.js
6864
6673
  var account = strictObject({
6865
6674
  provider: text,
6866
6675
  id,
@@ -6870,7 +6679,7 @@ var account = strictObject({
6870
6679
  scope: optional(picklist(["personal", "work"]))
6871
6680
  });
6872
6681
 
6873
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/account-session.js
6682
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/account-session.js
6874
6683
  var accountSession = strictObject({
6875
6684
  current: boolean(),
6876
6685
  client: nullable(text),
@@ -6880,7 +6689,7 @@ var accountSession = strictObject({
6880
6689
  created_at: optional(nullable(time))
6881
6690
  });
6882
6691
 
6883
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/account-change.js
6692
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/account-change.js
6884
6693
  var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
6885
6694
  var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
6886
6695
  var audience = picklist(["everyone", "contacts", "nobody"]);
@@ -6909,7 +6718,7 @@ var accountRemoval = strictObject({
6909
6718
  kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
6910
6719
  });
6911
6720
 
6912
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
6721
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
6913
6722
  var accountProfile = strictObject({
6914
6723
  profile: id,
6915
6724
  current: boolean(),
@@ -6921,7 +6730,7 @@ var accountProfile = strictObject({
6921
6730
  bot: optional(literal(true))
6922
6731
  });
6923
6732
 
6924
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
6733
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
6925
6734
  var milliseconds = pipe(number(), minValue(0));
6926
6735
  var counterReading = strictObject({
6927
6736
  counter: picklist(["views", "reactions", "comments"]),
@@ -6933,7 +6742,7 @@ var counterReading = strictObject({
6933
6742
  });
6934
6743
  var selection = record(string(), unknown());
6935
6744
 
6936
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
6745
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
6937
6746
  var adminRow = strictObject({
6938
6747
  ref: reference,
6939
6748
  /** What `stats * evidence` takes: a person id, a stay or a message locator. */
@@ -6986,7 +6795,7 @@ var adminReport = strictObject({
6986
6795
  rows: array(adminRow)
6987
6796
  });
6988
6797
 
6989
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/task.js
6798
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/task.js
6990
6799
  var closeSuggestion = strictObject({
6991
6800
  as: picklist(["done", "dismissed"]),
6992
6801
  /** The agent's name. */
@@ -7048,7 +6857,7 @@ var task = strictObject({
7048
6857
  updated_at: optional(time)
7049
6858
  });
7050
6859
 
7051
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/agenda.js
6860
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/agenda.js
7052
6861
  var agendaChat = strictObject({
7053
6862
  chat: reference,
7054
6863
  title: nullable(text),
@@ -7118,11 +6927,11 @@ var agenda = strictObject({
7118
6927
  unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
7119
6928
  });
7120
6929
 
7121
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
6930
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
7122
6931
  var analysisConsent = strictObject({ chat: id, provider: text, at: time });
7123
6932
  var analysisConsentRevocation = strictObject({ revoked: boolean() });
7124
6933
 
7125
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/attachment.js
6934
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/attachment.js
7126
6935
  var attachment = strictObject({
7127
6936
  /** The message it came with, as a locator; absent inside that message. */
7128
6937
  message: optional(reference),
@@ -7167,7 +6976,7 @@ var hitFile = strictObject({
7167
6976
  local_path: optional(text)
7168
6977
  });
7169
6978
 
7170
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
6979
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
7171
6980
  var actionableError = objectWithRest({
7172
6981
  code: text,
7173
6982
  message: text,
@@ -7184,7 +6993,7 @@ var batchResult = strictObject({
7184
6993
  max_error_percent: count
7185
6994
  });
7186
6995
 
7187
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
6996
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
7188
6997
  var extractionItem = strictObject({
7189
6998
  ref: reference,
7190
6999
  attachment: count,
@@ -7217,7 +7026,7 @@ var extractionReport = strictObject({
7217
7026
  cursor: optional(text)
7218
7027
  });
7219
7028
 
7220
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
7029
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
7221
7030
  var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
7222
7031
  var attachmentBytes = strictObject({
7223
7032
  ref: reference,
@@ -7248,7 +7057,7 @@ var attachmentTextChange = strictObject({
7248
7057
  text: optional(text)
7249
7058
  });
7250
7059
 
7251
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
7060
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
7252
7061
  var WEIGHTS = {
7253
7062
  bot: 3,
7254
7063
  scam: 3,
@@ -7273,7 +7082,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
7273
7082
  var DIGITS = /\d{5,}/;
7274
7083
  var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
7275
7084
 
7276
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
7085
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
7277
7086
  var linkedIdentity = strictObject({
7278
7087
  provider: text,
7279
7088
  id,
@@ -7328,7 +7137,7 @@ var contactCheck = strictObject({
7328
7137
  checked_at: time
7329
7138
  });
7330
7139
 
7331
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/member.js
7140
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/member.js
7332
7141
  var member = strictObject({
7333
7142
  id,
7334
7143
  name: nullable(text),
@@ -7351,7 +7160,7 @@ var member = strictObject({
7351
7160
  check: optional(record(string(), unknown()))
7352
7161
  });
7353
7162
 
7354
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/chat.js
7163
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/chat.js
7355
7164
  var setting = optional(nullable(boolean()));
7356
7165
  var chat = strictObject({
7357
7166
  ref: reference,
@@ -7392,7 +7201,7 @@ var chat = strictObject({
7392
7201
  members: optional(array(member))
7393
7202
  });
7394
7203
 
7395
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/message.js
7204
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/message.js
7396
7205
  var quoted = strictObject({
7397
7206
  id,
7398
7207
  sender_id: nullable(id),
@@ -7511,7 +7320,7 @@ var message = strictObject({
7511
7320
  provider_metadata: providerMetadata
7512
7321
  });
7513
7322
 
7514
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/recorded-meeting.js
7323
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/recorded-meeting.js
7515
7324
  var recordedMeeting = strictObject({
7516
7325
  ref: reference,
7517
7326
  meeting_id: count,
@@ -7520,11 +7329,15 @@ var recordedMeeting = strictObject({
7520
7329
  started_at: nullable(time),
7521
7330
  duration_ms: nullable(count),
7522
7331
  has_transcript: boolean(),
7332
+ /** The start of its transcript, on one line: what the people said, never instructions. */
7333
+ snippet: optional(nullable(text)),
7523
7334
  event: nullable(reference),
7524
- people: array(reference)
7335
+ people: array(reference),
7336
+ /** Present only on a phone call: its direction, manager and the other side's number. */
7337
+ call: optional(meetingCall)
7525
7338
  });
7526
7339
 
7527
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
7340
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
7528
7341
  var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
7529
7342
  var contextMessage = strictObject({
7530
7343
  locator: reference,
@@ -7730,7 +7543,7 @@ var contactPreparation = strictObject({
7730
7543
  })
7731
7544
  });
7732
7545
 
7733
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/deal.js
7546
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/deal.js
7734
7547
  var nullableText = nullable(text);
7735
7548
  var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
7736
7549
  var outcome = picklist(["open", "won", "lost"]);
@@ -7748,6 +7561,12 @@ var activity = strictObject({
7748
7561
  created_at: time,
7749
7562
  updated_at: time
7750
7563
  });
7564
+ var stageEntry = strictObject({
7565
+ from: nullableText,
7566
+ to: text,
7567
+ at: time,
7568
+ exact: boolean()
7569
+ });
7751
7570
  var deal = strictObject({
7752
7571
  id,
7753
7572
  ref: reference,
@@ -7778,7 +7597,10 @@ var deal = strictObject({
7778
7597
  external_id: nullableText,
7779
7598
  /** A CRM copy's assignee, the identity `<account>/user/<id>`. */
7780
7599
  assignee: nullableText,
7781
- /** A CRM copy's own fields by code; a list field's value is its option's label, `option_id` its id. */
7600
+ /**
7601
+ * A CRM copy's own fields by code; a list field's value is its option's label, `option_id` its id. `amount_note` is
7602
+ * WireCat's own note, not a CRM field: the CRM's amount the store could not keep, and why.
7603
+ */
7782
7604
  provider_metadata: record(string(), strictObject({
7783
7605
  label: nullable(string()),
7784
7606
  value: unknown(),
@@ -7803,9 +7625,30 @@ var deal = strictObject({
7803
7625
  activities: optional(array(activity)),
7804
7626
  /** `show` of a CRM copy: the newest recorded meetings and calls of its people, in its account's scope. */
7805
7627
  meetings: optional(array(recordedMeeting)),
7628
+ /**
7629
+ * `show` of a CRM copy: every stage it entered, oldest first. Once the CRM's own history names any, it alone is
7630
+ * listed, from as far back as it was read; the copy's changes between syncs are left out.
7631
+ */
7632
+ stage_history: optional(array(stageEntry)),
7806
7633
  untrusted
7807
7634
  });
7808
7635
  var lead = deal;
7636
+ var amount = strictObject({ amount: text, currency: text, items: count });
7637
+ var winRate = nullable(number());
7638
+ var pipelineOwner = strictObject({
7639
+ assignee: nullableText,
7640
+ name: nullableText,
7641
+ open: count,
7642
+ won: count,
7643
+ lost: count,
7644
+ win_rate: winRate
7645
+ });
7646
+ var pipelineClosed = strictObject({
7647
+ won: count,
7648
+ lost: count,
7649
+ win_rate: winRate,
7650
+ won_amounts: array(amount)
7651
+ });
7809
7652
  var pipelineStage = strictObject({
7810
7653
  name: text,
7811
7654
  position: count,
@@ -7818,8 +7661,11 @@ var pipelineStage = strictObject({
7818
7661
  conversion: optional(nullable(number())),
7819
7662
  /** With a funnel: rows standing in it now, and their sum per currency, never converted. */
7820
7663
  items: optional(count),
7821
- amounts: optional(array(strictObject({ amount: text, currency: text, items: count })))
7664
+ amounts: optional(array(amount)),
7665
+ /** With a funnel: the median days a row of the window stayed in it before it moved on. */
7666
+ median_days: optional(nullable(number()))
7822
7667
  });
7668
+ var pipelineStageAnswer = pipelineStage;
7823
7669
  var pipeline = strictObject({
7824
7670
  id,
7825
7671
  ref: reference,
@@ -7827,10 +7673,20 @@ var pipeline = strictObject({
7827
7673
  kind: picklist(["deal", "lead"]),
7828
7674
  account: crmAccount,
7829
7675
  external_id: nullableText,
7830
- stages: array(pipelineStage),
7676
+ stages: array(pipelineStageAnswer),
7831
7677
  created_at: time,
7832
- totals: optional(strictObject({ items: count, open: count, won: count, lost: count, win_rate: nullable(number()) })),
7678
+ /** `show`: the rows made in the window. */
7679
+ totals: optional(strictObject({ items: count, open: count, won: count, lost: count, win_rate: winRate })),
7680
+ window: optional(strictObject({ since: nullable(time), until: nullable(time) })),
7833
7681
  since: optional(day),
7682
+ /** `show`: rows closed on a day in the window, in the owner's zone. */
7683
+ closed: optional(pipelineClosed),
7684
+ /** `show`: days from made to won, of the rows won in the window. */
7685
+ cycle: optional(strictObject({ median_days: nullable(number()), items: count })),
7686
+ owners: optional(array(pipelineOwner)),
7687
+ lost_reasons: optional(array(strictObject({ reason: text, items: count }))),
7688
+ /** `show`: rows whose stages came from the CRM's own history, and from the copy's diffs. */
7689
+ history: optional(strictObject({ exact: count, copy: count })),
7834
7690
  untrusted
7835
7691
  });
7836
7692
  var stage = strictObject({
@@ -7838,10 +7694,12 @@ var stage = strictObject({
7838
7694
  pipeline: reference,
7839
7695
  pipeline_name: text,
7840
7696
  kind: picklist(["deal", "lead"]),
7697
+ /** A CRM's stage: the task its `stage-tasks` rule opens when a row enters it, or `null`. */
7698
+ stage_task: optional(nullable(strictObject({ title: text, due_days: count }))),
7841
7699
  untrusted
7842
7700
  });
7843
7701
 
7844
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/business-context.js
7702
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/business-context.js
7845
7703
  var nullableText2 = nullable(text);
7846
7704
  var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
7847
7705
  var standing = picklist(STANDINGS);
@@ -7972,7 +7830,7 @@ var organizationContext = strictObject({
7972
7830
  var { untrusted: _, ...dealRow } = deal.entries;
7973
7831
  var dealContext = strictObject({
7974
7832
  deal: strictObject(dealRow),
7975
- stages: section(strictObject({ from: nullableText2, to: text, pipeline: reference, at: time })),
7833
+ stages: section(strictObject({ from: nullableText2, to: text, pipeline: reference, at: time, exact: boolean() })),
7976
7834
  organization: nullable(strictObject({ ref: reference, name: nullableText2, categories })),
7977
7835
  participants: section(related),
7978
7836
  owner: nullable(related),
@@ -7987,6 +7845,9 @@ var dealContext = strictObject({
7987
7845
  title: nullableText2,
7988
7846
  at: nullable(time),
7989
7847
  people: array(reference),
7848
+ text: optional(nullableText2),
7849
+ call: optional(meetingCall),
7850
+ duration_ms: optional(nullable(count)),
7990
7851
  standing: literal("proposed")
7991
7852
  })).entries,
7992
7853
  counts: strictObject(counts)
@@ -8015,7 +7876,7 @@ var dealBrief = strictObject({
8015
7876
  not_read: coverage2.entries.not_read
8016
7877
  });
8017
7878
 
8018
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/chart.js
7879
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/chart.js
8019
7880
  var chart = strictObject({
8020
7881
  version: literal(1),
8021
7882
  kind: picklist(["bar", "line", "grouped-bar"]),
@@ -8030,7 +7891,7 @@ var chart = strictObject({
8030
7891
  file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
8031
7892
  });
8032
7893
 
8033
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/folder.js
7894
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/folder.js
8034
7895
  var named2 = strictObject({
8035
7896
  id,
8036
7897
  title: nullable(text),
@@ -8053,7 +7914,7 @@ var folder = strictObject({
8053
7914
  excluded_chats: optional(array(named2))
8054
7915
  });
8055
7916
 
8056
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
7917
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
8057
7918
  var inviteLink = strictObject({
8058
7919
  link: text,
8059
7920
  /** Who joins by it asks first, and an admin lets them in. */
@@ -8069,7 +7930,7 @@ var inviteLink = strictObject({
8069
7930
  joined_count: optional(count)
8070
7931
  });
8071
7932
 
8072
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
7933
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
8073
7934
  var operated = { operation_id: id, chat_id: id };
8074
7935
  var group = strictObject({
8075
7936
  ...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
@@ -8149,7 +8010,7 @@ var chatFolderOrder = strictObject({
8149
8010
  folders: array(strictObject({ id, title: text }))
8150
8011
  });
8151
8012
 
8152
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
8013
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
8153
8014
  var operated2 = { operation_id: id, chat_id: id };
8154
8015
  var chatRemoval = strictObject(operated2);
8155
8016
  var chatMuting = strictObject({
@@ -8160,7 +8021,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
8160
8021
  var chatPin = strictObject({ ...operated2, pinned: boolean() });
8161
8022
  var chatUnread = strictObject({ ...operated2, unread: literal(true) });
8162
8023
 
8163
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
8024
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
8164
8025
  var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
8165
8026
  var chatEvent = strictObject({
8166
8027
  chat_id: id,
@@ -8177,7 +8038,7 @@ var chatEvent = strictObject({
8177
8038
  before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
8178
8039
  });
8179
8040
 
8180
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
8041
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
8181
8042
  var chatMetadata = strictObject({
8182
8043
  chat_id: id,
8183
8044
  title: nullable(text),
@@ -8192,7 +8053,7 @@ var chatMetadataRefresh = strictObject({
8192
8053
  has_more: boolean()
8193
8054
  });
8194
8055
 
8195
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
8056
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
8196
8057
  var action = picklist(["report", "delete", "remove"]);
8197
8058
  var level = picklist(["deny", "readonly", "ask", "allow"]);
8198
8059
  var chatRules = strictObject({
@@ -8229,7 +8090,17 @@ var chatModeration = strictObject({
8229
8090
  }))
8230
8091
  });
8231
8092
 
8232
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
8093
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/chat-sending.js
8094
+ var chatSending = strictObject({
8095
+ mode: picklist(["allowed", "ask", "denied"]),
8096
+ meaning: text,
8097
+ /** When the owner last set it; `null` while it is the default, ask. */
8098
+ since: nullable(time),
8099
+ /** `set` only: whether this run changed it. */
8100
+ changed: optional(boolean())
8101
+ });
8102
+
8103
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
8233
8104
  var optionalCount = optional(count);
8234
8105
  var minutes = nullable(number());
8235
8106
  var chatStats = strictObject({
@@ -8305,7 +8176,7 @@ var taskStats = strictObject({
8305
8176
  }))
8306
8177
  });
8307
8178
 
8308
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
8179
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
8309
8180
  var memberCount = strictObject({
8310
8181
  day: pipe(text, isoDate()),
8311
8182
  participants: nullable(count),
@@ -8328,7 +8199,7 @@ var chatTracking = strictObject({
8328
8199
  tracked: boolean()
8329
8200
  });
8330
8201
 
8331
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
8202
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
8332
8203
  var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
8333
8204
  var contactSync = strictObject({ added: count, changed: count, known: count });
8334
8205
  var profileFields = {
@@ -8366,7 +8237,7 @@ var profileFields = {
8366
8237
  }))
8367
8238
  };
8368
8239
 
8369
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/contact.js
8240
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/contact.js
8370
8241
  var contact = strictObject({
8371
8242
  ref: reference,
8372
8243
  id,
@@ -8397,7 +8268,7 @@ var contact = strictObject({
8397
8268
  notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
8398
8269
  });
8399
8270
 
8400
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
8271
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
8401
8272
  var contactNote = strictObject({
8402
8273
  id,
8403
8274
  /** The contact, as a `contact:` reference. */
@@ -8409,13 +8280,13 @@ var contactNote = strictObject({
8409
8280
  updated_at: time
8410
8281
  });
8411
8282
 
8412
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
8283
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
8413
8284
  var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
8414
8285
  var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
8415
8286
  var contactStateChange = strictObject({ operation_id: id, person_id: id });
8416
8287
  var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
8417
8288
 
8418
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/conversation.js
8289
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/conversation.js
8419
8290
  var conversation = strictObject({
8420
8291
  id,
8421
8292
  chat: reference,
@@ -8430,7 +8301,7 @@ var conversation = strictObject({
8430
8301
  rules_version: count
8431
8302
  });
8432
8303
 
8433
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
8304
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
8434
8305
  var conversationBuild = strictObject({
8435
8306
  chat: id,
8436
8307
  messages: count,
@@ -8455,7 +8326,7 @@ var catchUpPreparation = strictObject({
8455
8326
  prepared: optional(conversationPreparation)
8456
8327
  });
8457
8328
 
8458
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
8329
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
8459
8330
  var conversationDetails = union([
8460
8331
  strictObject({ ...conversation.entries, messages: array(message) }),
8461
8332
  message
@@ -8545,7 +8416,7 @@ var conversationHit = strictObject({
8545
8416
  stale: boolean()
8546
8417
  });
8547
8418
 
8548
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/counters.js
8419
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/counters.js
8549
8420
  var counters = strictObject({
8550
8421
  cutoff: time,
8551
8422
  max_age_ms: milliseconds,
@@ -8575,7 +8446,7 @@ var counterRefresh = strictObject({
8575
8446
  complete: optional(boolean())
8576
8447
  });
8577
8448
 
8578
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/document.js
8449
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/document.js
8579
8450
  var document = strictObject({
8580
8451
  ref: reference,
8581
8452
  id,
@@ -8590,7 +8461,7 @@ var document = strictObject({
8590
8461
  owners: optional(array(text))
8591
8462
  });
8592
8463
 
8593
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/document-link.js
8464
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/document-link.js
8594
8465
  var documentLink = strictObject({
8595
8466
  ref: reference,
8596
8467
  url: text,
@@ -8601,7 +8472,7 @@ var documentLink = strictObject({
8601
8472
  sender: strictObject({ id: nullable(id), name: nullable(text) })
8602
8473
  });
8603
8474
 
8604
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/evidence.js
8475
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/evidence.js
8605
8476
  var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
8606
8477
  var contribution = strictObject({
8607
8478
  message: evidenceMessage,
@@ -8631,7 +8502,7 @@ var retentionStay = strictObject({
8631
8502
  });
8632
8503
  var evidence = union([contribution, retentionStay]);
8633
8504
 
8634
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/fact.js
8505
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/fact.js
8635
8506
  var fact = strictObject({
8636
8507
  ref: reference,
8637
8508
  id,
@@ -8662,7 +8533,7 @@ var fact = strictObject({
8662
8533
  updated_at: time
8663
8534
  });
8664
8535
 
8665
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/hit.js
8536
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/hit.js
8666
8537
  var hit = strictObject({
8667
8538
  kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead", ...BUSINESS_KINDS]),
8668
8539
  ref: reference,
@@ -8710,7 +8581,7 @@ var hit = strictObject({
8710
8581
  untrusted
8711
8582
  });
8712
8583
 
8713
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/identity.js
8584
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/identity.js
8714
8585
  var identity = strictObject({
8715
8586
  ref: reference,
8716
8587
  provider: text,
@@ -8726,7 +8597,7 @@ var identity = strictObject({
8726
8597
  person: optional(nullable(reference))
8727
8598
  });
8728
8599
 
8729
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
8600
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
8730
8601
  var imageEmbedding = strictObject({
8731
8602
  model: text,
8732
8603
  embedded: count,
@@ -8735,13 +8606,13 @@ var imageEmbedding = strictObject({
8735
8606
  more: boolean()
8736
8607
  });
8737
8608
 
8738
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8609
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8739
8610
  import { spawn } from "node:child_process";
8740
8611
  import { randomBytes } from "node:crypto";
8741
- import { closeSync, existsSync as existsSync6, mkdirSync as mkdirSync2, openSync, readdirSync as readdirSync3, readFileSync as readFileSync5, realpathSync, rmSync as rmSync2 } from "node:fs";
8742
- import { dirname as dirname2, join as join5 } from "node:path";
8612
+ import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync2, openSync, readdirSync as readdirSync3, readFileSync as readFileSync5, realpathSync, rmSync as rmSync2 } from "node:fs";
8613
+ import { dirname as dirname2, join as join4 } from "node:path";
8743
8614
 
8744
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
8615
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
8745
8616
  var progressOf = /* @__PURE__ */ __name((input) => {
8746
8617
  const total = input.total ?? null;
8747
8618
  const updated = input.updatedAt ?? null;
@@ -8757,7 +8628,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
8757
8628
  };
8758
8629
  }, "progressOf");
8759
8630
 
8760
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/runs/record-log.js
8631
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/runs/record-log.js
8761
8632
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
8762
8633
  const run = currentRun();
8763
8634
  const trace = traceId ?? run.traceId;
@@ -8771,7 +8642,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
8771
8642
  }));
8772
8643
  }, "recordLogFor");
8773
8644
 
8774
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8645
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8775
8646
  var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
8776
8647
  var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
8777
8648
  const out = openSync(log, "a", 384);
@@ -8787,15 +8658,15 @@ var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
8787
8658
  closeSync(out);
8788
8659
  }
8789
8660
  }, "spawnDetached");
8790
- var jobsDir = /* @__PURE__ */ __name((app, env) => join5(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "backfill"), "jobsDir");
8791
- var jobPath = /* @__PURE__ */ __name((dir, id6) => join5(dir, `${id6}.json`), "jobPath");
8661
+ var jobsDir = /* @__PURE__ */ __name((app, env) => join4(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "backfill"), "jobsDir");
8662
+ var jobPath = /* @__PURE__ */ __name((dir, id6) => join4(dir, `${id6}.json`), "jobPath");
8792
8663
  var saveJob = /* @__PURE__ */ __name((dir, job2) => {
8793
8664
  mkdirSync2(dir, { recursive: true, mode: 448 });
8794
8665
  writeSecurely(jobPath(dir, job2.id), `${JSON.stringify(job2, null, 2)}
8795
8666
  `, 384);
8796
8667
  }, "saveJob");
8797
8668
  var readJob = /* @__PURE__ */ __name((dir, id6) => {
8798
- if (!/^[\w-]+$/.test(id6) || !existsSync6(jobPath(dir, id6)))
8669
+ if (!/^[\w-]+$/.test(id6) || !existsSync5(jobPath(dir, id6)))
8799
8670
  return void 0;
8800
8671
  try {
8801
8672
  return JSON.parse(readFileSync5(jobPath(dir, id6), "utf8"));
@@ -8803,7 +8674,7 @@ var readJob = /* @__PURE__ */ __name((dir, id6) => {
8803
8674
  return void 0;
8804
8675
  }
8805
8676
  }, "readJob");
8806
- var recordsPath = /* @__PURE__ */ __name((dir, id6) => join5(dir, `${id6}.jsonl`), "recordsPath");
8677
+ var recordsPath = /* @__PURE__ */ __name((dir, id6) => join4(dir, `${id6}.jsonl`), "recordsPath");
8807
8678
  var tracedJob = /* @__PURE__ */ __name((env) => {
8808
8679
  const trace = childTrace();
8809
8680
  return { env: { ...env, TRACEPARENT: trace.traceparent }, traceId: trace.traceId };
@@ -8840,7 +8711,7 @@ var removeJob = /* @__PURE__ */ __name((dir, job2) => {
8840
8711
  if (dirname2(job2.log) === dir)
8841
8712
  rmSync2(job2.log, { force: true });
8842
8713
  }, "removeJob");
8843
- 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");
8714
+ 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");
8844
8715
  var jobDetails = /* @__PURE__ */ __name((job2) => ({
8845
8716
  job: job2.id,
8846
8717
  profile: job2.profile,
@@ -8906,7 +8777,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
8906
8777
  const startedAt = (/* @__PURE__ */ new Date()).toISOString();
8907
8778
  const id6 = `${startedAt.replace(/[-:]/g, "").slice(0, 15)}-${randomBytes(3).toString("hex")}`;
8908
8779
  mkdirSync2(dir, { recursive: true, mode: 448 });
8909
- const log = join5(dir, `${id6}.log`);
8780
+ const log = join4(dir, `${id6}.log`);
8910
8781
  const job2 = {
8911
8782
  id: id6,
8912
8783
  chat: input.chat,
@@ -8926,7 +8797,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
8926
8797
  return { job: id6, pid, chat: input.chat, log };
8927
8798
  }, "startArchiveJob");
8928
8799
 
8929
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/job.js
8800
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/job.js
8930
8801
  var problem = strictObject({ code: text, message: text });
8931
8802
  var job = strictObject({
8932
8803
  id,
@@ -8949,7 +8820,7 @@ var job = strictObject({
8949
8820
  error: optional(problem)
8950
8821
  });
8951
8822
 
8952
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/join-request.js
8823
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/join-request.js
8953
8824
  var joinRequest = strictObject({
8954
8825
  person_id: id,
8955
8826
  name: nullable(text),
@@ -8960,7 +8831,7 @@ var joinRequest = strictObject({
8960
8831
  about: optional(text)
8961
8832
  });
8962
8833
 
8963
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/list-results.js
8834
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/list-results.js
8964
8835
  var botProfile = strictObject({
8965
8836
  name: text,
8966
8837
  token: text,
@@ -9084,7 +8955,7 @@ var stickerInventory = strictObject({
9084
8955
  url: optional(nullable(text))
9085
8956
  });
9086
8957
 
9087
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
8958
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
9088
8959
  var pollVote = strictObject({
9089
8960
  person_id: id,
9090
8961
  name: nullable(text),
@@ -9094,7 +8965,7 @@ var pollVote = strictObject({
9094
8965
  voted_at: time
9095
8966
  });
9096
8967
 
9097
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/listener.js
8968
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/listener.js
9098
8969
  var reactions = unwrap(unwrap(message.entries.reactions));
9099
8970
  var observation = strictObject({
9100
8971
  value: pipe(number(), minValue(0)),
@@ -9136,7 +9007,7 @@ var serveSummary = strictObject({
9136
9007
  tasks: optional(strictObject({ added: count, closed: count, review: count }))
9137
9008
  });
9138
9009
 
9139
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
9010
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
9140
9011
  var mailCounts = strictObject({
9141
9012
  by: picklist(["day", "week", "sender"]),
9142
9013
  received: count,
@@ -9151,7 +9022,7 @@ var mailCounts = strictObject({
9151
9022
  }))
9152
9023
  });
9153
9024
 
9154
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
9025
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
9155
9026
  var evidence2 = strictObject({ reference, fingerprint: text });
9156
9027
  var base = { id, evidence: array(evidence2) };
9157
9028
  var finding = variant("kind", [
@@ -9295,7 +9166,7 @@ var mailFindings = strictObject({
9295
9166
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
9296
9167
  });
9297
9168
 
9298
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
9169
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
9299
9170
  var mediaArchive = strictObject({
9300
9171
  directory: text,
9301
9172
  chats: count,
@@ -9327,7 +9198,7 @@ var mediaArchiveTimer = union([
9327
9198
  strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
9328
9199
  ]);
9329
9200
 
9330
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
9201
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
9331
9202
  var preparationId = pipe(string(), minLength(1));
9332
9203
  var preparationCount = pipe(number(), integer(), minValue(0));
9333
9204
  var preparationTime = nullable(isoTime);
@@ -9419,7 +9290,7 @@ var preparationMeeting = strictObject({
9419
9290
  updated_at: isoTime
9420
9291
  });
9421
9292
 
9422
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
9293
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
9423
9294
  var meetingEvidence = preparationEvidence;
9424
9295
  var meetingPersonContext = strictObject({
9425
9296
  person: strictObject({ uid: string(), name: nullable(string()) }),
@@ -9441,7 +9312,7 @@ var meetingPersonContext = strictObject({
9441
9312
  })
9442
9313
  });
9443
9314
 
9444
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
9315
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
9445
9316
  var evidence3 = strictObject({ reference, fingerprint: text });
9446
9317
  var base2 = { id, project: reference, evidence: array(evidence3) };
9447
9318
  var finding2 = variant("kind", [
@@ -9479,7 +9350,7 @@ var meetingFindings = strictObject({
9479
9350
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
9480
9351
  });
9481
9352
 
9482
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
9353
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
9483
9354
  var communicationCoverage = strictObject({
9484
9355
  read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
9485
9356
  query: string(),
@@ -9524,7 +9395,7 @@ var preparationCommunications = strictObject({
9524
9395
  }))
9525
9396
  });
9526
9397
 
9527
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
9398
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
9528
9399
  var meetingPreparation = strictObject({
9529
9400
  communications: optional(preparationCommunications),
9530
9401
  schema_version: literal(1),
@@ -9637,7 +9508,7 @@ var meetingPreparation = strictObject({
9637
9508
  })
9638
9509
  });
9639
9510
 
9640
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
9511
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
9641
9512
  var count4 = pipe(number(), integer(), minValue(0));
9642
9513
  var id3 = pipe(string(), minLength(1));
9643
9514
  var text3 = string();
@@ -9701,7 +9572,7 @@ var meetingProjectCandidates = strictObject({
9701
9572
  })
9702
9573
  });
9703
9574
 
9704
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
9575
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
9705
9576
  var count5 = pipe(number(), integer(), minValue(0));
9706
9577
  var id4 = pipe(string(), minLength(1), maxLength(1e3));
9707
9578
  var meetingSeriesInventory = strictObject({
@@ -9731,7 +9602,7 @@ var meetingSeriesInventory = strictObject({
9731
9602
  })
9732
9603
  });
9733
9604
 
9734
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
9605
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
9735
9606
  var text4 = string();
9736
9607
  var id5 = pipe(number(), integer(), minValue(1));
9737
9608
  var revision = picklist(["current", "superseded"]);
@@ -9748,7 +9619,7 @@ var meetingTaskProposal = strictObject({
9748
9619
  persistence: literal("proposal-only")
9749
9620
  });
9750
9621
 
9751
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/memory.js
9622
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/memory.js
9752
9623
  var memory = strictObject({
9753
9624
  ref: reference,
9754
9625
  id,
@@ -9776,7 +9647,7 @@ var memory = strictObject({
9776
9647
  updated_at: time
9777
9648
  });
9778
9649
 
9779
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/mention.js
9650
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/mention.js
9780
9651
  var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
9781
9652
  var status = picklist(["found", "linked", "proposed", "dismissed"]);
9782
9653
  var mention = strictObject({
@@ -9820,13 +9691,13 @@ var mentionRebuild = strictObject({
9820
9691
  mentions: count
9821
9692
  });
9822
9693
 
9823
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/message-change.js
9694
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/message-change.js
9824
9695
  var operated3 = { operation_id: id, chat_id: id };
9825
9696
  var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
9826
9697
  var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
9827
9698
  var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
9828
9699
 
9829
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/message-read.js
9700
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/message-read.js
9830
9701
  var messageTranscript = strictObject({
9831
9702
  message_id: id,
9832
9703
  text,
@@ -9884,7 +9755,7 @@ var evidencePacket = strictObject({
9884
9755
  }))
9885
9756
  });
9886
9757
 
9887
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/message-context.js
9758
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/message-context.js
9888
9759
  var messageThread = strictObject({
9889
9760
  ref: reference,
9890
9761
  chat: id,
@@ -9901,7 +9772,7 @@ var messageThread = strictObject({
9901
9772
  });
9902
9773
  var messageContext = union([message, messageThread]);
9903
9774
 
9904
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
9775
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
9905
9776
  var messageCounts = strictObject({
9906
9777
  by: picklist(["chat", "sender", "day", "hour"]),
9907
9778
  total: count,
@@ -9914,7 +9785,7 @@ var messageCounts = strictObject({
9914
9785
  }))
9915
9786
  });
9916
9787
 
9917
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/message-link.js
9788
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/message-link.js
9918
9789
  var messageLink = strictObject({
9919
9790
  ref: reference,
9920
9791
  url: nullable(text),
@@ -9931,7 +9802,7 @@ var messageLink = strictObject({
9931
9802
  })))
9932
9803
  });
9933
9804
 
9934
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
9805
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
9935
9806
  var savedMessageFile = strictObject({
9936
9807
  kind: text,
9937
9808
  path: text,
@@ -10018,7 +9889,7 @@ var messageSyncAll = strictObject({
10018
9889
  var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
10019
9890
  var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
10020
9891
 
10021
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/message-write.js
9892
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/message-write.js
10022
9893
  var messageWrite = strictObject({
10023
9894
  operation_id: id,
10024
9895
  message,
@@ -10033,7 +9904,7 @@ var draftWrite = strictObject({
10033
9904
  });
10034
9905
  var messageSend = union([messageWrite, draftWrite]);
10035
9906
 
10036
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/model.js
9907
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/model.js
10037
9908
  var model2 = strictObject({
10038
9909
  id,
10039
9910
  kind: picklist(["audio", "text", "image", "reranker"]),
@@ -10068,7 +9939,7 @@ var chosenModel = strictObject({
10068
9939
  estimate_seconds: nullable(count)
10069
9940
  });
10070
9941
 
10071
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/model-key.js
9942
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/model-key.js
10072
9943
  var source = picklist(["environment", "keyring", "file"]);
10073
9944
  var modelKey = strictObject({
10074
9945
  provider: text,
@@ -10078,7 +9949,7 @@ var modelKey = strictObject({
10078
9949
  var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
10079
9950
  var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
10080
9951
 
10081
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
9952
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
10082
9953
  var versus = strictObject({ current: number(), previous: number() });
10083
9954
  var person = { person_ref: reference, name: nullable(text) };
10084
9955
  var graph = strictObject({
@@ -10112,14 +9983,14 @@ var officialStats = strictObject({
10112
9983
  graphs: record(string(), union([graph, strictObject({ error: text })]))
10113
9984
  });
10114
9985
 
10115
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/person.js
9986
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/person.js
10116
9987
  var person2 = strictObject({
10117
9988
  ref: reference,
10118
9989
  name: nullable(text),
10119
9990
  identities: optional(array(identity))
10120
9991
  });
10121
9992
 
10122
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/poll.js
9993
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/poll.js
10123
9994
  var poll = strictObject({
10124
9995
  chat_id: id,
10125
9996
  message_id: id,
@@ -10135,11 +10006,11 @@ var poll = strictObject({
10135
10006
  });
10136
10007
  var pollChange = strictObject({ operation_id: id, poll });
10137
10008
 
10138
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
10009
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
10139
10010
  var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
10140
10011
  var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
10141
10012
 
10142
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/ranking.js
10013
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/ranking.js
10143
10014
  var figures = record(string(), number());
10144
10015
  var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
10145
10016
  var rankingRow = strictObject({
@@ -10186,7 +10057,7 @@ var ranking = strictObject({
10186
10057
  rows: array(rankingRow)
10187
10058
  });
10188
10059
 
10189
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/reaction.js
10060
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/reaction.js
10190
10061
  var reaction = strictObject({
10191
10062
  person: strictObject({ id, name: nullable(text), username: nullable(text) }),
10192
10063
  /** The emoji, or `custom:<id>` for a custom one. */
@@ -10194,7 +10065,7 @@ var reaction = strictObject({
10194
10065
  reacted_at: time
10195
10066
  });
10196
10067
 
10197
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
10068
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
10198
10069
  var reactionChange = strictObject({
10199
10070
  operation_id: id,
10200
10071
  chat_id: id,
@@ -10202,7 +10073,7 @@ var reactionChange = strictObject({
10202
10073
  reaction: nullable(text)
10203
10074
  });
10204
10075
 
10205
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/recipient.js
10076
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/recipient.js
10206
10077
  var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
10207
10078
  var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
10208
10079
  var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
@@ -10213,7 +10084,7 @@ var recipientChange = strictObject({
10213
10084
  ...partial(recipientOff).entries
10214
10085
  });
10215
10086
 
10216
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
10087
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
10217
10088
  var events = array(record(string(), unknown()));
10218
10089
  var recordedRun = strictObject({
10219
10090
  run_id: id,
@@ -10285,7 +10156,7 @@ var runHit = strictObject({
10285
10156
  });
10286
10157
  var runLocation = strictObject({ path: text });
10287
10158
 
10288
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/relationship.js
10159
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/relationship.js
10289
10160
  var relationship = strictObject({
10290
10161
  id,
10291
10162
  from: reference,
@@ -10312,7 +10183,7 @@ var relationship = strictObject({
10312
10183
  created_at: time
10313
10184
  });
10314
10185
 
10315
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
10186
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
10316
10187
  var milliseconds2 = nullable(pipe(number(), minValue(0)));
10317
10188
  var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
10318
10189
  var responseTimes = strictObject({
@@ -10329,7 +10200,7 @@ var waitingChats = strictObject({
10329
10200
  by_kind: strictObject({ private: count, group: count })
10330
10201
  });
10331
10202
 
10332
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/retention.js
10203
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/retention.js
10333
10204
  var retentionCohort = strictObject({
10334
10205
  /** The first day of the joining day or week. */
10335
10206
  cohort: text,
@@ -10377,7 +10248,7 @@ var retention = strictObject({
10377
10248
  rows: array(retentionCohort)
10378
10249
  });
10379
10250
 
10380
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
10251
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
10381
10252
  var savedSearch = strictObject({
10382
10253
  id,
10383
10254
  /** `null` for a run in the history. */
@@ -10394,7 +10265,7 @@ var savedSearch = strictObject({
10394
10265
  });
10395
10266
  var searchHistoryClear = strictObject({ cleared: count });
10396
10267
 
10397
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
10268
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
10398
10269
  var sendAttempt = strictObject({
10399
10270
  at: time,
10400
10271
  profile: text,
@@ -10422,7 +10293,7 @@ var sendAttempt = strictObject({
10422
10293
  error_code: optional(text)
10423
10294
  });
10424
10295
 
10425
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
10296
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
10426
10297
  var absent = strictObject({ path: text, exists: literal(false) });
10427
10298
  var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
10428
10299
  var infoSchema = strictObject({
@@ -10652,7 +10523,7 @@ var storeRepair = union([
10652
10523
  ]);
10653
10524
  var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
10654
10525
 
10655
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/store-records.js
10526
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/store-records.js
10656
10527
  var range = strictObject({ from: number(), to: number() });
10657
10528
  var storeChatStatus = strictObject({
10658
10529
  chat_id: id,
@@ -10750,7 +10621,7 @@ var storeJobRetry = union([
10750
10621
  ]);
10751
10622
  var storeJobClear = strictObject({ cleared: array(id) });
10752
10623
 
10753
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/store-table.js
10624
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/store-table.js
10754
10625
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
10755
10626
  var storeTable = strictObject({
10756
10627
  name: text,
@@ -10759,7 +10630,7 @@ var storeTable = strictObject({
10759
10630
  bytes: optional(nullable(count))
10760
10631
  });
10761
10632
 
10762
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
10633
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
10763
10634
  var tagTarget = variant("type", [
10764
10635
  strictObject({ type: literal("chat"), chat_id: id }),
10765
10636
  strictObject({ type: literal("contact"), person_id: id }),
@@ -10790,7 +10661,7 @@ var automaticTags = strictObject({
10790
10661
  dry_run: boolean()
10791
10662
  });
10792
10663
 
10793
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/tagging.js
10664
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/tagging.js
10794
10665
  var tagging = strictObject({
10795
10666
  tag: text,
10796
10667
  type: picklist(TAG_TYPES),
@@ -10803,7 +10674,7 @@ var tagging = strictObject({
10803
10674
  created_at: time
10804
10675
  });
10805
10676
 
10806
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
10677
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
10807
10678
  var side = strictObject({ ref: reference, key: text, title: text, status: text });
10808
10679
  var taskPair = strictObject({
10809
10680
  task: nullable(side),
@@ -10826,7 +10697,7 @@ var taskPair = strictObject({
10826
10697
  created_at: time
10827
10698
  });
10828
10699
 
10829
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/task-results.js
10700
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/task-results.js
10830
10701
  var nullableTime = nullable(time);
10831
10702
  var link = strictObject({
10832
10703
  id,
@@ -11000,7 +10871,7 @@ var taskReview = strictObject({
11000
10871
  untrusted
11001
10872
  });
11002
10873
 
11003
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/template.js
10874
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/template.js
11004
10875
  var template = strictObject({
11005
10876
  key: text,
11006
10877
  channel: picklist(["telegram", "email", "text"]),
@@ -11012,7 +10883,7 @@ var template = strictObject({
11012
10883
  updated_by: nullable(text)
11013
10884
  });
11014
10885
 
11015
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/topic.js
10886
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/topic.js
11016
10887
  var topic = strictObject({
11017
10888
  id,
11018
10889
  title: text,
@@ -11026,7 +10897,7 @@ var topic = strictObject({
11026
10897
  untrusted
11027
10898
  });
11028
10899
 
11029
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/entities/index.js
10900
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/index.js
11030
10901
  var ENTITIES = {
11031
10902
  sync_progress: progress,
11032
10903
  deal,
@@ -11202,6 +11073,8 @@ var ENTITIES = {
11202
11073
  meeting_stats: meetingStats,
11203
11074
  meeting_counts: meetingCounts,
11204
11075
  call_stats: callStats,
11076
+ meeting_tag_change: meetingTagChange,
11077
+ meeting_tagging: meetingTagging,
11205
11078
  meeting_speaker: meetingSpeaker,
11206
11079
  meeting_participants: meetingParticipants,
11207
11080
  meeting_passage: meetingPassage,
@@ -11278,6 +11151,7 @@ var ENTITIES = {
11278
11151
  chat_moderation: chatModeration,
11279
11152
  "model.chosen": chosenModel,
11280
11153
  model_key: modelKey,
11154
+ chat_sending: chatSending,
11281
11155
  "model_key.stored": storedModelKey,
11282
11156
  "model_key.removed": removedModelKey,
11283
11157
  chat_event: chatEvent,
@@ -11322,7 +11196,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
11322
11196
  return [name, definition];
11323
11197
  })), "entityDefinitions");
11324
11198
 
11325
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
11199
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
11326
11200
  var schemas = /* @__PURE__ */ new WeakMap();
11327
11201
  var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
11328
11202
  if (Object.hasOwn(ENTITIES, name))
@@ -11356,8 +11230,8 @@ var answerRow = /* @__PURE__ */ __name((command) => {
11356
11230
  return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
11357
11231
  }, "answerRow");
11358
11232
 
11359
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/images/picture/models.js
11360
- import { join as join6 } from "node:path";
11233
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/images/picture/models.js
11234
+ import { join as join5 } from "node:path";
11361
11235
  var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
11362
11236
  var IMAGE_MODELS = [
11363
11237
  {
@@ -11407,10 +11281,10 @@ var imageModel = /* @__PURE__ */ __name((id6) => {
11407
11281
  return found;
11408
11282
  }, "imageModel");
11409
11283
  var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("image", env), "imageModelsDirectory");
11410
- var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
11284
+ var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join5(directory, model3.id, file.name)]), "placedImage");
11411
11285
  var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
11412
11286
 
11413
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/cli/steps.js
11287
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/steps.js
11414
11288
  var STEPS2 = defineSteps([
11415
11289
  ...STEPS,
11416
11290
  {
@@ -11647,10 +11521,10 @@ var nextStep = /* @__PURE__ */ __name((id6, input) => {
11647
11521
  const args = Object.fromEntries(Object.entries(input.args ?? {}).filter(([, value]) => value !== void 0));
11648
11522
  return stepOf(definition, { ...input, args });
11649
11523
  }, "nextStep");
11650
- var lineOf = /* @__PURE__ */ __name((command, words2) => {
11524
+ var lineOf = /* @__PURE__ */ __name((command, words) => {
11651
11525
  const root = rootOf2(command);
11652
11526
  const profile = root.getOptionValue("profile");
11653
- return typedCommand(root.name(), words2, typeof profile === "string" && profile !== "" ? profile : void 0);
11527
+ return typedCommand(root.name(), words, typeof profile === "string" && profile !== "" ? profile : void 0);
11654
11528
  }, "lineOf");
11655
11529
  var rootOf2 = /* @__PURE__ */ __name((command) => {
11656
11530
  let root = command;
@@ -11700,7 +11574,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
11700
11574
  ].join(" ");
11701
11575
  }, "stepLine");
11702
11576
 
11703
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
11577
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
11704
11578
  var where = [{ field: "ref" }];
11705
11579
  var who2 = { field: ["who.owner", "who.name"], tag: "you" };
11706
11580
  var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
@@ -11792,7 +11666,7 @@ var STATUS_ROWS = {
11792
11666
  "status.failed": { columns: [{ field: "signal" }], text: ["why"] }
11793
11667
  };
11794
11668
 
11795
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/cli/compact.js
11669
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/compact.js
11796
11670
  var TEXT_CHARS = 400;
11797
11671
  var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
11798
11672
  var messageRow = {
@@ -12160,7 +12034,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
12160
12034
  return lines.concat(footerOf(body)).join("\n");
12161
12035
  }, "compactText");
12162
12036
 
12163
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
12037
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
12164
12038
  var SOFT_OUTPUT_BYTES = 256 * 1024;
12165
12039
  var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
12166
12040
  var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
@@ -12186,10 +12060,10 @@ var declaresRow = /* @__PURE__ */ __name((command) => {
12186
12060
  return rowShapeOf(command, rows2 && entityRows(rows2)) !== GENERIC_ROW;
12187
12061
  }, "declaresRow");
12188
12062
  var pathOf3 = /* @__PURE__ */ __name((command) => {
12189
- const words2 = [];
12063
+ const words = [];
12190
12064
  for (let at2 = command; at2.parent; at2 = at2.parent)
12191
- words2.unshift(at2.name());
12192
- return words2.join(" ");
12065
+ words.unshift(at2.name());
12066
+ return words.join(" ");
12193
12067
  }, "pathOf");
12194
12068
  var step = /* @__PURE__ */ __name((command, id6, args, why) => ({
12195
12069
  kind: "command",
@@ -12218,7 +12092,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
12218
12092
  return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
12219
12093
  }, "largeAnswerSteps");
12220
12094
 
12221
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
12095
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
12222
12096
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
12223
12097
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
12224
12098
  var strip = /* @__PURE__ */ __name((value) => {
@@ -12232,7 +12106,7 @@ var strip = /* @__PURE__ */ __name((value) => {
12232
12106
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
12233
12107
  }, "strip");
12234
12108
 
12235
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/cli/untrusted-marks.js
12109
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/untrusted-marks.js
12236
12110
  var OPEN = "\u27E6";
12237
12111
  var CLOSE = "\u27E7";
12238
12112
  var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
@@ -12316,7 +12190,7 @@ var withFieldsMarked = /* @__PURE__ */ __name((value, fields, mark, id6) => {
12316
12190
  return result;
12317
12191
  }, "withFieldsMarked");
12318
12192
 
12319
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/cli/envelope.js
12193
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/envelope.js
12320
12194
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
12321
12195
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
12322
12196
  var listOf = /* @__PURE__ */ __name((command, input) => {
@@ -12424,8 +12298,8 @@ var linesOf = /* @__PURE__ */ __name((body) => jsonlOf("items" in body ? body :
12424
12298
  var jsonlRecords = /* @__PURE__ */ __name((body) => linesOf(sealed(body)).split("\n").map((line) => JSON.parse(line)), "jsonlRecords");
12425
12299
  var listZone = /* @__PURE__ */ __name((command) => {
12426
12300
  const registry = metaOf(command).query;
12427
- const words2 = command.processedArgs.at(-1);
12428
- const text5 = Array.isArray(words2) ? words2.join(" ") : typeof words2 === "string" ? words2 : "";
12301
+ const words = command.processedArgs.at(-1);
12302
+ const text5 = Array.isArray(words) ? words.join(" ") : typeof words === "string" ? words : "";
12429
12303
  const times = new Set(registry?.fields.filter(({ type }) => type === "time").map(({ name }) => name));
12430
12304
  if (times.size === 0 || text5.trim() === "")
12431
12305
  return void 0;
@@ -12492,6 +12366,7 @@ var printItem = /* @__PURE__ */ __name(({ renderer, format }, item) => {
12492
12366
 
12493
12367
  export {
12494
12368
  modelTarget,
12369
+ resolveAISettings,
12495
12370
  envName,
12496
12371
  ancestorValue,
12497
12372
  readOnlyLockOf,
@@ -12517,6 +12392,7 @@ export {
12517
12392
  scheduleHarness,
12518
12393
  callRecord,
12519
12394
  stickerInventory,
12395
+ progressOf,
12520
12396
  spawnDetached,
12521
12397
  jobsDir,
12522
12398
  saveJob,
@@ -12570,6 +12446,7 @@ export {
12570
12446
  readKeysForCommand,
12571
12447
  keyForCommand,
12572
12448
  assertRetentionEvidenceRead,
12449
+ deadlineMargin,
12573
12450
  recorded,
12574
12451
  startRecording,
12575
12452
  wasSettled,
@@ -12599,19 +12476,6 @@ export {
12599
12476
  refuseCommandName,
12600
12477
  rootOf,
12601
12478
  sampleCommand,
12602
- DEFAULT_TEXT_MODEL,
12603
- PREVIOUS_DEFAULT_TEXT_MODEL,
12604
- CustomTextModelShape,
12605
- readTextModelsSection,
12606
- writeTextModelsSection,
12607
- textModels,
12608
- textModel,
12609
- chosenTextModel,
12610
- RERANK_MODELS,
12611
- DEFAULT_RERANK_MODEL,
12612
- rerankModel,
12613
- vectorModelKey,
12614
- meaningFloor,
12615
12479
  historyWindow,
12616
12480
  limitBatch,
12617
12481
  botFiles,
@@ -12633,11 +12497,13 @@ export {
12633
12497
  NoProfileHere,
12634
12498
  fromFile,
12635
12499
  settingsFor,
12500
+ runBudgetOf,
12636
12501
  setExitCode,
12637
12502
  provide,
12638
12503
  environmentOf,
12639
12504
  withAgentLevels,
12640
12505
  secretInputOf,
12506
+ outputFieldsOf,
12641
12507
  outputFor,
12642
12508
  baseContext,
12643
12509
  inCommandRun,
@@ -12656,6 +12522,7 @@ export {
12656
12522
  destroysNothing,
12657
12523
  admittedUnderLock,
12658
12524
  changesStore,
12525
+ writesOwnerFiles,
12659
12526
  fetchesOnly,
12660
12527
  fetchesOnlyAt,
12661
12528
  fileOptionOf,