@wirecat/mail-cli 0.24.0 → 0.26.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 (157) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/README.md +3 -0
  3. package/contracts/wirecat.json +1325 -0
  4. package/dist/bin/mail.js +2 -2
  5. package/dist/bin/mail.js.map +1 -1
  6. package/dist/bundle/{all-profiles-VS7P6DJY.js → all-profiles-6NXVQLUQ.js} +11 -11
  7. package/dist/bundle/{anthropic-C5JXKGBS.js → anthropic-OLNFE2CL.js} +17 -10
  8. package/dist/bundle/{app-server-HU3LVU42.js → app-server-J76N6XIK.js} +60 -49
  9. package/dist/bundle/{bun-QLFX47WZ.js → bun-6PYDHXNR.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-W4PGAKVY.js → bun-sqlite-QD5PFHPS.js} +9 -5
  11. package/dist/bundle/{chunk-WOX7FZJP.js → chunk-2E2EV4HD.js} +130 -77
  12. package/dist/bundle/{chunk-A6J4MPTI.js → chunk-2TCS4PLJ.js} +1 -1
  13. package/dist/bundle/{chunk-QI3PXUOJ.js → chunk-3J2UJFBJ.js} +39 -32
  14. package/dist/bundle/{chunk-LVGX7VTD.js → chunk-3RY4HC4V.js} +63 -5
  15. package/dist/bundle/chunk-3XTKQ5EM.js +54 -0
  16. package/dist/bundle/{chunk-ZO4MQWIK.js → chunk-4Q6KAV4O.js} +8 -8
  17. package/dist/bundle/{chunk-JOQGJUFT.js → chunk-52M5BAEG.js} +1 -1
  18. package/dist/bundle/{chunk-Q4OKEN3B.js → chunk-5WROIMUV.js} +12 -7
  19. package/dist/bundle/{chunk-VVL4MKYH.js → chunk-66C66FNK.js} +1 -1
  20. package/dist/bundle/{chunk-O373QEAJ.js → chunk-76EKZSDK.js} +27 -27
  21. package/dist/bundle/{chunk-AUTX2MLF.js → chunk-76VSHS5Y.js} +15 -10
  22. package/dist/bundle/{chunk-HBZAJINU.js → chunk-7C6FGWDH.js} +4 -4
  23. package/dist/bundle/{chunk-VUBZFMGP.js → chunk-7KCBPAQS.js} +2 -2
  24. package/dist/bundle/{chunk-FNLUKODV.js → chunk-7MEVD5PI.js} +57 -28
  25. package/dist/bundle/chunk-A3EBRXOQ.js +16 -0
  26. package/dist/bundle/{chunk-C3NYJW6B.js → chunk-A6XETABW.js} +852 -278
  27. package/dist/bundle/{chunk-VNKWSCN7.js → chunk-AJ5K74X6.js} +17 -17
  28. package/dist/bundle/{chunk-BFQQV22T.js → chunk-BDYQQ6G2.js} +1 -1
  29. package/dist/bundle/{chunk-ZR2BDNGG.js → chunk-BMGRDZM3.js} +1 -1
  30. package/dist/bundle/{chunk-TLEBSMC7.js → chunk-CFBIPM7T.js} +4109 -3575
  31. package/dist/bundle/{chunk-IRUN4XOV.js → chunk-CZI45AQM.js} +2 -2
  32. package/dist/bundle/{chunk-QVMOEB3I.js → chunk-DKIVYAXW.js} +18 -17
  33. package/dist/bundle/{chunk-X7J3TTDO.js → chunk-ECZSYLSL.js} +48 -9
  34. package/dist/bundle/{chunk-EKGRNFYQ.js → chunk-EDWJ7IYH.js} +1 -1
  35. package/dist/bundle/{chunk-MCPOZNWG.js → chunk-FIVFP53N.js} +1 -1
  36. package/dist/bundle/{chunk-5X3GU5LI.js → chunk-GIG7F6UW.js} +6 -6
  37. package/dist/bundle/{chunk-RN7OI5KL.js → chunk-H2IJQH5X.js} +20 -112
  38. package/dist/bundle/{chunk-NWKKPDZV.js → chunk-HI5XUETY.js} +2 -2
  39. package/dist/bundle/{chunk-YBQ5AYLZ.js → chunk-HNSBXC6U.js} +3 -3
  40. package/dist/bundle/{chunk-4W4EVVL4.js → chunk-IX3GUNGV.js} +4 -4
  41. package/dist/bundle/{chunk-PT6MF2VU.js → chunk-JNKXU7AE.js} +340 -108
  42. package/dist/bundle/{chunk-64ZG5ERD.js → chunk-JVJG54QK.js} +40 -2
  43. package/dist/bundle/{chunk-KGOVFEWZ.js → chunk-KXASCNOV.js} +3 -3
  44. package/dist/bundle/{chunk-5NLHDK7P.js → chunk-LMTQMYUF.js} +31 -31
  45. package/dist/bundle/{chunk-Q6K2XUGU.js → chunk-LTZGLOKE.js} +3 -2
  46. package/dist/bundle/{chunk-RLQZFZLK.js → chunk-M2LATBP2.js} +84 -10
  47. package/dist/bundle/{chunk-RX5CJ55S.js → chunk-M4OP5ASJ.js} +1 -1
  48. package/dist/bundle/{chunk-H5FJTHVA.js → chunk-M4Y33SJJ.js} +2 -2
  49. package/dist/bundle/{chunk-SWKQ6IAR.js → chunk-M7ECSGSN.js} +3 -3
  50. package/dist/bundle/{chunk-MTO6YVMN.js → chunk-M7RHPCXM.js} +3 -3
  51. package/dist/bundle/{chunk-PRQ2U7HF.js → chunk-MIWSCTLG.js} +2 -2
  52. package/dist/bundle/{chunk-NSIN5IM4.js → chunk-NBJU6MBU.js} +10 -15
  53. package/dist/bundle/{chunk-JWMLMAHP.js → chunk-NMFPK3MU.js} +14 -5
  54. package/dist/bundle/{chunk-4QNHAM3J.js → chunk-OGE7YG4J.js} +2 -2
  55. package/dist/bundle/{chunk-XBEO472U.js → chunk-PJ6YMNJG.js} +26515 -24466
  56. package/dist/bundle/{chunk-RUASZW3M.js → chunk-PY2IOVUN.js} +5 -5
  57. package/dist/bundle/{chunk-OQW6GHUA.js → chunk-QI6EXKSH.js} +1 -1
  58. package/dist/bundle/{chunk-KV4VTKF3.js → chunk-QJGG6QYV.js} +69 -6
  59. package/dist/bundle/{chunk-JMLIKXFO.js → chunk-RXKIP2ML.js} +2 -2
  60. package/dist/bundle/{chunk-6VV7J2TN.js → chunk-T7SHPALQ.js} +35 -28
  61. package/dist/bundle/{chunk-YI544LHI.js → chunk-UE2NKPA4.js} +9 -9
  62. package/dist/bundle/{chunk-X47BL4M5.js → chunk-UNJUCK5R.js} +13 -13
  63. package/dist/bundle/{chunk-C5BMCLCQ.js → chunk-V32L23NN.js} +4 -4
  64. package/dist/bundle/{chunk-DW3F6DUW.js → chunk-V4PFD25P.js} +1 -1
  65. package/dist/bundle/{chunk-U6MMQNNK.js → chunk-VA4V73SL.js} +6 -6
  66. package/dist/bundle/{chunk-3KSK5BBB.js → chunk-VJPLIXV4.js} +8 -2
  67. package/dist/bundle/{chunk-YA45XV6G.js → chunk-VWRT57QU.js} +4 -4
  68. package/dist/bundle/{chunk-FKWUUCX2.js → chunk-XELZCDWE.js} +427 -189
  69. package/dist/bundle/{chunk-3FD3IATT.js → chunk-XUJEZ5YF.js} +6 -6
  70. package/dist/bundle/{chunk-TI7ZIPA2.js → chunk-XZ7CQ6NA.js} +4 -4
  71. package/dist/bundle/{chunk-NCRSE647.js → chunk-YM345236.js} +159 -46
  72. package/dist/bundle/{chunk-6PWCQKMD.js → chunk-YXGHC3NP.js} +14 -14
  73. package/dist/bundle/{chunk-RNZKQMFY.js → chunk-ZZSZN4CJ.js} +22 -15
  74. package/dist/bundle/command-contract-NNEXHZW5.js +36 -0
  75. package/dist/bundle/{command-server-entry-5E3PPDE5.js → command-server-entry-AIBWNC5D.js} +25 -24
  76. package/dist/bundle/{decode-AVWV7SVZ.js → decode-H7KLRD33.js} +5 -5
  77. package/dist/bundle/{dispatch-BXPHSNK5.js → dispatch-DSVN7MNG.js} +8 -8
  78. package/dist/bundle/{dist-PIOOKBWT.js → dist-YYSP43J3.js} +29 -18
  79. package/dist/bundle/{echarts-7K6YQV52.js → echarts-VSD3LS6D.js} +2 -2
  80. package/dist/bundle/{embed-4NT76GJK.js → embed-UENZ5HN3.js} +6 -6
  81. package/dist/bundle/{embedder-ITQFF7EN.js → embedder-MJMGOJT7.js} +9 -9
  82. package/dist/bundle/{failure-3Q65JOPD.js → failure-COTPFUP4.js} +2 -2
  83. package/dist/bundle/{first-run-PM74YU4X.js → first-run-HYALREFN.js} +12 -11
  84. package/dist/bundle/first-screen-GPF5RHBX.js +34 -0
  85. package/dist/bundle/{instructions-JDSITYHV.js → instructions-WOHRYOLN.js} +1 -1
  86. package/dist/bundle/mail.js +15 -20
  87. package/dist/bundle/{mcp-7KQUJNFN.js → mcp-TDKGDB4V.js} +2 -2
  88. package/dist/bundle/{node-D6YIJOJI.js → node-4BRWJJCE.js} +2 -2
  89. package/dist/bundle/{node-sqlite-PJOHHB4X.js → node-sqlite-D3QESEYQ.js} +10 -6
  90. package/dist/bundle/{oauth-BOWJ3IBT.js → oauth-T7TTOBIZ.js} +7 -7
  91. package/dist/bundle/{open-FIAKKZMW.js → open-6P6627QB.js} +5 -5
  92. package/dist/bundle/{openai-QL54VVLC.js → openai-FIMCJGAP.js} +24 -19
  93. package/dist/bundle/{process-AYHK7WRC.js → process-35IH3WHC.js} +1 -1
  94. package/dist/bundle/{program-6FKWOTBK.js → program-IEXB72IK.js} +6685 -5463
  95. package/dist/bundle/{prompt-XJZCBELC.js → prompt-HFBCPMVL.js} +5 -5
  96. package/dist/bundle/{recognize-OQKWAHBY.js → recognize-CNL4HJ7Z.js} +4 -4
  97. package/dist/bundle/{remote-NLVUZ5WK.js → remote-AYGZI7HT.js} +9 -7
  98. package/dist/bundle/{rerank-NRPZDTJ7.js → rerank-5C2OZZXD.js} +7 -7
  99. package/dist/bundle/{serve-O4YUI7F6.js → serve-S6OYBDIB.js} +9 -9
  100. package/dist/bundle/{server-WAL3M4OO.js → server-VKO6E6PI.js} +42 -40
  101. package/dist/bundle/server-WXSHVDME.js +68 -0
  102. package/dist/bundle/{sqlite-runtime-5YHGI4D4.js → sqlite-runtime-DBTGNTVE.js} +6 -6
  103. package/dist/bundle/{state-WYYOJ7KK.js → state-ZQG6AL2Y.js} +6 -6
  104. package/dist/bundle/{store-X72GOJHD.js → store-B7BXWILZ.js} +25 -18
  105. package/dist/bundle/{store-6BJO3F2J.js → store-LY4QKTOO.js} +19 -16
  106. package/dist/bundle/store-maintenance-command-UR6NQDVV.js +58 -0
  107. package/dist/commands/rules.d.ts.map +1 -1
  108. package/dist/commands/rules.js +57 -19
  109. package/dist/commands/rules.js.map +1 -1
  110. package/dist/commands/session-start.d.ts.map +1 -1
  111. package/dist/commands/session-start.js +1 -1
  112. package/dist/commands/session-start.js.map +1 -1
  113. package/dist/config.d.ts +1 -0
  114. package/dist/config.d.ts.map +1 -1
  115. package/dist/config.js +13 -12
  116. package/dist/config.js.map +1 -1
  117. package/dist/discovery.d.ts.map +1 -1
  118. package/dist/discovery.js +7 -2
  119. package/dist/discovery.js.map +1 -1
  120. package/dist/identity.d.ts +2 -0
  121. package/dist/identity.d.ts.map +1 -1
  122. package/dist/identity.js +34 -0
  123. package/dist/identity.js.map +1 -1
  124. package/dist/mail/domain-age.d.ts +1 -1
  125. package/dist/mail/domain-age.d.ts.map +1 -1
  126. package/dist/mail/domain-age.js +9 -3
  127. package/dist/mail/domain-age.js.map +1 -1
  128. package/dist/mail/rules/file.d.ts.map +1 -1
  129. package/dist/mail/rules/file.js +4 -1
  130. package/dist/mail/rules/file.js.map +1 -1
  131. package/dist/mail/rules/query.d.ts +2 -1
  132. package/dist/mail/rules/query.d.ts.map +1 -1
  133. package/dist/mail/rules/query.js +16 -3
  134. package/dist/mail/rules/query.js.map +1 -1
  135. package/dist/oauth.d.ts +3 -1
  136. package/dist/oauth.d.ts.map +1 -1
  137. package/dist/oauth.js +48 -34
  138. package/dist/oauth.js.map +1 -1
  139. package/dist/reasons.d.ts.map +1 -1
  140. package/dist/reasons.js +5 -0
  141. package/dist/reasons.js.map +1 -1
  142. package/dist/store.d.ts.map +1 -1
  143. package/dist/store.js +2 -21
  144. package/dist/store.js.map +1 -1
  145. package/dist/version.d.ts +1 -1
  146. package/dist/version.js +1 -1
  147. package/dist/wcat.d.ts +3 -0
  148. package/dist/wcat.d.ts.map +1 -0
  149. package/dist/wcat.js +4 -0
  150. package/dist/wcat.js.map +1 -0
  151. package/package.json +10 -9
  152. package/dist/bundle/chunk-B72343TK.js +0 -35
  153. package/dist/bundle/command-contract-ERYYPAD2.js +0 -35
  154. package/dist/bundle/first-screen-WBVGVSMY.js +0 -33
  155. package/dist/bundle/server-6OT5ZEWL.js +0 -66
  156. package/dist/bundle/store-maintenance-command-ASS7RBYC.js +0 -54
  157. /package/dist/bundle/{chunk-YVNHQFLC.js → chunk-XWBPP2HX.js} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/store/driver.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/store/driver.js
