@wirecat/mail-cli 0.23.1 → 0.25.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 (117) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/bin/mail.js +2 -2
  3. package/dist/bundle/{all-profiles-FJHJCGRU.js → all-profiles-QEV2PSOR.js} +11 -11
  4. package/dist/bundle/{anthropic-AFL7NKVZ.js → anthropic-5NKQXIHM.js} +28 -12
  5. package/dist/bundle/{app-server-WKCBJMHI.js → app-server-G2CJNT4R.js} +62 -50
  6. package/dist/bundle/{bun-HQATAQJQ.js → bun-6HBYWQIX.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-4ECAV7OU.js → bun-sqlite-DXIQ7BVR.js} +9 -5
  8. package/dist/bundle/{chunk-MUDHCYN4.js → chunk-37F6QYTO.js} +6 -6
  9. package/dist/bundle/{chunk-NMGF3UOZ.js → chunk-3XVR2ROR.js} +50 -46
  10. package/dist/bundle/{chunk-QUKD5SO2.js → chunk-434YOD6A.js} +4 -4
  11. package/dist/bundle/{chunk-7SWWVDEZ.js → chunk-4W4EVVL4.js} +61 -21
  12. package/dist/bundle/{chunk-CCYHBNRL.js → chunk-5QYK3LWS.js} +326 -56
  13. package/dist/bundle/{chunk-7YRKUEYE.js → chunk-5ZYFV6FD.js} +694 -228
  14. package/dist/bundle/chunk-7GLJSJ7M.js +16 -0
  15. package/dist/bundle/{chunk-NOA6E6MM.js → chunk-A6BPOX5O.js} +38841 -24161
  16. package/dist/bundle/{chunk-34743C4C.js → chunk-ADKMBXY4.js} +1 -1
  17. package/dist/bundle/{chunk-2HXHAFRP.js → chunk-B7SWTH5O.js} +2 -2
  18. package/dist/bundle/{chunk-NKBAZ4VC.js → chunk-BC7PFQL7.js} +2 -2
  19. package/dist/bundle/{chunk-ROKTS7WM.js → chunk-CBYBZCQP.js} +1 -1
  20. package/dist/bundle/chunk-CIWWNBVW.js +188 -0
  21. package/dist/bundle/{chunk-SBGXKM4U.js → chunk-DIA56CS7.js} +8 -7
  22. package/dist/bundle/{chunk-VYHIX3OP.js → chunk-EXVY76VO.js} +61 -607
  23. package/dist/bundle/{chunk-BVJQBAGL.js → chunk-FZZD4AFY.js} +14 -14
  24. package/dist/bundle/{chunk-VFKX5UMJ.js → chunk-G5LHHAW2.js} +6 -6
  25. package/dist/bundle/{chunk-QV3M2MHG.js → chunk-GJRYZXBN.js} +13 -136
  26. package/dist/bundle/{chunk-GJNFNC76.js → chunk-GY4XCLCO.js} +10 -15
  27. package/dist/bundle/{chunk-V7CFZ773.js → chunk-HEIDAHRC.js} +2 -2
  28. package/dist/bundle/{chunk-AGNAT7CM.js → chunk-HEYVMAAQ.js} +2 -2
  29. package/dist/bundle/{chunk-HOKGIYUO.js → chunk-HJSJBNCJ.js} +119 -9
  30. package/dist/bundle/{chunk-KKGX7JMX.js → chunk-HLXVUMZJ.js} +2 -2
  31. package/dist/bundle/{chunk-OU5CWCG2.js → chunk-IACWKZWS.js} +1 -1
  32. package/dist/bundle/{chunk-QR7JZM3D.js → chunk-IXO4SCKE.js} +1 -1
  33. package/dist/bundle/{chunk-GOMJNH56.js → chunk-IZOYW4Z4.js} +32 -8
  34. package/dist/bundle/{chunk-WN4HP7IZ.js → chunk-J4OYK4WL.js} +14 -14
  35. package/dist/bundle/{chunk-76RTQYJQ.js → chunk-JG4MNYG2.js} +1 -1
  36. package/dist/bundle/{chunk-VAMCRP47.js → chunk-K2OGF7KC.js} +2 -2
  37. package/dist/bundle/chunk-K6HR6HCO.js +32 -0
  38. package/dist/bundle/{chunk-B6QMMRIM.js → chunk-KFB2X6KE.js} +1530 -1525
  39. package/dist/bundle/{chunk-3UFD76IR.js → chunk-KK4HD3SI.js} +6 -6
  40. package/dist/bundle/{chunk-3QVGB2CI.js → chunk-L4QVOEOB.js} +4 -4
  41. package/dist/bundle/chunk-LGZPKKBN.js +53 -0
  42. package/dist/bundle/chunk-LVGX7VTD.js +138 -0
  43. package/dist/bundle/chunk-MBFPFWCO.js +1243 -0
  44. package/dist/bundle/{chunk-3DQYO7FB.js → chunk-MCPOZNWG.js} +1 -1
  45. package/dist/bundle/{chunk-SR3ADLGX.js → chunk-MWGH3M46.js} +3 -3
  46. package/dist/bundle/{chunk-OJCUSHZG.js → chunk-ND5H5ADM.js} +4 -4
  47. package/dist/bundle/chunk-NMZQTYKJ.js +18 -0
  48. package/dist/bundle/{chunk-4YJJQNNJ.js → chunk-OLKCJBZY.js} +5 -5
  49. package/dist/bundle/{chunk-E7ZVKQHG.js → chunk-OLLIWNFG.js} +3 -3
  50. package/dist/bundle/{chunk-R5MYOLQP.js → chunk-P6GXNT7Z.js} +13 -13
  51. package/dist/bundle/{chunk-M7RGG3UU.js → chunk-PGC5TRH6.js} +3 -3
  52. package/dist/bundle/{chunk-3OZKDC6Y.js → chunk-PHHH2NQP.js} +15 -9
  53. package/dist/bundle/{chunk-S5OTP7XS.js → chunk-PP3YOAWG.js} +3 -3
  54. package/dist/bundle/{chunk-4IFX4HV2.js → chunk-PQMJ5BXH.js} +4 -4
  55. package/dist/bundle/{chunk-ZXIPJF3Y.js → chunk-QB3DP2TN.js} +2 -2
  56. package/dist/bundle/{chunk-4IWJARFA.js → chunk-QQUY4MZY.js} +1 -1
  57. package/dist/bundle/{chunk-UHC5I3JV.js → chunk-RX5CJ55S.js} +1 -1
  58. package/dist/bundle/{chunk-CYQVWITQ.js → chunk-S2QRAKQI.js} +99 -42
  59. package/dist/bundle/{chunk-V3TDQUXD.js → chunk-SMTBV62X.js} +44 -60
  60. package/dist/bundle/{chunk-SNTLN2QT.js → chunk-T27IMG6X.js} +3 -1
  61. package/dist/bundle/{chunk-LLYVBO3R.js → chunk-TY644DKQ.js} +19 -19
  62. package/dist/bundle/{chunk-R554W7ZO.js → chunk-U6IQ6YQ2.js} +2 -2
  63. package/dist/bundle/{chunk-MBKNL5TX.js → chunk-VFU7PVPQ.js} +373 -133
  64. package/dist/bundle/{chunk-UMXVQIGD.js → chunk-VL6H2BND.js} +377 -12
  65. package/dist/bundle/{chunk-DALBYUPC.js → chunk-VUBZFMGP.js} +2 -2
  66. package/dist/bundle/{chunk-VYIIX6VN.js → chunk-WOAYHCM2.js} +1 -1
  67. package/dist/bundle/{chunk-LQDMUMA2.js → chunk-WX6OYVCH.js} +5370 -3700
  68. package/dist/bundle/chunk-XMDEM6BZ.js +2094 -0
  69. package/dist/bundle/{chunk-CUOCDJFI.js → chunk-XQYKIZMG.js} +13 -9
  70. package/dist/bundle/{chunk-PMIKRELC.js → chunk-YNS2YVUR.js} +69 -6
  71. package/dist/bundle/{chunk-CBWA2T3N.js → chunk-Z5T6OW3V.js} +14 -5
  72. package/dist/bundle/command-contract-XSW2Q33S.js +36 -0
  73. package/dist/bundle/command-server-entry-XMSSY5ID.js +165 -0
  74. package/dist/bundle/{decode-QXKTMOTH.js → decode-RYGB4PGT.js} +5 -5
  75. package/dist/bundle/{dispatch-G4CYFWQ2.js → dispatch-PLQOIZG5.js} +10 -10
  76. package/dist/bundle/{dist-5FX36DAW.js → dist-GY2AQETI.js} +79 -46
  77. package/dist/bundle/{echarts-HHUM43TU.js → echarts-7CM2MCMW.js} +2 -2
  78. package/dist/bundle/{embed-SRZSDZVI.js → embed-FTBDPOPT.js} +6 -6
  79. package/dist/bundle/{embedder-WZIZCWLX.js → embedder-B43WGNBD.js} +9 -9
  80. package/dist/bundle/{failure-FFPK2WYB.js → failure-XP5QYV2T.js} +2 -2
  81. package/dist/bundle/{first-run-6DVWZ3JQ.js → first-run-XIIUARNM.js} +12 -11
  82. package/dist/bundle/first-screen-Z7HC6PQU.js +34 -0
  83. package/dist/bundle/{instructions-UWONE6UT.js → instructions-R7OHVAWH.js} +1 -1
  84. package/dist/bundle/mail.js +37 -13
  85. package/dist/bundle/{mcp-CFVG2OUS.js → mcp-7KQUJNFN.js} +2 -2
  86. package/dist/bundle/{node-HLAOYJDB.js → node-3N2JGZ7V.js} +2 -2
  87. package/dist/bundle/{node-sqlite-RO66I7W6.js → node-sqlite-WFJXW3CZ.js} +10 -6
  88. package/dist/bundle/{oauth-VNLB2TET.js → oauth-SVJLQTWV.js} +7 -7
  89. package/dist/bundle/{open-QQSG343L.js → open-ZDONVKSX.js} +5 -5
  90. package/dist/bundle/{openai-JTFC7OGF.js → openai-XVEW6XOU.js} +21 -38
  91. package/dist/bundle/{process-3CZAXR6P.js → process-YAHHUFR5.js} +1 -1
  92. package/dist/bundle/{program-XTOS4RAM.js → program-HU2UVMJE.js} +7071 -5421
  93. package/dist/bundle/{prompt-HGQ6GPYL.js → prompt-JAJ2CUJI.js} +5 -5
  94. package/dist/bundle/{recognize-2SHMNEIZ.js → recognize-UFBWUNFR.js} +4 -4
  95. package/dist/bundle/{remote-GBQC3433.js → remote-2GFOVLCR.js} +9 -7
  96. package/dist/bundle/{rerank-FQHQXFNR.js → rerank-BGPSMXTL.js} +7 -7
  97. package/dist/bundle/{serve-THU67QUZ.js → serve-CB3XJTH3.js} +9 -9
  98. package/dist/bundle/server-34GEF22R.js +68 -0
  99. package/dist/bundle/{server-LOT3CLYX.js → server-M7FQY7TX.js} +42 -40
  100. package/dist/bundle/{sqlite-runtime-NOOUMBC4.js → sqlite-runtime-AEV6PGDR.js} +6 -6
  101. package/dist/bundle/{state-KSKZCV2U.js → state-YLBEQLBI.js} +6 -6
  102. package/dist/bundle/{store-BAKSHTKF.js → store-CDUL3HKK.js} +19 -16
  103. package/dist/bundle/{store-OHNZOQ7U.js → store-EKWKY6GG.js} +49 -20
  104. package/dist/bundle/store-maintenance-command-XH2JUM5F.js +58 -0
  105. package/dist/config.d.ts +4 -0
  106. package/dist/config.d.ts.map +1 -1
  107. package/dist/version.d.ts +1 -1
  108. package/dist/version.js +1 -1
  109. package/package.json +3 -3
  110. package/dist/bundle/chunk-5UKBUI4I.js +0 -35
  111. package/dist/bundle/chunk-EXPR6QAX.js +0 -394
  112. package/dist/bundle/chunk-FWFNUJQD.js +0 -12172
  113. package/dist/bundle/command-contract-IIHBNF7J.js +0 -35
  114. package/dist/bundle/first-screen-SRZ7NYHZ.js +0 -33
  115. package/dist/bundle/server-VKMUX7ZT.js +0 -65
  116. package/dist/bundle/store-maintenance-command-ROQHJVEA.js +0 -54
  117. /package/dist/bundle/{chunk-QZLK2ISN.js → chunk-YVNHQFLC.js} +0 -0
