@wirecat/mail-cli 0.13.0 → 0.14.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 (104) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +4 -0
  3. package/dist/bin/mail.js +2 -2
  4. package/dist/bundle/{all-profiles-EEOMFTKE.js → all-profiles-O7HQNZOF.js} +8 -7
  5. package/dist/bundle/{anthropic-FPSVNB3F.js → anthropic-SNA6PTVO.js} +5 -5
  6. package/dist/bundle/{app-server-3T6UVR7B.js → app-server-LBKMJMKN.js} +43 -42
  7. package/dist/bundle/{bun-MSNAKMDK.js → bun-KF5QK2YN.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-GIBBI5DV.js → bun-sqlite-2DKMM2PT.js} +4 -4
  9. package/dist/bundle/{chunk-URC4ATBD.js → chunk-2A4BAMNF.js} +4 -4
  10. package/dist/bundle/{chunk-7FCPLSSM.js → chunk-2F7D6YMB.js} +2 -2
  11. package/dist/bundle/{chunk-FVZST7ZH.js → chunk-2KVR7FF3.js} +11 -88
  12. package/dist/bundle/{chunk-Y2O3DACO.js → chunk-3EAAEF5U.js} +1 -1
  13. package/dist/bundle/{chunk-2Y3RKROM.js → chunk-3YGYB3LJ.js} +33 -6
  14. package/dist/bundle/{chunk-OHFSAYZG.js → chunk-5C74F7XX.js} +4 -4
  15. package/dist/bundle/{chunk-ZXLJ5EKZ.js → chunk-6CZQJ5XR.js} +7 -7
  16. package/dist/bundle/{chunk-3CBK26T2.js → chunk-6EZ7XGRG.js} +1 -1
  17. package/dist/bundle/{chunk-EFA7FRFJ.js → chunk-7GSE57K3.js} +2 -2
  18. package/dist/bundle/{chunk-UFWCJUGA.js → chunk-7LDC275M.js} +6 -6
  19. package/dist/bundle/{chunk-OHDDGTCH.js → chunk-AOVOIXGR.js} +9 -9
  20. package/dist/bundle/{chunk-VSHQITKC.js → chunk-B5XAETYU.js} +2 -2
  21. package/dist/bundle/chunk-BP3TZ4EY.js +91 -0
  22. package/dist/bundle/{chunk-V25TCQ3Z.js → chunk-DIP3ENSY.js} +1 -1
  23. package/dist/bundle/{chunk-WBI7J5B7.js → chunk-DPKHVBP3.js} +4 -4
  24. package/dist/bundle/{chunk-HANGU5HI.js → chunk-E7BTD4P6.js} +5 -5
  25. package/dist/bundle/{chunk-H5XCD6OG.js → chunk-ER6PJAPK.js} +2 -2
  26. package/dist/bundle/{chunk-JBLZ5XQG.js → chunk-F5SZVO3A.js} +3 -3
  27. package/dist/bundle/{chunk-3BC2XSNX.js → chunk-FTGCXIQA.js} +44 -24
  28. package/dist/bundle/{chunk-7L26RKOS.js → chunk-G53HRGTK.js} +16 -16
  29. package/dist/bundle/{chunk-H6Y2A4JA.js → chunk-H2ZURG7Q.js} +1 -1
  30. package/dist/bundle/{chunk-CJPEL2N5.js → chunk-H7OQ4YZV.js} +15 -15
  31. package/dist/bundle/{chunk-XV66LQXV.js → chunk-I62OTHDE.js} +2 -2
  32. package/dist/bundle/{chunk-CSJYZEFR.js → chunk-I7EWIIBC.js} +2 -2
  33. package/dist/bundle/{chunk-YMNF4QLY.js → chunk-IPKXRW6W.js} +22 -22
  34. package/dist/bundle/{chunk-M7JREJFC.js → chunk-IVDUR5Y4.js} +12 -0
  35. package/dist/bundle/{chunk-H3XWM2VA.js → chunk-KBFIKUCA.js} +27 -27
  36. package/dist/bundle/{chunk-7D7AKYQ2.js → chunk-KLLKDOO2.js} +2926 -1195
  37. package/dist/bundle/{chunk-UGXTDYUY.js → chunk-KQ5P5NLL.js} +1 -1
  38. package/dist/bundle/{chunk-SOCALLW5.js → chunk-M2YIJDBL.js} +5 -5
  39. package/dist/bundle/{chunk-6KDFUPBT.js → chunk-MQK2UNG4.js} +7 -7
  40. package/dist/bundle/{chunk-VNXCWZDW.js → chunk-MXG4L7NH.js} +248 -7
  41. package/dist/bundle/{chunk-NHVOJHHD.js → chunk-NGZW2JPK.js} +6 -6
  42. package/dist/bundle/{chunk-GQGJV53E.js → chunk-NVQUK2DH.js} +46 -46
  43. package/dist/bundle/{chunk-VNBQHV5H.js → chunk-OGK7LMYT.js} +5 -5
  44. package/dist/bundle/{chunk-BZBNBPCR.js → chunk-P547HU26.js} +9 -9
  45. package/dist/bundle/{chunk-XLCFCOT4.js → chunk-P62Z3Q35.js} +11 -11
  46. package/dist/bundle/{chunk-YHSXNUFQ.js → chunk-Q5EYTU3Q.js} +3 -3
  47. package/dist/bundle/{chunk-VD5UJUNR.js → chunk-QWRBAQZ7.js} +1 -1
  48. package/dist/bundle/{chunk-3QEYHTCQ.js → chunk-QZXHMQCM.js} +1 -1
  49. package/dist/bundle/{chunk-7CSK47S2.js → chunk-RE5SEGSR.js} +3 -3
  50. package/dist/bundle/{chunk-VMLGER4M.js → chunk-UHHARH5X.js} +192 -148
  51. package/dist/bundle/{chunk-LO66SLGD.js → chunk-UJEO3VWA.js} +1 -1
  52. package/dist/bundle/{chunk-JYZCISN7.js → chunk-UMWR5PKA.js} +12 -12
  53. package/dist/bundle/{chunk-XPBRNJ2V.js → chunk-V5ZID7KC.js} +1 -1
  54. package/dist/bundle/{chunk-MBWVZINS.js → chunk-VA3JKERH.js} +2 -2
  55. package/dist/bundle/{chunk-AXWTELO4.js → chunk-VERSKGJV.js} +2 -2
  56. package/dist/bundle/{chunk-6O6CM2ML.js → chunk-W643XZIR.js} +1 -1
  57. package/dist/bundle/{chunk-GIZILLRJ.js → chunk-WBJQEB6E.js} +11 -11
  58. package/dist/bundle/{chunk-UUBAWUUI.js → chunk-WVWNKZI4.js} +562 -404
  59. package/dist/bundle/chunk-X5XIFNTI.js +35 -0
  60. package/dist/bundle/{chunk-TBG3FRS6.js → chunk-XPREXN3W.js} +2 -2
  61. package/dist/bundle/{chunk-ZSS22YHM.js → chunk-XRJIQC6P.js} +1 -1
  62. package/dist/bundle/{chunk-5XTJUQZ5.js → chunk-YG4OI3HJ.js} +456 -201
  63. package/dist/bundle/{chunk-IGSHWMWC.js → chunk-ZCPUKUST.js} +1 -1
  64. package/dist/bundle/command-contract-B3OGAIDB.js +34 -0
  65. package/dist/bundle/{decode-YRTMNHC6.js → decode-X7Y2VSYZ.js} +4 -4
  66. package/dist/bundle/{dispatch-BCS2RDF4.js → dispatch-OWNO2CMC.js} +1 -1
  67. package/dist/bundle/{dist-NOBSXRL2.js → dist-L7FNC74Q.js} +40 -11
  68. package/dist/bundle/{echarts-5UKZVIF6.js → echarts-5AB3LFVD.js} +2 -2
  69. package/dist/bundle/{embed-G62XY6BJ.js → embed-VBS5LRCE.js} +5 -5
  70. package/dist/bundle/{embedder-SCHGLA74.js → embedder-VFSYBDKK.js} +8 -8
  71. package/dist/bundle/{failure-N5S6ZS62.js → failure-E534GZDF.js} +1 -1
  72. package/dist/bundle/{first-run-DPF2BBQN.js → first-run-NO2ODH2W.js} +8 -8
  73. package/dist/bundle/first-screen-7VJLGMJJ.js +32 -0
  74. package/dist/bundle/{instructions-7RP5OKLE.js → instructions-52W6ZQTU.js} +1 -1
  75. package/dist/bundle/mail.js +5 -5
  76. package/dist/bundle/{node-ENCKD6SS.js → node-TL2PBNKO.js} +2 -2
  77. package/dist/bundle/{node-sqlite-4ICXMPYY.js → node-sqlite-757HNQAD.js} +5 -5
  78. package/dist/bundle/{oauth-CX2WYMGN.js → oauth-VDRNJ7KN.js} +6 -6
  79. package/dist/bundle/{open-HQZYHMVE.js → open-NUWYOKPO.js} +4 -4
  80. package/dist/bundle/{openai-3ONJIA3F.js → openai-YLBFVK5X.js} +12 -12
  81. package/dist/bundle/{process-OK3HRPMD.js → process-PWAGP6YY.js} +1 -1
  82. package/dist/bundle/{program-FLKUE6LL.js → program-PPUPVL7O.js} +755 -646
  83. package/dist/bundle/{prompt-ZWKUQ42Y.js → prompt-M5U66RVJ.js} +4 -4
  84. package/dist/bundle/{recognize-PHDYO6DC.js → recognize-DCMDZA2U.js} +3 -3
  85. package/dist/bundle/{remote-4CX7GFMU.js → remote-4SHI5WJG.js} +6 -6
  86. package/dist/bundle/{rerank-ZCZTGXDQ.js → rerank-DYMZMNPQ.js} +6 -6
  87. package/dist/bundle/{serve-3LBS7CPR.js → serve-HO3WME4G.js} +8 -8
  88. package/dist/bundle/server-244FHPY4.js +64 -0
  89. package/dist/bundle/{server-2BKI2OQP.js → server-R3TIPRZN.js} +35 -34
  90. package/dist/bundle/{sqlite-runtime-J5T7SR5W.js → sqlite-runtime-DWRITUIH.js} +5 -5
  91. package/dist/bundle/{state-TIRNYVEL.js → state-QOMUDOGF.js} +5 -5
  92. package/dist/bundle/{store-F7ZXMIAP.js → store-LHHMOE5V.js} +21 -14
  93. package/dist/bundle/{store-NGE2E7KZ.js → store-RGO6IABA.js} +13 -12
  94. package/dist/bundle/store-maintenance-command-LU2ZBDUY.js +54 -0
  95. package/dist/config.d.ts +2 -0
  96. package/dist/config.d.ts.map +1 -1
  97. package/dist/version.d.ts +1 -1
  98. package/dist/version.js +1 -1
  99. package/package.json +2 -2
  100. package/dist/bundle/chunk-72CGQMAZ.js +0 -18
  101. package/dist/bundle/command-contract-6QSZ5QHQ.js +0 -33
  102. package/dist/bundle/first-screen-4MRKF6RQ.js +0 -31
  103. package/dist/bundle/server-X5F7VD2E.js +0 -63
  104. package/dist/bundle/store-maintenance-command-QZV76KAH.js +0 -53