8
8
  var TIME_LIMIT_FUNCTION = "wc_time_limit";
9
9
  var TimeLimitReached = class extends Error {
10
10
  static {
@@ -16,10 +16,10 @@ import {
16
16
  servicesFor,
17
17
  throughWrapper,
18
18
  withFileLockAsync
19
- } from "./chunk-TLEBSMC7.js";
19
+ } from "./chunk-CFBIPM7T.js";
20
20
  import {
21
21
  servingProfiles
22
- } from "./chunk-YBQ5AYLZ.js";
22
+ } from "./chunk-HNSBXC6U.js";
23
23
  import {
24
24
  asFirstWord,
25
25
  baseContext,
@@ -33,44 +33,45 @@ import {
33
33
  recalledAccount,
34
34
  rememberAccount,
35
35
  rootOf2 as rootOf
36
- } from "./chunk-FKWUUCX2.js";
36
+ } from "./chunk-XELZCDWE.js";
37
37
  import {
38
38
  AUTHORITY_KEY,
39
39
  CEILING_KEY,
40
40
  DEFAULT_PERMISSIONS,
41
+ KEYED_UNDER_HOUSEKEEPING,
41
42
  WRITE_KEYS,
42
43
  keyForCommand,
43
44
  levelFor,
44
45
  readKeysForCommand,
45
46
  skipFlagFor
46
- } from "./chunk-Q4OKEN3B.js";
47
+ } from "./chunk-5WROIMUV.js";
47
48
  import {
48
49
  providerErrorKey
49
- } from "./chunk-AUTX2MLF.js";
50
+ } from "./chunk-76VSHS5Y.js";
50
51
  import {
51
52
  openStore
52
- } from "./chunk-XBEO472U.js";
53
+ } from "./chunk-PJ6YMNJG.js";
53
54
  import {
54
55
  chatReferenceOf,
55
56
  ensureAccount,
56
57
  foldName,
57
58
  isId,
58
59
  pickPerson
59
- } from "./chunk-C3NYJW6B.js";
60
+ } from "./chunk-A6XETABW.js";
60
61
  import {
61
62
  isCliFailure
62
- } from "./chunk-3KSK5BBB.js";
63
+ } from "./chunk-VJPLIXV4.js";
63
64
  import {
64
65
  resolvePaths
65
- } from "./chunk-FNLUKODV.js";
66
+ } from "./chunk-7MEVD5PI.js";
66
67
  import {
67
68
  CliError
68
- } from "./chunk-VUBZFMGP.js";
69
+ } from "./chunk-7KCBPAQS.js";
69
70
  import {
70
71
  __name
71
72
  } from "./chunk-ZVVMGPBJ.js";
