@wirecat/zoom-cli 0.64.0 → 0.65.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 (146) hide show
  1. package/dist/answer-entities.d.ts +13 -0
  2. package/dist/answer-entities.d.ts.map +1 -1
  3. package/dist/answer-entities.js +5 -0
  4. package/dist/answer-entities.js.map +1 -1
  5. package/dist/answers.d.ts +8 -0
  6. package/dist/answers.d.ts.map +1 -1
  7. package/dist/archive-import.d.ts +1 -1
  8. package/dist/archive-import.d.ts.map +1 -1
  9. package/dist/archive-import.js +2 -1
  10. package/dist/archive-import.js.map +1 -1
  11. package/dist/bin/zm.js +6 -2
  12. package/dist/bundle/{all-profiles-W2OVBZ7S.js → all-profiles-SKMLZJSY.js} +8 -8
  13. package/dist/bundle/answer-policy-BHDNSJWX.js +96 -0
  14. package/dist/bundle/{anthropic-P4BKQNBO.js → anthropic-TVHK7CY2.js} +4 -4
  15. package/dist/bundle/{app-server-AYUW45ND.js → app-server-44ASFH47.js} +53 -52
  16. package/dist/bundle/{bun-MNGPTYDQ.js → bun-O4WHGL2F.js} +2 -2
  17. package/dist/bundle/{bun-sqlite-PTPUSXAO.js → bun-sqlite-NS32GMM4.js} +3 -3
  18. package/dist/bundle/{chunk-CZKV4USJ.js → chunk-24F7JBLY.js} +59 -4
  19. package/dist/bundle/{chunk-A2FOW3ZC.js → chunk-25IDWPEN.js} +148 -97
  20. package/dist/bundle/{chunk-BMYZWBAX.js → chunk-266WOOB3.js} +4 -4
  21. package/dist/bundle/{chunk-23LOMA2I.js → chunk-2H5SXK7K.js} +45 -25
  22. package/dist/bundle/{chunk-24WCZURP.js → chunk-37PHGASE.js} +2 -2
  23. package/dist/bundle/{chunk-WFIJOFS5.js → chunk-3CZIWGZ6.js} +1 -1
  24. package/dist/bundle/{chunk-BO5YVG3X.js → chunk-5NGOP4EZ.js} +125 -35
  25. package/dist/bundle/{chunk-BWPKSUXW.js → chunk-6CS7ETBK.js} +4496 -386
  26. package/dist/bundle/{chunk-LEQCRVPD.js → chunk-7SQJCKR6.js} +1 -1
  27. package/dist/bundle/{chunk-RK3JBC4U.js → chunk-A6OA2EH2.js} +2 -2
  28. package/dist/bundle/{chunk-QK54GOGE.js → chunk-AMMD6YCJ.js} +7 -9
  29. package/dist/bundle/chunk-BLT3LR3U.js +34 -0
  30. package/dist/bundle/{chunk-X6M5DK66.js → chunk-BNXH73OU.js} +10 -10
  31. package/dist/bundle/{chunk-RJLNVHIU.js → chunk-BWRBALXG.js} +3 -3
  32. package/dist/bundle/{chunk-UFI5SX3F.js → chunk-C6BG57FA.js} +11 -11
  33. package/dist/bundle/{chunk-IIGXCYEL.js → chunk-CNEE6TPE.js} +13 -13
  34. package/dist/bundle/{chunk-TYKZCJD7.js → chunk-CVCRQW3A.js} +35 -35
  35. package/dist/bundle/{chunk-UCPL55YP.js → chunk-DNCKH7CO.js} +17 -17
  36. package/dist/bundle/{chunk-L4JGVSBN.js → chunk-DYJXAY7Q.js} +26 -25
  37. package/dist/bundle/{chunk-UABUBDYB.js → chunk-EA63UGWE.js} +2 -2
  38. package/dist/bundle/{chunk-UNO4G5NX.js → chunk-ERPRAYA7.js} +5 -5
  39. package/dist/bundle/{chunk-CZFV6XTW.js → chunk-FYJL276J.js} +3 -3
  40. package/dist/bundle/{chunk-YNYMWXXH.js → chunk-FYM27FCG.js} +32 -9
  41. package/dist/bundle/{chunk-H65B6A7Y.js → chunk-GBZF4IIP.js} +8 -8
  42. package/dist/bundle/{chunk-JRPYHDCO.js → chunk-GEX4V5TM.js} +4 -4
  43. package/dist/bundle/{chunk-5BCNJB2A.js → chunk-GMTXCFI7.js} +668 -504
  44. package/dist/bundle/{chunk-JM43EKTY.js → chunk-GXCNCMUY.js} +1896 -651
  45. package/dist/bundle/{chunk-FSYO3PUW.js → chunk-H7762LDA.js} +2 -2
  46. package/dist/bundle/{chunk-C3RRIJ5C.js → chunk-IPTI3Y2E.js} +6 -41
  47. package/dist/bundle/{chunk-7NDSBTKR.js → chunk-JF7ZEUXU.js} +34 -26
  48. package/dist/bundle/{chunk-5YLR24D5.js → chunk-K6ATTKQR.js} +13 -6
  49. package/dist/bundle/{chunk-R4NTPYXZ.js → chunk-KYLS5QGC.js} +2 -2
  50. package/dist/bundle/{chunk-OPP5CWAX.js → chunk-KZE3G4ZT.js} +34 -33
  51. package/dist/bundle/{chunk-I5QX2HAT.js → chunk-LOL6JYYN.js} +211 -106
  52. package/dist/bundle/{chunk-COTC7HF3.js → chunk-LPUFOWL3.js} +1 -1
  53. package/dist/bundle/{chunk-AF4HONAZ.js → chunk-M6IDHQ7N.js} +6402 -4395
  54. package/dist/bundle/{chunk-Y7TWNMTW.js → chunk-MH7AWCB4.js} +178 -49
  55. package/dist/bundle/{chunk-ZW4N73FO.js → chunk-MIB5X2XW.js} +3 -3
  56. package/dist/bundle/{chunk-Q3EDUZ5R.js → chunk-MPKKIL3U.js} +15 -12
  57. package/dist/bundle/{chunk-JMSKDW5G.js → chunk-MRWIXUYT.js} +2 -2
  58. package/dist/bundle/{chunk-HIGFBTEI.js → chunk-MZ6U6HNJ.js} +2 -2
  59. package/dist/bundle/{chunk-7SWNZ44U.js → chunk-NJSIHMAE.js} +2 -2
  60. package/dist/bundle/{chunk-HQHYPKSU.js → chunk-NNNEVWFF.js} +44 -31
  61. package/dist/bundle/{chunk-TJH5IQVZ.js → chunk-NO24PJNW.js} +1 -1
  62. package/dist/bundle/{chunk-7D56BQZL.js → chunk-OXUHTKO2.js} +2 -2
  63. package/dist/bundle/{chunk-IIP4J3PD.js → chunk-PV3UDPCI.js} +82 -6
  64. package/dist/bundle/{chunk-5FN4Q5H5.js → chunk-QI7BZS2G.js} +8 -13
  65. package/dist/bundle/{chunk-SMT6SFBK.js → chunk-QLCYAQ66.js} +2 -2
  66. package/dist/bundle/{chunk-PBJY5VR6.js → chunk-R5BAF5XE.js} +1 -1
  67. package/dist/bundle/{chunk-7VJIKJNW.js → chunk-RZLNHNSS.js} +8 -8
  68. package/dist/bundle/{chunk-3DGQJASQ.js → chunk-S4GDDO5S.js} +1 -1
  69. package/dist/bundle/{chunk-AAC6VNSL.js → chunk-SQWRZZOQ.js} +3 -3
  70. package/dist/bundle/{chunk-63MRRNDL.js → chunk-T3KICUOK.js} +6 -6
  71. package/dist/bundle/{chunk-7EOW47PV.js → chunk-TC7PD3LH.js} +4 -4
  72. package/dist/bundle/{chunk-XZSQLVED.js → chunk-TUIEDVI6.js} +2 -2
  73. package/dist/bundle/{chunk-H5LLZ5XA.js → chunk-U3ZUT557.js} +1 -1
  74. package/dist/bundle/{chunk-4XVRA6P5.js → chunk-U4RVOSX3.js} +1 -1
  75. package/dist/bundle/{chunk-EQYPTGCT.js → chunk-U5ASRBBF.js} +6 -4
  76. package/dist/bundle/{chunk-3IMEAZIM.js → chunk-UKU6MYUI.js} +4 -4
  77. package/dist/bundle/{chunk-J25UNZIL.js → chunk-UMHJZWZU.js} +9 -9
  78. package/dist/bundle/{chunk-HQHUPTZR.js → chunk-UPJXN2CO.js} +1308 -635
  79. package/dist/bundle/{chunk-OWXMQVVN.js → chunk-VH4F2EK4.js} +1 -1
  80. package/dist/bundle/{chunk-TJODNJKE.js → chunk-VJTGYBJJ.js} +18 -13
  81. package/dist/bundle/{chunk-54UEJGYB.js → chunk-VW2SW7ME.js} +3 -3
  82. package/dist/bundle/{chunk-2UONVSJQ.js → chunk-WLSF3GCC.js} +2 -2
  83. package/dist/bundle/{chunk-H3DMYF3W.js → chunk-XJQB47IL.js} +4 -4
  84. package/dist/bundle/{chunk-JZKNHA44.js → chunk-Y3EIK4XW.js} +1 -1
  85. package/dist/bundle/{chunk-3AAO5N4L.js → chunk-Z5424QL6.js} +2 -2
  86. package/dist/bundle/{chunk-K6OSD6DG.js → chunk-ZFNM3FNI.js} +75 -33
  87. package/dist/bundle/{chunk-SJIBJQJN.js → chunk-ZH743WNV.js} +40 -12
  88. package/dist/bundle/{chunk-JJZAGKUK.js → chunk-ZOGYTDHG.js} +2 -2
  89. package/dist/bundle/{chunk-6NBQJJT6.js → chunk-ZREFYKUB.js} +7 -7
  90. package/dist/bundle/{chunk-KJCCT3QY.js → chunk-ZXGRK44F.js} +14 -13
  91. package/dist/bundle/{cli-Y2ZO3D5U.js → cli-FDO6CP6R.js} +105 -59
  92. package/dist/bundle/command-contract-O4FDXM4U.js +37 -0
  93. package/dist/bundle/config-UBHKZG3J.js +78 -0
  94. package/dist/bundle/{decode-GO6GAYH2.js → decode-7SZI3TGZ.js} +3 -3
  95. package/dist/bundle/{dist-MIJKAGXW.js → dist-5GWUXW27.js} +18 -14
  96. package/dist/bundle/{echarts-NWK7LALR.js → echarts-FMACRZQC.js} +2 -2
  97. package/dist/bundle/{embed-2DOSN4DV.js → embed-24YSXHLP.js} +4 -4
  98. package/dist/bundle/{embedder-3Q3C2WKC.js → embedder-MEXN2TFB.js} +7 -7
  99. package/dist/bundle/{first-run-S75VKIT3.js → first-run-OCVEJH63.js} +8 -8
  100. package/dist/bundle/first-screen-KJIU25MH.js +35 -0
  101. package/dist/bundle/{folders-RSWEBHDZ.js → folders-DBAAMU26.js} +2 -2
  102. package/dist/bundle/{instructions-M3FZPQVI.js → instructions-E5FXYCWF.js} +1 -1
  103. package/dist/bundle/{main-R77BPRRS.js → main-EIUCXXDW.js} +17 -16
  104. package/dist/bundle/{mcp-YJEQYYTR.js → mcp-FUSDPAOL.js} +2 -2
  105. package/dist/bundle/{meetings-IV4Y4WRH.js → meetings-JDTRGXZJ.js} +16 -6
  106. package/dist/bundle/{node-I3GEHYGL.js → node-4SNKUPXT.js} +2 -2
  107. package/dist/bundle/{node-sqlite-W6MR2TVQ.js → node-sqlite-O4BAODFR.js} +9 -3
  108. package/dist/bundle/{oauth-M6YL4QXP.js → oauth-3YLHXGUW.js} +5 -5
  109. package/dist/bundle/{open-2VITLJAN.js → open-QGRMSNM2.js} +3 -2
  110. package/dist/bundle/{openai-OG6B3JCU.js → openai-7PSCSTH7.js} +9 -9
  111. package/dist/bundle/{output-file-XJJ3XMLQ.js → output-file-J26UQKRA.js} +3 -3
  112. package/dist/bundle/{process-UBA4L4B2.js → process-HQZOTT6U.js} +1 -1
  113. package/dist/bundle/{program-5R5MRXUM.js → program-47DT7SHE.js} +75 -75
  114. package/dist/bundle/{prompt-AVIXIM7Z.js → prompt-IUD7HCDC.js} +3 -3
  115. package/dist/bundle/{recognize-DJKTJOYU.js → recognize-DMJJHHXF.js} +2 -2
  116. package/dist/bundle/{remote-S3DTNYRP.js → remote-5WFSOVVB.js} +5 -5
  117. package/dist/bundle/{rerank-FMCDP6VF.js → rerank-UKQ65ECH.js} +5 -5
  118. package/dist/bundle/{run-log-T4MV2VEH.js → run-log-UGYL6NW2.js} +53 -53
  119. package/dist/bundle/{serve-5SGFJFMC.js → serve-WAOSED3I.js} +9 -8
  120. package/dist/bundle/server-HAXN772R.js +66 -0
  121. package/dist/bundle/{server-PCMCY7WK.js → server-NWZFNXC5.js} +42 -42
  122. package/dist/bundle/{services-SKRQ2POT.js → services-VPANRE72.js} +101 -28
  123. package/dist/bundle/{speech-FSDICIKO.js → speech-O6UNUDRW.js} +11 -11
  124. package/dist/bundle/{state-KPUSPWO6.js → state-BNE7I65A.js} +4 -4
  125. package/dist/bundle/{store-7MP2ZGQ7.js → store-4IIVSCJ4.js} +37 -18
  126. package/dist/bundle/{store-W7LFPKG2.js → store-QQH4FJXJ.js} +14 -13
  127. package/dist/bundle/store-connection-PPEQK2K3.js +76 -0
  128. package/dist/bundle/store-maintenance-command-JZXCT6NY.js +56 -0
  129. package/dist/bundle/{streaming-Q44ESD3E.js → streaming-S4EZB6P2.js} +4 -4
  130. package/dist/bundle/{tokens-TAFCHANI.js → tokens-VCXIH7WZ.js} +4 -4
  131. package/dist/bundle/zm.js +1 -1
  132. package/dist/local-transcription.d.ts.map +1 -1
  133. package/dist/local-transcription.js +1 -0
  134. package/dist/local-transcription.js.map +1 -1
  135. package/dist/version.d.ts +1 -1
  136. package/dist/version.js +1 -1
  137. package/package.json +3 -3
  138. package/dist/bundle/answer-policy-HOA43GNA.js +0 -96
  139. package/dist/bundle/chunk-JRPAZ2WD.js +0 -3635
  140. package/dist/bundle/command-contract-DGTZIH2F.js +0 -38
  141. package/dist/bundle/config-N2UHDKGG.js +0 -78
  142. package/dist/bundle/first-screen-DQNRT6GH.js +0 -36
  143. package/dist/bundle/server-EYGZLKKQ.js +0 -66
  144. package/dist/bundle/store-connection-3HNZFJC4.js +0 -76
  145. package/dist/bundle/store-maintenance-command-6WBLTUZP.js +0 -55
  146. /package/dist/bundle/{chunk-WJWLHLQ7.js → chunk-NUN6OGOV.js} +0 -0
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  QUERY_REASONS
5
- } from "./chunk-SJIBJQJN.js";
5
+ } from "./chunk-ZH743WNV.js";
6
6
  import {
7
7
  defineReasons
8
- } from "./chunk-7NDSBTKR.js";
8
+ } from "./chunk-JF7ZEUXU.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/errors/reasons.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/errors/reasons.js
14
14
  var validation = /* @__PURE__ */ __name((reason, message) => [reason, "validation_error", message], "validation");