@@ -8,14 +8,14 @@ import {
8
8
  refuseLacking,
9
9
  servicesFor,
10
10
  throughWrapper
11
- } from "./chunk-UUBAWUUI.js";
11
+ } from "./chunk-WVWNKZI4.js";
12
12
  import {
13
13
  chatReferenceOf,
14
14
  ensureAccount,
15
15
  foldName,
16
16
  isId,
17
17
  pickPerson
18
- } from "./chunk-BZBNBPCR.js";
18
+ } from "./chunk-P547HU26.js";
19
19
  import {
20
20
  LOG_ATTRIBUTES,
21
21
  MESSENGER_CHANGE_REFUSAL,
@@ -35,7 +35,7 @@ import {
35
35
  recalledAccount,
36
36
  rememberAccount,
37
37
  rootOf2 as rootOf
38
- } from "./chunk-5XTJUQZ5.js";
38
+ } from "./chunk-YG4OI3HJ.js";
39
39
  import {
40
40
  AUTHORITY_KEY,
41
41
  CEILING_KEY,
@@ -46,23 +46,23 @@ import {
46
46
  levelFor,
47
47
  readKeysForCommand,
48
48
  skipFlagFor
49
- } from "./chunk-UFWCJUGA.js";
49
+ } from "./chunk-7LDC275M.js";
50
50
  import {
51
51
  isCliFailure,
52
52
  providerErrorKey
53
- } from "./chunk-FVZST7ZH.js";
53
+ } from "./chunk-2KVR7FF3.js";
54
54
  import {
55
55
  servingProfiles
56
- } from "./chunk-YHSXNUFQ.js";
56
+ } from "./chunk-Q5EYTU3Q.js";
57
57
  import {
58
58
  openStore
59
- } from "./chunk-7D7AKYQ2.js";
59
+ } from "./chunk-KLLKDOO2.js";
60
60
  import {
61
61
  logRecordOf,
62
62
  realSleep,
63
63
  resolvePaths,
64
64
  writeSecurely
65
- } from "./chunk-Y2O3DACO.js";
65
+ } from "./chunk-3EAAEF5U.js";
66
66
  import {
67
67
  CliError
68
68
  } from "./chunk-CCHHEMPM.js";