72
73
 
73
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
74
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
74
75
  import { openSync } from "node:fs";
75
76
  import { createInterface } from "node:readline";
76
77
  import { ReadStream } from "node:tty";
@@ -125,7 +126,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
125
126
  throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
126
127
  }, "terminalAsker");
127
128
 
128
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/sends/pace.js
129
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/sends/pace.js
129
130
  import { readFileSync, renameSync, writeFileSync } from "node:fs";
130
131
  import { join } from "node:path";
131
132
  var DEFAULT_PACE = { perMinute: 60, burst: 20 };
@@ -147,12 +148,12 @@ var Pacer = class {
147
148
  }
148
149
  /** When this call may go; reserved at once, so the next caller in any process lines up behind it. */
149
150
  async reserve() {
150
- const now = this.now();
151
151
  if (this.interval === 0)
152
- return now;
152
+ return this.now();
153
153
  return withFileLockAsync(this.path, "the request pace", () => {
154
- const tat = Math.max(this.read(), now);
155
- this.write(tat + this.interval);
154
+ const now = this.now();
155
+ const tat = Math.max(this.read(now), now);
156
+ this.write(tat + this.interval, now);
156
157
  return Math.max(now, tat - this.rate.burst * this.interval);
157
158
  });
158
159
  }
@@ -161,25 +162,30 @@ var Pacer = class {
161
162
  if (this.interval === 0)
162
163
  return;
163
164
  await withFileLockAsync(this.path, "the request pace", () => {
164
- const hold = this.now() + waitMs + this.rate.burst * this.interval;
165
- this.write(Math.max(this.read(), hold));
165
+ const now = this.now();
166
+ const hold = now + waitMs + this.rate.burst * this.interval;
167
+ this.write(Math.max(this.read(now), hold), now);
166
168
  });
167
169
  }