@@ -4,10 +4,13 @@ import {
4
4
  DEFAULT_LINK_CONFIG,
5
5
  LINK_VERSION,
6
6
  PASTE_QR,
7
+ TABLE_RECORD_TYPES,
8
+ TableError,
7
9
  atTerminal,
8
10
  bareCheck,
9
11
  checkWords,
10
12
  countedPoll,
13
+ envelopeOfCsv,
11
14
  formatLink,
12
15
  linkConfigOf,
13
16
  linkFor,
@@ -17,91 +20,81 @@ import {
17
20
  parseMarkdown,
18
21
  parseMarkdownSpans,
19
22
  plainQr,
23
+ recordColumns,
24
+ recordTemplate,
20
25
  refsForLink,
21
26
  terminalQr
22
- } from "./chunk-UMXVQIGD.js";
27
+ } from "./chunk-VL6H2BND.js";
23
28
  import {
24
29
  DETAILS,
25
30
  REASONS,
26
31
  failureContext
27
- } from "./chunk-HOKGIYUO.js";
32
+ } from "./chunk-HJSJBNCJ.js";
28
33
  import {
29
34
  pollLines,
30
35
  renderMessage,
31
36
  renderMessages
32
- } from "./chunk-AGNAT7CM.js";
37
+ } from "./chunk-HEYVMAAQ.js";
33
38
  import {
34
39
  ModerationRules,
35
40
  act,
36
41
  defaultRules,
37
42
  envelopeOfVcard,
38
- foldName,
39
- isId,
40
43
  isVcard,
41
44
  judge,
42
45
  moderationPathFor,
43
- pickChat,
44
- pickPerson,
45
46
  validateFormattedText
46
- } from "./chunk-QV3M2MHG.js";
47
+ } from "./chunk-GJRYZXBN.js";
47
48
  import {
48
49
  readSecret
49
- } from "./chunk-S5OTP7XS.js";
50
- import "./chunk-ZXIPJF3Y.js";
50
+ } from "./chunk-PP3YOAWG.js";
51
+ import "./chunk-QB3DP2TN.js";
51
52
  import "./chunk-HTQTIKWP.js";