@@ -70,10 +70,10 @@ import {
70
70
  __name
71
71
  } from "./chunk-ZVVMGPBJ.js";
72
72
 
73
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/sends/guard.js
73
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/sends/guard.js
74
74
  import { randomUUID } from "node:crypto";
75
75
 
76
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/sends/flood.js
76
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/sends/flood.js
77
77
  import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
78
78
  import { dirname, join } from "node:path";
79
79
  var MOST_DEADLINES = 50;
@@ -157,11 +157,11 @@ var FloodMemory = class {
157
157
  }
158
158
  };
159
159
 
160
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/sends/journal.js
160
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/sends/journal.js
161
161
  import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
162
162
  import { dirname as dirname3, join as join2 } from "node:path";
163
163
 
164
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
164
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
165
165
  import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
166
166
  import { dirname as dirname2 } from "node:path";
167
167
  var LOCK_WAIT_MS = 5e3;
@@ -228,7 +228,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
228
228
  }
229
229
  }, "lockTime");
230
230
 
231
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/sends/journal.js
231
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/sends/journal.js
232
232
  var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
233
233
  var SendJournal = class {
234
234
  static {
@@ -305,7 +305,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
305
305
  return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
306
306
  }, "withSendId");
307
307
 
308
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/sends/recipients.js
308
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/sends/recipients.js
309
309
  import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