168
170
  /** The owner's `flood clear`: every process may go again at once. */
169
171
  async reset() {
170
- await withFileLockAsync(this.path, "the request pace", () => this.write(0));
172
+ await withFileLockAsync(this.path, "the request pace", () => this.write(0, this.now()));
171
173
  }
172
- read() {
174
+ read(now) {
173
175
  try {
174
- const tat = Number(JSON.parse(readFileSync(this.path, "utf8")).tat);
175
- return Number.isFinite(tat) ? tat : 0;
176
+ const file = JSON.parse(readFileSync(this.path, "utf8"));
177
+ const tat = Number(file.tat);
178
+ if (!Number.isFinite(tat))
179
+ return 0;
180
+ const at = Number(file.at);
181
+ return Number.isFinite(at) && at > now ? now + Math.max(0, tat - at) : tat;
176
182
  } catch {
177
183
  return 0;
178
184
  }
179
185
  }
180
- write(tat) {
186
+ write(tat, at) {
181
187
  const temporary = `${this.path}.${process.pid}.tmp`;
182
- writeFileSync(temporary, JSON.stringify({ tat }), { mode: 384 });
188
+ writeFileSync(temporary, JSON.stringify({ tat, at }), { mode: 384 });
183
189
  renameSync(temporary, this.path);
184
190
  }
185
191
  };
@@ -201,8 +207,8 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
201
207
  const waitMs = at - now();
202
208
  if (waitMs <= 0)
203
209
  return;
204
- if (waitMs > LONGEST_PACE_WAIT_MS)
205
- throw new CliError("rate_limited", `${name} asked this profile to wait, ${Math.ceil(waitMs / 1e3)} s are left \u2014 nothing was sent to ${name}`, { retry_after_ms: waitMs, retry_at: new Date(at).toISOString(), remembered: true });
210
+ if (waitMs > (options.longestWaitMs ?? LONGEST_PACE_WAIT_MS))
211
+ throw new CliError("rate_limited", `this profile's next request to ${name} has to wait ${Math.ceil(waitMs / 1e3)} s more \u2014 nothing was sent to ${name}`, { retry_after_ms: waitMs, retry_at: new Date(at).toISOString(), remembered: true });
206
212
  if (waitMs >= ANNOUNCE_WAIT_MS) {
207
213
  const seconds = Math.ceil(waitMs / 1e3);
208
214
  warn?.(`waiting ${seconds} s to keep this profile's pace with ${name}`, {
@@ -215,7 +221,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
215
221
  await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
216
222
  }, "waitForTurn");
217
223
 
218
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
224
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
219
225
  var HOUSEKEEPING = /* @__PURE__ */ new Set([
220
226
  "help",
221
227
  "guide",
@@ -229,7 +235,7 @@ var HOUSEKEEPING = /* @__PURE__ */ new Set([
229
235
  "mcp",
230
236
  "runs"
231
237
  ]);
232
- var commandPathKey = /* @__PURE__ */ __name((path) => path[0] === void 0 || HOUSEKEEPING.has(path[0]) ? null : path.join("."), "commandPathKey");
238
+ var commandPathKey = /* @__PURE__ */ __name((path) => path[0] === void 0 || HOUSEKEEPING.has(path[0]) && !KEYED_UNDER_HOUSEKEEPING.has(path.join(".")) ? null : path.join("."), "commandPathKey");
233
239
  var commandPermissions = /* @__PURE__ */ __name(({ keyOf = commandPathKey, extra = [], defaults = {}, alsoChecks } = {}) => ({
234
240
  keyOf,
235
241
  extra: [AUTHORITY_KEY, ...extra],
@@ -295,7 +301,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
295
301
  throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
296
302
  }, "refuseUnknownPermissionKeys");
297
303
 
298
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
304
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
299
305
  var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
300
306
  var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
301
307
  var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
@@ -392,7 +398,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
392
398
  });
393
399
  }, "flooded");
394
400
 
395
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
401
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
396
402
  var observed = /* @__PURE__ */ __name((messenger, events) => {
397
403
  const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
398
404
  const write = currentOperation();
@@ -491,7 +497,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
491
497
  counts[part] = (counts[part] ?? 0) + items.length;
492
498
  }, "byPart");
493
499
 
494
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
500
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
495
501
  var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
496
502
  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" }) => {
497
503
  let warned = false;
@@ -1067,7 +1073,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
1067
1073
  }