15
15
  var QUERY = [
16
16
  ["query.aborted", "the search was stopped before it finished"],
@@ -38,9 +38,12 @@ var SIGN_IN = [
38
38
  ["oauth.failed", "authentication_error", "the provider returned no offline refresh token"],
39
39
  ["oauth.revoke-failed", "outcome_unknown", "the provider did not confirm the revoke"],
40
40
  ["oauth.invalid", "authentication_error", "the saved sign-in cannot be read"],
41
- ["oauth.not-saved", "configuration_error", "the sign-in cannot be saved or read where it is kept"]
41
+ ["oauth.not-saved", "configuration_error", "the sign-in cannot be saved or read where it is kept"],
42
+ ["sign-in.client-file-open", "configuration_error", "other users of this computer can read the client file"],
43
+ ["sign-in.client-file-invalid", "configuration_error", "the file is not a Desktop app OAuth client JSON"]
42
44
  ];
43
45
  var OTHERS = [
46
+ ["query.time-limit", "timeout", "the search took longer than its time limit; the query itself is valid"],
44
47
  ["model.offline", "permission_error", "downloading a model needs the network; --offline was requested"],
45
48
  [
46
49
  "contract.unacknowledged-override",
@@ -58,6 +61,7 @@ var OTHERS = [
58
61
  validation("extraction.text-too-long", "the text is too long for memory extraction"),
59
62
  validation("file.locked", "another process holds the file's lock"),
60
63
  ["mail.source-failed", "provider_error", "the mail server refused or did not complete a request"],
64
+ ["mail.search-refused", "provider_error", "the mail server refused to search a folder"],
61
65
  ["mirror.partial", "provider_error", "some mirrored files were not synced"],
62
66
  ["profile.wrong-account", "authentication_error", "the signed-in source account does not match this profile"],
63
67
  validation("push.too-many-files", "the folder holds more files than one push takes"),
@@ -67,14 +71,43 @@ var OTHERS = [
67
71
  ["sync.partial", "provider_error", "some calendars did not sync; the next sync retries them"],
68
72
  validation("event.conflict", "the event changed at the provider since the last sync; sync and try again"),
69
73
  validation("event.notify-required", "the event has other attendees; say whether to notify them"),
74
+ validation("remind.window", "--due-within is outside 1m to 1d"),
75
+ validation("remind.running", "another events remind is running; this run did nothing"),
76
+ [
77
+ "remind.hook-failed",
78
+ "configuration_error",
79
+ "the reminder program failed for some events; the next run retries them"
80
+ ],
81
+ ["sync.failed", "provider_error", "the sync failed; the answer comes from what the store already holds"],
70
82
  validation("event.repeat-invalid", "the repeat rule is outside the RFC 5545 subset the calendars take"),
71
83
  validation("event.repeat-kind", "the series' rule holds a date or a time of the kind the event is leaving"),
72
84
  validation("event.repeat-split", "the series cannot be split at this occurrence, or was split there already"),
73
85
  validation("event.repeat-count", "a COUNT series is split only with a rule for its new part"),
74
86
  validation("event.unmovable", "the provider keeps this kind of event on its calendar"),
87
+ validation("event.text-with-fields", "--text takes the whole event from its line, so no field option goes with it"),
88
+ validation("calendar.ambiguous", "two or more calendars have this name; name one by its id"),
89
+ validation("export.too-many", "the query finds more events than one export writes"),
90
+ validation("ics.not-icalendar", "the file is not iCalendar"),
91
+ validation("ics.no-events", "the file holds no event that can be imported"),
92
+ validation("ics.too-many", "the file holds more events than one import sends"),
93
+ validation("ics.too-large", "the file is larger than one import reads"),
75
94
  ["calendar.read-only", "permission_error", "the calendar takes no new events from this account"],
95
+ validation("feed.address-invalid", "a feed address is an http, https or webcal URL with no user or password in it"),
96
+ validation("feed.duplicate", "this profile follows a feed at this address already"),
97
+ validation("feed.not-a-feed", "the calendar is not a feed this profile follows"),
98
+ validation("feed.too-large", "the feed is larger than one sync reads"),
99
+ validation("feed.redirect-refused", "the feed sent the request on to an address that is not https"),
100
+ ["feed.no-address", "configuration_error", "the feed's address is no longer kept on this computer"],
101
+ ["feed.refused", "provider_error", "the feed's server refused the request"],
102
+ ["feed.gone", "not_found", "the feed's server has no feed at this address any more"],
103
+ ["feed.timeout", "timeout", "the feed's server did not answer in time"],
104
+ ["feed.unreachable", "network_error", "the feed's server could not be reached"],
105
+ validation("busy.feed", "a feed calendar has no busy times to ask; read its events with events list"),
76
106
  ["calendar.unsynced", "not_found", "the calendar account has no synced calendar in the store"],
77
107
  ["calendar.sync-incomplete", "not_found", "a synced calendar's sync never finished or is mid-round"],
108
+ ["calendar.no-upcoming", "not_found", "no upcoming meeting with other attendees is stored for this account"],
109
+ ["chat.not-read", "not_found", "a chat shared with this person is not held whole in the store"],
110
+ ["meetings.index-pending", "not_found", "some stored meetings are not indexed by person yet"],
78
111
  ["profile.locked", "permission_error", "a profile lock pins this process to its own account"],
79
112
  ["busy.offline", "permission_error", "calendars busy asks the provider; --offline was given"],
80
113
  validation("busy.no-calendars", "no calendar syncs and no person was named, so there is nobody to ask"),
@@ -89,6 +122,11 @@ var OTHERS = [
89
122
  ["search.server-failed", "provider_unavailable", "the server did not answer a search"],
90
123
  ["search.server-timeout", "timeout", "the server did not answer within --server-time"],
91
124
  ["search.server-capped", "outcome_unknown", "the server found more than one search reads, or a branch was not sent"],
125
+ [
126
+ "search.server-partial",
127
+ "outcome_unknown",
128
+ "a message the server found was stored without its attachments; the next sync reads it whole"
129
+ ],
92
130
  validation("store.refused", "the local store refused the document text"),
93
131
  ["store.not-writable", "permission_error", "the message store cannot be written from this process"],
94
132
  [
@@ -118,12 +156,26 @@ var OTHERS = [
118
156
  ],
119
157
  validation("name.invalid", "the name is not valid"),
120
158
  validation("output.choose-fields", "at a terminal, --json names the fields it prints"),
159
+ validation("output.conflict", "two output switches ask for different output"),
121
160
  validation("output.one-object", "a report is one JSON object; --jsonl streams lists only"),
122
161
  validation("output.unknown-field", "the answer has no field by that name"),
123
162
  validation("name.taken", "the name is already used"),
124
163
  validation("period.ambiguous", "the period can be read more than one way"),
125
164
  validation("proposal.wrong-state", "the proposal is not in a state that allows this"),
165
+ validation("proposal.reason-required", "an agent deciding for the owner gives a reason"),
166
+ validation("proposal.decider-required", "a decision names who decides: the owner or an agent with a reason"),
167
+ validation("proposal.ids", "the proposal ids cannot be read"),
168
+ ["proposal.own", "permission_error", "an agent never decides its own proposal"],
169
+ ["proposal.owner-only", "permission_error", "only the owner decides this proposal"],
170
+ ["proposals.agent-decisions-off", "permission_error", "agent decisions are turned off; the owner decides"],
171
+ ["proposal.unknown-kind", "not_found", "no registered proposal kind holds this id"],
172
+ validation("relationship.exists", "a confirmed relationship already links them"),
126
173
  validation("ranking.invalid", "the ranking is not valid"),
174
+ validation("ref.malformed", "the reference has a known kind but not its shape"),
175
+ validation("ref.unknown-kind", "the text names no kind of reference"),
176
+ validation("ref.wrong-kind", "the reference names another kind of thing than the argument takes"),
177
+ validation("ref.wrong-provider", "the reference belongs to another messenger; open it with that CLI"),
178
+ validation("ref.wrong-account", "the reference belongs to another account than this profile's"),
127
179
  validation("selection.changed", "the stored selection changed meanwhile"),
128
180
  validation("selection.invalid", "the selection is not valid"),
129
181
  validation("search.kind", "the saved search belongs to another kind of search: messages or meetings"),
@@ -144,6 +196,7 @@ var OTHERS = [
144
196
  validation("task.column", "the task beside which it moves is in another column than the status asked for"),
145
197
  validation("task.dependency-cycle", "the task would depend on itself"),
146
198
  validation("task.has-subtasks", "the task has subtasks; move or detach them before it moves to another project"),
199
+ validation("task.is-subtask", "a subtask moves to another project only when it is detached from its parent in the same write"),
147
200
  validation("task.duplicate-candidates", "open tasks may be the same job: attach to one, or add it as new"),
148
201
  validation("task.certainty-required", "an agent closes a task with its certainty, 0 to 1"),
149
202
  ["task.pair-decided", "permission_error", "the owner already decided the pair; an agent does not change it"],
@@ -215,7 +268,9 @@ var DETAILS = [
215
268
  "operation_ids",
216
269
  "text_limit",
217
270
  "store_refused_in",
271
+ "subtasks",
218
272
  "partial_output",
273
+ "parent",
219
274
  "path",
220
275
  "permission",
221
276
  "person_ids",
@@ -5,20 +5,20 @@ import {
5
5
  id,
6
6
  text,
7
7
  time
8
- } from "./chunk-TYKZCJD7.js";
8
+ } from "./chunk-CVCRQW3A.js";
9
9
  import {
10
10
  filesPresent,
11
11
  sharedModelsDirectory
12
- } from "./chunk-EQYPTGCT.js";
12
+ } from "./chunk-U5ASRBBF.js";
13
13
  import {
14
14
  PRIORITY_LABELS,
15
15
  TASK_ORIGINS,
16
16
  TASK_STATES,
17
17
  TASK_TYPES
18
- } from "./chunk-QK54GOGE.js";
18
+ } from "./chunk-AMMD6YCJ.js";
19
19
  import {
20
20
  TAG_TYPES
21
- } from "./chunk-XZSQLVED.js";
21
+ } from "./chunk-TUIEDVI6.js";
22
22
  import {
23
23
  CliError,
24
24
  array,
@@ -34,18 +34,18 @@ import {
34
34
  strictObject,
35
35
  traceIdOf,
36
36
  writeSecurely
37
- } from "./chunk-7NDSBTKR.js";
37
+ } from "./chunk-JF7ZEUXU.js";
38
38
  import {
39
39
  __name
40
40
  } from "./chunk-ZVVMGPBJ.js";
41
41
 
42
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/runs/run.js
42
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/runs/run.js
43
43
  import { randomUUID } from "node:crypto";
44
44
  import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
45
45
  import { userInfo } from "node:os";
46
46
  import { join, sep } from "node:path";
47
47
 
48
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
48
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
49
49
  var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
50
50
  var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
51
51
  var renamed = /* @__PURE__ */ __name((record, name) => Object.fromEntries(Object.entries(record).map(([key, value]) => [name(key), value])), "renamed");
@@ -58,7 +58,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
58
58
  error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
59
59
  }), "snakeLogger");
60
60
 
61
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
61
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
62
62
  var diagnostic = {
63
63
  event: true,
64
64
  operation: true,
@@ -128,7 +128,7 @@ var LOG_ATTRIBUTES = [
128
128
  ...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
129
129
  ].sort();
130
130
 
131
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/runs/run.js
131
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/runs/run.js
132
132
  var KEEP_RUNS_FOR_DAYS = 30;
133
133
  var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
134
134
  var RUNS_SIZE_LIMIT_MB = 200;
@@ -481,7 +481,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
481
481
  };
482
482
  }, "metadataOf");