310
310
  import { join as join3 } from "node:path";
311
311
  var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
@@ -417,7 +417,7 @@ var RecipientList = class {
417
417
  }
418
418
  };
419
419
 
420
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/sends/guard.js
420
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/sends/guard.js
421
421
  var HOUR_MS = 60 * 60 * 1e3;
422
422
  var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
423
423
  "attachments.extract",
@@ -610,7 +610,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
610
610
  }), "guardFor");
611
611
  var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
612
612
 
613
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
613
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
614
614
  import { openSync as openSync2 } from "node:fs";
615
615
  import { createInterface } from "node:readline";
616
616
  import { ReadStream } from "node:tty";
@@ -665,7 +665,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
665
665
  throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
666
666
  }, "terminalAsker");
667
667
 
668
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/sends/pace.js
668
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/sends/pace.js
669
669
  import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
670
670
  import { join as join4 } from "node:path";
671
671
  var DEFAULT_PACE = { perMinute: 60, burst: 20 };
@@ -724,7 +724,7 @@ var Pacer = class {
724
724
  }
725
725
  };
726
726
 
727
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
727
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
728
728
  var HOUSEKEEPING = /* @__PURE__ */ new Set([
729
729
  "help",
730
730
  "guide",
@@ -803,7 +803,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
803
803
  throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
804
804
  }, "refuseUnknownPermissionKeys");
805
805
 
806
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
806
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
807
807
  var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
808
808
  var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
809
809
  var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
@@ -922,7 +922,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
922
922
  });
923
923
  }, "flooded");
924
924
 
925
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
925
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
926
926
  var observed = /* @__PURE__ */ __name((messenger, events) => {
927
927
  const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
928
928
  const write = currentOperation();
@@ -1021,7 +1021,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
1021
1021
  counts[part] = (counts[part] ?? 0) + items.length;
1022
1022
  }, "byPart");
1023
1023
 
1024
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
1024
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
1025
1025
  var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
1026
1026
  var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
1027
1027
  let warned = false;
@@ -1597,7 +1597,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
1597
1597
  }
1598
1598
  }, "keep");
1599
1599
 
1600
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1600
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1601
1601
  var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
1602
1602
  let opened;