1068
1074
  }, "keep");
1069
1075
 
1070
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1076
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1071
1077
  var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
1072
1078
  let opened;
1073
1079
  return {
@@ -1476,6 +1482,7 @@ export {
1476
1482
  knownBeside,
1477
1483
  unknownPermissionIssues,
1478
1484
  refuseUnknownPermissionKeys,
1485
+ fill,
1479
1486
  connectedFor,
1480
1487
  refuseLocalWrite,
1481
1488
  messengerContext
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError,
5
5
  isCliError
6
- } from "./chunk-VUBZFMGP.js";
6
+ } from "./chunk-7KCBPAQS.js";
7
7
  import {
8
8
  __name
9
9
  } from "./chunk-ZVVMGPBJ.js";
10
10
 
11
- // 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/http/hosts.js
11
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/hosts.js
12
12
  var LABEL = "[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?";
13
13
  var HOST_PATTERN = new RegExp(`^(?:${LABEL}(?:\\.${LABEL})*|\\*\\.${LABEL}(?:\\.${LABEL})+)$`);
14
14
  var hostProblems = /* @__PURE__ */ __name((hosts) => [
@@ -20,7 +20,7 @@ var hostCovered = /* @__PURE__ */ __name((hostname, hosts) => {
20
20
  return hosts.some((host) => host.startsWith("*.") ? name.endsWith(host.slice(1)) : name === host);
21
21
  }, "hostCovered");
22
22
 
23
- // 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/http/fetch.js
23
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/fetch.js
24
24
  var HOST_FETCH_TIMEOUT_MS = 3e4;
25
25
  var REDIRECTS = 5;
26
26
  var REDIRECT_STATUSES = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
@@ -108,7 +108,7 @@ var hostFetch = /* @__PURE__ */ __name((options) => {
108
108
  };
109
109
  }, "hostFetch");
110
110
 
111
- // 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/http/index.js
111
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/index.js
112
112
  var parseRetryAfter = /* @__PURE__ */ __name((header, now) => {
113
113
  if (!header)
114
114
  return void 0;
@@ -132,7 +132,65 @@ var parseRateLimitReset = /* @__PURE__ */ __name((header, now) => {
132
132
  }, "parseRateLimitReset");
133
133
  var providerWaitMs = /* @__PURE__ */ __name((headers, now) => parseRetryAfter(headers.get("retry-after"), now) ?? parseRateLimitReset(headers.get("x-ratelimit-reset"), now), "providerWaitMs");
134
134
 
135
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/models/endpoint.js
136
+ var endpoint = /* @__PURE__ */ __name((value) => {
137
+ try {
138
+ const url = new URL(value);
139
+ return ["https:", "http:"].includes(url.protocol) && !url.username && !url.password && !url.search && !url.hash;
140
+ } catch {
141
+ return false;
142
+ }
143
+ }, "endpoint");
144
+ var loopback = /* @__PURE__ */ __name((hostname) => hostname === "localhost" || hostname === "[::1]" || /^127(\.\d{1,3}){3}$/.test(hostname), "loopback");
145
+ var onThisComputer = /* @__PURE__ */ __name((value) => {
146
+ try {
147
+ return loopback(new URL(value).hostname);
148
+ } catch {
149
+ return false;
150
+ }
151
+ }, "onThisComputer");
152
+ var modelAddressAllowed = /* @__PURE__ */ __name((value) => endpoint(value) && (new URL(value).protocol === "https:" || onThisComputer(value)), "modelAddressAllowed");
153
+ var PLAIN_HTTP_REFUSED = "this address is not allowed: use https, or http only on this computer";
154
+ var literalFetch = /* @__PURE__ */ __name((hostname, timeoutMs) => async (input, init = {}) => {
155
+ const url = new URL(input instanceof Request ? input.url : String(input));
156
+ if (url.hostname !== hostname)
157
+ throw new CliError("configuration_error", `${url.hostname} is not the model address's host, ${hostname}`, {
158
+ reason: "network.host-undeclared",
159
+ sent: false
160
+ });
161
+ const deadline2 = AbortSignal.timeout(timeoutMs);
162
+ const signal = init.signal ? AbortSignal.any([init.signal, deadline2]) : deadline2;
163
+ try {
164
+ const response = await fetch(input, { ...init, signal, redirect: "manual" });
165
+ if (response.status >= 300 && response.status < 400) {
166
+ void response.body?.cancel().catch(() => {
167
+ });
168
+ throw new CliError("invalid_response", `${hostname} answered with a redirect, which is not followed`);
169
+ }
170
+ return response;
171
+ } catch (error) {
172
+ if (isCliError(error))
173
+ throw error;
174
+ if (init.signal?.aborted)
175
+ throw new CliError("cancelled", "request cancelled");
176
+ if (deadline2.aborted)
177
+ throw new CliError("timeout", `${hostname} did not answer within ${timeoutMs} ms`, { retryable: true });
178
+ throw new CliError("network_error", `${hostname} could not be reached`, { retryable: true });
179
+ }
180
+ }, "literalFetch");
181
+ var endpointFetch = /* @__PURE__ */ __name((address, timeoutMs) => {
182
+ const { hostname } = new URL(address);
183
+ if (hostname === "[::1]")
184
+ return fetch;
185
+ return hostname.startsWith("[") ? literalFetch(hostname, timeoutMs) : hostFetch({ hosts: [hostname], timeoutMs });
186
+ }, "endpointFetch");
187
+
135
188
  export {
136
189
  hostFetch,
137
- providerWaitMs
190
+ providerWaitMs,
191
+ endpoint,
192
+ onThisComputer,
193
+ modelAddressAllowed,
194
+ PLAIN_HTTP_REFUSED,
195
+ endpointFetch
138
196
  };
@@ -0,0 +1,54 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ resolvePaths
5
+ } from "./chunk-7MEVD5PI.js";
6
+ import {
7
+ __name
8
+ } from "./chunk-ZVVMGPBJ.js";
9
+
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/store/path.js
11
+ import { realpathSync } from "node:fs";
12
+ import { userInfo } from "node:os";
13
+ import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
14
+ var wirecatDirectory = /* @__PURE__ */ __name((env = process.env, platform) => resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env, ...platform ? { platform } : {} }).state, "wirecatDirectory");
15
+ var storePath = /* @__PURE__ */ __name((env = process.env) => env.MESSAGING_STORE ?? join(wirecatDirectory(env), "wirecat.db"), "storePath");
16
+ var accountHome = /* @__PURE__ */ __name(() => {
17
+ try {
18
+ return userInfo().homedir;
19
+ } catch {
20
+ return void 0;
21
+ }
22
+ }, "accountHome");
23
+ var inOwnerFolder = /* @__PURE__ */ __name((file, home = accountHome()) => {
24
+ if (!home || file === ":memory:")
25
+ return false;
26
+ const owner = wirecatDirectory({ HOME: home, USERPROFILE: home });
27
+ const within = /* @__PURE__ */ __name((path, folder) => {
28
+ const inside = relative(folder, path);
29
+ return !(inside.startsWith("..") || isAbsolute(inside));
30
+ }, "within");
31
+ return within(resolve(file), owner) || within(settled(resolve(file)), settled(owner));
32
+ }, "inOwnerFolder");
33
+ var settled = /* @__PURE__ */ __name((path) => {
34
+ try {
35
+ return realpathSync(path);
36
+ } catch {
37
+ const parent = dirname(path);
38
+ return parent === path ? path : join(settled(parent), basename(path));
39
+ }
40
+ }, "settled");
41
+ var refuseOwnerStoreInTests = /* @__PURE__ */ __name((file, env = process.env, home = accountHome()) => {
42
+ if (!env.VITEST || !inOwnerFolder(file, home))
43
+ return;
44
+ throw new Error(`a test tried to open ${file}, in the owner's real WireCat folder; give it a MESSAGING_STORE or HOME of its own`);
45
+ }, "refuseOwnerStoreInTests");
46
+
47
+ export {
48
+ wirecatDirectory,
49
+ storePath,
50
+ accountHome,
51
+ inOwnerFolder,
52
+ settled,
53
+ refuseOwnerStoreInTests
54
+ };
@@ -2,33 +2,33 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  stdinFieldOf
5
- } from "./chunk-EKGRNFYQ.js";
5
+ } from "./chunk-EDWJ7IYH.js";
6
6
  import {
7
7
  commandPathOf
8
- } from "./chunk-RUASZW3M.js";
8
+ } from "./chunk-PY2IOVUN.js";
9
9
  import {
10
10
  commandServerRequest,
11
11
  metaOf
12
- } from "./chunk-FKWUUCX2.js";
12
+ } from "./chunk-XELZCDWE.js";
13
13
  import {
14
14
  errorObjectOf,
15
15
  renderError
16
- } from "./chunk-X7J3TTDO.js";
16
+ } from "./chunk-ECZSYLSL.js";
17
17
  import {
18
18
  CliError
19
- } from "./chunk-VUBZFMGP.js";
19
+ } from "./chunk-7KCBPAQS.js";
20
20
  import {
21
21
  __name
22
22
  } from "./chunk-ZVVMGPBJ.js";
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/command-server.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/command-server.js
25
25
  import { createInterface } from "node:readline";