52
53
  import {
53
54
  resolveOutput
54
- } from "./chunk-SBGXKM4U.js";
55
+ } from "./chunk-DIA56CS7.js";
55
56
  import {
56
- ADDED_ACCOUNT,
57
- ADDED_PROVIDER,
58
57
  COUNTER_FIELDS,
59
- CRM_KINDS,
60
- CRM_OPENS,
61
- FOLDER_PROVIDERS,
62
- KINDS,
63
- PROVIDERS,
64
58
  RECORDS_ENVELOPE_SCHEMA,
65
59
  RECORDS_SCHEMA_VERSION,
66
60
  RECORD_ENTITY_TYPES,
67
61
  RECORD_OPERATIONS,
68
- REF_KINDS,
69
- UNKNOWN_PROVIDER,
70
- canonicalReference,
62
+ ROLE_ADDRESS_WORDS,
63
+ ROLE_LABELS,
71
64
  counterValue,
65
+ displayName,
72
66
  envelopeOfJsonl,
73
67
  envelopeOfText,
74
- formatLocator,
75
- formatReference,
76
- holdsKind,
77
- isFolderProvider,
78
- isItemKind,
79
- isKind,
80
- isLocator,
81
- kindIn,
82
- kindOf,
83
- kindsIn,
84
- looksLikeReference,
68
+ foldName,
69
+ isId,
70
+ isNoReplyAddress,
71
+ isRoleAddress,
72
+ nameKey,
85
73
  observedCounters,
86
- parseLocator,
87
- parseReference,
88
- providerNamed,
89
- providers,
90
- rankingOptions,
91
- useProviders
92
- } from "./chunk-FWFNUJQD.js";
74
+ pickChat,
75
+ pickPerson,
76
+ rankingOptions
77
+ } from "./chunk-XMDEM6BZ.js";
93
78
  import {
79
+ ADDED_ACCOUNT,
80
+ ADDED_PROVIDER,
94
81
  CATALOG_KINDS,
95
82
  CONTRACT_KINDS,
83
+ CONTRACT_ROLES,
96
84
  CONTRACT_STATUSES,
85
+ CRM_ACTIVITY_KINDS,
86
+ CRM_KINDS,
87
+ CRM_OPENS,
97
88
  CURRENCY_SCALES,
98
89
  DEAL_KINDS,
99
90
  DEAL_ROLES,
100
91
  DEAL_STATUSES,
101
92
  ENGAGEMENT_LEVELS,
102
93
  FINANCE_REVIEWS,
94
+ FOLDER_PROVIDERS,
103
95
  INVOICE_DIRECTIONS,
104
96
  INVOICE_STATUSES,
97
+ KINDS,
105
98
  MONEY_DIRECTIONS,
106
99
  ORDER_DIRECTIONS,
107
100
  ORDER_PURPOSES,
@@ -109,6 +102,9 @@ import {
109
102
  ORGANIZATION_ROLES,
110
103
  PERIOD_UNITS,
111
104
  PROJECT_ROLES,
105
+ PROVIDERS,
106
+ REF_KINDS,
107
+ RELATED_ROLES,
112
108
  RELATIONS,
113
109
  RELATION_KINDS,
114
110
  ROLE_LISTS,
@@ -117,43 +113,66 @@ import {
117
113
  SUBSCRIPTION_STATUSES,
118
114
  TAG_TYPES,
119
115
  TRANSACTION_STATUSES,
116
+ UNKNOWN_PROVIDER,
120
117
  WALLET_KINDS,
121
118
  byEngagement,
122
119
  canonicalMeetingReference,
120
+ canonicalReference,
123
121
  currencyOf,
124
122
  engagementRank,
125
123
  formatDecimal,
124
+ formatLocator,
126
125
  formatMeetingReference,
126
+ formatReference,
127
+ holdsKind,
127
128
  intervalOf,
128
129
  intervalText,
129
130
  inverseOf,
131
+ isCrmUserId,
132
+ isFolderProvider,
133
+ isItemKind,
134
+ isKind,
135
+ isLocator,
130
136
  isUsable,
137
+ kindIn,
138
+ kindOf,
139
+ kindsIn,
140
+ looksLikeReference,
131
141
  minorUnits,
132
142
  moneyLabel,
133
143
  moneyOf,
144
+ normalCrmUserId,
134
145
  normalizeTag,
146
+ parseLocator,
135
147
  parseMeetingReference,
148
+ parseReference,
149
+ providerNamed,
150
+ providers,
136
151
  rolesOf,
137
152
  signedMinorUnits,
138
153
  standingOf,
139
- usableLink
140
- } from "./chunk-7YRKUEYE.js";
141
- import "./chunk-ROKTS7WM.js";
142
- import "./chunk-QZLK2ISN.js";
143
- import "./chunk-LLYVBO3R.js";
144
- import "./chunk-GOMJNH56.js";
154
+ usableLink,
155
+ useProviders
156
+ } from "./chunk-5ZYFV6FD.js";
157
+ import "./chunk-CBYBZCQP.js";
158
+ import "./chunk-7GLJSJ7M.js";
159
+ import "./chunk-YVNHQFLC.js";
160
+ import "./chunk-TY644DKQ.js";
161
+ import "./chunk-IZOYW4Z4.js";
145
162
  import "./chunk-Y5E2WNWB.js";
146
- import "./chunk-DALBYUPC.js";
163
+ import "./chunk-VUBZFMGP.js";
147
164
  import "./chunk-ZVVMGPBJ.js";
148
165
  export {
149
166
  ADDED_ACCOUNT,
150
167
  ADDED_PROVIDER,
151
168
  CATALOG_KINDS,
152
169
  CONTRACT_KINDS,
170
+ CONTRACT_ROLES,
153
171
  CONTRACT_STATUSES,
154
172
  DETAILS as CORE_DETAILS,
155
173
  REASONS as CORE_REASONS,
156
174
  COUNTER_FIELDS,
175
+ CRM_ACTIVITY_KINDS,
157
176
  CRM_KINDS,
158
177
  CRM_OPENS,
159
178
  CURRENCY_SCALES,
@@ -183,14 +202,19 @@ export {
183
202
  RECORD_ENTITY_TYPES,
184
203
  RECORD_OPERATIONS,
185
204
  REF_KINDS,
205
+ RELATED_ROLES,
186
206
  RELATIONS,
187
207
  RELATION_KINDS,
208
+ ROLE_ADDRESS_WORDS,
209
+ ROLE_LABELS,
188
210
  ROLE_LISTS,
189
211
  STAGE_OUTCOMES,
190
212
  STANDINGS,
191
213
  SUBSCRIPTION_STATUSES,
214
+ TABLE_RECORD_TYPES,
192
215
  TAG_TYPES,
193
216
  TRANSACTION_STATUSES,
217
+ TableError,
194
218
  UNKNOWN_PROVIDER,
195
219
  WALLET_KINDS,
196
220
  act,
@@ -204,7 +228,9 @@ export {
204
228
  counterValue,
205
229
  currencyOf,
206
230
  defaultRules,
231
+ displayName,
207
232
  engagementRank,
233
+ envelopeOfCsv,
208
234
  envelopeOfJsonl,
209
235
  envelopeOfText,
210
236
  envelopeOfVcard,
@@ -219,11 +245,14 @@ export {
219
245
  intervalOf,
220
246
  intervalText,
221
247
  inverseOf,
248
+ isCrmUserId,
222
249
  isFolderProvider,
223
250
  isId,
224
251
  isItemKind,
225
252
  isKind,
226
253
  isLocator,
254
+ isNoReplyAddress,
255
+ isRoleAddress,
227
256
  isUsable,
228
257
  isVcard,
229
258
  judge,
@@ -239,6 +268,8 @@ export {
239
268
  moderationPathFor,
240
269
  moneyLabel,
241
270
  moneyOf,
271
+ nameKey,
272
+ normalCrmUserId,
242
273
  normalizeTag,
243
274
  observedCounters,
244
275
  parseLink,
@@ -255,6 +286,8 @@ export {
255
286
  providers,
256
287
  rankingOptions,
257
288
  readSecret,
289
+ recordColumns,
290
+ recordTemplate,
258
291
  refsForLink,
259
292
  renderMessage,
260
293
  renderMessages,
@@ -42399,7 +42399,7 @@ function install11(registers) {
42399
42399
  }
42400
42400
  __name(install11, "install");
42401
42401
 
42402
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/charts/echarts-option.js
42402
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/charts/echarts-option.js
42403
42403
  var echartsOption = /* @__PURE__ */ __name((chart) => ({
42404
42404
  animation: false,
42405
42405
  backgroundColor: "#111827",
@@ -42447,7 +42447,7 @@ var echartsOption = /* @__PURE__ */ __name((chart) => ({
42447
42447
  } : {}
42448
42448
  }), "echartsOption");
42449
42449
 
42450
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/charts/echarts.js
42450
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/charts/echarts.js
42451
42451
  use([install2, install, install6, install5, install10, install7, install11]);
42452
42452
  var echartsRenderer = {
42453
42453
  render: /* @__PURE__ */ __name(async (chart, size) => {
@@ -13,13 +13,13 @@ import {
13
13
  truncated,
14
14
  unit,
15
15
  warmEmbedders
16
- } from "./chunk-VFKX5UMJ.js";
17
- import "./chunk-QUKD5SO2.js";
18
- import "./chunk-5UKBUI4I.js";
19
- import "./chunk-LLYVBO3R.js";
20
- import "./chunk-GOMJNH56.js";
16
+ } from "./chunk-G5LHHAW2.js";
17
+ import "./chunk-434YOD6A.js";
18
+ import "./chunk-LGZPKKBN.js";
19
+ import "./chunk-TY644DKQ.js";
20
+ import "./chunk-IZOYW4Z4.js";
21
21
  import "./chunk-Y5E2WNWB.js";
22
- import "./chunk-DALBYUPC.js";
22
+ import "./chunk-VUBZFMGP.js";
23
23
  import "./chunk-ZVVMGPBJ.js";
24
24
  export {
25
25
  WARM_IDLE_MS,
@@ -4,26 +4,26 @@ import {
4
4
  openSession,
5
5
  truncated,
6
6
  unit
7
- } from "./chunk-VFKX5UMJ.js";
8
- import "./chunk-QUKD5SO2.js";
9
- import "./chunk-5UKBUI4I.js";
10
- import "./chunk-LLYVBO3R.js";
11
- import "./chunk-GOMJNH56.js";
7
+ } from "./chunk-G5LHHAW2.js";
8
+ import "./chunk-434YOD6A.js";
9
+ import "./chunk-LGZPKKBN.js";
10
+ import "./chunk-TY644DKQ.js";
11
+ import "./chunk-IZOYW4Z4.js";
12
12
  import {
13
13
  importFrom
14
14
  } from "./chunk-Y5E2WNWB.js";
15
15
  import {
16
16
  CliError
17
- } from "./chunk-DALBYUPC.js";
17
+ } from "./chunk-VUBZFMGP.js";
18
18
  import {
19
19
  __name
20
20
  } from "./chunk-ZVVMGPBJ.js";
21
21
 
22
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
22
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
23
23
  import { readFileSync } from "node:fs";
24
24
  import { join } from "node:path";
25
25
 
26
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/images/picture/preprocess.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/images/picture/preprocess.js
27
27
  var SIZE = 224;
28
28
  var MEAN = [0.48145466, 0.4578275, 0.40821073];
29
29
  var STD = [0.26862954, 0.26130258, 0.27577711];
@@ -62,7 +62,7 @@ var preprocess = /* @__PURE__ */ __name(async (bytes, load = importCanvas) => {
62
62
  return pixels;
63
63
  }, "preprocess");
64
64
 
65
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
65
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
66
66
  var openPictureEmbedder = /* @__PURE__ */ __name(async (model, directory, { threads = 4, canvas } = {}) => {
67
67
  const { Tokenizer } = await importFrom(new URL("images/picture/embedder.js", import.meta.resolve("@wirecat/cli-core")).href, "@huggingface/tokenizers");
68
68
  const path = /* @__PURE__ */ __name((name) => join(directory, model.id, name), "path");
@@ -9,8 +9,8 @@ import {
9
9
  mcpErrorResult,
10
10
  renderError,
11
11
  retryOf
12
- } from "./chunk-GOMJNH56.js";
13
- import "./chunk-DALBYUPC.js";
12
+ } from "./chunk-IZOYW4Z4.js";
13
+ import "./chunk-VUBZFMGP.js";
14
14
  import "./chunk-ZVVMGPBJ.js";
15
15
  export {
16
16
  catchCrashes,
@@ -5,19 +5,20 @@ import {
5
5
  asksAtStart,
6
6
  setupAtStart,
7
7
  systemLanguage
8
- } from "./chunk-WN4HP7IZ.js";
9
- import "./chunk-3QVGB2CI.js";
10
- import "./chunk-3DQYO7FB.js";
11
- import "./chunk-SR3ADLGX.js";
12
- import "./chunk-GJNFNC76.js";
13
- import "./chunk-3UFD76IR.js";
14
- import "./chunk-5UKBUI4I.js";
15
- import "./chunk-UHC5I3JV.js";
8
+ } from "./chunk-J4OYK4WL.js";
9
+ import "./chunk-L4QVOEOB.js";
10
+ import "./chunk-MCPOZNWG.js";
11
+ import "./chunk-MWGH3M46.js";
12
+ import "./chunk-GY4XCLCO.js";
13
+ import "./chunk-7GLJSJ7M.js";
14
+ import "./chunk-KK4HD3SI.js";
15
+ import "./chunk-RX5CJ55S.js";
16
16
  import "./chunk-D72URWJE.js";
17
- import "./chunk-LLYVBO3R.js";
18
- import "./chunk-GOMJNH56.js";
17
+ import "./chunk-LGZPKKBN.js";
18
+ import "./chunk-TY644DKQ.js";
19
+ import "./chunk-IZOYW4Z4.js";
19
20
  import "./chunk-Y5E2WNWB.js";
20
- import "./chunk-DALBYUPC.js";
21
+ import "./chunk-VUBZFMGP.js";
21
22
  import "./chunk-ZVVMGPBJ.js";
22
23
  export {
23
24
  askSetupQuestions,
@@ -0,0 +1,34 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ WIRECAT_TOOLS,
5
+ firstScreen,
6
+ installHelp
7
+ } from "./chunk-PHHH2NQP.js";
8
+ import "./chunk-OLKCJBZY.js";
9
+ import "./chunk-HTQTIKWP.js";
10
+ import "./chunk-KFB2X6KE.js";
11
+ import "./chunk-DIA56CS7.js";
12
+ import "./chunk-XQYKIZMG.js";
13
+ import "./chunk-IACWKZWS.js";
14
+ import "./chunk-MWGH3M46.js";
15
+ import "./chunk-OLLIWNFG.js";
16
+ import "./chunk-MBFPFWCO.js";
17
+ import "./chunk-5ZYFV6FD.js";
18
+ import "./chunk-U6IQ6YQ2.js";
19
+ import "./chunk-CBYBZCQP.js";
20
+ import "./chunk-K6HR6HCO.js";
21
+ import "./chunk-KK4HD3SI.js";
22
+ import "./chunk-434YOD6A.js";
23
+ import "./chunk-YVNHQFLC.js";
24
+ import "./chunk-LGZPKKBN.js";
25
+ import "./chunk-TY644DKQ.js";
26
+ import "./chunk-IZOYW4Z4.js";
27
+ import "./chunk-Y5E2WNWB.js";
28
+ import "./chunk-VUBZFMGP.js";
29
+ import "./chunk-ZVVMGPBJ.js";
30
+ export {
31
+ WIRECAT_TOOLS,
32
+ firstScreen,
33
+ installHelp
34
+ };
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  appInstructions,
5
5
  instructions
6
- } from "./chunk-VYIIX6VN.js";
6
+ } from "./chunk-WOAYHCM2.js";
7
7
  import "./chunk-ZVVMGPBJ.js";
8
8
  export {
9
9
  appInstructions,
@@ -3,11 +3,11 @@ import { createRequire as __bundleRequire } from "node:module";
3
3
  const require = __bundleRequire(import.meta.url);
4
4
  import {
5
5
  IDENTITY
6
- } from "./chunk-NKBAZ4VC.js";
6
+ } from "./chunk-BC7PFQL7.js";
7
7
  import {
8
8
  installerOf
9
- } from "./chunk-UHC5I3JV.js";
10
- import "./chunk-QZLK2ISN.js";
9
+ } from "./chunk-RX5CJ55S.js";
10
+ import "./chunk-YVNHQFLC.js";
11
11
  import {
12
12
  DESCRIBE_FLAG,
13
13
  DISPATCH_FLAG,
@@ -18,13 +18,13 @@ import {
18
18
  fileState,
19
19
  shimFiles,
20
20
  writeShim
21
- } from "./chunk-7SWWVDEZ.js";
22
- import "./chunk-LLYVBO3R.js";
21
+ } from "./chunk-4W4EVVL4.js";
22
+ import "./chunk-TY644DKQ.js";
23
23
  import {
24
24
  catchCrashes
25
- } from "./chunk-GOMJNH56.js";
25
+ } from "./chunk-IZOYW4Z4.js";
26
26
  import "./chunk-Y5E2WNWB.js";
27
- import "./chunk-DALBYUPC.js";
27
+ import "./chunk-VUBZFMGP.js";
28
28
  import {
29
29
  __name
30
30
  } from "./chunk-ZVVMGPBJ.js";
@@ -32,10 +32,13 @@ import {
32
32
  // dist/bin/mail.js
33
33
  import { enableCompileCache } from "node:module";
34
34
 
35
- // node_modules/.pnpm/@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/start.js
35
+ // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/start.js
36
+ import { createHash } from "node:crypto";
37
+ import { existsSync, readFileSync as readFileSync2, realpathSync } from "node:fs";
38
+ import { dirname as dirname2, join as join2 } from "node:path";
36
39
  import { fileURLToPath } from "node:url";
37
40
 
38
- // node_modules/.pnpm/@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/launcher.js
41
+ // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/launcher.js
39
42
  import { readFileSync } from "node:fs";
40
43
  import { basename, dirname, join, resolve } from "node:path";
41
44
  var posix = /* @__PURE__ */ __name((path) => path.replaceAll("\\", "/"), "posix");
@@ -94,6 +97,8 @@ var installed = /* @__PURE__ */ __name((dir, program) => {
94
97
  var NAME = "wcat";
95
98
  var ensureLauncher = /* @__PURE__ */ __name(({ dir, program, platform }) => {
96
99
  try {
100
+ if (!exists(join(dir, program)))
101
+ return "failed";
97
102
  const mine = shimFiles("launcher", { dir, name: NAME, target: program, platform });
98
103
  const states = mine.map((file) => fileState(file.path));
99
104
  if (states.some((one) => one.state === "foreign"))
@@ -119,7 +124,7 @@ var ensureLauncher = /* @__PURE__ */ __name(({ dir, program, platform }) => {
119
124
  }
120
125
  }, "ensureLauncher");
121
126
 
122
- // node_modules/.pnpm/@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/start.js
127
+ // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/start.js
123
128
  var wcatStart = /* @__PURE__ */ __name(async (tool, io = {}) => {
124
129
  const argv = io.argv ?? process.argv;
125
130
  const env = io.env ?? process.env;
@@ -127,12 +132,12 @@ var wcatStart = /* @__PURE__ */ __name(async (tool, io = {}) => {
127
132
  const stdout = io.stdout ?? process.stdout;
128
133
  const [first, ...rest] = argv.slice(2);
129
134
  if (first === DESCRIBE_FLAG) {
130
- stdout.write(`${JSON.stringify(describeAnswer(tool))}
135
+ stdout.write(`${JSON.stringify(describeAnswer(tool, shippedManifest(argv[1])))}
131
136
  `);
132
137
  return { code: 0 };
133
138
  }
134
139
  if (first === DISPATCH_FLAG) {
135
- const { runWcat } = await import("./dispatch-G4CYFWQ2.js");
140
+ const { runWcat } = await import("./dispatch-PLQOIZG5.js");
136
141
  const code = await runWcat(rest, { env, platform, stdout, stderr: io.stderr ?? process.stderr, self: tool });
137
142
  return { code };
138
143
  }
@@ -145,6 +150,25 @@ var wcatStart = /* @__PURE__ */ __name(async (tool, io = {}) => {
145
150
  });
146
151
  return folder ? { launcher: ensureLauncher({ ...folder, platform }) } : {};
147
152
  }, "wcatStart");
153
+ var shippedManifest = /* @__PURE__ */ __name((bin) => {
154
+ if (!bin)
155
+ return void 0;
156
+ try {
157
+ for (let dir = dirname2(realpathSync(bin)); ; dir = dirname2(dir)) {
158
+ if (existsSync(join2(dir, "package.json"))) {
159
+ const bytes = readFileSync2(join2(dir, "contracts", "wirecat.json"));
160
+ const { wcat_manifest: format, desktop } = JSON.parse(bytes.toString("utf8"));
161
+ if (format !== 2 || typeof desktop !== "object" || desktop === null)
162
+ return void 0;
163
+ return { desktop, sha256: createHash("sha256").update(bytes).digest("hex") };
164
+ }
165
+ if (dirname2(dir) === dir)
166
+ return void 0;
167
+ }
168
+ } catch {
169
+ return void 0;
170
+ }
171
+ }, "shippedManifest");
148
172
 
149
173
  // dist/bin/mail.js
150
174
  enableCompileCache();
@@ -158,7 +182,7 @@ if (wcat.code !== void 0) {
158
182
  process.exitCode = wcat.code;
159
183
  } else {
160
184
  const stopCatching = catchCrashes({ cli: IDENTITY.command, interactive: process.stdout.isTTY === true });
161
- const { run } = await import("./program-XTOS4RAM.js");
185
+ const { run } = await import("./program-HU2UVMJE.js");
162
186
  try {
163
187
  process.exitCode = await run(process.argv.slice(2));
164
188
  } finally {
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  executableEnvironment,
5
5
  executableOnPath
6
- } from "./chunk-3DQYO7FB.js";
6
+ } from "./chunk-MCPOZNWG.js";
7
7
  import {
8
8
  require_cross_spawn
9
9
  } from "./chunk-D72URWJE.js";
@@ -12,7 +12,7 @@ import {
12
12
  __toESM
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // node_modules/.pnpm/@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/mcp/index.js
15
+ // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/mcp/index.js
16
16
  var import_cross_spawn = __toESM(require_cross_spawn(), 1);
17
17
  var realRun = /* @__PURE__ */ __name((file, args) => {
18
18
  const result = import_cross_spawn.default.sync(executableOnPath(file, process.env), args, {
@@ -18,12 +18,12 @@ import {
18
18
  jitCompatCheck,
19
19
  refineSqliteCodecs,
20
20
  sql
21
- } from "./chunk-QR7JZM3D.js";
21
+ } from "./chunk-IXO4SCKE.js";
22
22
  import {
23
23
  __name
24
24
  } from "./chunk-ZVVMGPBJ.js";
25
25
 
26
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/node.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/node.js
27
27
  import { DatabaseSync } from "node:sqlite";
28
28
  var nodeSQLiteCodecs = refineSqliteCodecs({
29
29
  "integer:boolean": { normalize: booleanFromInteger },
@@ -3,23 +3,27 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  loadVectorExtension,
5
5
  vectorExtension
6
- } from "./chunk-VAMCRP47.js";
6
+ } from "./chunk-K2OGF7KC.js";
7
+ import {
8
+ refuseOwnerStoreInTests
9
+ } from "./chunk-LGZPKKBN.js";
7
10
  import {
8
11
  TIME_LIMIT_FUNCTION,
9
12
  beforeTimeLimit
10
- } from "./chunk-SNTLN2QT.js";
11
- import "./chunk-LLYVBO3R.js";
12
- import "./chunk-GOMJNH56.js";
13
+ } from "./chunk-T27IMG6X.js";
14
+ import "./chunk-TY644DKQ.js";
15
+ import "./chunk-IZOYW4Z4.js";
13
16
  import "./chunk-Y5E2WNWB.js";
14
- import "./chunk-DALBYUPC.js";
17
+ import "./chunk-VUBZFMGP.js";
15
18
  import {
16
19
  __name
17
20
  } from "./chunk-ZVVMGPBJ.js";
18
21
 
19
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/store/drivers/node-sqlite.js
22
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/store/drivers/node-sqlite.js
20
23
  import { DatabaseSync } from "node:sqlite";
21
24
  var openWithNodeSqlite = /* @__PURE__ */ __name(async (path) => cacheOverNodeSqlite(await nodeClient(path)), "openWithNodeSqlite");
22
25
  var nodeClient = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
26
+ refuseOwnerStoreInTests(path);
23
27
  const extension = await vectorExtension();
24
28
  const client = new DatabaseSync(path, { readOnly, allowExtension: true });
25
29
  try {
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  ownerLogin,
5
5
  revokeAll
6
- } from "./chunk-2HXHAFRP.js";
6
+ } from "./chunk-B7SWTH5O.js";
7
7
  import "./chunk-5D4AEUVA.js";
8
- import "./chunk-4IFX4HV2.js";
9
- import "./chunk-M7RGG3UU.js";
10
- import "./chunk-OU5CWCG2.js";
11
- import "./chunk-LLYVBO3R.js";
12
- import "./chunk-GOMJNH56.js";
8
+ import "./chunk-PQMJ5BXH.js";
9
+ import "./chunk-PGC5TRH6.js";
10
+ import "./chunk-IACWKZWS.js";
11
+ import "./chunk-TY644DKQ.js";
12
+ import "./chunk-IZOYW4Z4.js";
13
13
  import "./chunk-Y5E2WNWB.js";
14
- import "./chunk-DALBYUPC.js";
14
+ import "./chunk-VUBZFMGP.js";
15
15
  import "./chunk-ZVVMGPBJ.js";
16
16
  export {
17
17
  ownerLogin,