1603
1603
  return {
@@ -2000,6 +2000,17 @@ var metaSchema = strictObject({
2000
2000
  now_local: optional(localTime),
2001
2001
  window: optional(strictObject({ since: optional(isoTime), until: optional(isoTime) }))
2002
2002
  });
2003
+ var offsetOf = /* @__PURE__ */ __name((at, zone) => {
2004
+ const name = new Intl.DateTimeFormat("en-US", { timeZone: zone, timeZoneName: "longOffset" }).formatToParts(at).find((part) => part.type === "timeZoneName")?.value ?? "GMT";
2005
+ return name === "GMT" ? "+00:00" : name.slice(3);
2006
+ }, "offsetOf");
2007
+ var clockMeta = /* @__PURE__ */ __name((at, zone) => {
2008
+ const offset = offsetOf(at, zone);
2009
+ const sign = offset.startsWith("-") ? -1 : 1;
2010
+ const [hours = 0, minutes = 0] = offset.slice(1).split(":").map(Number);
2011
+ const wall = new Date(at + sign * (hours * 60 + minutes) * 6e4).toISOString().slice(0, -1);
2012
+ return { now: new Date(at).toISOString(), now_local: `${wall}${offset}`, timezone: zone };
2013
+ }, "clockMeta");
2003
2014
  var nextSteps = optional(pipe(array(nextStepSchema), maxLength(MAX_NEXT_STEPS)));
2004
2015
  var listEnvelopeSchema = /* @__PURE__ */ __name((item) => strictObject({
2005
2016
  items: array(item),
@@ -2402,6 +2413,7 @@ export {
2402
2413
  isoTime,
2403
2414
  reference,
2404
2415
  pageSchema,
2416
+ clockMeta,
2405
2417
  listEnvelopeSchema,
2406
2418
  itemEnvelopeSchema,
2407
2419
  jsonlOf,
@@ -20,7 +20,7 @@ import {
20
20
  tool,
21
21
  toolKey,
22
22
  toolsFromCommands
23
- } from "./chunk-CJPEL2N5.js";
23
+ } from "./chunk-H7OQ4YZV.js";
24
24
  import {
25
25
  CHART_KINDS,
26
26
  CHART_SIZE,
@@ -34,23 +34,23 @@ import {
34
34
  registerPrompts,
35
35
  stdinFieldOf,
36
36
  syncsFirst
37
- } from "./chunk-3BC2XSNX.js";
37
+ } from "./chunk-FTGCXIQA.js";
38
38
  import {
39
39
  agentJson,
40
40
  skillResource
41
- } from "./chunk-XLCFCOT4.js";
41
+ } from "./chunk-P62Z3Q35.js";
42
42
  import {
43
43
  instructions
44
- } from "./chunk-IGSHWMWC.js";
44
+ } from "./chunk-ZCPUKUST.js";
45
45
  import {
46
46
  answeredWire
47
- } from "./chunk-UGXTDYUY.js";
47
+ } from "./chunk-KQ5P5NLL.js";
48
48
  import {
49
49
  StdioServerTransport,
50
50
  callerOf,
51
51
  callingAgent,
52
52
  serveStdio
53
- } from "./chunk-AXWTELO4.js";
53
+ } from "./chunk-VERSKGJV.js";
54
54
  import {
55
55
  McpServer,
56
56
  ResourceTemplate
@@ -58,7 +58,7 @@ import {
58
58
  import {
59
59
  connectedFor,
60
60
  guardFor
61
- } from "./chunk-YMNF4QLY.js";
61
+ } from "./chunk-IPKXRW6W.js";
62
62
  import {
63
63
  capability,
64
64
  dateWindow,
@@ -67,10 +67,10 @@ import {
67
67
  servicesFor,
68
68
  storedDeps,
69
69
  wholeList
70
- } from "./chunk-UUBAWUUI.js";
70
+ } from "./chunk-WVWNKZI4.js";
71
71
  import {
72
72
  findCommand
73
- } from "./chunk-WBI7J5B7.js";
73
+ } from "./chunk-DPKHVBP3.js";
74
74
  import {
75
75
  DEFAULT_OUTPUT_BYTES,
76
76
  changesAuthorityAt,
@@ -85,28 +85,28 @@ import {
85
85
  sealed,
86
86
  snakeKeys,
87
87
  typedCommand
88
- } from "./chunk-5XTJUQZ5.js";
88
+ } from "./chunk-YG4OI3HJ.js";
89
89
  import {
90
90
  levelFor,
91
91
  readKeysForCommand
92
- } from "./chunk-UFWCJUGA.js";
92
+ } from "./chunk-7LDC275M.js";
93
93
  import {
94
94
  isCliFailure,
95
95
  withCaller
96
- } from "./chunk-FVZST7ZH.js";
96
+ } from "./chunk-2KVR7FF3.js";
97
97
  import {
98
98
  mcpHttpMarker
99
- } from "./chunk-OHFSAYZG.js";
99
+ } from "./chunk-5C74F7XX.js";
100
100
  import {
101
101
  warmEmbedders
102
- } from "./chunk-VNBQHV5H.js";
102
+ } from "./chunk-OGK7LMYT.js";
103
103
  import {
104
104
  openStore,
105
105
  pdfPreviewLimits
106
- } from "./chunk-7D7AKYQ2.js";
106
+ } from "./chunk-KLLKDOO2.js";
107
107
  import {
108
108
  timezoneOf
109
- } from "./chunk-VMLGER4M.js";
109
+ } from "./chunk-UHHARH5X.js";
110
110
  import {
111
111
  description,
112
112
  integer,
@@ -122,7 +122,7 @@ import {
122
122
  regex,
123
123
  strictObject,
124
124
  string
125
- } from "./chunk-M7JREJFC.js";
125
+ } from "./chunk-IVDUR5Y4.js";
126
126
  import {
127
127
  CliError,
128
128
  visibleControls
@@ -131,10 +131,10 @@ import {
131
131
  __name
132
132
  } from "./chunk-ZVVMGPBJ.js";
133
133
 
134
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/mcp/server.js
134
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/server.js
135
135
  import { randomUUID } from "node:crypto";
136
136
 
137
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
137
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
138
138
  var agentLog = /* @__PURE__ */ __name((open) => {
139
139
  let held;
140
140
  return {
@@ -153,7 +153,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
153
153
  };
154
154
  }, "agentLog");
155
155
 
156
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/mcp/resources.js
156
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/resources.js
157
157
  var LISTED = 100;
158
158
  var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
159
159
  server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
@@ -191,7 +191,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
191
191
  });