26
26
 
27
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/command-server-argv.js
27
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/command-server-argv.js
28
28
  var COMMAND_SERVER_ARGV = ["commands", "--serve"];
29
29
  var isCommandServer = /* @__PURE__ */ __name((args) => args.length === COMMAND_SERVER_ARGV.length && COMMAND_SERVER_ARGV.every((word, at) => args[at] === word), "isCommandServer");
30
30
 
31
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/command-server.js
31
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/command-server.js
32
32
  var COMMAND_SERVER_PROTOCOL = 1;
33
33
  var COMMAND_SERVER_IDLE_MS = 10 * 6e4;
34
34
  var COMMAND_SERVER_CONCURRENT = 8;
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
8
8
  var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
9
9
  var kindsByConstructor = /* @__PURE__ */ new WeakMap();
10
10
  function collectKinds(ctor) {
@@ -5,19 +5,19 @@ import {
5
5
  fieldsOf,
6
6
  processStreams,
7
7
  projectFields
8
- } from "./chunk-FNLUKODV.js";
8
+ } from "./chunk-7MEVD5PI.js";
9
9
  import {
10
10
  COMPACT_FLAG
11
- } from "./chunk-X7J3TTDO.js";
11
+ } from "./chunk-ECZSYLSL.js";
12
12
  import {
13
13
  CliError,
14
14
  singleLine
15
- } from "./chunk-VUBZFMGP.js";
15
+ } from "./chunk-7KCBPAQS.js";
16
16
  import {
17
17
  __name
18
18
  } from "./chunk-ZVVMGPBJ.js";
