@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
@@ -13,7 +13,7 @@ import {
13
13
  permissionOverrides,
14
14
  projectFields,
15
15
  resolveOutput
16
- } from "./chunk-UFWCJUGA.js";
16
+ } from "./chunk-7LDC275M.js";
17
17
  import {
18
18
  currentCaller,
19
19
  endpointTemplate,
@@ -24,17 +24,17 @@ import {
24
24
  providerErrorKey,
25
25
  renderEvent,
26
26
  runContextOf
27
- } from "./chunk-FVZST7ZH.js";
27
+ } from "./chunk-2KVR7FF3.js";
28
28
  import {
29
29
  permissionCeiling
30
- } from "./chunk-H5XCD6OG.js";
30
+ } from "./chunk-ER6PJAPK.js";
31
31
  import {
32
32
  carries
33
- } from "./chunk-LO66SLGD.js";
33
+ } from "./chunk-UJEO3VWA.js";
34
34
  import {
35
35
  filesPresent,
36
36
  sharedModelsDirectory
37
- } from "./chunk-JBLZ5XQG.js";
37
+ } from "./chunk-F5SZVO3A.js";
38
38
  import {
39
39
  author,
40
40
  count,
@@ -48,7 +48,7 @@ import {
48
48
  text,
49
49
  time,
50
50
  untrusted
51
- } from "./chunk-URC4ATBD.js";
51
+ } from "./chunk-2A4BAMNF.js";
52
52
  import {
53
53
  FACT_STATUSES,
54
54
  LINK_KINDS,
@@ -64,13 +64,11 @@ import {
64
64
  TASK_TYPES,
65
65
  TASK_VERDICTS,
66
66
  WORK_TASK_TYPES
67
- } from "./chunk-NHVOJHHD.js";
67
+ } from "./chunk-NGZW2JPK.js";
68
68
  import {
69
69
  FACT_TYPES,
70
70
  FIELD_TYPES,
71
71
  MEETING_RESULT_ENTITIES,
72
- PAYMENT_DIRECTIONS,
73
- PAYMENT_STATES,
74
72
  QUERY_BACKENDS,
75
73
  TAG_TYPES,
76
74
  describeQuery,
@@ -87,13 +85,13 @@ import {
87
85
  meetingStats,
88
86
  meetingSummary,
89
87
  meetingTranscript
90
- } from "./chunk-VMLGER4M.js";
88
+ } from "./chunk-UHHARH5X.js";
91
89
  import {
92
90
  sharedConfigPath
93
- } from "./chunk-SOCALLW5.js";
91
+ } from "./chunk-M2YIJDBL.js";
94
92
  import {
95
93
  storePath
96
- } from "./chunk-72CGQMAZ.js";
94
+ } from "./chunk-X5XIFNTI.js";
97
95
  import {
98
96
  configFilePath,
99
97
  createRecordLog,
@@ -103,7 +101,7 @@ import {
103
101
  saveConfigFile,
104
102
  traceIdOf,
105
103
  writeSecurely
106
- } from "./chunk-Y2O3DACO.js";
104
+ } from "./chunk-3EAAEF5U.js";
107
105
  import {
108
106
  COMPACT_FLAG,
109
107
  MAX_NEXT_STEPS,
@@ -155,7 +153,7 @@ import {
155
153
  unwrap,
156
154
  variant,
157
155
  writes
158
- } from "./chunk-M7JREJFC.js";
156
+ } from "./chunk-IVDUR5Y4.js";
159
157
  import {
160
158
  CliError,
161
159
  isCliError,
@@ -165,7 +163,7 @@ import {
165
163
  __name
166
164
  } from "./chunk-ZVVMGPBJ.js";
167
165
 
168
- // 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/ports/app.js
166
+ // 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/ports/app.js
169
167
  var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
170
168
  var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
171
169
  const name = envName(app, "READ_ONLY");
@@ -3877,11 +3875,11 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3877
3875
  }
3878
3876
  }, "refuseJoinedPath");
3879
3877
 
3880
- // 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/guarded.js
3878
+ // 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/guarded.js
3881
3879
  import { AsyncLocalStorage } from "node:async_hooks";
3882
- var sentIds = /* @__PURE__ */ __name((typed, message2) => ({
3880
+ var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
3883
3881
  messageId: message2.id,
3884
- ...message2.chatId && message2.chatId !== typed ? { resultChatId: message2.chatId } : {}
3882
+ ...message2.chatId && message2.chatId !== typed2 ? { resultChatId: message2.chatId } : {}
3885
3883
  }), "sentIds");
3886
3884
  var current = new AsyncLocalStorage();
3887
3885
  var writesInFlight = new AsyncLocalStorage();
@@ -3983,7 +3981,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
3983
3981
  }, "guardedWrite");
3984
3982
  var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
3985
3983
 
3986
- // 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/execution.js
3984
+ // 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/execution.js
3987
3985
  var DEFAULT_COMMAND_MS = 3e4;
3988
3986
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
3989
3987
  var DEFAULT_SYNC_MS = 15 * 6e4;
@@ -4089,6 +4087,7 @@ var execution = /* @__PURE__ */ __name((streams, { timeoutMs, fields, maxOutputB
4089
4087
  reason: "output.too-large",
4090
4088
  max_bytes: maxOutputBytes,
4091
4089
  emitted_bytes: bytes,
4090
+ needed_bytes: bytes + size,
4092
4091
  partial_output: bytes > 0
4093
4092
  });
4094
4093
  bytes += size;
@@ -4165,7 +4164,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
4165
4164
  }
4166
4165
  }, "withAbort");
4167
4166
 
4168
- // 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/accounts.js
4167
+ // 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/accounts.js
4169
4168
  import { existsSync, readdirSync, readFileSync } from "node:fs";
4170
4169
  import { join } from "node:path";
4171
4170
  var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
@@ -4187,7 +4186,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
4187
4186
  }, "profilesWithAccounts");
4188
4187
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
4189
4188
 
4190
- // 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/background/budget.js
4189
+ // 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/background/budget.js
4191
4190
  var DEADLINE_MARGIN_MS = 5e3;
4192
4191
  var DEADLINE_MARGIN_SHARE = 0.15;
4193
4192
  var DEFAULT_REQUEST_MS = 2e3;
@@ -4230,7 +4229,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests, deadline, requestMs, signal,
4230
4229
  };
4231
4230
  }, "runBudget");
4232
4231
 
4233
- // 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/runs/log-events.js
4232
+ // 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/runs/log-events.js
4234
4233
  var CORE_LOG_EVENTS = defineLogEvents([
4235
4234
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
4236
4235
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -4264,7 +4263,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
4264
4263
  cache: "cache.answered"
4265
4264
  };
4266
4265
 
4267
- // 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/runs/log-keys.js
4266
+ // 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/runs/log-keys.js
4268
4267
  var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
4269
4268
  var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
4270
4269
  var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
@@ -4277,13 +4276,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
4277
4276
  error: /* @__PURE__ */ __name((event2, message2) => logger.error(logAttributes(event2), message2), "error")
4278
4277
  }), "snakeLogger");
4279
4278
 
4280
- // 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/runs/run.js
4279
+ // 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/runs/run.js
4281
4280
  import { randomUUID } from "node:crypto";
4282
4281
  import { appendFileSync, mkdirSync, readdirSync as readdirSync2, readFileSync as readFileSync2, rmSync, statSync, writeFileSync } from "node:fs";
4283
4282
  import { userInfo } from "node:os";
4284
4283
  import { join as join2, sep } from "node:path";
4285
4284
 
4286
- // 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/runs/log-attributes.js
4285
+ // 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/runs/log-attributes.js
4287
4286
  var diagnostic = {
4288
4287
  event: true,
4289
4288
  operation: true,
@@ -4353,7 +4352,7 @@ var LOG_ATTRIBUTES = [
4353
4352
  ...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
4354
4353
  ].sort();
4355
4354
 
4356
- // 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/runs/run.js
4355
+ // 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/runs/run.js
4357
4356
  var KEEP_RUNS_FOR_DAYS = 30;
4358
4357
  var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
4359
4358
  var RUNS_SIZE_LIMIT_MB = 200;
@@ -4706,7 +4705,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
4706
4705
  };
4707
4706
  }, "metadataOf");
4708
4707
 
4709
- // 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/runs/scope.js
4708
+ // 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/runs/scope.js
4710
4709
  import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
4711
4710
  import { randomBytes } from "node:crypto";
4712
4711
  var scopes = new AsyncLocalStorage2();
@@ -4742,7 +4741,7 @@ var childTrace = /* @__PURE__ */ __name(() => {
4742
4741
  var attempts = new AsyncLocalStorage2();
4743
4742
  var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
4744
4743
 
4745
- // 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/runs/recording.js
4744
+ // 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/runs/recording.js
4746
4745
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
4747
4746
  const recording = startRecording(options);
4748
4747
  try {
@@ -4927,7 +4926,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
4927
4926
  return void 0;
4928
4927
  }, "partialOutcome");
4929
4928
 
4930
- // 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/deadline.js
4929
+ // 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/deadline.js
4931
4930
  var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
4932
4931
  if (ms === void 0)
4933
4932
  return body();
@@ -4953,7 +4952,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
4953
4952
  }
4954
4953
  }, "withDeadline");
4955
4954
 
4956
- // 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/profile.js
4955
+ // 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/profile.js
4957
4956
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
4958
4957
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
4959
4958
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -5022,10 +5021,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
5022
5021
  return void 0;
5023
5022
  }, "sampleCommand");
5024
5023
 
5025
- // 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/settings.js
5024
+ // 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/settings.js
5026
5025
  import { existsSync as existsSync3 } from "node:fs";
5027
5026
 
5028
- // 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/models/endpoint.js
5027
+ // 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/models/endpoint.js
5029
5028
  var endpoint = /* @__PURE__ */ __name((value) => {
5030
5029
  try {
5031
5030
  const url2 = new URL(value);
@@ -5035,7 +5034,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
5035
5034
  }
5036
5035
  }, "endpoint");
5037
5036
 
5038
- // 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/models/settings.js
5037
+ // 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/models/settings.js
5039
5038
  var MODEL_FIELDS = ["provider", "model", "base_url"];
5040
5039
  var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
5041
5040
  provider: optional(picklist(["off", "openai", "anthropic"])),
@@ -5104,7 +5103,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
5104
5103
  };
5105
5104
  }, "modelTarget");
5106
5105
 
5107
- // 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/analysis/settings.js
5106
+ // 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/analysis/settings.js
5108
5107
  var model = pipe(string(), trim(), minLength(1), maxLength(200));
5109
5108
  var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
5110
5109
  var AI_FIELDS = {
@@ -5148,7 +5147,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
5148
5147
  };
5149
5148
  }, "resolveAISettings");
5150
5149
 
5151
- // 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/domain/duration.js
5150
+ // 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/domain/duration.js
5152
5151
  var DURATION = /^(\d+)(ms|s|m|h|d)$/;
5153
5152
  var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