192
192
  }, "registerResources");
193
193
 
194
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/mcp/session.js
194
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/session.js
195
195
  var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
196
196
  var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
197
197
  var MessengerSession = class {
@@ -266,7 +266,7 @@ var MessengerSession = class {
266
266
  }
267
267
  };
268
268
 
269
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
269
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
270
270
  var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
271
271
  const _command = messenger.app.command;
272
272
  return {
@@ -320,7 +320,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
320
320
  };
321
321
  }, "attachmentsTools");
322
322
 
323
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
323
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
324
324
  var PHOTO_LIMIT = 512 * 1024;
325
325
  var IMAGE_TYPES = [
326
326
  ["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
@@ -374,7 +374,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
374
374
  return new Uint8Array(Buffer.concat(chunks));
375
375
  }, "readUpTo");
376
376
 
377
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
377
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
378
378
  var statsTools = /* @__PURE__ */ __name((messenger) => ({
379
379
  stats_charts: tool({
380
380
  title: "A chart from a chat's statistics",
@@ -411,14 +411,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
411
411
  })
412
412
  }), "statsTools");
413
413
 
414
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/mcp/tools.js
414
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/tools.js
415
415
  var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
416
416
  ...messagesPhotoTools(messenger),
417
417
  ...attachmentsTools(messenger),
418
418
  ...statsTools(messenger)
419
419
  }).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
420
420
 
421
- // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/mcp/server.js
421
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/server.js
422
422
  var PER_RUN = /* @__PURE__ */ new Set([
423
423
  "streams",
424
424
  "stdin",
@@ -742,7 +742,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
742
742
  }, "serveOverStdio");
743
743
  var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
744
744
  const { session, embedders, build, log } = createServer(command, context, messenger, options);
745
- const { serveOverHttp } = await import("./serve-3LBS7CPR.js");
745
+ const { serveOverHttp } = await import("./serve-HO3WME4G.js");
746
746
  const appName = messenger.app.command;
747
747
  const appEnvPrefix = messenger.app.envPrefix;
748
748
  const listening = await serveOverHttp(build, {