19
19
 
20
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/sends/permissions.js
20
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/sends/permissions.js
21
21
  var LEVELS = ["deny", "readonly", "ask", "allow"];
22
22
  var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
23
23
  var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
@@ -39,9 +39,11 @@ var DEFAULT_PERMISSIONS = {
39
39
  "store.migrate": "ask",
40
40
  "store.repair": "ask",
41
41
  "store.reset": "ask",
42
+ "store.import": "ask",
42
43
  "store.clear": "ask",
43
44
  "store.decrypt": "ask",
44
45
  "store.copies.delete": "ask",
46
+ "store.recover.run": "ask",
45
47
  "server.start": "ask",
46
48
  "server.stop": "ask",
47
49
  "server.restart": "ask",
@@ -331,6 +333,8 @@ var readKeysForCommand = /* @__PURE__ */ __name((path) => {
331
333
  return [key, "messages"];
332
334
  if (path[0] === "store" && ["reset", "clear", "decrypt"].includes(path[1] ?? ""))
333
335
  return [key, "messages"];
336
+ if (key === "store.recover.run")
337
+ return [key, "messages"];
334
338
  if (path[0] === "search") {
335
339
  if (path[1] === "notes")
336
340
  return [key];
@@ -417,7 +421,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
417
421
  }
418
422
  }, "assertRetentionEvidenceRead");
419
423
 
420
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
424
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
421
425
  var named = /* @__PURE__ */ __name((work) => {
422
426
  try {
423
427
  return work();
@@ -444,7 +448,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
444
448
  return projectFields(value, fields);
445
449
  }), "projectFields");
446
450
 
447
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/output-detail.js
451
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/output-detail.js
448
452
  var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
449
453
  var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
450
454
  var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
@@ -480,7 +484,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
480
484
  return value;
481
485
  }, "atDetail");
482
486
 
483
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/output.js
487
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/output.js
484
488
  var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
485
489
  const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
486
490
  if (other)
@@ -548,6 +552,7 @@ export {
548
552
  LEVELS,
549
553
  skipFlagFor,
550
554
  DEFAULT_PERMISSIONS,
555
+ KEYED_UNDER_HOUSEKEEPING,
551
556
  AUTHORITY_KEY,
552
557
  authorityAllowed,
553
558
  BOT_API_KEY,
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/http/listen.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/http/listen.js
8
8
  import { createServer } from "node:http";
9
9
  import { Readable } from "node:stream";
10
10
  var MAX_BODY = 4 * 1024 * 1024;