5154
5153
  var parseDuration = /* @__PURE__ */ __name((value, source2) => {
@@ -5162,7 +5161,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
5162
5161
  return ms;
5163
5162
  }, "parseDuration");
5164
5163
 
5165
- // 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/embeddings/models.js
5164
+ // 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/embeddings/models.js
5166
5165
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
5167
5166
  var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
5168
5167
  var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
@@ -5321,7 +5320,7 @@ var rerankModel = /* @__PURE__ */ __name((id6) => {
5321
5320
  var vectorModelKey = /* @__PURE__ */ __name((model3) => `local:${model3.id}:${model3.dims}`, "vectorModelKey");
5322
5321
  var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
5323
5322
 
5324
- // 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/services/history-limits.js
5323
+ // 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/services/history-limits.js
5325
5324
  var HISTORY_MAX_DAYS = 1095;
5326
5325
  var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
5327
5326
  var DAY_MS2 = 24 * 60 * 60 * 1e3;
@@ -5368,10 +5367,10 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
5368
5367
  return { batch: { ...batch, messages }, skipped };
5369
5368
  }, "limitBatch");
5370
5369
 
5371
- // 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/config-issues.js
5370
+ // 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/config-issues.js
5372
5371
  import { readFileSync as readFileSync3 } from "node:fs";
5373
5372
 
5374
- // 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/config-repair.js
5373
+ // 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/config-repair.js
5375
5374
  var REPAIR_WORDS = {
5376
5375
  byte_order_mark: "an invisible byte-order mark at the start",
5377
5376
  comment: "a comment, which JSON does not allow",
@@ -5612,7 +5611,7 @@ ${parts.join(",\n")}
5612
5611
  ${indent}${close}`;
5613
5612
  }, "serialise");
5614
5613
 
5615
- // 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/config-issues.js
5614
+ // 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/config-issues.js
5616
5615
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
5617
5616
  var SECTIONS = ["personal", "bot"];
5618
5617
  var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
@@ -5906,7 +5905,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
5906
5905
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
5907
5906
  }, "readConfigFile");
5908
5907
 
5909
- // 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/default-config.js
5908
+ // 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/default-config.js
5910
5909
  import { existsSync as existsSync2, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
5911
5910
  import { dirname, join as join3 } from "node:path";
5912
5911
  var DEFAULT_CONFIG = {
@@ -5935,7 +5934,29 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
5935
5934
  }
5936
5935
  __name(ensureDefaultConfig, "ensureDefaultConfig");
5937
5936
 
5938
- // 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/settings.js
5937
+ // 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/setting-defaults.js
5938
+ var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
5939
+ var parentOf = /* @__PURE__ */ __name((config, key) => {
5940
+ const path2 = key.split(".");
5941
+ const leaf = path2.pop();
5942
+ return { node: path2.reduce((node, part) => isNode2(node) ? node[part] : void 0, config), leaf };
5943
+ }, "parentOf");
5944
+ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
5945
+ if (raw !== void 0 && !isNode2(raw))
5946
+ return { config: raw, added: [] };
5947
+ const config = raw === void 0 ? {} : structuredClone(raw);
5948
+ const added = [];
5949
+ for (const setting2 of declared) {
5950
+ const { node, leaf } = parentOf(config, setting2.key);
5951
+ if (!isNode2(node) || Object.hasOwn(node, leaf))
5952
+ continue;
5953
+ node[leaf] = setting2.default;
5954
+ added.push(setting2.key);
5955
+ }
5956
+ return { config, added };
5957
+ }, "withSettingDefaults");
5958
+
5959
+ // 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/settings.js
5939
5960
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
5940
5961
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
5941
5962
  var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
@@ -6005,6 +6026,65 @@ var SHARED_DEFAULTS_ONLY = {
6005
6026
  update_check: optional(flag),
6006
6027
  skill_hint: optional(flag)
6007
6028
  };
6029
+ var SHARED_SETTINGS = [
6030
+ { key: "limit", default: DEFAULT_LIMIT, description: "how many items a list shows at once" },
6031
+ { key: "keep_runs_for_days", default: DEFAULT_KEEP_RUNS_FOR_DAYS, description: "days a run is kept" },
6032
+ {
6033
+ key: "sends_per_hour",
6034
+ default: DEFAULT_SENDS_PER_HOUR,
6035
+ description: "the most messages an account sends in an hour; a bot has none unless its section sets one"
6036
+ },
6037
+ { key: "update_check", default: true, description: "check once a day for a newer version" },
6038
+ {
6039
+ key: "skill_hint",
6040
+ default: true,
6041
+ description: "tell an agent once a day that `skill install` would give it this tool's guide"
6042
+ },
6043
+ { key: "record", default: true, description: "keep every run in runs list; false keeps failed runs only" },
6044
+ {
6045
+ key: "record_input",
6046
+ default: true,
6047
+ description: `keep what was typed in a run's command line: true, false, or "failed" for failed runs only`
6048
+ },
6049
+ {
6050
+ key: "keep_successful_runs_for_days",
6051
+ default: KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
6052
+ description: "days a successful run is kept"
6053
+ },
6054
+ { key: "runs_size_limit_mb", default: RUNS_SIZE_LIMIT_MB, description: "the most megabytes all runs may take" },
6055
+ { key: "sender_colors", default: false, description: "color each sender's name in a conversation" },
6056
+ { key: "search_catch_up", default: false, description: "prepare local search after a gaps repair" },
6057
+ {
6058
+ key: "history_dialog_days",
6059
+ default: DEFAULT_HISTORY_LIMITS.dialogDays,
6060
+ description: "days of a one-to-one chat's pushed history the store keeps"
6061
+ },
6062
+ {
6063
+ key: "history_group_days",
6064
+ default: DEFAULT_HISTORY_LIMITS.groupDays,
6065
+ description: "days of a group's pushed history the store keeps"
6066
+ },
6067
+ {
6068
+ key: "history_group_members_max",
6069
+ default: DEFAULT_HISTORY_LIMITS.groupMembersMax,
6070
+ description: "a group with more people than this keeps no pushed history"
6071
+ },
6072
+ {
6073
+ key: "picture_search",
6074
+ default: false,
6075
+ description: "search and images embed read the pictures themselves, with a model on this computer"
6076
+ },
6077
+ {
6078
+ key: "search_reranker",
6079
+ default: DEFAULT_RERANK_MODEL,
6080
+ description: "the reranker that orders search's first hits, or off"
6081
+ },
6082
+ {
6083
+ key: "embedding_provider",
6084
+ default: AI_DEFAULTS.embeddingProvider,
6085
+ description: "local or openai: what turns text into vectors for search by meaning"
6086
+ }
6087
+ ];
6008
6088
  var NONE_NAMED = "none named";
6009
6089
  var NO_PROFILE = "default";
6010
6090
  var namedProfile = /* @__PURE__ */ __name((settings) => settings.sources?.profile === NONE_NAMED ? void 0 : settings.profile, "namedProfile");
@@ -6057,12 +6137,14 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
6057
6137
  const defaultsOnlyKeys = Object.keys(defaultsOnly);
6058
6138
  const botOnlyKeys = Object.keys(BOT_ONLY_ENTRIES);
6059
6139
  const allSettings = [...Object.keys(profileEntries), ...botOnlyKeys, ...defaultsOnlyKeys].filter((setting2) => app.messenger !== false || !MESSENGER_ONLY_SETTINGS.includes(setting2) || app.sends === true && setting2 === "sends_per_hour");
6140
+ const readSchema = extension.schema ?? schema2;
6141
+ const declaredSettings = [...SHARED_SETTINGS, ...extension.settings ?? []].filter(({ key, default: value }) => allSettings.includes(key) && safeParse(readSchema, { defaults: { [key]: value } }).success).map((setting2) => ({ ...setting2, key: `defaults.${setting2.key}` }));
6142
+ const withDefaults = /* @__PURE__ */ __name((raw, except = []) => withSettingDefaults(isScope(raw) && !Object.hasOwn(raw, "defaults") ? { ...raw, defaults: {} } : raw, declaredSettings.filter(({ key }) => !except.includes(key))), "withDefaults");
6060
6143
  const PROFILE = envName(app, "PROFILE");
6061
6144
  const PROFILE_LOCK = envName(app, "PROFILE_LOCK");
6062
6145
  const TIMEOUT = envName(app, "TIMEOUT");
6063
6146
  const REQUESTS_PER_MINUTE = envName(app, "REQUESTS_PER_MINUTE");
6064
6147
  const configPathFor = /* @__PURE__ */ __name(({ env = process.env, configDir }) => configFilePath(configDir ?? resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).config), "configPathFor");
6065
- const readSchema = extension.schema ?? schema2;
6066
6148
  const context2 = /* @__PURE__ */ __name((file) => ({ file, tool: app.command }), "context");
6067
6149
  const loadConfig = /* @__PURE__ */ __name((path2) => {
6068
6150
  const read = readConfigText(path2);
@@ -6098,7 +6180,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
6098
6180
  const configPath = configPathFor(options);
6099
6181
  try {
6100
6182
  if (!options.readOnly)
6101
- ensureDefaultConfig(configPath);
6183
+ ensureDefaultConfig(configPath, withDefaults(DEFAULT_CONFIG).config);
6102
6184
  } catch (error) {
6103
6185
  throw new CliError("configuration_error", error instanceof Error ? error.message : String(error));
6104
6186
  }
@@ -6276,7 +6358,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
6276
6358
  throw new CliError("validation_error", `${setting2} has no problem to remove \u2014 name the profile, or add --defaults, to unset a setting`);
6277
6359
  if (!known && valueAt(raw, at2) === void 0)
6278
6360
  throw new CliError("validation_error", `no setting called "${setting2}" \u2014 one of: ${allSettings.join(", ")}`);
6279
- saveConfigFile(path2, withoutPath(raw, at2).config);
6361
+ saveConfigFile(path2, withDefaults(withoutPath(raw, at2).config, [at2.join(".")]).config);
6280
6362
  return null;
6281
6363
  }
6282
6364
  if (!known)
@@ -6297,13 +6379,24 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
6297
6379
  if (added)
6298
6380
  throw new CliError("validation_error", `${setting2} cannot be "${value}": ${added.what}`);
6299
6381
  const checked = safeParse(readSchema, changed);
6300
- saveConfigFile(path2, checked.success ? checked.output : changed);
6382
+ saveConfigFile(path2, withDefaults(checked.success ? checked.output : changed).config);
6301
6383
  return valueAt(checked.success ? checked.output : changed, at2) ?? null;
6302
6384
  }, "changeSetting");