483
483
 
484
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/runs/scope.js
484
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/runs/scope.js
485
485
  import { AsyncLocalStorage } from "node:async_hooks";
486
486
  import { randomBytes } from "node:crypto";
487
487
  var scopes = new AsyncLocalStorage();
@@ -519,7 +519,7 @@ var attempts = new AsyncLocalStorage();
519
519
  var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
520
520
  var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
521
521
 
522
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/domain/duration.js
522
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/domain/duration.js
523
523
  var DURATION = /^(\d+)(ms|s|m|h|d)$/;
524
524
  var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
525
525
  var parseDuration = /* @__PURE__ */ __name((value, source) => {
@@ -533,7 +533,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source) => {
533
533
  return ms;
534
534
  }, "parseDuration");
535
535
 
536
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/sends/guarded.js
536
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/sends/guarded.js
537
537
  import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
538
538
  var sentIds = /* @__PURE__ */ __name((typed, message) => ({
539
539
  messageId: message.id,
@@ -639,7 +639,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled =
639
639
  }, "guardedWrite");
640
640
  var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
641
641
 
642
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/embeddings/models.js
642
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/embeddings/models.js
643
643
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
644
644
  var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
645
645
  var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
@@ -798,61 +798,54 @@ var rerankModel = /* @__PURE__ */ __name((id2) => {
798
798
  var vectorModelKey = /* @__PURE__ */ __name((model) => `local:${model.id}:${model.dims}`, "vectorModelKey");
799
799
  var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
800
800
 
801
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/images/picture/models.js
802
- import { join as join2 } from "node:path";
803
- var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
804
- var IMAGE_MODELS = [
805
- {
806
- id: "clip-b32",
807
- title: "CLIP ViT-B/32, 8-bit",
808
- languages: "English only: translate a query before searching",
809
- licence: "MIT",
810
- dims: 512,
811
- key: "local:clip-b32:512",
812
- maxTokens: 77,
813
- vision: "onnx/vision_model_quantized.onnx",
814
- text: "onnx/text_model_quantized.onnx",
815
- files: [
816
- {
817
- name: "onnx/vision_model_quantized.onnx",
818
- url: clip("onnx/vision_model_quantized.onnx"),
819
- sha256: "583fd1110a514667812fee7d684952aaf82a99b959760c8d7dca7e0ab9839299",
820
- bytes: 89117001
821
- },
822
- {
823
- name: "onnx/text_model_quantized.onnx",
824
- url: clip("onnx/text_model_quantized.onnx"),
825
- sha256: "73baab855d406190da9faa498cfedf65f15cf309f4cc7385b7b032e6d08e5c3a",
826
- bytes: 64504507
827
- },
828
- {
829
- name: "tokenizer.json",
830
- url: clip("tokenizer.json"),
831
- sha256: "f7f3b7af117d467b58374797691a6438d3e6b9e9cef800dfd5dced7f697a90cd",
832
- bytes: 2224119
833
- },
834
- {
835
- name: "tokenizer_config.json",
836
- url: clip("tokenizer_config.json"),
837
- sha256: "60ba2912bc6344c94bc16bbdec27fa1209409167b6f2fdf3cfe9e65462ea3967",
838
- bytes: 775
839
- }
840
- ]
841
- }
842
- ];
843
- var DEFAULT_IMAGE_MODEL = "clip-b32";
844
- var imageModel = /* @__PURE__ */ __name((id2) => {
845
- const found = IMAGE_MODELS.find((model) => model.id === id2);
846
- if (!found) {
847
- throw new CliError("validation_error", `no image model ${id2} \u2014 one of: ${IMAGE_MODELS.map((model) => model.id).join(", ")}`);
848
- }
849
- return found;
850
- }, "imageModel");
851
- var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("image", env), "imageModelsDirectory");
852
- var placedImage = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedImage");
853
- var isImageModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedImage(model, directory)), "isImageModelInstalled");
801
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/services/history-limits.js
802
+ var HISTORY_MAX_DAYS = 1095;
803
+ var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
804
+ var DAY_MS2 = 24 * 60 * 60 * 1e3;
805
+ var historyWindow = /* @__PURE__ */ __name((shape, limits, now) => {
806
+ const group = shape !== void 0 && shape.kind !== "dialog" && shape.kind !== "saved";
807
+ if (group && (shape.participantsCount ?? 0) > limits.groupMembersMax)
808
+ return { skip: "group_too_large", members: shape.participantsCount ?? 0 };
809
+ const days2 = group ? limits.groupDays : limits.dialogDays;
810
+ return { keepFrom: now - Math.min(days2, HISTORY_MAX_DAYS) * DAY_MS2 };
811
+ }, "historyWindow");
812
+ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now = Date.now()) => {
813
+ const skipped = /* @__PURE__ */ new Map();
814
+ if (!batch.messages?.length)
815
+ return { batch, skipped };
816
+ const named = new Map((batch.chats ?? []).map((chat) => [chat.id, chat]));
817
+ const windows = /* @__PURE__ */ new Map();
818
+ const windowOf = /* @__PURE__ */ __name((chatId) => {
819
+ if (!windows.has(chatId)) {
820
+ const chat = named.get(chatId);
821
+ const shape = chat ? { kind: chat.kind, participantsCount: chat.participantsCount ?? null } : shapes(chatId);
822
+ windows.set(chatId, included(chatId) ? void 0 : historyWindow(shape, limits, now));
823
+ }
824
+ return windows.get(chatId);
825
+ }, "windowOf");
826
+ const messages = batch.messages.filter((message) => {
827
+ const window = windowOf(message.chatId);
828
+ if (window === void 0)
829
+ return true;
830
+ const at = Date.parse(message.timestamp);
831
+ if ("keepFrom" in window && !(at < window.keepFrom))
832
+ return true;
833
+ const reason = "skip" in window ? window.skip : "older_than_window";
834
+ const held = skipped.get(message.chatId);
835
+ const iso = new Date(at).toISOString();
836
+ skipped.set(message.chatId, {
837
+ reason,
838
+ messages: (held?.messages ?? 0) + 1,
839
+ oldestAt: held && held.oldestAt < iso ? held.oldestAt : iso,
840
+ newestAt: held && held.newestAt > iso ? held.newestAt : iso,
841
+ ..."skip" in window ? { members: window.members } : { keptFrom: new Date(window.keepFrom).toISOString() }
842
+ });
843
+ return false;
844
+ });
845
+ return { batch: { ...batch, messages }, skipped };
846
+ }, "limitBatch");
854
847
 