6385
+ const migrate = /* @__PURE__ */ __name((path2) => {
6386
+ const read = readConfigFile(path2);
6387
+ if ("issue" in read)
6388
+ throw new CliError("configuration_error", issueMessage([read.issue]));
6389
+ const { config, added } = withDefaults(read.raw);
6390
+ if (added.length > 0)
6391
+ saveConfigFile(path2, config);
6392
+ return added;
6393
+ }, "migrate");
6303
6394
  return {
6304
6395
  resolveSettings,
6305
6396
  configuredProfiles,
6306
6397
  changeSetting,
6398
+ migrate,
6399
+ declaredSettings,
6307
6400
  allSettings,
6308
6401
  defaultsOnlyKeys,
6309
6402
  schema: schema2,
@@ -6344,7 +6437,7 @@ var given = /* @__PURE__ */ __name((value) => {
6344
6437
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
6345
6438
  }, "given");
6346
6439
 
6347
- // 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/context.js
6440
+ // 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/context.js
6348
6441
  var runBudgetOf = /* @__PURE__ */ __name((command, requests) => {
6349
6442
  const { deadline, signal, app } = environmentOf(command);
6350
6443
  const now = deadline?.();
@@ -6467,7 +6560,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
6467
6560
  return words.join(" ");
6468
6561
  }, "commandPath");
6469
6562
 
6470
- // 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/effects.js
6563
+ // 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/effects.js
6471
6564
  var REMOTE_READ = { remote: "read", local: "read" };
6472
6565
  var FETCH = { remote: "read", local: "write" };
6473
6566
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -6503,6 +6596,18 @@ var destroysNothing = /* @__PURE__ */ __name((command) => {
6503
6596
  KEPT_UNDER_LOCK.add(command);
6504
6597
  return command;
6505
6598
  }, "destroysNothing");
6599
+ var PROPOSE_COMMANDS = ["messages acknowledge", "mail findings add"];
6600
+ var PROPOSES = /* @__PURE__ */ new WeakSet();
6601
+ var proposesOnly = /* @__PURE__ */ __name((command) => {
6602
+ PROPOSES.add(command);
6603
+ return command;
6604
+ }, "proposesOnly");
6605
+ var isProposal = /* @__PURE__ */ __name((command) => {
6606
+ if (!PROPOSES.has(command))
6607
+ return false;
6608
+ const path2 = pathOf2(command).join(" ");
6609
+ return PROPOSE_COMMANDS.some((listed) => path2 === listed || path2.endsWith(` ${listed}`));
6610
+ }, "isProposal");
6506
6611
  var STORE_WRITES = /* @__PURE__ */ new WeakSet();
6507
6612
  var changesStore = /* @__PURE__ */ __name((command) => {
6508
6613
  STORE_WRITES.add(command);
@@ -6527,7 +6632,7 @@ var readsOverMcpAt = /* @__PURE__ */ __name((root) => (path2) => {
6527
6632
  }, "readsOverMcpAt");
6528
6633
  var isStoreChange = /* @__PURE__ */ __name((command) => {
6529
6634
  const effects = metaOf(command).effects;
6530
- return (effects?.remote === "none" || STORE_WRITES.has(command)) && effects?.local === "write" && !KEPT_UNDER_LOCK.has(command) && !changesAuthority(command) && writesFileNow(command);
6635
+ return (effects?.remote === "none" || STORE_WRITES.has(command)) && effects?.local === "write" && !KEPT_UNDER_LOCK.has(command) && !isProposal(command) && !changesAuthority(command) && writesFileNow(command);
6531
6636
  }, "isStoreChange");
6532
6637
  var STORE_CHANGE_REFUSAL = "change the message store";
6533
6638
  var previewFlag = /* @__PURE__ */ __name((program2) => program2.options.some((option) => option.long === "--dry-run") ? " --dry-run" : "", "previewFlag");
@@ -6575,7 +6680,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
6575
6680
  throw readOnlyRefusal(lock, what);
6576
6681
  }, "refuseUnderReadOnly");
6577
6682
 
6578
- // 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/entities/account.js
6683
+ // 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/entities/account.js
6579
6684
  var account = strictObject({
6580
6685
  provider: text,
6581
6686
  id,
@@ -6585,7 +6690,7 @@ var account = strictObject({
6585
6690
  scope: optional(picklist(["personal", "work"]))
6586
6691
  });
6587
6692
 
6588
- // 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/entities/account-session.js
6693
+ // 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/entities/account-session.js
6589
6694
  var accountSession = strictObject({
6590
6695
  current: boolean(),
6591
6696
  client: nullable(text),
@@ -6595,7 +6700,7 @@ var accountSession = strictObject({
6595
6700
  created_at: optional(nullable(time))
6596
6701
  });
6597
6702
 
6598
- // 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/entities/account-change.js
6703
+ // 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/entities/account-change.js
6599
6704
  var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
6600
6705
  var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
6601
6706
  var audience = picklist(["everyone", "contacts", "nobody"]);
@@ -6613,7 +6718,7 @@ var accountPrivacy = strictObject({
6613
6718
  });
6614
6719
  var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
6615
6720
 
6616
- // 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/entities/account-profile.js
6721
+ // 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/entities/account-profile.js
6617
6722
  var accountProfile = strictObject({
6618
6723
  profile: id,
6619
6724
  current: boolean(),
@@ -6623,7 +6728,7 @@ var accountProfile = strictObject({
6623
6728
  signed_in: optional(boolean())
6624
6729
  });
6625
6730
 
6626
- // 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/entities/counter-reading.js
6731
+ // 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/entities/counter-reading.js
6627
6732
  var milliseconds = pipe(number(), minValue(0));
6628
6733
  var counterReading = strictObject({
6629
6734
  counter: picklist(["views", "reactions", "comments"]),
@@ -6635,7 +6740,7 @@ var counterReading = strictObject({
6635
6740
  });
6636
6741
  var selection = record(string(), unknown());
6637
6742
 
6638
- // 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/entities/admin-report.js
6743
+ // 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/entities/admin-report.js
6639
6744
  var adminRow = strictObject({
6640
6745
  ref: reference,
6641
6746
  /** What `stats * evidence` takes: a person id, a stay or a message locator. */
@@ -6688,7 +6793,7 @@ var adminReport = strictObject({
6688
6793
  rows: array(adminRow)
6689
6794
  });
6690
6795
 
6691
- // 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/entities/task.js
6796
+ // 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/entities/task.js
6692
6797
  var closeSuggestion = strictObject({
6693
6798
  as: picklist(["done", "dismissed"]),
6694
6799
  /** The agent's name. */
@@ -6746,7 +6851,7 @@ var task = strictObject({
6746
6851
  updated_at: optional(time)
6747
6852
  });
6748
6853
 
6749
- // 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/entities/agenda.js
6854
+ // 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/entities/agenda.js
6750
6855
  var agendaChat = strictObject({
6751
6856
  chat: reference,
6752
6857
  title: nullable(text),
@@ -6816,11 +6921,11 @@ var agenda = strictObject({
6816
6921
  unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
6817
6922
  });
6818
6923
 
6819
- // 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/entities/analysis-consent.js
6924
+ // 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/entities/analysis-consent.js
6820
6925
  var analysisConsent = strictObject({ chat: id, provider: text, at: time });
6821
6926
  var analysisConsentRevocation = strictObject({ revoked: boolean() });
6822
6927
 
6823
- // 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/entities/attachment.js
6928
+ // 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/entities/attachment.js
6824
6929
  var attachment = strictObject({
6825
6930
  /** The message it came with, as a locator; absent inside that message. */
6826
6931
  message: optional(reference),
@@ -6858,7 +6963,7 @@ var attachment = strictObject({
6858
6963
  });
6859
6964
  var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
6860
6965
 
6861
- // 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/entities/batch-result.js
6966
+ // 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/entities/batch-result.js
6862
6967
  var actionableError = objectWithRest({
6863
6968
  code: text,
6864
6969
  message: text,
@@ -6875,7 +6980,7 @@ var batchResult = strictObject({
6875
6980
  max_error_percent: count
6876
6981
  });
6877
6982
 
6878
- // 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/entities/extraction-report.js
6983
+ // 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/entities/extraction-report.js
6879
6984
  var extractionItem = strictObject({
6880
6985
  ref: reference,
6881
6986
  attachment: count,
@@ -6908,7 +7013,7 @@ var extractionReport = strictObject({
6908
7013
  cursor: optional(text)
6909
7014
  });
6910
7015
 
6911
- // 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/entities/attachment-results.js
7016
+ // 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/entities/attachment-results.js
6912
7017
  var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
6913
7018
  var attachmentBytes = strictObject({
6914
7019
  ref: reference,
@@ -6936,7 +7041,7 @@ var attachmentTextChange = strictObject({
6936
7041
  replaced: nullable(picklist(["extracted", "agent"]))
6937
7042
  });
6938
7043
 
6939
- // 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/entities/chart.js
7044
+ // 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/entities/chart.js
6940
7045
  var chart = strictObject({
6941
7046
  version: literal(1),
6942
7047
  kind: picklist(["bar", "line", "grouped-bar"]),
@@ -6951,7 +7056,7 @@ var chart = strictObject({
6951
7056
  file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
6952
7057
  });
6953
7058
 
6954
- // 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/entities/member.js
7059
+ // 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/entities/member.js
6955
7060
  var member = strictObject({
6956
7061
  id,
6957
7062
  name: nullable(text),
@@ -6974,7 +7079,7 @@ var member = strictObject({
6974
7079
  check: optional(record(string(), unknown()))
6975
7080
  });
6976
7081
 
6977
- // 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/entities/chat.js
7082
+ // 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/entities/chat.js
6978
7083
  var setting = optional(nullable(boolean()));
6979
7084
  var chat = strictObject({
6980
7085
  ref: reference,
@@ -7015,7 +7120,7 @@ var chat = strictObject({
7015
7120
  members: optional(array(member))
7016
7121
  });
7017
7122
 
7018
- // 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/entities/folder.js
7123
+ // 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/entities/folder.js
7019
7124
  var named = strictObject({
7020
7125
  id,
7021
7126
  title: nullable(text),
@@ -7038,7 +7143,7 @@ var folder = strictObject({
7038
7143
  excluded_chats: optional(array(named))
7039
7144
  });
7040
7145
 
7041
- // 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/entities/invite-link.js
7146
+ // 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/entities/invite-link.js
7042
7147
  var inviteLink = strictObject({
7043
7148
  link: text,
7044
7149
  /** Who joins by it asks first, and an admin lets them in. */
@@ -7054,7 +7159,7 @@ var inviteLink = strictObject({
7054
7159
  joined_count: optional(count)
7055
7160
  });
7056
7161
 
7057
- // 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/entities/chat-admin.js
7162
+ // 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/entities/chat-admin.js
7058
7163
  var operated = { operation_id: id, chat_id: id };
7059
7164
  var group = strictObject({
7060
7165
  ...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
@@ -7134,7 +7239,7 @@ var chatFolderOrder = strictObject({
7134
7239
  folders: array(strictObject({ id, title: text }))
7135
7240
  });
7136
7241
 
7137
- // 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/entities/chat-change.js
7242
+ // 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/entities/chat-change.js
7138
7243
  var operated2 = { operation_id: id, chat_id: id };
7139
7244
  var chatRemoval = strictObject(operated2);
7140
7245
  var chatMuting = strictObject({
@@ -7145,7 +7250,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
7145
7250
  var chatPin = strictObject({ ...operated2, pinned: boolean() });
7146
7251
  var chatUnread = strictObject({ ...operated2, unread: literal(true) });
7147
7252
 
7148
- // 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/entities/chat-event.js
7253
+ // 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/entities/chat-event.js
7149
7254
  var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
7150
7255
  var chatEvent = strictObject({
7151
7256
  chat_id: id,
@@ -7162,7 +7267,7 @@ var chatEvent = strictObject({
7162
7267
  before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
7163
7268
  });
7164
7269
 
7165
- // 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/entities/chat-metadata.js
7270
+ // 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/entities/chat-metadata.js
7166
7271
  var chatMetadata = strictObject({
7167
7272
  chat_id: id,
7168
7273
  title: nullable(text),
@@ -7177,7 +7282,7 @@ var chatMetadataRefresh = strictObject({
7177
7282
  has_more: boolean()
7178
7283
  });
7179
7284
 
7180
- // 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/entities/chat-moderation.js
7285
+ // 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/entities/chat-moderation.js
7181
7286
  var action = picklist(["report", "delete", "remove"]);
7182
7287
  var level = picklist(["deny", "readonly", "ask", "allow"]);
7183
7288
  var chatRules = strictObject({
@@ -7214,7 +7319,7 @@ var chatModeration = strictObject({
7214
7319
  }))
7215
7320
  });
7216
7321
 
7217
- // 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/entities/chat-stats.js
7322
+ // 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/entities/chat-stats.js
7218
7323
  var optionalCount = optional(count);
7219
7324
  var minutes = nullable(number());
7220
7325
  var chatStats = strictObject({
@@ -7276,7 +7381,7 @@ var taskStats = strictObject({
7276
7381
  }))
7277
7382
  });
7278
7383
 
7279
- // 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/entities/chat-tracking.js
7384
+ // 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/entities/chat-tracking.js
7280
7385
  var memberCount = strictObject({
7281
7386
  day: pipe(text, isoDate()),
7282
7387
  participants: nullable(count),
@@ -7299,7 +7404,7 @@ var chatTracking = strictObject({
7299
7404
  tracked: boolean()
7300
7405
  });
7301
7406
 
7302
- // 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/entities/contact-read.js
7407
+ // 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/entities/contact-read.js
7303
7408
  var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
7304
7409
  var contactSync = strictObject({ added: count, changed: count, known: count });
7305
7410
  var profileFields = {
@@ -7337,7 +7442,7 @@ var profileFields = {
7337
7442
  }))
7338
7443
  };
7339
7444
 
7340
- // 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/entities/contact.js
7445
+ // 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/entities/contact.js
7341
7446
  var contact = strictObject({
7342
7447
  ref: reference,
7343
7448
  id,
@@ -7368,7 +7473,7 @@ var contact = strictObject({
7368
7473
  notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
7369
7474
  });
7370
7475
 
7371
- // 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/botcheck/reasons.js
7476
+ // 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/botcheck/reasons.js
7372
7477
  var WEIGHTS = {
7373
7478
  bot: 3,
7374
7479
  scam: 3,
@@ -7393,7 +7498,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
7393
7498
  var DIGITS = /\d{5,}/;
7394
7499
  var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
7395
7500
 
7396
- // 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/entities/contact-activity.js
7501
+ // 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/entities/contact-activity.js
7397
7502
  var linkedIdentity = strictObject({
7398
7503
  provider: text,
7399
7504
  id,
@@ -7434,7 +7539,7 @@ var contactCheck = strictObject({
7434
7539
  checked_at: time
7435
7540
  });
7436
7541
 
7437
- // 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/entities/message.js
7542
+ // 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/entities/message.js
7438
7543
  var quoted = strictObject({
7439
7544
  id,
7440
7545
  sender_id: nullable(id),
@@ -7542,12 +7647,18 @@ var message = strictObject({
7542
7647
  /** Mail `review`: its List-Id, `null` when it has none. */
7543
7648
  list_id: optional(nullable(text)),
7544
7649
  /** Mail `review`: the mail rule that decided how it is stored, by its id in `rules list`; `null` when none. */
7545
- rule_id: optional(nullable(number()))
7650
+ rule_id: optional(nullable(number())),
7651
+ /** Mail `review`: the evidence fingerprint a finding cites this email by. */
7652
+ fingerprint: optional(pipe(text, regex(/^[a-f0-9]{64}$/))),
7653
+ /** Mail `review`: no earlier stored email, in any account, came from this address. */
7654
+ new_sender: optional(boolean()),
7655
+ /** Mail `review`: how many identities the sender's person has; 1 is this address alone. */
7656
+ sender_identities: optional(number())
7546
7657
  })),
7547
7658
  provider_metadata: providerMetadata
7548
7659
  });
7549
7660
 
7550
- // 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/entities/contact-context.js
7661
+ // 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/entities/contact-context.js
7551
7662
  var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
7552
7663
  var contextMessage = strictObject({
7553
7664
  locator: reference,
@@ -7745,7 +7856,7 @@ var contactPreparation = strictObject({
7745
7856
  })
7746
7857
  });
7747
7858
 
7748
- // 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/entities/contact-note.js
7859
+ // 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/entities/contact-note.js
7749
7860
  var contactNote = strictObject({
7750
7861
  id,
7751
7862
  /** The contact, as a `contact:` reference. */
@@ -7757,13 +7868,13 @@ var contactNote = strictObject({
7757
7868
  updated_at: time
7758
7869
  });
7759
7870
 
7760
- // 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/entities/contact-write.js
7871
+ // 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/entities/contact-write.js
7761
7872
  var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
7762
7873
  var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
7763
7874
  var contactStateChange = strictObject({ operation_id: id, person_id: id });
7764
7875
  var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
7765
7876
 
7766
- // 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/entities/conversation.js
7877
+ // 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/entities/conversation.js
7767
7878
  var conversation = strictObject({
7768
7879
  id,
7769
7880
  chat: reference,
@@ -7778,7 +7889,7 @@ var conversation = strictObject({
7778
7889
  rules_version: count
7779
7890
  });
7780
7891
 
7781
- // 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/entities/conversation-preparation.js
7892
+ // 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/entities/conversation-preparation.js
7782
7893
  var conversationBuild = strictObject({
7783
7894
  chat: id,
7784
7895
  messages: count,
@@ -7803,7 +7914,7 @@ var catchUpPreparation = strictObject({
7803
7914
  prepared: optional(conversationPreparation)
7804
7915
  });
7805
7916
 
7806
- // 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/entities/conversation-results.js
7917
+ // 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/entities/conversation-results.js
7807
7918
  var conversationDetails = union([
7808
7919
  strictObject({ ...conversation.entries, messages: array(message) }),
7809
7920
  message
@@ -7893,7 +8004,7 @@ var conversationHit = strictObject({
7893
8004
  stale: boolean()
7894
8005
  });
7895
8006
 
7896
- // 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/entities/counters.js
8007
+ // 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/entities/counters.js
7897
8008
  var counters = strictObject({
7898
8009
  cutoff: time,
7899
8010
  max_age_ms: milliseconds,
@@ -7923,7 +8034,7 @@ var counterRefresh = strictObject({
7923
8034
  complete: optional(boolean())
7924
8035
  });
7925
8036
 
7926
- // 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/entities/document.js
8037
+ // 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/entities/document.js
7927
8038
  var document = strictObject({
7928
8039
  ref: reference,
7929
8040
  id,
@@ -7938,7 +8049,7 @@ var document = strictObject({
7938
8049
  owners: optional(array(text))
7939
8050
  });
7940
8051
 
7941
- // 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/entities/document-link.js
8052
+ // 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/entities/document-link.js
7942
8053
  var documentLink = strictObject({
7943
8054
  ref: reference,
7944
8055
  url: text,
@@ -7949,7 +8060,7 @@ var documentLink = strictObject({
7949
8060
  sender: strictObject({ id: nullable(id), name: nullable(text) })
7950
8061
  });
7951
8062
 
7952
- // 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/entities/evidence.js
8063
+ // 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/entities/evidence.js
7953
8064
  var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
7954
8065
  var contribution = strictObject({
7955
8066
  message: evidenceMessage,
@@ -7979,17 +8090,7 @@ var retentionStay = strictObject({
7979
8090
  });
7980
8091
  var evidence = union([contribution, retentionStay]);
7981
8092
 
7982
- // 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/entities/fact.js
7983
- var payment = strictObject({
7984
- amount: text,
7985
- currency: text,
7986
- direction: picklist(PAYMENT_DIRECTIONS),
7987
- counterparty: nullable(reference),
7988
- counterparty_name: nullable(text),
7989
- due_at: nullable(text),
7990
- state: picklist(PAYMENT_STATES),
7991
- item: nullable(text)
7992
- });
8093
+ // 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/entities/fact.js
7993
8094
  var fact = strictObject({
7994
8095
  ref: reference,
7995
8096
  id,
@@ -8013,15 +8114,13 @@ var fact = strictObject({
8013
8114
  /** Who recorded it: the owner, or an agent whose fact waits as proposed. */
8014
8115
  origin: picklist(["owner", "agent"]),
8015
8116
  evidence: array(reference),
8016
- /** A `payment` fact's fields. */
8017
- payment: optional(nullable(payment)),
8018
8117
  /** With `--sources`: each piece of evidence read back. */
8019
8118
  sources: optional(array(evidenceSource)),
8020
8119
  created_at: time,
8021
8120
  updated_at: time
8022
8121
  });
8023
8122
 
8024
- // 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/entities/hit.js
8123
+ // 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/entities/hit.js
8025
8124
  var hit = strictObject({
8026
8125
  kind: picklist(["message", "mail", "note", "document", "event", "meeting"]),
8027
8126
  ref: reference,
@@ -8059,7 +8158,7 @@ var hit = strictObject({
8059
8158
  untrusted
8060
8159
  });
8061
8160
 
8062
- // 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/entities/identity.js
8161
+ // 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/entities/identity.js
8063
8162
  var identity = strictObject({
8064
8163
  ref: reference,
8065
8164
  provider: text,
@@ -8072,7 +8171,7 @@ var identity = strictObject({
8072
8171
  person: optional(nullable(reference))
8073
8172
  });
8074
8173
 
8075
- // 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/entities/image-embedding.js
8174
+ // 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/entities/image-embedding.js
8076
8175
  var imageEmbedding = strictObject({
8077
8176
  model: text,
8078
8177
  embedded: count,
@@ -8081,13 +8180,13 @@ var imageEmbedding = strictObject({
8081
8180
  more: boolean()
8082
8181
  });
8083
8182
 
8084
- // 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/services/backfill-jobs.js
8183
+ // 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/services/backfill-jobs.js
8085
8184
  import { spawn } from "node:child_process";
8086
8185
  import { randomBytes as randomBytes2 } from "node:crypto";
8087
8186
  import { closeSync, existsSync as existsSync4, mkdirSync as mkdirSync3, openSync, readdirSync as readdirSync3, readFileSync as readFileSync4, realpathSync, rmSync as rmSync3 } from "node:fs";
8088
8187
  import { dirname as dirname2, join as join4 } from "node:path";
8089
8188
 
8090
- // 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/background/checkpoints.js
8189
+ // 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/background/checkpoints.js
8091
8190
  var progressOf = /* @__PURE__ */ __name((input) => {
8092
8191
  const total = input.total ?? null;
8093
8192
  const updated = input.updatedAt ?? null;
@@ -8103,7 +8202,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
8103
8202
  };
8104
8203
  }, "progressOf");
8105
8204
 
8106
- // 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/runs/record-log.js
8205
+ // 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/runs/record-log.js
8107
8206
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
8108
8207
  const run = currentRun();
8109
8208
  const trace = traceId ?? run.traceId;
@@ -8117,7 +8216,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
8117
8216
  }));
8118
8217
  }, "recordLogFor");
8119
8218
 
8120
- // 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/services/backfill-jobs.js
8219
+ // 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/services/backfill-jobs.js
8121
8220
  var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
8122
8221
  var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
8123
8222
  const out = openSync(log, "a", 384);
@@ -8167,11 +8266,11 @@ var finishJob = /* @__PURE__ */ __name((app, dir, id6, change) => {
8167
8266
  const job2 = readJob(dir, id6);
8168
8267
  if (!job2)
8169
8268
  return;
8170
- const outcome2 = stateOf(job2);
8269
+ const outcome3 = stateOf(job2);
8171
8270
  recordLogFor(recordsPath(dir, id6), app, job2.traceId ? { traceId: job2.traceId } : {})[job2.error ? "error" : "info"]({
8172
8271
  event: "job.exit",
8173
8272
  job: id6,
8174
- outcome: outcome2,
8273
+ outcome: outcome3,
8175
8274
  ...job2.error ? { errorCode: job2.error.code } : {}
8176
8275
  });
8177
8276
  }, "finishJob");
@@ -8272,7 +8371,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
8272
8371
  return { job: id6, pid, chat: input.chat, log };
8273
8372
  }, "startArchiveJob");
8274
8373
 
8275
- // 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/entities/job.js
8374
+ // 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/entities/job.js
8276
8375
  var problem = strictObject({ code: text, message: text });
8277
8376
  var job = strictObject({
8278
8377
  id,
@@ -8295,7 +8394,7 @@ var job = strictObject({
8295
8394
  error: optional(problem)
8296
8395
  });
8297
8396
 
8298
- // 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/entities/join-request.js
8397
+ // 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/entities/join-request.js
8299
8398
  var joinRequest = strictObject({
8300
8399
  person_id: id,
8301
8400
  name: nullable(text),
@@ -8306,7 +8405,7 @@ var joinRequest = strictObject({
8306
8405
  about: optional(text)
8307
8406
  });
8308
8407
 
8309
- // 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/entities/list-results.js
8408
+ // 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/entities/list-results.js
8310
8409
  var botProfile = strictObject({
8311
8410
  name: text,
8312
8411
  token: text,
@@ -8374,7 +8473,7 @@ var stickerInventory = strictObject({
8374
8473
  url: optional(nullable(text))
8375
8474
  });
8376
8475
 
8377
- // 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/entities/poll-vote.js
8476
+ // 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/entities/poll-vote.js
8378
8477
  var pollVote = strictObject({
8379
8478
  person_id: id,
8380
8479
  name: nullable(text),
@@ -8384,7 +8483,7 @@ var pollVote = strictObject({
8384
8483
  voted_at: time
8385
8484
  });
8386
8485
 
8387
- // 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/entities/listener.js
8486
+ // 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/entities/listener.js
8388
8487
  var reactions = unwrap(unwrap(message.entries.reactions));
8389
8488
  var observation = strictObject({
8390
8489
  value: pipe(number(), minValue(0)),
@@ -8426,7 +8525,73 @@ var serveSummary = strictObject({
8426
8525
  tasks: optional(strictObject({ added: count, closed: count, review: count }))
8427
8526
  });
8428
8527
 
8429
- // 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/entities/media-archive.js
8528
+ // 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/entities/mail-findings.js
8529
+ var evidence2 = strictObject({ reference, fingerprint: text });
8530
+ var base = { id, evidence: array(evidence2) };
8531
+ var finding = variant("kind", [
8532
+ strictObject({
8533
+ ...base,
8534
+ kind: literal("task"),
8535
+ project: optional(reference),
8536
+ type: picklist(WORK_TASK_TYPES),
8537
+ title: text,
8538
+ reason: text,
8539
+ commitment: picklist(["explicit", "inferred"]),
8540
+ due_at: optional(time),
8541
+ due_evidence: optional(array(reference)),
8542
+ assignee: optional(reference),
8543
+ assignee_evidence: optional(array(reference))
8544
+ }),
8545
+ strictObject({
8546
+ ...base,
8547
+ kind: literal("fact"),
8548
+ project: optional(reference),
8549
+ subject: optional(reference),
8550
+ type: picklist(FACT_TYPES),
8551
+ statement: text
8552
+ }),
8553
+ strictObject({
8554
+ ...base,
8555
+ kind: literal("task_update"),
8556
+ task: reference,
8557
+ change: picklist(["close", "due", "detail"]),
8558
+ due_at: optional(time),
8559
+ detail: optional(text),
8560
+ reason: text
8561
+ }),
8562
+ strictObject({
8563
+ ...base,
8564
+ kind: literal("memory"),
8565
+ memory_kind: picklist(MEMORY_KINDS),
8566
+ scope: picklist(MEMORY_SCOPES),
8567
+ body: text,
8568
+ subject: optional(reference),
8569
+ project: optional(reference)
8570
+ }),
8571
+ strictObject({ ...base, kind: literal("link"), from: reference, to: reference, reason: text }),
8572
+ strictObject({ ...base, kind: literal("new_contact"), address: text, name: text, reason: optional(text) })
8573
+ ]);
8574
+ var outcome = strictObject({
8575
+ id,
8576
+ fingerprint: text,
8577
+ status: picklist(["accepted", "rejected"]),
8578
+ reference: nullable(reference),
8579
+ reused: boolean()
8580
+ });
8581
+ var mailFindings = strictObject({
8582
+ id,
8583
+ account: strictObject({ provider: text, account: text }),
8584
+ input: strictObject({ schema_version: literal(1), key: text, extractor: text, findings: array(finding) }),
8585
+ fingerprint: text,
8586
+ status: picklist(["proposed", "reviewed"]),
8587
+ author,
8588
+ decided_by: nullable(strictObject({ type: picklist(["person", "bot"]), id })),
8589
+ decided_at: nullable(time),
8590
+ previous: array(outcome),
8591
+ receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome) }))
8592
+ });
8593
+
8594
+ // 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/entities/media-archive.js
8430
8595
  var mediaArchive = strictObject({
8431
8596
  directory: text,
8432
8597
  chats: count,
@@ -8458,7 +8623,7 @@ var mediaArchiveTimer = union([
8458
8623
  strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
8459
8624
  ]);
8460
8625
 
8461
- // 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/entities/meeting-preparation-parts.js
8626
+ // 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/entities/meeting-preparation-parts.js
8462
8627
  var preparationId = pipe(string(), minLength(1));
8463
8628
  var preparationCount = pipe(number(), integer(), minValue(0));
8464
8629
  var preparationTime = nullable(isoTime);
@@ -8550,7 +8715,7 @@ var preparationMeeting = strictObject({
8550
8715
  updated_at: isoTime
8551
8716
  });
8552
8717
 
8553
- // 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/entities/meeting-evidence.js
8718
+ // 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/entities/meeting-evidence.js
8554
8719
  var meetingEvidence = preparationEvidence;
8555
8720
  var meetingPersonContext = strictObject({
8556
8721
  person: strictObject({ uid: string(), name: nullable(string()) }),
@@ -8572,13 +8737,13 @@ var meetingPersonContext = strictObject({
8572
8737
  })
8573
8738
  });
8574
8739
 
8575
- // 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/entities/meeting-findings.js
8576
- var evidence2 = strictObject({ reference, fingerprint: text });
8577
- var base = { id, project: reference, evidence: array(evidence2) };
8578
- var finding = variant("kind", [
8579
- strictObject({ ...base, kind: literal("fact"), type: picklist(FACT_TYPES), statement: text }),
8740
+ // 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/entities/meeting-findings.js
8741
+ var evidence3 = strictObject({ reference, fingerprint: text });
8742
+ var base2 = { id, project: reference, evidence: array(evidence3) };
8743
+ var finding2 = variant("kind", [
8744
+ strictObject({ ...base2, kind: literal("fact"), type: picklist(FACT_TYPES), statement: text }),
8580
8745
  strictObject({
8581
- ...base,
8746
+ ...base2,
8582
8747
  kind: literal("task"),
8583
8748
  type: picklist(WORK_TASK_TYPES),
8584
8749
  title: text,
@@ -8590,7 +8755,7 @@ var finding = variant("kind", [
8590
8755
  assignee_evidence: optional(array(reference))
8591
8756
  })
8592
8757
  ]);
8593
- var outcome = strictObject({
8758
+ var outcome2 = strictObject({
8594
8759
  id,
8595
8760
  fingerprint: text,
8596
8761
  status: picklist(["accepted", "rejected"]),
@@ -8600,17 +8765,17 @@ var outcome = strictObject({
8600
8765
  var meetingFindings = strictObject({
8601
8766
  id,
8602
8767
  account: strictObject({ provider: text, account: text }),
8603
- input: strictObject({ schema_version: literal(1), key: text, extractor: text, findings: array(finding) }),
8768
+ input: strictObject({ schema_version: literal(1), key: text, extractor: text, findings: array(finding2) }),
8604
8769
  fingerprint: text,
8605
8770
  status: picklist(["proposed", "reviewed"]),
8606
8771
  author,
8607
8772
  decided_by: nullable(strictObject({ type: picklist(["person", "bot"]), id })),
8608
8773
  decided_at: nullable(time),
8609
- previous: array(outcome),
8610
- receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome) }))
8774
+ previous: array(outcome2),
8775
+ receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
8611
8776
  });
8612
8777
 
8613
- // 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/entities/meeting-communications.js
8778
+ // 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/entities/meeting-communications.js
8614
8779
  var communicationCoverage = strictObject({
8615
8780
  read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
8616
8781
  query: string(),
@@ -8655,7 +8820,7 @@ var preparationCommunications = strictObject({
8655
8820
  }))
8656
8821
  });
8657
8822
 
8658
- // 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/entities/meeting-preparation.js
8823
+ // 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/entities/meeting-preparation.js
8659
8824
  var meetingPreparation = strictObject({
8660
8825
  communications: optional(preparationCommunications),
8661
8826
  schema_version: literal(1),
@@ -8768,7 +8933,7 @@ var meetingPreparation = strictObject({
8768
8933
  })
8769
8934
  });
8770
8935
 
8771
- // 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/entities/meeting-project-candidates.js
8936
+ // 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/entities/meeting-project-candidates.js
8772
8937
  var count4 = pipe(number(), integer(), minValue(0));
8773
8938
  var id3 = pipe(string(), minLength(1));
8774
8939
  var text3 = string();
@@ -8832,7 +8997,7 @@ var meetingProjectCandidates = strictObject({
8832
8997
  })
8833
8998
  });
8834
8999
 
8835
- // 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/entities/meeting-series-inventory.js
9000
+ // 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/entities/meeting-series-inventory.js
8836
9001
  var count5 = pipe(number(), integer(), minValue(0));
8837
9002
  var id4 = pipe(string(), minLength(1), maxLength(1e3));
8838
9003
  var meetingSeriesInventory = strictObject({
@@ -8862,7 +9027,7 @@ var meetingSeriesInventory = strictObject({
8862
9027
  })
8863
9028
  });
8864
9029
 
8865
- // 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/entities/meeting-task-proposal.js
9030
+ // 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/entities/meeting-task-proposal.js
8866
9031
  var text4 = string();
8867
9032
  var id5 = pipe(number(), integer(), minValue(1));
8868
9033
  var revision = picklist(["current", "superseded"]);
@@ -8879,7 +9044,7 @@ var meetingTaskProposal = strictObject({
8879
9044
  persistence: literal("proposal-only")
8880
9045
  });
8881
9046
 
8882
- // 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/entities/memory.js
9047
+ // 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/entities/memory.js
8883
9048
  var memory = strictObject({
8884
9049
  ref: reference,
8885
9050
  id,
@@ -8906,7 +9071,7 @@ var memory = strictObject({
8906
9071
  updated_at: time
8907
9072
  });
8908
9073
 
8909
- // 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/entities/mention.js
9074
+ // 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/entities/mention.js
8910
9075
  var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
8911
9076
  var status = picklist(["found", "linked", "dismissed"]);
8912
9077
  var mention = strictObject({
@@ -8949,13 +9114,13 @@ var mentionRebuild = strictObject({
8949
9114
  mentions: count
8950
9115
  });
8951
9116
 
8952
- // 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/entities/message-change.js
9117
+ // 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/entities/message-change.js
8953
9118
  var operated3 = { operation_id: id, chat_id: id };
8954
9119
  var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
8955
9120
  var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
8956
9121
  var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
8957
9122
 
8958
- // 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/entities/message-read.js
9123
+ // 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/entities/message-read.js
8959
9124
  var messageTranscript = strictObject({
8960
9125
  message_id: id,
8961
9126
  text,
@@ -9013,7 +9178,7 @@ var evidencePacket = strictObject({
9013
9178
  }))
9014
9179
  });
9015
9180
 
9016
- // 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/entities/message-context.js
9181
+ // 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/entities/message-context.js
9017
9182
  var messageThread = strictObject({
9018
9183
  ref: reference,
9019
9184
  chat: id,
@@ -9030,7 +9195,7 @@ var messageThread = strictObject({
9030
9195
  });
9031
9196
  var messageContext = union([message, messageThread]);
9032
9197
 
9033
- // 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/entities/message-counts.js
9198
+ // 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/entities/message-counts.js
9034
9199
  var messageCounts = strictObject({
9035
9200
  by: picklist(["chat", "sender", "day", "hour"]),
9036
9201
  total: count,
@@ -9043,7 +9208,7 @@ var messageCounts = strictObject({
9043
9208
  }))
9044
9209
  });
9045
9210
 
9046
- // 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/entities/message-link.js
9211
+ // 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/entities/message-link.js
9047
9212
  var messageLink = strictObject({
9048
9213
  ref: reference,
9049
9214
  url: nullable(text),
@@ -9060,7 +9225,7 @@ var messageLink = strictObject({
9060
9225
  })))
9061
9226
  });
9062
9227
 
9063
- // 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/entities/message-transfer.js
9228
+ // 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/entities/message-transfer.js
9064
9229
  var savedMessageFile = strictObject({
9065
9230
  kind: text,
9066
9231
  path: text,
@@ -9147,7 +9312,7 @@ var messageSyncAll = strictObject({
9147
9312
  var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
9148
9313
  var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
9149
9314
 
9150
- // 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/entities/message-write.js
9315
+ // 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/entities/message-write.js
9151
9316
  var messageWrite = strictObject({
9152
9317
  operation_id: id,
9153
9318
  message,
@@ -9162,7 +9327,7 @@ var draftWrite = strictObject({
9162
9327
  });
9163
9328
  var messageSend = union([messageWrite, draftWrite]);
9164
9329
 
9165
- // 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/entities/model.js
9330
+ // 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/entities/model.js
9166
9331
  var model2 = strictObject({
9167
9332
  id,
9168
9333
  kind: picklist(["audio", "text", "image", "reranker"]),
@@ -9179,7 +9344,7 @@ var model2 = strictObject({
9179
9344
  path: text
9180
9345
  });
9181
9346
 
9182
- // 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/entities/model-key.js
9347
+ // 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/entities/model-key.js
9183
9348
  var source = picklist(["environment", "keyring", "file"]);
9184
9349
  var modelKey = strictObject({
9185
9350
  provider: text,
@@ -9189,7 +9354,7 @@ var modelKey = strictObject({
9189
9354
  var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
9190
9355
  var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
9191
9356
 
9192
- // 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/entities/official-stats.js
9357
+ // 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/entities/official-stats.js
9193
9358
  var versus = strictObject({ current: number(), previous: number() });
9194
9359
  var person = { person_ref: reference, name: nullable(text) };
9195
9360
  var graph = strictObject({
@@ -9223,14 +9388,14 @@ var officialStats = strictObject({
9223
9388
  graphs: record(string(), union([graph, strictObject({ error: text })]))
9224
9389
  });
9225
9390
 
9226
- // 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/entities/person.js
9391
+ // 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/entities/person.js
9227
9392
  var person2 = strictObject({
9228
9393
  ref: reference,
9229
9394
  name: nullable(text),
9230
9395
  identities: optional(array(identity))
9231
9396
  });
9232
9397
 
9233
- // 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/entities/poll.js
9398
+ // 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/entities/poll.js
9234
9399
  var poll = strictObject({
9235
9400
  chat_id: id,
9236
9401
  message_id: id,
@@ -9246,11 +9411,11 @@ var poll = strictObject({
9246
9411
  });
9247
9412
  var pollChange = strictObject({ operation_id: id, poll });
9248
9413
 
9249
- // 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/entities/private-contact.js
9414
+ // 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/entities/private-contact.js
9250
9415
  var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
9251
9416
  var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
9252
9417
 
9253
- // 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/entities/ranking.js
9418
+ // 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/entities/ranking.js
9254
9419
  var figures = record(string(), number());
9255
9420
  var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
9256
9421
  var rankingRow = strictObject({
@@ -9297,7 +9462,7 @@ var ranking = strictObject({
9297
9462
  rows: array(rankingRow)
9298
9463
  });
9299
9464
 
9300
- // 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/entities/reaction.js
9465
+ // 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/entities/reaction.js
9301
9466
  var reaction = strictObject({
9302
9467
  person: strictObject({ id, name: nullable(text), username: nullable(text) }),
9303
9468
  /** The emoji, or `custom:<id>` for a custom one. */
@@ -9305,7 +9470,7 @@ var reaction = strictObject({
9305
9470
  reacted_at: time
9306
9471
  });
9307
9472
 
9308
- // 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/entities/reaction-change.js
9473
+ // 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/entities/reaction-change.js
9309
9474
  var reactionChange = strictObject({
9310
9475
  operation_id: id,
9311
9476
  chat_id: id,
@@ -9313,7 +9478,7 @@ var reactionChange = strictObject({
9313
9478
  reaction: nullable(text)
9314
9479
  });
9315
9480
 
9316
- // 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/entities/recipient.js
9481
+ // 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/entities/recipient.js
9317
9482
  var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
9318
9483
  var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
9319
9484
  var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
@@ -9324,7 +9489,7 @@ var recipientChange = strictObject({
9324
9489
  ...partial(recipientOff).entries
9325
9490
  });
9326
9491
 
9327
- // 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/entities/recorded-run.js
9492
+ // 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/entities/recorded-run.js
9328
9493
  var events = array(record(string(), unknown()));
9329
9494
  var recordedRun = strictObject({
9330
9495
  run_id: id,
@@ -9396,7 +9561,7 @@ var runHit = strictObject({
9396
9561
  });
9397
9562
  var runLocation = strictObject({ path: text });
9398
9563
 
9399
- // 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/entities/relationship.js
9564
+ // 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/entities/relationship.js
9400
9565
  var relationship = strictObject({
9401
9566
  id,
9402
9567
  from: reference,
@@ -9413,7 +9578,24 @@ var relationship = strictObject({
9413
9578
  created_at: time
9414
9579
  });
9415
9580
 
9416
- // 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/entities/retention.js
9581
+ // 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/entities/reply-stats.js
9582
+ var milliseconds2 = nullable(pipe(number(), minValue(0)));
9583
+ var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
9584
+ var responseTimes = strictObject({
9585
+ who: picklist(["me", "others"]),
9586
+ ...figures2,
9587
+ buckets: strictObject({ under_5m: count, under_1h: count, under_1d: count, over_1d: count }),
9588
+ /** One row per calendar day of the reply; empty with `--by total`. */
9589
+ rows: array(strictObject({ key: text, ...figures2 }))
9590
+ });
9591
+ var waitingChats = strictObject({
9592
+ chats: count,
9593
+ messages: count,
9594
+ oldest_at: nullable(time),
9595
+ by_kind: strictObject({ private: count, group: count })
9596
+ });
9597
+
9598
+ // 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/entities/retention.js
9417
9599
  var retentionCohort = strictObject({
9418
9600
  /** The first day of the joining day or week. */
9419
9601
  cohort: text,
@@ -9461,7 +9643,7 @@ var retention = strictObject({
9461
9643
  rows: array(retentionCohort)
9462
9644
  });
9463
9645
 
9464
- // 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/entities/saved-search.js
9646
+ // 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/entities/saved-search.js
9465
9647
  var savedSearch = strictObject({
9466
9648
  id,
9467
9649
  /** `null` for a run in the history. */
@@ -9478,7 +9660,7 @@ var savedSearch = strictObject({
9478
9660
  });
9479
9661
  var searchHistoryClear = strictObject({ cleared: count });
9480
9662
 
9481
- // 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/entities/send-attempt.js
9663
+ // 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/entities/send-attempt.js
9482
9664
  var sendAttempt = strictObject({
9483
9665
  at: time,
9484
9666
  profile: text,
@@ -9506,7 +9688,7 @@ var sendAttempt = strictObject({
9506
9688
  error_code: optional(text)
9507
9689
  });
9508
9690
 
9509
- // 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/entities/store-maintenance.js
9691
+ // 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/entities/store-maintenance.js
9510
9692
  var absent = strictObject({ path: text, exists: literal(false) });
9511
9693
  var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
9512
9694
  var infoSchema = strictObject({
@@ -9714,7 +9896,7 @@ var storeRepair = union([
9714
9896
  ]);
9715
9897
  var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
9716
9898
 
9717
- // 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/entities/store-records.js
9899
+ // 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/entities/store-records.js
9718
9900
  var range = strictObject({ from: number(), to: number() });
9719
9901
  var storeChatStatus = strictObject({
9720
9902
  chat_id: id,
@@ -9805,7 +9987,7 @@ var storeJobRetry = union([
9805
9987
  ]);
9806
9988
  var storeJobClear = strictObject({ cleared: array(id) });
9807
9989
 
9808
- // 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/entities/store-table.js
9990
+ // 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/entities/store-table.js
9809
9991
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
9810
9992
  var storeTable = strictObject({
9811
9993
  name: text,
@@ -9814,7 +9996,7 @@ var storeTable = strictObject({
9814
9996
  bytes: optional(nullable(count))
9815
9997
  });
9816
9998
 
9817
- // 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/entities/tag-change.js
9999
+ // 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/entities/tag-change.js
9818
10000
  var tagTarget = variant("type", [
9819
10001
  strictObject({ type: literal("chat"), chat_id: id }),
9820
10002
  strictObject({ type: literal("contact"), person_id: id }),
@@ -9845,7 +10027,7 @@ var automaticTags = strictObject({
9845
10027
  dry_run: boolean()
9846
10028
  });
9847
10029
 
9848
- // 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/entities/tagging.js
10030
+ // 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/entities/tagging.js
9849
10031
  var tagging = strictObject({
9850
10032
  tag: text,
9851
10033
  type: picklist(TAG_TYPES),
@@ -9858,7 +10040,7 @@ var tagging = strictObject({
9858
10040
  created_at: time
9859
10041
  });
9860
10042
 
9861
- // 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/entities/task-pair.js
10043
+ // 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/entities/task-pair.js
9862
10044
  var side = strictObject({ ref: reference, key: text, title: text, status: text });
9863
10045
  var taskPair = strictObject({
9864
10046
  task: nullable(side),
@@ -9881,7 +10063,7 @@ var taskPair = strictObject({
9881
10063
  created_at: time
9882
10064
  });
9883
10065
 
9884
- // 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/entities/task-results.js
10066
+ // 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/entities/task-results.js
9885
10067
  var nullableTime = nullable(time);
9886
10068
  var link = strictObject({
9887
10069
  id,
@@ -10051,7 +10233,7 @@ var taskReview = strictObject({
10051
10233
  untrusted
10052
10234
  });
10053
10235
 
10054
- // 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/entities/topic.js
10236
+ // 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/entities/topic.js
10055
10237
  var topic = strictObject({
10056
10238
  id,
10057
10239
  title: text,
@@ -10065,7 +10247,7 @@ var topic = strictObject({
10065
10247
  untrusted
10066
10248
  });
10067
10249
 
10068
- // 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/entities/index.js
10250
+ // 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/entities/index.js
10069
10251
  var ENTITIES = {
10070
10252
  sync_progress: progress,
10071
10253
  ...MEETING_RESULT_ENTITIES,
@@ -10217,6 +10399,7 @@ var ENTITIES = {
10217
10399
  meeting_project_evidence: meetingProjectEvidence,
10218
10400
  meeting_preparation: meetingPreparation,
10219
10401
  meeting_findings: meetingFindings,
10402
+ mail_findings: mailFindings,
10220
10403
  meeting_transcript: meetingTranscript,
10221
10404
  meeting_summary: meetingSummary,
10222
10405
  meeting_evidence: meetingEvidence,
@@ -10317,6 +10500,8 @@ var ENTITIES = {
10317
10500
  topic,
10318
10501
  folder,
10319
10502
  message_counts: messageCounts,
10503
+ response_times: responseTimes,
10504
+ waiting_chats: waitingChats,
10320
10505
  ranking,
10321
10506
  admin_report: adminReport,
10322
10507
  analysis_consent: analysisConsent,
@@ -10338,7 +10523,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
10338
10523
  return [name, definition];
10339
10524
  })), "entityDefinitions");
10340
10525
 
10341
- // 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/answer-entity.js
10526
+ // 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/answer-entity.js
10342
10527
  var schemas = /* @__PURE__ */ new WeakMap();
10343
10528
  var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
10344
10529
  if (Object.hasOwn(ENTITIES, name))
@@ -10372,7 +10557,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
10372
10557
  return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
10373
10558
  }, "answerRow");
10374
10559
 
10375
- // 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/images/picture/models.js
10560
+ // 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/images/picture/models.js
10376
10561
  import { join as join5 } from "node:path";
10377
10562
  var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
10378
10563
  var IMAGE_MODELS = [
@@ -10426,7 +10611,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
10426
10611
  var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join5(directory, model3.id, file.name)]), "placedImage");
10427
10612
  var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
10428
10613
 
10429
- // 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/steps.js
10614
+ // 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/steps.js
10430
10615
  var STEPS2 = defineSteps([
10431
10616
  ...STEPS,
10432
10617
  {
@@ -10648,7 +10833,7 @@ var STEPS2 = defineSteps([
10648
10833
  }
10649
10834
  ]);
10650
10835
  var nextStep = /* @__PURE__ */ __name((id6, input) => {
10651
- const definition = STEPS2.find((step) => step.id === id6);
10836
+ const definition = STEPS2.find((step2) => step2.id === id6);
10652
10837
  if (!definition)
10653
10838
  throw new Error(`no step "${id6}"`);
10654
10839
  const args = Object.fromEntries(Object.entries(input.args ?? {}).filter(([, value]) => value !== void 0));
@@ -10671,7 +10856,7 @@ var commandAt = /* @__PURE__ */ __name((root, path2) => {
10671
10856
  at2 = at2?.commands.find((one) => one.name() === word || one.aliases().includes(word));
10672
10857
  return at2 === root ? void 0 : at2;
10673
10858
  }, "commandAt");
10674
- var runnable = /* @__PURE__ */ __name((root, steps) => withSafety((steps ?? []).filter((step) => step.kind === "user_action" || commandAt(root, step.command) !== void 0).slice(0, MAX_NEXT_STEPS), judgedTargets(root)), "runnable");
10859
+ var runnable = /* @__PURE__ */ __name((root, steps) => withSafety((steps ?? []).filter((step2) => step2.kind === "user_action" || commandAt(root, step2.command) !== void 0).slice(0, MAX_NEXT_STEPS), judgedTargets(root)), "runnable");
10675
10860
  var failureSteps = /* @__PURE__ */ __name((root, error) => {
10676
10861
  const model3 = error.details?.model;
10677
10862
  const own = error.reason === "model.not-downloaded" && typeof model3 === "string" ? [
@@ -10681,33 +10866,33 @@ var failureSteps = /* @__PURE__ */ __name((root, error) => {
10681
10866
  ] : [];
10682
10867
  return runnable(root, [...error.next ?? [], ...own]);
10683
10868
  }, "failureSteps");
10684
- var withSafety = /* @__PURE__ */ __name((steps, targets) => steps.map((step) => {
10685
- if (step.kind === "user_action")
10686
- return step;
10687
- const effects = targets(step.command)?.effects;
10688
- return { ...step, safe_to_auto_execute: effects !== void 0 && !writes(effects) };
10869
+ var withSafety = /* @__PURE__ */ __name((steps, targets) => steps.map((step2) => {
10870
+ if (step2.kind === "user_action")
10871
+ return step2;
10872
+ const effects = targets(step2.command)?.effects;
10873
+ return { ...step2, safe_to_auto_execute: effects !== void 0 && !writes(effects) };
10689
10874
  }), "withSafety");
10690
- var withLines = /* @__PURE__ */ __name((root, steps) => steps.map((step) => step.kind === "command" ? { ...step, line: stepLine(root, step) } : step), "withLines");
10875
+ var withLines = /* @__PURE__ */ __name((root, steps) => steps.map((step2) => step2.kind === "command" ? { ...step2, line: stepLine(root, step2) } : step2), "withLines");
10691
10876
  var kebab = /* @__PURE__ */ __name((name) => name.replaceAll("_", "-"), "kebab");
10692
10877
  var quoted2 = /* @__PURE__ */ __name((value) => {
10693
10878
  const text5 = String(value);
10694
10879
  return /^[\w@:./+-]+$/.test(text5) ? text5 : JSON.stringify(text5);
10695
10880
  }, "quoted");
10696
- var stepLine = /* @__PURE__ */ __name((root, step) => {
10697
- const command = commandAt(root, step.command);
10881
+ var stepLine = /* @__PURE__ */ __name((root, step2) => {
10882
+ const command = commandAt(root, step2.command);
10698
10883
  const positional = new Set(command?.registeredArguments.map((argument) => argument.name()) ?? []);
10699
- const args = Object.entries(step.args).filter(([, value]) => value !== void 0 && value !== false);
10884
+ const args = Object.entries(step2.args).filter(([, value]) => value !== void 0 && value !== false);
10700
10885
  const profile = root.getOptionValue("profile");
10701
10886
  return [
10702
10887
  root.name(),
10703
10888
  ...typeof profile === "string" && profile !== "" ? [quoted2(profile)] : [],
10704
- step.command,
10705
- ...(command?.registeredArguments ?? []).flatMap((argument) => step.args[argument.name()] === void 0 ? [] : [quoted2(step.args[argument.name()])]),
10889
+ step2.command,
10890
+ ...(command?.registeredArguments ?? []).flatMap((argument) => step2.args[argument.name()] === void 0 ? [] : [quoted2(step2.args[argument.name()])]),
10706
10891
  ...args.filter(([name]) => !positional.has(name)).map(([name, value]) => value === true ? `--${kebab(name)}` : `--${kebab(name)} ${quoted2(value)}`)
10707
10892
  ].join(" ");
10708
10893
  }, "stepLine");
10709
10894
 
10710
- // 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/project-status-rows.js
10895
+ // 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/project-status-rows.js
10711
10896
  var where = [{ field: "ref" }, { field: ["chat_title", "chat"] }];
10712
10897
  var who2 = { field: ["who.owner", "who.name"], tag: "you" };
10713
10898
  var STATUS_SIGNAL_ROWS = {
@@ -10816,7 +11001,7 @@ var STATUS_ROWS = {
10816
11001
  "status.failed": { columns: [{ field: "signal" }], text: ["why"] }
10817
11002
  };
10818
11003
 
10819
- // 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/compact.js
11004
+ // 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/compact.js
10820
11005
  var TEXT_CHARS = 400;
10821
11006
  var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
10822
11007
  var messageRow = {
@@ -11096,20 +11281,20 @@ var blockOf = /* @__PURE__ */ __name((fields, chars, indent = "", whole = []) =>
11096
11281
  var footerOf = /* @__PURE__ */ __name((body) => {
11097
11282
  const lines = [];
11098
11283
  const steps = body.next ?? [];
11099
- const lineOf2 = /* @__PURE__ */ __name((step) => step.kind === "command" ? step.line ?? step.command : void 0, "lineOf");
11284
+ const lineOf2 = /* @__PURE__ */ __name((step2) => step2.kind === "command" ? step2.line ?? step2.command : void 0, "lineOf");
11100
11285
  if ("items" in body && body.page.has_more) {
11101
- const more = steps.find((step) => step.step === "page.next");
11286
+ const more = steps.find((step2) => step2.step === "page.next");
11102
11287
  const line = more?.kind === "command" ? more.line : void 0;
11103
11288
  const page2 = body.page;
11104
11289
  lines.push(`# more: ${clean(line ?? (page2.mode === "cursor" && page2.next_cursor ? `--cursor ${page2.next_cursor}` : page2.mode === "page" && page2.next_page ? `--page ${page2.next_page}` : "raise --limit"))}`);
11105
11290
  }
11106
11291
  for (const missing of body.missing ?? [])
11107
11292
  lines.push(`# missing: ${clean(missing.field)}: ${clean(missing.why)}`);
11108
- for (const step of steps) {
11109
- if (step.step === "page.next" && "items" in body)
11293
+ for (const step2 of steps) {
11294
+ if (step2.step === "page.next" && "items" in body)
11110
11295
  continue;
11111
- const line = lineOf2(step);
11112
- lines.push(`# next: ${clean(step.why)}${line ? `: ${clean(line)}` : ""}`);
11296
+ const line = lineOf2(step2);
11297
+ lines.push(`# next: ${clean(step2.why)}${line ? `: ${clean(line)}` : ""}`);
11113
11298
  }
11114
11299
  if (body.meta?.complete === false) {
11115
11300
  const issues = (body.meta.issues ?? []).map((issue) => `${clean(issue.source)}: ${clean(String(issue.code))}`);
@@ -11152,7 +11337,65 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
11152
11337
  return lines.concat(footerOf(body)).join("\n");
11153
11338
  }, "compactText");
11154
11339
 
11155
- // 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/provider-refs.js
11340
+ // 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/output-budget.js
11341
+ var SOFT_OUTPUT_BYTES = 256 * 1024;
11342
+ var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
11343
+ var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
11344
+ var snake3 = /* @__PURE__ */ __name((name) => name.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
11345
+ var typed = /* @__PURE__ */ __name((command, key) => command.getOptionValueSource(key) === "cli", "typed");
11346
+ var typedArgs = /* @__PURE__ */ __name((command) => {
11347
+ const root = rootOf2(command);
11348
+ if (root.getOptionValue("fields") !== void 0)
11349
+ return void 0;
11350
+ if (command.options.some((option) => option.negate && typed(command, option.attributeName())))
11351
+ return void 0;
11352
+ const positional = command.registeredArguments.flatMap((argument, index) => {
11353
+ const value = command.processedArgs[index];
11354
+ const word = Array.isArray(value) ? value.join(" ") : value;
11355
+ return word === void 0 || word === "" ? [] : [[argument.name(), word]];
11356
+ });
11357
+ const own = command.options.map((option) => option.attributeName()).filter((key) => typed(command, key)).map((key) => [snake3(key), command.getOptionValue(key)]);
11358
+ const global = CARRIED.filter((key) => typed(root, key)).map((key) => [snake3(key), root.getOptionValue(key)]);
11359
+ return Object.fromEntries([...positional, ...own, ...global]);
11360
+ }, "typedArgs");
11361
+ var declaresRow = /* @__PURE__ */ __name((command) => {
11362
+ const { rows: rows2 } = environmentOf(command);
11363
+ return rowShapeOf(command, rows2 && entityRows(rows2)) !== GENERIC_ROW;
11364
+ }, "declaresRow");
11365
+ var pathOf3 = /* @__PURE__ */ __name((command) => {
11366
+ const words = [];
11367
+ for (let at2 = command; at2.parent; at2 = at2.parent)
11368
+ words.unshift(at2.name());
11369
+ return words.join(" ");
11370
+ }, "pathOf");
11371
+ var step = /* @__PURE__ */ __name((command, id6, args, why) => ({
11372
+ kind: "command",
11373
+ step: id6,
11374
+ command: pathOf3(command),
11375
+ args,
11376
+ why,
11377
+ safe_to_auto_execute: true
11378
+ }), "step");
11379
+ var compactStep = /* @__PURE__ */ __name((command, args, why) => rootOf2(command).getOptionValue("compact") === true || !declaresRow(command) ? [] : [
11380
+ step(command, "output.compact", { ...Object.fromEntries(Object.entries(args).filter(([key]) => !NOT_WITH_COMPACT.has(key))), compact: true }, why)
11381
+ ], "compactStep");
11382
+ var tooLargeSteps = /* @__PURE__ */ __name((command, { maxBytes, neededBytes }) => {
11383
+ const args = typedArgs(command);
11384
+ if (!args)
11385
+ return [];
11386
+ const limit = Number(command.getOptionValue("limit"));
11387
+ const fits = Math.floor(limit * maxBytes / neededBytes * 0.9);
11388
+ return [
11389
+ ...compactStep(command, args, "the answer is over the output cap as JSON; one line per item keeps every ref"),
11390
+ ...Number.isSafeInteger(limit) && fits >= 1 && fits < limit ? [step(command, "output.limit", { ...args, limit: fits }, `about ${fits} items fit under the output cap`)] : []
11391
+ ];
11392
+ }, "tooLargeSteps");
11393
+ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
11394
+ const args = typedArgs(command);
11395
+ return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
11396
+ }, "largeAnswerSteps");
11397
+
11398
+ // 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/provider-refs.js
11156
11399
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
11157
11400
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
11158
11401
  var strip = /* @__PURE__ */ __name((value) => {
@@ -11166,7 +11409,7 @@ var strip = /* @__PURE__ */ __name((value) => {
11166
11409
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
11167
11410
  }, "strip");
11168
11411
 
11169
- // 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/envelope.js
11412
+ // 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/envelope.js
11170
11413
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
11171
11414
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
11172
11415
  var listOf = /* @__PURE__ */ __name((command, input) => {
@@ -11209,7 +11452,7 @@ var itemOf = /* @__PURE__ */ __name((item, { next = [], missing, meta } = {}) =>
11209
11452
  };
11210
11453
  return body;
11211
11454
  }, "itemOf");
11212
- var snake3 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
11455
+ var snake4 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
11213
11456
  var snakeKeysKeeping = /* @__PURE__ */ __name((verbatim) => {
11214
11457
  const kept = new Set(verbatim);
11215
11458
  const convert = /* @__PURE__ */ __name((value) => {
@@ -11220,7 +11463,7 @@ var snakeKeysKeeping = /* @__PURE__ */ __name((verbatim) => {
11220
11463
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => {
11221
11464
  if (inner === void 0)
11222
11465
  return [];
11223
- const name = snake3(key);
11466
+ const name = snake4(key);
11224
11467
  return [[name, kept.has(key) || kept.has(name) ? inner : convert(inner)]];
11225
11468
  }));
11226
11469
  }, "convert");
@@ -11260,7 +11503,16 @@ var sealed = /* @__PURE__ */ __name((value) => {
11260
11503
  const { meta, ...rest } = withoutProviderRefs(value);
11261
11504
  return { ...rest, meta: metaNow(meta) };
11262
11505
  }, "sealed");
11263
- var compactSteps = /* @__PURE__ */ __name((root, steps) => steps.map((step) => step.kind === "command" ? { ...step, line: `${step.line ?? stepLine(root, step)} ${COMPACT_FLAG}` } : step), "compactSteps");
11506
+ var compactSteps = /* @__PURE__ */ __name((root, steps) => steps.map((step2) => step2.kind === "command" ? { ...step2, line: `${step2.line ?? stepLine(root, step2)} ${COMPACT_FLAG}` } : step2), "compactSteps");
11507
+ var withLargeAnswerStep = /* @__PURE__ */ __name((command, body) => {
11508
+ if ((body.next?.length ?? 0) >= MAX_NEXT_STEPS)
11509
+ return body;
11510
+ const added = largeAnswerSteps(command);
11511
+ if (added.length === 0 || Buffer.byteLength(JSON.stringify(body)) <= SOFT_OUTPUT_BYTES)
11512
+ return body;
11513
+ const root = rootOf2(command);
11514
+ return { ...body, next: [...body.next ?? [], ...withLines(root, runnable(root, added))] };
11515
+ }, "withLargeAnswerStep");
11264
11516
  var linesOf = /* @__PURE__ */ __name((body) => jsonlOf("items" in body ? body : { items: [body.item], page: { mode: "page", limit: 1, has_more: false }, meta: body.meta }), "linesOf");
11265
11517
  var jsonlRecords = /* @__PURE__ */ __name((body) => linesOf(sealed(body)).split("\n").map((line) => JSON.parse(line)), "jsonlRecords");
11266
11518
  var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams, compact, full }, body, view) => {
@@ -11272,9 +11524,10 @@ var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams,
11272
11524
  const kept = withoutProviderRefs({ ...body, ...next.length > 0 ? { next } : {} });
11273
11525
  if (next.length === 0)
11274
11526
  delete kept.next;
11275
- const whole = sealed(kept);
11527
+ const sealedBody = sealed(kept);
11276
11528
  const environment = environmentOf(command);
11277
11529
  const drawn = compact && !environment.agent;
11530
+ const whole = format === "json" && !drawn && !environment.agent ? withLargeAnswerStep(command, sealedBody) : sealedBody;
11278
11531
  if (drawn) {
11279
11532
  const lined = whole.next ? { ...whole, next: compactSteps(root, whole.next) } : whole;
11280
11533
  const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
@@ -11294,8 +11547,8 @@ var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams,
11294
11547
  setExitCode(command, code);
11295
11548
  if (drawn || format === "json")
11296
11549
  return;
11297
- for (const step of next)
11298
- renderer.note(step.kind === "command" ? `\u2192 ${step.why}: ${stepLine(root, step)}` : `\u2192 ${step.why}`);
11550
+ for (const step2 of next)
11551
+ renderer.note(step2.kind === "command" ? `\u2192 ${step2.why}: ${stepLine(root, step2)}` : `\u2192 ${step2.why}`);
11299
11552
  }, "renderAnswer");
11300
11553
  var renderDocument = /* @__PURE__ */ __name(({ renderer }, document2) => renderer.result(document2), "renderDocument");
11301
11554
  var itemAnswer = /* @__PURE__ */ __name((item) => sealed(itemOf(item)), "itemAnswer");
@@ -11452,6 +11705,7 @@ export {
11452
11705
  logsInOrOut,
11453
11706
  isLogin,
11454
11707
  destroysNothing,
11708
+ proposesOnly,
11455
11709
  changesStore,
11456
11710
  readsOverMcpAt,
11457
11711
  isStoreChange,
@@ -11507,7 +11761,6 @@ export {
11507
11761
  answerProjectionSchema,
11508
11762
  STATUS_SIGNAL_ROWS,
11509
11763
  entityRows,
11510
- withoutProviderRefs,
11511
11764
  nextStep,
11512
11765
  lineOf,
11513
11766
  rootOf2,
@@ -11516,6 +11769,8 @@ export {
11516
11769
  failureSteps,
11517
11770
  withLines,
11518
11771
  stepLine,
11772
+ tooLargeSteps,
11773
+ withoutProviderRefs,
11519
11774
  answerSchema,
11520
11775
  listOf,
11521
11776
  itemOf,