855
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/entities/task.js
848
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/task.js
856
849
  var closeSuggestion = strictObject({
857
850
  as: picklist(["done", "dismissed"]),
858
851
  /** The agent's name. */
@@ -910,7 +903,7 @@ var task = strictObject({
910
903
  updated_at: optional(time)
911
904
  });
912
905
 
913
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/entities/agenda.js
906
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/agenda.js
914
907
  var agendaChat = strictObject({
915
908
  chat: reference,
916
909
  title: nullable(text),
@@ -980,22 +973,7 @@ var agenda = strictObject({
980
973
  unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
981
974
  });
982
975
 
983
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/entities/conversation.js
984
- var conversation = strictObject({
985
- id,
986
- chat: reference,
987
- /** The message it starts with. */
988
- first_message: reference,
989
- started_at: time,
990
- ended_at: time,
991
- messages_count: count,
992
- /** How many people wrote in it. */
993
- senders_count: count,
994
- built_at: time,
995
- rules_version: count
996
- });
997
-
998
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/entities/attachment.js
976
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/attachment.js
999
977
  var attachment = strictObject({
1000
978
  /** The message it came with, as a locator; absent inside that message. */
1001
979
  message: optional(reference),
@@ -1033,7 +1011,22 @@ var attachment = strictObject({
1033
1011
  });
1034
1012
  var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
1035
1013
 
1036
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/entities/tagging.js
1014
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/conversation.js
1015
+ var conversation = strictObject({
1016
+ id,
1017
+ chat: reference,
1018
+ /** The message it starts with. */
1019
+ first_message: reference,
1020
+ started_at: time,
1021
+ ended_at: time,
1022
+ messages_count: count,
1023
+ /** How many people wrote in it. */
1024
+ senders_count: count,
1025
+ built_at: time,
1026
+ rules_version: count
1027
+ });
1028
+
1029
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/tagging.js
1037
1030
  var tagging = strictObject({
1038
1031
  tag: text,
1039
1032
  type: picklist(TAG_TYPES),
@@ -1046,7 +1039,61 @@ var tagging = strictObject({
1046
1039
  created_at: time
1047
1040
  });
1048
1041
 
1049
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
1042
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/images/picture/models.js
1043
+ import { join as join2 } from "node:path";
1044
+ var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
1045
+ var IMAGE_MODELS = [
1046
+ {
1047
+ id: "clip-b32",
1048
+ title: "CLIP ViT-B/32, 8-bit",
1049
+ languages: "English only: translate a query before searching",
1050
+ licence: "MIT",
1051
+ dims: 512,
1052
+ key: "local:clip-b32:512",
1053
+ maxTokens: 77,
1054
+ vision: "onnx/vision_model_quantized.onnx",
1055
+ text: "onnx/text_model_quantized.onnx",
1056
+ files: [
1057
+ {
1058
+ name: "onnx/vision_model_quantized.onnx",
1059
+ url: clip("onnx/vision_model_quantized.onnx"),
1060
+ sha256: "583fd1110a514667812fee7d684952aaf82a99b959760c8d7dca7e0ab9839299",
1061
+ bytes: 89117001
1062
+ },
1063
+ {
1064
+ name: "onnx/text_model_quantized.onnx",
1065
+ url: clip("onnx/text_model_quantized.onnx"),
1066
+ sha256: "73baab855d406190da9faa498cfedf65f15cf309f4cc7385b7b032e6d08e5c3a",
1067
+ bytes: 64504507
1068
+ },
1069
+ {
1070
+ name: "tokenizer.json",
1071
+ url: clip("tokenizer.json"),
1072
+ sha256: "f7f3b7af117d467b58374797691a6438d3e6b9e9cef800dfd5dced7f697a90cd",
1073
+ bytes: 2224119
1074
+ },
1075
+ {
1076
+ name: "tokenizer_config.json",
1077
+ url: clip("tokenizer_config.json"),
1078
+ sha256: "60ba2912bc6344c94bc16bbdec27fa1209409167b6f2fdf3cfe9e65462ea3967",
1079
+ bytes: 775
1080
+ }
1081
+ ]
1082
+ }
1083
+ ];
1084
+ var DEFAULT_IMAGE_MODEL = "clip-b32";
1085
+ var imageModel = /* @__PURE__ */ __name((id2) => {
1086
+ const found = IMAGE_MODELS.find((model) => model.id === id2);
1087
+ if (!found) {
1088
+ throw new CliError("validation_error", `no image model ${id2} \u2014 one of: ${IMAGE_MODELS.map((model) => model.id).join(", ")}`);
1089
+ }
1090
+ return found;
1091
+ }, "imageModel");
1092
+ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("image", env), "imageModelsDirectory");
1093
+ var placedImage = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedImage");
1094
+ var isImageModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedImage(model, directory)), "isImageModelInstalled");
1095
+
1096
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
1050
1097
  var WEIGHTS = {
1051
1098
  bot: 3,
1052
1099
  scam: 3,
@@ -1113,20 +1160,24 @@ export {
1113
1160
  rerankModel,
1114
1161
  vectorModelKey,
1115
1162
  meaningFloor,
1116
- IMAGE_MODELS,
1117
- DEFAULT_IMAGE_MODEL,
1118
- imageModel,
1119
- imageModelsDirectory,
1120
- placedImage,
1121
- isImageModelInstalled,
1122
- WEIGHTS,
1123
- LINK,
1124
- oddName,
1163
+ HISTORY_MAX_DAYS,
1164
+ DEFAULT_HISTORY_LIMITS,
1165
+ historyWindow,
1166
+ limitBatch,
1125
1167
  closeSuggestion,
1126
1168
  task,
1127
1169
  agenda,
1128
- conversation,
1129
1170
  attachment,
1130
1171
  hitFile,
1131
- tagging
1172
+ WEIGHTS,
1173
+ LINK,
1174
+ oddName,
1175
+ conversation,
1176
+ tagging,
1177
+ IMAGE_MODELS,
1178
+ DEFAULT_IMAGE_MODEL,
1179
+ imageModel,
1180
+ imageModelsDirectory,
1181
+ placedImage,
1182
+ isImageModelInstalled
1132
1183
  };
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-7NDSBTKR.js";
5
+ } from "./chunk-JF7ZEUXU.js";
6
6
  import {
7
7
  importFrom
8
8
  } from "./chunk-Y5E2WNWB.js";
@@ -10,10 +10,10 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/speech/recognize.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/speech/recognize.js
14
14
  import { createRequire } from "node:module";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
17
17
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
18
18
  var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
19
19
  const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
70
70
  throw invalid();
71
71
  }, "checkOggDuration");
72
72
 
73
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/speech/recognize.js
73
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/speech/recognize.js
74
74
  var SAMPLE_RATE = 16e3;
75
75
  var LEAD = SAMPLE_RATE / 2;
76
76
  var toModelRate = /* @__PURE__ */ __name((samples, rate) => {