@wirecat/mail-cli 0.12.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 (115) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +4 -0
  3. package/dist/bin/mail.js +6 -2
  4. package/dist/bundle/{all-profiles-OJPRIFKU.js → all-profiles-O7HQNZOF.js} +10 -9
  5. package/dist/bundle/{anthropic-3AXHD4WH.js → anthropic-SNA6PTVO.js} +6 -6
  6. package/dist/bundle/{app-server-V4KHCUGE.js → app-server-LBKMJMKN.js} +48 -45
  7. package/dist/bundle/{bun-ISYNUTQJ.js → bun-KF5QK2YN.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-FH3D4AXL.js → bun-sqlite-2DKMM2PT.js} +5 -5
  9. package/dist/bundle/{chunk-YDUES6ET.js → chunk-2A4BAMNF.js} +4 -4
  10. package/dist/bundle/{chunk-XTIQFMZH.js → chunk-2F7D6YMB.js} +4 -4
  11. package/dist/bundle/{chunk-SW5NVASW.js → chunk-2KVR7FF3.js} +12 -89
  12. package/dist/bundle/{chunk-JAWJZTFL.js → chunk-3EAAEF5U.js} +18 -18
  13. package/dist/bundle/{chunk-TTKNBUMT.js → chunk-3YGYB3LJ.js} +43 -6
  14. package/dist/bundle/{chunk-GYNHU56E.js → chunk-5C74F7XX.js} +4 -4
  15. package/dist/bundle/{chunk-5TACUBRJ.js → chunk-6CZQJ5XR.js} +8 -8
  16. package/dist/bundle/{chunk-OHC4GVWV.js → chunk-6EZ7XGRG.js} +2 -2
  17. package/dist/bundle/{chunk-6UT3MXOB.js → chunk-7GSE57K3.js} +3 -3
  18. package/dist/bundle/{chunk-AJ4JS2ZR.js → chunk-7LDC275M.js} +8 -7
  19. package/dist/bundle/{chunk-QPQSMJBW.js → chunk-AOVOIXGR.js} +10 -10
  20. package/dist/bundle/{chunk-DN54W657.js → chunk-B5XAETYU.js} +4 -4
  21. package/dist/bundle/chunk-BP3TZ4EY.js +91 -0
  22. package/dist/bundle/{chunk-4DPICEPQ.js → chunk-CCHHEMPM.js} +2 -2
  23. package/dist/bundle/chunk-DIP3ENSY.js +34 -0
  24. package/dist/bundle/{chunk-4GPPRLIG.js → chunk-DPKHVBP3.js} +5 -5
  25. package/dist/bundle/{chunk-K2F7YMMM.js → chunk-E7BTD4P6.js} +8 -13
  26. package/dist/bundle/{chunk-VEXXVLBM.js → chunk-ER6PJAPK.js} +3 -3
  27. package/dist/bundle/{chunk-JIIEJLAX.js → chunk-EW3XTUPB.js} +4 -4
  28. package/dist/bundle/{chunk-6LNRNQHJ.js → chunk-F5SZVO3A.js} +6 -4
  29. package/dist/bundle/{chunk-UDJIC6YL.js → chunk-FTGCXIQA.js} +54 -29
  30. package/dist/bundle/{chunk-V6K2GX2Y.js → chunk-G53HRGTK.js} +17 -17
  31. package/dist/bundle/{chunk-L3PVAY3M.js → chunk-H2ZURG7Q.js} +2 -2
  32. package/dist/bundle/{chunk-F3QDSQ7V.js → chunk-H7OQ4YZV.js} +27 -26
  33. package/dist/bundle/{chunk-S64N24ON.js → chunk-I62OTHDE.js} +3 -3
  34. package/dist/bundle/{chunk-AO32MFDY.js → chunk-I7EWIIBC.js} +2 -2
  35. package/dist/bundle/{chunk-JNUKTAMZ.js → chunk-ILHTNOIV.js} +1 -1
  36. package/dist/bundle/{chunk-GAIVTJ3E.js → chunk-IPKXRW6W.js} +24 -23
  37. package/dist/bundle/{chunk-NSDOYHIS.js → chunk-IVDUR5Y4.js} +20 -8
  38. package/dist/bundle/{chunk-KJP2B65C.js → chunk-KBFIKUCA.js} +29 -28
  39. package/dist/bundle/{chunk-IWHXM2S7.js → chunk-KLLKDOO2.js} +3207 -1149
  40. package/dist/bundle/{chunk-4D52FA34.js → chunk-KQ5P5NLL.js} +1 -1
  41. package/dist/bundle/{chunk-PLPSFJO6.js → chunk-M2YIJDBL.js} +6 -6
  42. package/dist/bundle/{chunk-IG2WXKIT.js → chunk-MQK2UNG4.js} +8 -8
  43. package/dist/bundle/{chunk-YRZ23RCS.js → chunk-MXG4L7NH.js} +249 -8
  44. package/dist/bundle/{chunk-LXHLQ6RK.js → chunk-NGZW2JPK.js} +7 -9
  45. package/dist/bundle/{chunk-GFCNSU3B.js → chunk-NVQUK2DH.js} +176 -47
  46. package/dist/bundle/{chunk-6QNPJSRM.js → chunk-OGK7LMYT.js} +6 -6
  47. package/dist/bundle/{chunk-N6P55LDU.js → chunk-P547HU26.js} +10 -10
  48. package/dist/bundle/{chunk-NBQQ2ZTF.js → chunk-P62Z3Q35.js} +14 -14
  49. package/dist/bundle/{chunk-TZGQPTZ2.js → chunk-PQLBPYJR.js} +1 -1
  50. package/dist/bundle/{chunk-BYQ3Z6UL.js → chunk-Q5EYTU3Q.js} +3 -3
  51. package/dist/bundle/{chunk-PSXAC6OO.js → chunk-QWRBAQZ7.js} +1 -1
  52. package/dist/bundle/{chunk-QB54TE52.js → chunk-QZXHMQCM.js} +1 -1
  53. package/dist/bundle/{chunk-FYMQPAE5.js → chunk-RE5SEGSR.js} +4 -4
  54. package/dist/bundle/{chunk-KVN4RY7E.js → chunk-UHHARH5X.js} +421 -205
  55. package/dist/bundle/{chunk-44LVUMS2.js → chunk-UJEO3VWA.js} +1 -1
  56. package/dist/bundle/{chunk-IXYKM7OJ.js → chunk-UMWR5PKA.js} +13 -13
  57. package/dist/bundle/{chunk-WL7CYT7O.js → chunk-V5ZID7KC.js} +1 -1
  58. package/dist/bundle/{chunk-2TTCKOQ7.js → chunk-VA3JKERH.js} +2 -2
  59. package/dist/bundle/{chunk-G2WDY5XB.js → chunk-VERSKGJV.js} +2 -2
  60. package/dist/bundle/{chunk-GUFWLTOW.js → chunk-W643XZIR.js} +2 -2
  61. package/dist/bundle/{chunk-X37KLD23.js → chunk-WBJQEB6E.js} +12 -12
  62. package/dist/bundle/{chunk-SYBMOE6F.js → chunk-WVWNKZI4.js} +6195 -5014
  63. package/dist/bundle/chunk-X5XIFNTI.js +35 -0
  64. package/dist/bundle/{chunk-LIQ5LICB.js → chunk-XPREXN3W.js} +3 -3
  65. package/dist/bundle/{chunk-35Y3INBK.js → chunk-XRJIQC6P.js} +2 -2
  66. package/dist/bundle/{chunk-T3AGR4TI.js → chunk-YG4OI3HJ.js} +966 -204
  67. package/dist/bundle/{chunk-HVVLSCFB.js → chunk-ZCPUKUST.js} +1 -1
  68. package/dist/bundle/command-contract-B3OGAIDB.js +34 -0
  69. package/dist/bundle/{decode-FM4C2WWG.js → decode-X7Y2VSYZ.js} +5 -5
  70. package/dist/bundle/{dispatch-K3HG4RYT.js → dispatch-OWNO2CMC.js} +8 -8
  71. package/dist/bundle/{dist-7LNVI7VB.js → dist-L7FNC74Q.js} +42 -13
  72. package/dist/bundle/{echarts-5C2A72XM.js → echarts-5AB3LFVD.js} +2 -2
  73. package/dist/bundle/{embed-N56P6YVY.js → embed-VBS5LRCE.js} +6 -6
  74. package/dist/bundle/{embedder-QLYKFLOL.js → embedder-VFSYBDKK.js} +9 -9
  75. package/dist/bundle/{failure-5ZLVZTRU.js → failure-E534GZDF.js} +2 -2
  76. package/dist/bundle/{first-run-VMF4PJ7Q.js → first-run-NO2ODH2W.js} +11 -11
  77. package/dist/bundle/first-screen-7VJLGMJJ.js +32 -0
  78. package/dist/bundle/{instructions-QA5FHDOJ.js → instructions-52W6ZQTU.js} +1 -1
  79. package/dist/bundle/mail.js +12 -12
  80. package/dist/bundle/{mcp-LO2XDBBC.js → mcp-MNI62HHE.js} +2 -2
  81. package/dist/bundle/{node-OXJZWUYZ.js → node-TL2PBNKO.js} +2 -2
  82. package/dist/bundle/{node-sqlite-7GCEI67B.js → node-sqlite-757HNQAD.js} +11 -5
  83. package/dist/bundle/{oauth-VTPIYBTP.js → oauth-VDRNJ7KN.js} +7 -7
  84. package/dist/bundle/{open-7XX3YF2X.js → open-NUWYOKPO.js} +5 -4
  85. package/dist/bundle/{openai-D3KRCXSY.js → openai-YLBFVK5X.js} +14 -14
  86. package/dist/bundle/{process-KFI7SXQD.js → process-PWAGP6YY.js} +1 -1
  87. package/dist/bundle/{program-4B25STRN.js → program-PPUPVL7O.js} +2253 -885
  88. package/dist/bundle/{prompt-TBZT3APW.js → prompt-M5U66RVJ.js} +5 -5
  89. package/dist/bundle/{recognize-WQSE5ZPL.js → recognize-DCMDZA2U.js} +4 -4
  90. package/dist/bundle/{remote-J5HHRNVQ.js → remote-4SHI5WJG.js} +7 -7
  91. package/dist/bundle/{rerank-DP2Y3WDT.js → rerank-DYMZMNPQ.js} +7 -7
  92. package/dist/bundle/{serve-VXPOQDQO.js → serve-HO3WME4G.js} +11 -10
  93. package/dist/bundle/server-244FHPY4.js +64 -0
  94. package/dist/bundle/{server-OSBNGA2F.js → server-R3TIPRZN.js} +39 -37
  95. package/dist/bundle/{sqlite-runtime-XY32WOIT.js → sqlite-runtime-DWRITUIH.js} +6 -5
  96. package/dist/bundle/{state-KPOPMR6O.js → state-QOMUDOGF.js} +6 -6
  97. package/dist/bundle/{store-FWRGNGP3.js → store-LHHMOE5V.js} +36 -18
  98. package/dist/bundle/{store-UBI2YCRC.js → store-RGO6IABA.js} +17 -13
  99. package/dist/bundle/store-maintenance-command-LU2ZBDUY.js +54 -0
  100. package/dist/commands/session.js +1 -1
  101. package/dist/commands/session.js.map +1 -1
  102. package/dist/commands/status.d.ts.map +1 -1
  103. package/dist/commands/status.js +12 -7
  104. package/dist/commands/status.js.map +1 -1
  105. package/dist/config.d.ts +2 -0
  106. package/dist/config.d.ts.map +1 -1
  107. package/dist/version.d.ts +1 -1
  108. package/dist/version.js +1 -1
  109. package/package.json +3 -3
  110. package/dist/bundle/chunk-MDIRW3AT.js +0 -18
  111. package/dist/bundle/command-contract-TW44FY47.js +0 -33
  112. package/dist/bundle/first-screen-ZN7ODW5K.js +0 -31
  113. package/dist/bundle/server-XHWSCXVX.js +0 -62
  114. package/dist/bundle/store-maintenance-command-3ZXPEIGF.js +0 -52
  115. /package/dist/bundle/{chunk-MRLSUCHT.js → chunk-NUN6OGOV.js} +0 -0
@@ -13,7 +13,7 @@ import {
13
13
  permissionOverrides,
14
14
  projectFields,
15
15
  resolveOutput
16
- } from "./chunk-AJ4JS2ZR.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-SW5NVASW.js";
27
+ } from "./chunk-2KVR7FF3.js";
28
28
  import {
29
29
  permissionCeiling
30
- } from "./chunk-VEXXVLBM.js";
30
+ } from "./chunk-ER6PJAPK.js";
31
31
  import {
32
32
  carries
33
- } from "./chunk-44LVUMS2.js";
33
+ } from "./chunk-UJEO3VWA.js";
34
34
  import {
35
35
  filesPresent,
36
36
  sharedModelsDirectory
37
- } from "./chunk-6LNRNQHJ.js";
37
+ } from "./chunk-F5SZVO3A.js";
38
38
  import {
39
39
  author,
40
40
  count,
@@ -48,10 +48,9 @@ import {
48
48
  text,
49
49
  time,
50
50
  untrusted
51
- } from "./chunk-YDUES6ET.js";
51
+ } from "./chunk-2A4BAMNF.js";
52
52
  import {
53
53
  FACT_STATUSES,
54
- FACT_TYPES,
55
54
  LINK_KINDS,
56
55
  LINK_SOURCES,
57
56
  MEMORY_KINDS,
@@ -65,8 +64,9 @@ import {
65
64
  TASK_TYPES,
66
65
  TASK_VERDICTS,
67
66
  WORK_TASK_TYPES
68
- } from "./chunk-LXHLQ6RK.js";
67
+ } from "./chunk-NGZW2JPK.js";
69
68
  import {
69
+ FACT_TYPES,
70
70
  FIELD_TYPES,
71
71
  MEETING_RESULT_ENTITIES,
72
72
  QUERY_BACKENDS,
@@ -85,13 +85,13 @@ import {
85
85
  meetingStats,
86
86
  meetingSummary,
87
87
  meetingTranscript
88
- } from "./chunk-KVN4RY7E.js";
88
+ } from "./chunk-UHHARH5X.js";
89
89
  import {
90
90
  sharedConfigPath
91
- } from "./chunk-PLPSFJO6.js";
91
+ } from "./chunk-M2YIJDBL.js";
92
92
  import {
93
93
  storePath
94
- } from "./chunk-MDIRW3AT.js";
94
+ } from "./chunk-X5XIFNTI.js";
95
95
  import {
96
96
  configFilePath,
97
97
  createRecordLog,
@@ -101,7 +101,7 @@ import {
101
101
  saveConfigFile,
102
102
  traceIdOf,
103
103
  writeSecurely
104
- } from "./chunk-JAWJZTFL.js";
104
+ } from "./chunk-3EAAEF5U.js";
105
105
  import {
106
106
  COMPACT_FLAG,
107
107
  MAX_NEXT_STEPS,
@@ -153,17 +153,17 @@ import {
153
153
  unwrap,
154
154
  variant,
155
155
  writes
156
- } from "./chunk-NSDOYHIS.js";
156
+ } from "./chunk-IVDUR5Y4.js";
157
157
  import {
158
158
  CliError,
159
159
  isCliError,
160
160
  visibleControls
161
- } from "./chunk-4DPICEPQ.js";
161
+ } from "./chunk-CCHHEMPM.js";
162
162
  import {
163
163
  __name
164
164
  } from "./chunk-ZVVMGPBJ.js";
165
165
 
166
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
167
167
  var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
168
168
  var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
169
169
  const name = envName(app, "READ_ONLY");
@@ -173,7 +173,7 @@ var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
173
173
  var MESSENGER_CHANGE_REFUSAL = "send, react, change chats or change the account";
174
174
  var readOnlyRefusal = /* @__PURE__ */ __name((lock, what) => new CliError("permission_error", `this process is read-only (${lock}) \u2014 it cannot ${what}`), "readOnlyRefusal");
175
175
 
176
- // node_modules/.pnpm/@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
176
+ // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
177
177
  var labels = /* @__PURE__ */ new WeakMap();
178
178
  var annotate = /* @__PURE__ */ __name((command, meta) => {
179
179
  labels.set(command, { ...labels.get(command), ...meta });
@@ -3674,7 +3674,7 @@ __name(useColor, "useColor");
3674
3674
  // node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
3675
3675
  var program = new Command();
3676
3676
 
3677
- // node_modules/.pnpm/@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
3677
+ // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
3678
3678
  var argumentInfoSchema = object({
3679
3679
  name: string(),
3680
3680
  required: boolean(),
@@ -3748,7 +3748,7 @@ var commandsDocumentSchema = strictObject({
3748
3748
  exit_codes: record(string(), pipe(number(), integer()))
3749
3749
  });
3750
3750
 
3751
- // node_modules/.pnpm/@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
3751
+ // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
3752
3752
  import { isDeepStrictEqual } from "node:util";
3753
3753
  var protectedCommands = /* @__PURE__ */ new WeakMap();
3754
3754
  var hidden = /* @__PURE__ */ __name((command) => Boolean(command._hidden), "hidden");
@@ -3857,7 +3857,7 @@ var sharedCommand = /* @__PURE__ */ __name((factory) => (...args) => {
3857
3857
  return result;
3858
3858
  }, "sharedCommand");
3859
3859
 
3860
- // node_modules/.pnpm/@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
3860
+ // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
3861
3861
  var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3862
3862
  let command = root;
3863
3863
  const path2 = [];
@@ -3875,11 +3875,11 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3875
3875
  }
3876
3876
  }, "refuseJoinedPath");
3877
3877
 
3878
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
3879
3879
  import { AsyncLocalStorage } from "node:async_hooks";
3880
- var sentIds = /* @__PURE__ */ __name((typed, message2) => ({
3880
+ var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
3881
3881
  messageId: message2.id,
3882
- ...message2.chatId && message2.chatId !== typed ? { resultChatId: message2.chatId } : {}
3882
+ ...message2.chatId && message2.chatId !== typed2 ? { resultChatId: message2.chatId } : {}
3883
3883
  }), "sentIds");
3884
3884
  var current = new AsyncLocalStorage();
3885
3885
  var writesInFlight = new AsyncLocalStorage();
@@ -3981,7 +3981,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
3981
3981
  }, "guardedWrite");
3982
3982
  var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
3983
3983
 
3984
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
3985
3985
  var DEFAULT_COMMAND_MS = 3e4;
3986
3986
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
3987
3987
  var DEFAULT_SYNC_MS = 15 * 6e4;
@@ -4087,6 +4087,7 @@ var execution = /* @__PURE__ */ __name((streams, { timeoutMs, fields, maxOutputB
4087
4087
  reason: "output.too-large",
4088
4088
  max_bytes: maxOutputBytes,
4089
4089
  emitted_bytes: bytes,
4090
+ needed_bytes: bytes + size,
4090
4091
  partial_output: bytes > 0
4091
4092
  });
4092
4093
  bytes += size;
@@ -4163,7 +4164,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
4163
4164
  }
4164
4165
  }, "withAbort");
4165
4166
 
4166
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
4167
4168
  import { existsSync, readdirSync, readFileSync } from "node:fs";
4168
4169
  import { join } from "node:path";
4169
4170
  var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
@@ -4185,7 +4186,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
4185
4186
  }, "profilesWithAccounts");
4186
4187
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
4187
4188
 
4188
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
4189
4190
  var DEADLINE_MARGIN_MS = 5e3;
4190
4191
  var DEADLINE_MARGIN_SHARE = 0.15;
4191
4192
  var DEFAULT_REQUEST_MS = 2e3;
@@ -4228,7 +4229,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests, deadline, requestMs, signal,
4228
4229
  };
4229
4230
  }, "runBudget");
4230
4231
 
4231
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
4232
4233
  var CORE_LOG_EVENTS = defineLogEvents([
4233
4234
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
4234
4235
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -4262,7 +4263,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
4262
4263
  cache: "cache.answered"
4263
4264
  };
4264
4265
 
4265
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
4266
4267
  var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
4267
4268
  var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
4268
4269
  var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
@@ -4275,13 +4276,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
4275
4276
  error: /* @__PURE__ */ __name((event2, message2) => logger.error(logAttributes(event2), message2), "error")
4276
4277
  }), "snakeLogger");
4277
4278
 
4278
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
4279
4280
  import { randomUUID } from "node:crypto";
4280
4281
  import { appendFileSync, mkdirSync, readdirSync as readdirSync2, readFileSync as readFileSync2, rmSync, statSync, writeFileSync } from "node:fs";
4281
4282
  import { userInfo } from "node:os";
4282
4283
  import { join as join2, sep } from "node:path";
4283
4284
 
4284
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
4285
4286
  var diagnostic = {
4286
4287
  event: true,
4287
4288
  operation: true,
@@ -4351,7 +4352,7 @@ var LOG_ATTRIBUTES = [
4351
4352
  ...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
4352
4353
  ].sort();
4353
4354
 
4354
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
4355
4356
  var KEEP_RUNS_FOR_DAYS = 30;
4356
4357
  var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
4357
4358
  var RUNS_SIZE_LIMIT_MB = 200;
@@ -4704,7 +4705,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
4704
4705
  };
4705
4706
  }, "metadataOf");
4706
4707
 
4707
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
4708
4709
  import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
4709
4710
  import { randomBytes } from "node:crypto";
4710
4711
  var scopes = new AsyncLocalStorage2();
@@ -4740,7 +4741,7 @@ var childTrace = /* @__PURE__ */ __name(() => {
4740
4741
  var attempts = new AsyncLocalStorage2();
4741
4742
  var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
4742
4743
 
4743
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
4744
4745
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
4745
4746
  const recording = startRecording(options);
4746
4747
  try {
@@ -4925,7 +4926,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
4925
4926
  return void 0;
4926
4927
  }, "partialOutcome");
4927
4928
 
4928
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
4929
4930
  var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
4930
4931
  if (ms === void 0)
4931
4932
  return body();
@@ -4951,7 +4952,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
4951
4952
  }
4952
4953
  }, "withDeadline");
4953
4954
 
4954
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
4955
4956
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
4956
4957
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
4957
4958
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -5020,10 +5021,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
5020
5021
  return void 0;
5021
5022
  }, "sampleCommand");
5022
5023
 
5023
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
5024
5025
  import { existsSync as existsSync3 } from "node:fs";
5025
5026
 
5026
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
5027
5028
  var endpoint = /* @__PURE__ */ __name((value) => {
5028
5029
  try {
5029
5030
  const url2 = new URL(value);
@@ -5033,7 +5034,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
5033
5034
  }
5034
5035
  }, "endpoint");
5035
5036
 
5036
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
5037
5038
  var MODEL_FIELDS = ["provider", "model", "base_url"];
5038
5039
  var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
5039
5040
  provider: optional(picklist(["off", "openai", "anthropic"])),
@@ -5102,7 +5103,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
5102
5103
  };
5103
5104
  }, "modelTarget");
5104
5105
 
5105
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
5106
5107
  var model = pipe(string(), trim(), minLength(1), maxLength(200));
5107
5108
  var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
5108
5109
  var AI_FIELDS = {
@@ -5146,7 +5147,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
5146
5147
  };
5147
5148
  }, "resolveAISettings");
5148
5149
 
5149
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
5150
5151
  var DURATION = /^(\d+)(ms|s|m|h|d)$/;
5151
5152
  var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
5152
5153
  var parseDuration = /* @__PURE__ */ __name((value, source2) => {
@@ -5160,7 +5161,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
5160
5161
  return ms;
5161
5162
  }, "parseDuration");
5162
5163
 
5163
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
5164
5165
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
5165
5166
  var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
5166
5167
  var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
@@ -5319,7 +5320,7 @@ var rerankModel = /* @__PURE__ */ __name((id6) => {
5319
5320
  var vectorModelKey = /* @__PURE__ */ __name((model3) => `local:${model3.id}:${model3.dims}`, "vectorModelKey");
5320
5321
  var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
5321
5322
 
5322
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
5323
5324
  var HISTORY_MAX_DAYS = 1095;
5324
5325
  var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
5325
5326
  var DAY_MS2 = 24 * 60 * 60 * 1e3;
@@ -5366,8 +5367,251 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
5366
5367
  return { batch: { ...batch, messages }, skipped };
5367
5368
  }, "limitBatch");
5368
5369
 
5369
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
5370
5371
  import { readFileSync as readFileSync3 } from "node:fs";
5372
+
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
5374
+ var REPAIR_WORDS = {
5375
+ byte_order_mark: "an invisible byte-order mark at the start",
5376
+ comment: "a comment, which JSON does not allow",
5377
+ trailing_comma: "a comma before a closing bracket",
5378
+ missing_comma: "a missing comma",
5379
+ unquoted_key: "a key without double quotes",
5380
+ single_quotes: "text in single quotes",
5381
+ missing_closer: "the file stops before its closing brackets \u2014 whatever followed this line was already lost"
5382
+ };
5383
+ var GiveUp = class {
5384
+ static {
5385
+ __name(this, "GiveUp");
5386
+ }
5387
+ at;
5388
+ why;
5389
+ constructor(at2, why) {
5390
+ this.at = at2;
5391
+ this.why = why;
5392
+ }
5393
+ };
5394
+ var NUMBER = /^-?(0|[1-9]\d*)(\.\d+)?([eE][+-]?\d+)?/;
5395
+ var LITERAL = /^(true|false|null)/;
5396
+ var KEY = /^[A-Za-z_$][\w$.-]*/;
5397
+ var ENDS_VALUE = /^[\s,\]}/]?$/;
5398
+ var repairConfigText = /* @__PURE__ */ __name((text5) => {
5399
+ try {
5400
+ JSON.parse(text5);
5401
+ return { state: "valid" };
5402
+ } catch {
5403
+ }
5404
+ const fixes = [];
5405
+ const lineAt = /* @__PURE__ */ __name((offset) => text5.slice(0, offset).split("\n").length, "lineAt");
5406
+ const fix = /* @__PURE__ */ __name((kind2, offset) => fixes.push({ kind: kind2, line: lineAt(offset) }), "fix");
5407
+ const giveUp = /* @__PURE__ */ __name((why, offset = at2) => {
5408
+ throw new GiveUp(offset, why);
5409
+ }, "giveUp");
5410
+ let at2 = 0;
5411
+ let truncated = false;
5412
+ let last = "open";
5413
+ let lastEnd = 0;
5414
+ const previous = /* @__PURE__ */ __name(() => last, "previous");
5415
+ const skip = /* @__PURE__ */ __name(() => {
5416
+ for (; ; ) {
5417
+ while (/\s/.test(text5[at2] ?? ""))
5418
+ at2++;
5419
+ if (text5.startsWith("//", at2)) {
5420
+ fix("comment", at2);
5421
+ while (at2 < text5.length && text5[at2] !== "\n")
5422
+ at2++;
5423
+ } else if (text5.startsWith("/*", at2)) {
5424
+ const end = text5.indexOf("*/", at2 + 2);
5425
+ if (end < 0)
5426
+ giveUp("a /* comment is never closed");
5427
+ fix("comment", at2);
5428
+ at2 = end + 2;
5429
+ } else
5430
+ return;
5431
+ }
5432
+ }, "skip");
5433
+ const string2 = /* @__PURE__ */ __name(() => {
5434
+ const quote = text5[at2];
5435
+ const start = at2;
5436
+ if (quote === "'")
5437
+ fix("single_quotes", at2);
5438
+ at2++;
5439
+ let body = "";
5440
+ for (; ; ) {
5441
+ if (at2 >= text5.length)
5442
+ giveUp("the file stops inside a quoted text", start);
5443
+ const char = text5[at2];
5444
+ if (char === quote)
5445
+ break;
5446
+ if (text5.charCodeAt(at2) < 32)
5447
+ giveUp("a line break inside a quoted text");
5448
+ if (char === "\\") {
5449
+ const next = text5[at2 + 1] ?? "";
5450
+ if (quote === "'" && next === "'")
5451
+ body += "'";
5452
+ else if (/^["\\/bfnrt]$/.test(next))
5453
+ body += `\\${next}`;
5454
+ else if (next === "u" && /^[0-9a-fA-F]{4}$/.test(text5.slice(at2 + 2, at2 + 6))) {
5455
+ body += text5.slice(at2, at2 + 6);
5456
+ at2 += 4;
5457
+ } else
5458
+ giveUp("an escape JSON has no meaning for");
5459
+ at2 += 2;
5460
+ continue;
5461
+ }
5462
+ body += char === '"' ? '\\"' : char;
5463
+ at2++;
5464
+ }
5465
+ at2++;
5466
+ return JSON.parse(`"${body}"`);
5467
+ }, "string");
5468
+ const key = /* @__PURE__ */ __name(() => {
5469
+ const char = text5[at2] ?? "";
5470
+ if (char === '"' || char === "'")
5471
+ return string2();
5472
+ const word = KEY.exec(text5.slice(at2))?.[0];
5473
+ if (!word)
5474
+ return giveUp("something other than a key where a key should be");
5475
+ fix("unquoted_key", at2);
5476
+ at2 += word.length;
5477
+ return word;
5478
+ }, "key");
5479
+ const scalar = /* @__PURE__ */ __name(() => {
5480
+ const char = text5[at2] ?? "";
5481
+ if (char === '"' || char === "'")
5482
+ return { json: JSON.stringify(string2()) };
5483
+ const word = (NUMBER.exec(text5.slice(at2)) ?? LITERAL.exec(text5.slice(at2)))?.[0];
5484
+ if (!word || !ENDS_VALUE.test(text5[at2 + word.length] ?? ""))
5485
+ return giveUp("a value that is not JSON \u2014 text needs quotes, and only true, false and null go without");
5486
+ if (at2 + word.length === text5.length && NUMBER.test(word))
5487
+ giveUp("the file stops inside a number");
5488
+ at2 += word.length;
5489
+ return { json: word };
5490
+ }, "scalar");
5491
+ const members = /* @__PURE__ */ __name((close, one) => {
5492
+ const out = [];
5493
+ at2++;
5494
+ last = "open";
5495
+ let comma = -1;
5496
+ for (; ; ) {
5497
+ skip();
5498
+ if (truncated)
5499
+ return out;
5500
+ if (at2 >= text5.length) {
5501
+ if (previous() === "close")
5502
+ giveUp("the file stops after a closing bracket, so which brackets are missing has two readings");
5503
+ if (previous() === "comma")
5504
+ fix("trailing_comma", comma);
5505
+ fix("missing_closer", text5.length);
5506
+ truncated = true;
5507
+ return out;
5508
+ }
5509
+ const char = text5[at2];
5510
+ if (char === close) {
5511
+ if (previous() === "comma")
5512
+ fix("trailing_comma", comma);
5513
+ at2++;
5514
+ last = "close";
5515
+ return out;
5516
+ }
5517
+ if (char === "}" || char === "]")
5518
+ giveUp(`a ${char} where ${close} should close`);
5519
+ if (char === ",") {
5520
+ if (previous() !== "value" && previous() !== "close")
5521
+ giveUp("a comma with nothing before it");
5522
+ comma = at2;
5523
+ at2++;
5524
+ last = "comma";
5525
+ continue;
5526
+ }
5527
+ if (previous() === "value" || previous() === "close") {
5528
+ if (lineAt(at2) === lineAt(lastEnd))
5529
+ giveUp("two entries on one line with no comma between them");
5530
+ fix("missing_comma", lastEnd);
5531
+ }
5532
+ out.push(one());
5533
+ }
5534
+ }, "members");
5535
+ const value = /* @__PURE__ */ __name(() => {
5536
+ const char = text5[at2] ?? "";
5537
+ let node;
5538
+ if (char === "{") {
5539
+ const seen = /* @__PURE__ */ new Set();
5540
+ node = {
5541
+ object: members("}", () => {
5542
+ const start = at2;
5543
+ const name = key();
5544
+ if (seen.has(name))
5545
+ giveUp("a key appears twice in one object", start);
5546
+ seen.add(name);
5547
+ skip();
5548
+ if (at2 >= text5.length)
5549
+ giveUp("the file stops after a key, before its value");
5550
+ if (text5[at2] !== ":")
5551
+ giveUp("a key with no colon after it");
5552
+ at2++;
5553
+ skip();
5554
+ if (at2 >= text5.length)
5555
+ giveUp("the file stops after a key, before its value");
5556
+ return [name, value()];
5557
+ })
5558
+ };
5559
+ } else if (char === "[") {
5560
+ node = {
5561
+ array: members("]", () => {
5562
+ return value();
5563
+ })
5564
+ };
5565
+ } else
5566
+ node = scalar();
5567
+ if (!truncated) {
5568
+ last = "json" in node ? "value" : "close";
5569
+ lastEnd = at2;
5570
+ }
5571
+ return node;
5572
+ }, "value");
5573
+ try {
5574
+ if (text5.includes("\0") || text5.includes(String.fromCharCode(65533)))
5575
+ giveUp("the file is not text", 0);
5576
+ if (text5.charCodeAt(0) === 65279) {
5577
+ fix("byte_order_mark", 0);
5578
+ at2 = 1;
5579
+ }
5580
+ skip();
5581
+ if (text5[at2] !== "{")
5582
+ giveUp(at2 >= text5.length ? "the file is empty" : "the file does not start with {");
5583
+ const root = value();
5584
+ skip();
5585
+ if (at2 < text5.length)
5586
+ giveUp("more text after the closing }");
5587
+ const repaired = `${serialise(root, "")}
5588
+ `;
5589
+ JSON.parse(repaired);
5590
+ return { state: "repaired", text: repaired, fixes };
5591
+ } catch (error) {
5592
+ if (!(error instanceof GiveUp))
5593
+ throw error;
5594
+ const before = text5.slice(0, error.at).split("\n");
5595
+ return {
5596
+ state: "refused",
5597
+ line: before.length,
5598
+ column: (before.at(-1)?.length ?? 0) + 1,
5599
+ why: error.why
5600
+ };
5601
+ }
5602
+ }, "repairConfigText");
5603
+ var serialise = /* @__PURE__ */ __name((node, indent) => {
5604
+ if ("json" in node)
5605
+ return node.json;
5606
+ const inner = `${indent} `;
5607
+ const parts = "object" in node ? node.object.map(([name, item]) => `${inner}${JSON.stringify(name)}: ${serialise(item, inner)}`) : node.array.map((item) => `${inner}${serialise(item, inner)}`);
5608
+ const [open, close] = "object" in node ? ["{", "}"] : ["[", "]"];
5609
+ return parts.length === 0 ? `${open}${close}` : `${open}
5610
+ ${parts.join(",\n")}
5611
+ ${indent}${close}`;
5612
+ }, "serialise");
5613
+
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
5371
5615
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
5372
5616
  var SECTIONS = ["personal", "bot"];
5373
5617
  var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
@@ -5613,17 +5857,22 @@ var withoutPath = /* @__PURE__ */ __name((raw, at2) => {
5613
5857
  return { config: prune(raw, [gone]).pruned, removed: true };
5614
5858
  }, "withoutPath");
5615
5859
  var publicIssue = /* @__PURE__ */ __name(({ at: _, ...issue }) => issue, "publicIssue");
5860
+ var fixVerb = /* @__PURE__ */ __name((issue) => issue.kind === "invalid_json" ? "repair" : "remove", "fixVerb");
5616
5861
  var issueMessage = /* @__PURE__ */ __name((issues, doctor = "doctor") => {
5617
5862
  const [first2] = issues;
5618
5863
  if (!first2)
5619
5864
  return "";
5620
5865
  const more = issues.length - 1;
5621
- return `${first2.file}: ${first2.what}` + (first2.fix ? ` \u2014 remove it with \`${first2.fix}\`` : "") + (more === 0 ? "" : ` (and ${more} more problem${more === 1 ? "" : "s"} \u2014 \`${doctor}\` lists them all)`);
5866
+ return `${first2.file}: ${first2.what}` + (first2.fix ? ` \u2014 ${fixVerb(first2)} it with \`${first2.fix}\`` : "") + (more === 0 ? "" : ` (and ${more} more problem${more === 1 ? "" : "s"} \u2014 \`${doctor}\` lists them all)`);
5622
5867
  }, "issueMessage");
5623
5868
  var checkConfigText = /* @__PURE__ */ __name((text5, { file, tool, schema: schema2, knownPermissions }) => {
5624
5869
  const parsed = parseConfigText(text5, file);
5625
- if ("issue" in parsed)
5626
- return { issues: [publicIssue(parsed.issue)], config: void 0 };
5870
+ if ("issue" in parsed) {
5871
+ const issue = publicIssue(parsed.issue);
5872
+ if (repairConfigText(text5).state === "repaired")
5873
+ issue.fix = `${tool} config repair`;
5874
+ return { issues: [issue], config: void 0 };
5875
+ }
5627
5876
  if (!isNode(parsed.raw))
5628
5877
  return { issues: [wholeFile(file, "the file must hold a JSON object")], config: void 0 };
5629
5878
  const context2 = { file, tool };
@@ -5656,7 +5905,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
5656
5905
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
5657
5906
  }, "readConfigFile");
5658
5907
 
5659
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
5660
5909
  import { existsSync as existsSync2, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
5661
5910
  import { dirname, join as join3 } from "node:path";
5662
5911
  var DEFAULT_CONFIG = {
@@ -5685,7 +5934,29 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
5685
5934
  }
5686
5935
  __name(ensureDefaultConfig, "ensureDefaultConfig");
5687
5936
 
5688
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
5689
5960
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
5690
5961
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
5691
5962
  var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
@@ -5755,6 +6026,65 @@ var SHARED_DEFAULTS_ONLY = {
5755
6026
  update_check: optional(flag),
5756
6027
  skill_hint: optional(flag)
5757
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
+ ];
5758
6088
  var NONE_NAMED = "none named";
5759
6089
  var NO_PROFILE = "default";
5760
6090
  var namedProfile = /* @__PURE__ */ __name((settings) => settings.sources?.profile === NONE_NAMED ? void 0 : settings.profile, "namedProfile");
@@ -5807,12 +6137,14 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5807
6137
  const defaultsOnlyKeys = Object.keys(defaultsOnly);
5808
6138
  const botOnlyKeys = Object.keys(BOT_ONLY_ENTRIES);
5809
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");
5810
6143
  const PROFILE = envName(app, "PROFILE");
5811
6144
  const PROFILE_LOCK = envName(app, "PROFILE_LOCK");
5812
6145
  const TIMEOUT = envName(app, "TIMEOUT");
5813
6146
  const REQUESTS_PER_MINUTE = envName(app, "REQUESTS_PER_MINUTE");
5814
6147
  const configPathFor = /* @__PURE__ */ __name(({ env = process.env, configDir }) => configFilePath(configDir ?? resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).config), "configPathFor");
5815
- const readSchema = extension.schema ?? schema2;
5816
6148
  const context2 = /* @__PURE__ */ __name((file) => ({ file, tool: app.command }), "context");
5817
6149
  const loadConfig = /* @__PURE__ */ __name((path2) => {
5818
6150
  const read = readConfigText(path2);
@@ -5848,7 +6180,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5848
6180
  const configPath = configPathFor(options);
5849
6181
  try {
5850
6182
  if (!options.readOnly)
5851
- ensureDefaultConfig(configPath);
6183
+ ensureDefaultConfig(configPath, withDefaults(DEFAULT_CONFIG).config);
5852
6184
  } catch (error) {
5853
6185
  throw new CliError("configuration_error", error instanceof Error ? error.message : String(error));
5854
6186
  }
@@ -6026,7 +6358,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
6026
6358
  throw new CliError("validation_error", `${setting2} has no problem to remove \u2014 name the profile, or add --defaults, to unset a setting`);
6027
6359
  if (!known && valueAt(raw, at2) === void 0)
6028
6360
  throw new CliError("validation_error", `no setting called "${setting2}" \u2014 one of: ${allSettings.join(", ")}`);
6029
- saveConfigFile(path2, withoutPath(raw, at2).config);
6361
+ saveConfigFile(path2, withDefaults(withoutPath(raw, at2).config, [at2.join(".")]).config);
6030
6362
  return null;
6031
6363
  }
6032
6364
  if (!known)
@@ -6047,13 +6379,24 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
6047
6379
  if (added)
6048
6380
  throw new CliError("validation_error", `${setting2} cannot be "${value}": ${added.what}`);
6049
6381
  const checked = safeParse(readSchema, changed);
6050
- saveConfigFile(path2, checked.success ? checked.output : changed);
6382
+ saveConfigFile(path2, withDefaults(checked.success ? checked.output : changed).config);
6051
6383
  return valueAt(checked.success ? checked.output : changed, at2) ?? null;
6052
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");
6053
6394
  return {
6054
6395
  resolveSettings,
6055
6396
  configuredProfiles,
6056
6397
  changeSetting,
6398
+ migrate,
6399
+ declaredSettings,
6057
6400
  allSettings,
6058
6401
  defaultsOnlyKeys,
6059
6402
  schema: schema2,
@@ -6094,7 +6437,7 @@ var given = /* @__PURE__ */ __name((value) => {
6094
6437
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
6095
6438
  }, "given");
6096
6439
 
6097
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
6098
6441
  var runBudgetOf = /* @__PURE__ */ __name((command, requests) => {
6099
6442
  const { deadline, signal, app } = environmentOf(command);
6100
6443
  const now = deadline?.();
@@ -6217,7 +6560,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
6217
6560
  return words.join(" ");
6218
6561
  }, "commandPath");
6219
6562
 
6220
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
6221
6564
  var REMOTE_READ = { remote: "read", local: "read" };
6222
6565
  var FETCH = { remote: "read", local: "write" };
6223
6566
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -6253,6 +6596,18 @@ var destroysNothing = /* @__PURE__ */ __name((command) => {
6253
6596
  KEPT_UNDER_LOCK.add(command);
6254
6597
  return command;
6255
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");
6256
6611
  var STORE_WRITES = /* @__PURE__ */ new WeakSet();
6257
6612
  var changesStore = /* @__PURE__ */ __name((command) => {
6258
6613
  STORE_WRITES.add(command);
@@ -6277,7 +6632,7 @@ var readsOverMcpAt = /* @__PURE__ */ __name((root) => (path2) => {
6277
6632
  }, "readsOverMcpAt");
6278
6633
  var isStoreChange = /* @__PURE__ */ __name((command) => {
6279
6634
  const effects = metaOf(command).effects;
6280
- 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);
6281
6636
  }, "isStoreChange");
6282
6637
  var STORE_CHANGE_REFUSAL = "change the message store";
6283
6638
  var previewFlag = /* @__PURE__ */ __name((program2) => program2.options.some((option) => option.long === "--dry-run") ? " --dry-run" : "", "previewFlag");
@@ -6325,7 +6680,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
6325
6680
  throw readOnlyRefusal(lock, what);
6326
6681
  }, "refuseUnderReadOnly");
6327
6682
 
6328
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
6329
6684
  var account = strictObject({
6330
6685
  provider: text,
6331
6686
  id,
@@ -6335,7 +6690,7 @@ var account = strictObject({
6335
6690
  scope: optional(picklist(["personal", "work"]))
6336
6691
  });
6337
6692
 
6338
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
6339
6694
  var accountSession = strictObject({
6340
6695
  current: boolean(),
6341
6696
  client: nullable(text),
@@ -6345,7 +6700,7 @@ var accountSession = strictObject({
6345
6700
  created_at: optional(nullable(time))
6346
6701
  });
6347
6702
 
6348
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
6349
6704
  var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
6350
6705
  var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
6351
6706
  var audience = picklist(["everyone", "contacts", "nobody"]);
@@ -6363,7 +6718,7 @@ var accountPrivacy = strictObject({
6363
6718
  });
6364
6719
  var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
6365
6720
 
6366
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
6367
6722
  var accountProfile = strictObject({
6368
6723
  profile: id,
6369
6724
  current: boolean(),
@@ -6373,7 +6728,7 @@ var accountProfile = strictObject({
6373
6728
  signed_in: optional(boolean())
6374
6729
  });
6375
6730
 
6376
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
6377
6732
  var milliseconds = pipe(number(), minValue(0));
6378
6733
  var counterReading = strictObject({
6379
6734
  counter: picklist(["views", "reactions", "comments"]),
@@ -6385,7 +6740,7 @@ var counterReading = strictObject({
6385
6740
  });
6386
6741
  var selection = record(string(), unknown());
6387
6742
 
6388
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
6389
6744
  var adminRow = strictObject({
6390
6745
  ref: reference,
6391
6746
  /** What `stats * evidence` takes: a person id, a stay or a message locator. */
@@ -6438,7 +6793,7 @@ var adminReport = strictObject({
6438
6793
  rows: array(adminRow)
6439
6794
  });
6440
6795
 
6441
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
6442
6797
  var closeSuggestion = strictObject({
6443
6798
  as: picklist(["done", "dismissed"]),
6444
6799
  /** The agent's name. */
@@ -6496,7 +6851,7 @@ var task = strictObject({
6496
6851
  updated_at: optional(time)
6497
6852
  });
6498
6853
 
6499
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
6500
6855
  var agendaChat = strictObject({
6501
6856
  chat: reference,
6502
6857
  title: nullable(text),
@@ -6566,11 +6921,11 @@ var agenda = strictObject({
6566
6921
  unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
6567
6922
  });
6568
6923
 
6569
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
6570
6925
  var analysisConsent = strictObject({ chat: id, provider: text, at: time });
6571
6926
  var analysisConsentRevocation = strictObject({ revoked: boolean() });
6572
6927
 
6573
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
6574
6929
  var attachment = strictObject({
6575
6930
  /** The message it came with, as a locator; absent inside that message. */
6576
6931
  message: optional(reference),
@@ -6608,7 +6963,7 @@ var attachment = strictObject({
6608
6963
  });
6609
6964
  var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
6610
6965
 
6611
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
6612
6967
  var actionableError = objectWithRest({
6613
6968
  code: text,
6614
6969
  message: text,
@@ -6625,7 +6980,7 @@ var batchResult = strictObject({
6625
6980
  max_error_percent: count
6626
6981
  });
6627
6982
 
6628
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
6629
6984
  var extractionItem = strictObject({
6630
6985
  ref: reference,
6631
6986
  attachment: count,
@@ -6658,7 +7013,7 @@ var extractionReport = strictObject({
6658
7013
  cursor: optional(text)
6659
7014
  });
6660
7015
 
6661
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
6662
7017
  var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
6663
7018
  var attachmentBytes = strictObject({
6664
7019
  ref: reference,
@@ -6686,7 +7041,7 @@ var attachmentTextChange = strictObject({
6686
7041
  replaced: nullable(picklist(["extracted", "agent"]))
6687
7042
  });
6688
7043
 
6689
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
6690
7045
  var chart = strictObject({
6691
7046
  version: literal(1),
6692
7047
  kind: picklist(["bar", "line", "grouped-bar"]),
@@ -6701,7 +7056,7 @@ var chart = strictObject({
6701
7056
  file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
6702
7057
  });
6703
7058
 
6704
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
6705
7060
  var member = strictObject({
6706
7061
  id,
6707
7062
  name: nullable(text),
@@ -6724,7 +7079,7 @@ var member = strictObject({
6724
7079
  check: optional(record(string(), unknown()))
6725
7080
  });
6726
7081
 
6727
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
6728
7083
  var setting = optional(nullable(boolean()));
6729
7084
  var chat = strictObject({
6730
7085
  ref: reference,
@@ -6765,7 +7120,7 @@ var chat = strictObject({
6765
7120
  members: optional(array(member))
6766
7121
  });
6767
7122
 
6768
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
6769
7124
  var named = strictObject({
6770
7125
  id,
6771
7126
  title: nullable(text),
@@ -6788,7 +7143,7 @@ var folder = strictObject({
6788
7143
  excluded_chats: optional(array(named))
6789
7144
  });
6790
7145
 
6791
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
6792
7147
  var inviteLink = strictObject({
6793
7148
  link: text,
6794
7149
  /** Who joins by it asks first, and an admin lets them in. */
@@ -6804,7 +7159,7 @@ var inviteLink = strictObject({
6804
7159
  joined_count: optional(count)
6805
7160
  });
6806
7161
 
6807
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
6808
7163
  var operated = { operation_id: id, chat_id: id };
6809
7164
  var group = strictObject({
6810
7165
  ...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
@@ -6884,7 +7239,7 @@ var chatFolderOrder = strictObject({
6884
7239
  folders: array(strictObject({ id, title: text }))
6885
7240
  });
6886
7241
 
6887
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
6888
7243
  var operated2 = { operation_id: id, chat_id: id };
6889
7244
  var chatRemoval = strictObject(operated2);
6890
7245
  var chatMuting = strictObject({
@@ -6895,7 +7250,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
6895
7250
  var chatPin = strictObject({ ...operated2, pinned: boolean() });
6896
7251
  var chatUnread = strictObject({ ...operated2, unread: literal(true) });
6897
7252
 
6898
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
6899
7254
  var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
6900
7255
  var chatEvent = strictObject({
6901
7256
  chat_id: id,
@@ -6912,7 +7267,7 @@ var chatEvent = strictObject({
6912
7267
  before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
6913
7268
  });
6914
7269
 
6915
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
6916
7271
  var chatMetadata = strictObject({
6917
7272
  chat_id: id,
6918
7273
  title: nullable(text),
@@ -6927,7 +7282,7 @@ var chatMetadataRefresh = strictObject({
6927
7282
  has_more: boolean()
6928
7283
  });
6929
7284
 
6930
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
6931
7286
  var action = picklist(["report", "delete", "remove"]);
6932
7287
  var level = picklist(["deny", "readonly", "ask", "allow"]);
6933
7288
  var chatRules = strictObject({
@@ -6964,7 +7319,7 @@ var chatModeration = strictObject({
6964
7319
  }))
6965
7320
  });
6966
7321
 
6967
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
6968
7323
  var optionalCount = optional(count);
6969
7324
  var minutes = nullable(number());
6970
7325
  var chatStats = strictObject({
@@ -7026,7 +7381,7 @@ var taskStats = strictObject({
7026
7381
  }))
7027
7382
  });
7028
7383
 
7029
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
7030
7385
  var memberCount = strictObject({
7031
7386
  day: pipe(text, isoDate()),
7032
7387
  participants: nullable(count),
@@ -7049,7 +7404,7 @@ var chatTracking = strictObject({
7049
7404
  tracked: boolean()
7050
7405
  });
7051
7406
 
7052
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
7053
7408
  var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
7054
7409
  var contactSync = strictObject({ added: count, changed: count, known: count });
7055
7410
  var profileFields = {
@@ -7087,7 +7442,7 @@ var profileFields = {
7087
7442
  }))
7088
7443
  };
7089
7444
 
7090
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
7091
7446
  var contact = strictObject({
7092
7447
  ref: reference,
7093
7448
  id,
@@ -7118,7 +7473,7 @@ var contact = strictObject({
7118
7473
  notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
7119
7474
  });
7120
7475
 
7121
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
7122
7477
  var WEIGHTS = {
7123
7478
  bot: 3,
7124
7479
  scam: 3,
@@ -7143,7 +7498,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
7143
7498
  var DIGITS = /\d{5,}/;
7144
7499
  var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
7145
7500
 
7146
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
7147
7502
  var linkedIdentity = strictObject({
7148
7503
  provider: text,
7149
7504
  id,
@@ -7184,7 +7539,7 @@ var contactCheck = strictObject({
7184
7539
  checked_at: time
7185
7540
  });
7186
7541
 
7187
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
7188
7543
  var quoted = strictObject({
7189
7544
  id,
7190
7545
  sender_id: nullable(id),
@@ -7286,12 +7641,24 @@ var message = strictObject({
7286
7641
  read: nullable(boolean()),
7287
7642
  flagged: nullable(boolean()),
7288
7643
  /** How much the sender's mail looks like spam, a scam or a robot (memo's score), and why; absent when unscored. */
7289
- sender_score: optional(strictObject({ score: number(), signals: array(text), demoted: optional(literal(true)) }))
7644
+ sender_score: optional(strictObject({ score: number(), signals: array(text), demoted: optional(literal(true)) })),
7645
+ /** Mail `review`: filed in the mailbox of mail sent to many. */
7646
+ bulk: optional(boolean()),
7647
+ /** Mail `review`: its List-Id, `null` when it has none. */
7648
+ list_id: optional(nullable(text)),
7649
+ /** Mail `review`: the mail rule that decided how it is stored, by its id in `rules list`; `null` when none. */
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())
7290
7657
  })),
7291
7658
  provider_metadata: providerMetadata
7292
7659
  });
7293
7660
 
7294
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
7295
7662
  var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
7296
7663
  var contextMessage = strictObject({
7297
7664
  locator: reference,
@@ -7489,7 +7856,7 @@ var contactPreparation = strictObject({
7489
7856
  })
7490
7857
  });
7491
7858
 
7492
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
7493
7860
  var contactNote = strictObject({
7494
7861
  id,
7495
7862
  /** The contact, as a `contact:` reference. */
@@ -7501,13 +7868,13 @@ var contactNote = strictObject({
7501
7868
  updated_at: time
7502
7869
  });
7503
7870
 
7504
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
7505
7872
  var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
7506
7873
  var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
7507
7874
  var contactStateChange = strictObject({ operation_id: id, person_id: id });
7508
7875
  var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
7509
7876
 
7510
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
7511
7878
  var conversation = strictObject({
7512
7879
  id,
7513
7880
  chat: reference,
@@ -7522,7 +7889,7 @@ var conversation = strictObject({
7522
7889
  rules_version: count
7523
7890
  });
7524
7891
 
7525
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
7526
7893
  var conversationBuild = strictObject({
7527
7894
  chat: id,
7528
7895
  messages: count,
@@ -7547,7 +7914,7 @@ var catchUpPreparation = strictObject({
7547
7914
  prepared: optional(conversationPreparation)
7548
7915
  });
7549
7916
 
7550
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
7551
7918
  var conversationDetails = union([
7552
7919
  strictObject({ ...conversation.entries, messages: array(message) }),
7553
7920
  message
@@ -7637,7 +8004,7 @@ var conversationHit = strictObject({
7637
8004
  stale: boolean()
7638
8005
  });
7639
8006
 
7640
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
7641
8008
  var counters = strictObject({
7642
8009
  cutoff: time,
7643
8010
  max_age_ms: milliseconds,
@@ -7667,7 +8034,7 @@ var counterRefresh = strictObject({
7667
8034
  complete: optional(boolean())
7668
8035
  });
7669
8036
 
7670
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
7671
8038
  var document = strictObject({
7672
8039
  ref: reference,
7673
8040
  id,
@@ -7682,7 +8049,7 @@ var document = strictObject({
7682
8049
  owners: optional(array(text))
7683
8050
  });
7684
8051
 
7685
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
7686
8053
  var documentLink = strictObject({
7687
8054
  ref: reference,
7688
8055
  url: text,
@@ -7693,7 +8060,7 @@ var documentLink = strictObject({
7693
8060
  sender: strictObject({ id: nullable(id), name: nullable(text) })
7694
8061
  });
7695
8062
 
7696
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
7697
8064
  var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
7698
8065
  var contribution = strictObject({
7699
8066
  message: evidenceMessage,
@@ -7723,7 +8090,7 @@ var retentionStay = strictObject({
7723
8090
  });
7724
8091
  var evidence = union([contribution, retentionStay]);
7725
8092
 
7726
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/entities/fact.js
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
7727
8094
  var fact = strictObject({
7728
8095
  ref: reference,
7729
8096
  id,
@@ -7753,7 +8120,7 @@ var fact = strictObject({
7753
8120
  updated_at: time
7754
8121
  });
7755
8122
 
7756
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
7757
8124
  var hit = strictObject({
7758
8125
  kind: picklist(["message", "mail", "note", "document", "event", "meeting"]),
7759
8126
  ref: reference,
@@ -7778,6 +8145,11 @@ var hit = strictObject({
7778
8145
  scope: optional(picklist(["transcript", "chat", "summary"])),
7779
8146
  /** A meeting transcript hit's cue, which `meetings passage` opens with the lines around it. */
7780
8147
  cue_ref: optional(reference),
8148
+ /** A meeting transcript hit's transcript language (`ru`, `en`…), `null` when unknown. */
8149
+ language: optional(nullable(text)),
8150
+ /** A meeting transcript hit's line, from 1, of `lines_total` lines in its transcript. */
8151
+ line: optional(pipe(count, minValue(1))),
8152
+ lines_total: optional(count),
7781
8153
  /** A meeting passage's stored line, so two passages of one meeting stay apart; `search meetings` gives the same. */
7782
8154
  id: optional(pipe(string(), minLength(1))),
7783
8155
  /** A message's files; absent when it has none. */
@@ -7786,7 +8158,7 @@ var hit = strictObject({
7786
8158
  untrusted
7787
8159
  });
7788
8160
 
7789
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
7790
8162
  var identity = strictObject({
7791
8163
  ref: reference,
7792
8164
  provider: text,
@@ -7799,7 +8171,7 @@ var identity = strictObject({
7799
8171
  person: optional(nullable(reference))
7800
8172
  });
7801
8173
 
7802
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
7803
8175
  var imageEmbedding = strictObject({
7804
8176
  model: text,
7805
8177
  embedded: count,
@@ -7808,13 +8180,13 @@ var imageEmbedding = strictObject({
7808
8180
  more: boolean()
7809
8181
  });
7810
8182
 
7811
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
7812
8184
  import { spawn } from "node:child_process";
7813
8185
  import { randomBytes as randomBytes2 } from "node:crypto";
7814
8186
  import { closeSync, existsSync as existsSync4, mkdirSync as mkdirSync3, openSync, readdirSync as readdirSync3, readFileSync as readFileSync4, realpathSync, rmSync as rmSync3 } from "node:fs";
7815
8187
  import { dirname as dirname2, join as join4 } from "node:path";
7816
8188
 
7817
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
7818
8190
  var progressOf = /* @__PURE__ */ __name((input) => {
7819
8191
  const total = input.total ?? null;
7820
8192
  const updated = input.updatedAt ?? null;
@@ -7830,7 +8202,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
7830
8202
  };
7831
8203
  }, "progressOf");
7832
8204
 
7833
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
7834
8206
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
7835
8207
  const run = currentRun();
7836
8208
  const trace = traceId ?? run.traceId;
@@ -7844,7 +8216,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
7844
8216
  }));
7845
8217
  }, "recordLogFor");
7846
8218
 
7847
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
7848
8220
  var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
7849
8221
  var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
7850
8222
  const out = openSync(log, "a", 384);
@@ -7894,11 +8266,11 @@ var finishJob = /* @__PURE__ */ __name((app, dir, id6, change) => {
7894
8266
  const job2 = readJob(dir, id6);
7895
8267
  if (!job2)
7896
8268
  return;
7897
- const outcome2 = stateOf(job2);
8269
+ const outcome3 = stateOf(job2);
7898
8270
  recordLogFor(recordsPath(dir, id6), app, job2.traceId ? { traceId: job2.traceId } : {})[job2.error ? "error" : "info"]({
7899
8271
  event: "job.exit",
7900
8272
  job: id6,
7901
- outcome: outcome2,
8273
+ outcome: outcome3,
7902
8274
  ...job2.error ? { errorCode: job2.error.code } : {}
7903
8275
  });
7904
8276
  }, "finishJob");
@@ -7999,7 +8371,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
7999
8371
  return { job: id6, pid, chat: input.chat, log };
8000
8372
  }, "startArchiveJob");
8001
8373
 
8002
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8003
8375
  var problem = strictObject({ code: text, message: text });
8004
8376
  var job = strictObject({
8005
8377
  id,
@@ -8022,7 +8394,7 @@ var job = strictObject({
8022
8394
  error: optional(problem)
8023
8395
  });
8024
8396
 
8025
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8026
8398
  var joinRequest = strictObject({
8027
8399
  person_id: id,
8028
8400
  name: nullable(text),
@@ -8033,7 +8405,7 @@ var joinRequest = strictObject({
8033
8405
  about: optional(text)
8034
8406
  });
8035
8407
 
8036
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8037
8409
  var botProfile = strictObject({
8038
8410
  name: text,
8039
8411
  token: text,
@@ -8101,7 +8473,7 @@ var stickerInventory = strictObject({
8101
8473
  url: optional(nullable(text))
8102
8474
  });
8103
8475
 
8104
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8105
8477
  var pollVote = strictObject({
8106
8478
  person_id: id,
8107
8479
  name: nullable(text),
@@ -8111,7 +8483,7 @@ var pollVote = strictObject({
8111
8483
  voted_at: time
8112
8484
  });
8113
8485
 
8114
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8115
8487
  var reactions = unwrap(unwrap(message.entries.reactions));
8116
8488
  var observation = strictObject({
8117
8489
  value: pipe(number(), minValue(0)),
@@ -8149,10 +8521,77 @@ var serveSummary = strictObject({
8149
8521
  replies: optional(strictObject({ sent: totals, skipped: totals, tasks: optional(totals) })),
8150
8522
  members: optional(strictObject({ fetched: count, failed: count })),
8151
8523
  stems: optional(strictObject({ stemmed: count })),
8524
+ caught_up: optional(strictObject({ chats: count, fetched: count, failed: count, stopped: boolean() })),
8152
8525
  tasks: optional(strictObject({ added: count, closed: count, review: count }))
8153
8526
  });
8154
8527
 
8155
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8156
8595
  var mediaArchive = strictObject({
8157
8596
  directory: text,
8158
8597
  chats: count,
@@ -8184,7 +8623,7 @@ var mediaArchiveTimer = union([
8184
8623
  strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
8185
8624
  ]);
8186
8625
 
8187
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8188
8627
  var preparationId = pipe(string(), minLength(1));
8189
8628
  var preparationCount = pipe(number(), integer(), minValue(0));
8190
8629
  var preparationTime = nullable(isoTime);
@@ -8276,7 +8715,7 @@ var preparationMeeting = strictObject({
8276
8715
  updated_at: isoTime
8277
8716
  });
8278
8717
 
8279
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8280
8719
  var meetingEvidence = preparationEvidence;
8281
8720
  var meetingPersonContext = strictObject({
8282
8721
  person: strictObject({ uid: string(), name: nullable(string()) }),
@@ -8298,13 +8737,13 @@ var meetingPersonContext = strictObject({
8298
8737
  })
8299
8738
  });
8300
8739
 
8301
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
8302
- var evidence2 = strictObject({ reference, fingerprint: text });
8303
- var base = { id, project: reference, evidence: array(evidence2) };
8304
- var finding = variant("kind", [
8305
- 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 }),
8306
8745
  strictObject({
8307
- ...base,
8746
+ ...base2,
8308
8747
  kind: literal("task"),
8309
8748
  type: picklist(WORK_TASK_TYPES),
8310
8749
  title: text,
@@ -8316,7 +8755,7 @@ var finding = variant("kind", [
8316
8755
  assignee_evidence: optional(array(reference))
8317
8756
  })
8318
8757
  ]);
8319
- var outcome = strictObject({
8758
+ var outcome2 = strictObject({
8320
8759
  id,
8321
8760
  fingerprint: text,
8322
8761
  status: picklist(["accepted", "rejected"]),
@@ -8326,17 +8765,17 @@ var outcome = strictObject({
8326
8765
  var meetingFindings = strictObject({
8327
8766
  id,
8328
8767
  account: strictObject({ provider: text, account: text }),
8329
- 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) }),
8330
8769
  fingerprint: text,
8331
8770
  status: picklist(["proposed", "reviewed"]),
8332
8771
  author,
8333
8772
  decided_by: nullable(strictObject({ type: picklist(["person", "bot"]), id })),
8334
8773
  decided_at: nullable(time),
8335
- previous: array(outcome),
8336
- 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) }))
8337
8776
  });
8338
8777
 
8339
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8340
8779
  var communicationCoverage = strictObject({
8341
8780
  read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
8342
8781
  query: string(),
@@ -8381,7 +8820,7 @@ var preparationCommunications = strictObject({
8381
8820
  }))
8382
8821
  });
8383
8822
 
8384
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8385
8824
  var meetingPreparation = strictObject({
8386
8825
  communications: optional(preparationCommunications),
8387
8826
  schema_version: literal(1),
@@ -8494,7 +8933,7 @@ var meetingPreparation = strictObject({
8494
8933
  })
8495
8934
  });
8496
8935
 
8497
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8498
8937
  var count4 = pipe(number(), integer(), minValue(0));
8499
8938
  var id3 = pipe(string(), minLength(1));
8500
8939
  var text3 = string();
@@ -8558,7 +8997,7 @@ var meetingProjectCandidates = strictObject({
8558
8997
  })
8559
8998
  });
8560
8999
 
8561
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8562
9001
  var count5 = pipe(number(), integer(), minValue(0));
8563
9002
  var id4 = pipe(string(), minLength(1), maxLength(1e3));
8564
9003
  var meetingSeriesInventory = strictObject({
@@ -8588,7 +9027,7 @@ var meetingSeriesInventory = strictObject({
8588
9027
  })
8589
9028
  });
8590
9029
 
8591
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8592
9031
  var text4 = string();
8593
9032
  var id5 = pipe(number(), integer(), minValue(1));
8594
9033
  var revision = picklist(["current", "superseded"]);
@@ -8605,7 +9044,7 @@ var meetingTaskProposal = strictObject({
8605
9044
  persistence: literal("proposal-only")
8606
9045
  });
8607
9046
 
8608
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8609
9048
  var memory = strictObject({
8610
9049
  ref: reference,
8611
9050
  id,
@@ -8632,7 +9071,7 @@ var memory = strictObject({
8632
9071
  updated_at: time
8633
9072
  });
8634
9073
 
8635
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8636
9075
  var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
8637
9076
  var status = picklist(["found", "linked", "dismissed"]);
8638
9077
  var mention = strictObject({
@@ -8675,13 +9114,13 @@ var mentionRebuild = strictObject({
8675
9114
  mentions: count
8676
9115
  });
8677
9116
 
8678
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8679
9118
  var operated3 = { operation_id: id, chat_id: id };
8680
9119
  var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
8681
9120
  var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
8682
9121
  var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
8683
9122
 
8684
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8685
9124
  var messageTranscript = strictObject({
8686
9125
  message_id: id,
8687
9126
  text,
@@ -8739,7 +9178,7 @@ var evidencePacket = strictObject({
8739
9178
  }))
8740
9179
  });
8741
9180
 
8742
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8743
9182
  var messageThread = strictObject({
8744
9183
  ref: reference,
8745
9184
  chat: id,
@@ -8756,7 +9195,7 @@ var messageThread = strictObject({
8756
9195
  });
8757
9196
  var messageContext = union([message, messageThread]);
8758
9197
 
8759
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8760
9199
  var messageCounts = strictObject({
8761
9200
  by: picklist(["chat", "sender", "day", "hour"]),
8762
9201
  total: count,
@@ -8769,7 +9208,7 @@ var messageCounts = strictObject({
8769
9208
  }))
8770
9209
  });
8771
9210
 
8772
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8773
9212
  var messageLink = strictObject({
8774
9213
  ref: reference,
8775
9214
  url: nullable(text),
@@ -8786,7 +9225,7 @@ var messageLink = strictObject({
8786
9225
  })))
8787
9226
  });
8788
9227
 
8789
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8790
9229
  var savedMessageFile = strictObject({
8791
9230
  kind: text,
8792
9231
  path: text,
@@ -8829,6 +9268,7 @@ var tasks = optional(strictObject({
8829
9268
  held: optional(count),
8830
9269
  held_chats: optional(count)
8831
9270
  }));
9271
+ var historyLimited = picklist(["group_too_large", "older_than_window"]);
8832
9272
  var messageSyncChat = strictObject({
8833
9273
  issue: optional(actionableError),
8834
9274
  resume: optional(strictObject({ before: optional(text) })),
@@ -8842,6 +9282,8 @@ var messageSyncChat = strictObject({
8842
9282
  reached_since: optional(literal(true)),
8843
9283
  reached_last: optional(literal(true)),
8844
9284
  stopped: optional(literal(true)),
9285
+ /** The history limits stopped the read: a group too large to read, or the window's start reached. */
9286
+ limited: optional(historyLimited),
8845
9287
  tasks,
8846
9288
  /** `--full-history`: the chat's pushed history is now kept in full; `false` when the store does not know the chat. */
8847
9289
  history_included: optional(boolean())
@@ -8860,14 +9302,17 @@ var messageSyncAll = strictObject({
8860
9302
  current: optional(literal(true)),
8861
9303
  stopped: optional(literal(true)),
8862
9304
  error: optional(text),
8863
- issue: optional(actionableError)
9305
+ issue: optional(actionableError),
9306
+ limited: optional(historyLimited)
8864
9307
  })),
9308
+ /** How many chats the history limits left unread (big groups) or read only to the window's start. */
9309
+ limited: optional(strictObject({ group_too_large: count, older_than_window: count })),
8865
9310
  tasks
8866
9311
  });
8867
9312
  var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
8868
9313
  var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
8869
9314
 
8870
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8871
9316
  var messageWrite = strictObject({
8872
9317
  operation_id: id,
8873
9318
  message,
@@ -8882,7 +9327,7 @@ var draftWrite = strictObject({
8882
9327
  });
8883
9328
  var messageSend = union([messageWrite, draftWrite]);
8884
9329
 
8885
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8886
9331
  var model2 = strictObject({
8887
9332
  id,
8888
9333
  kind: picklist(["audio", "text", "image", "reranker"]),
@@ -8899,7 +9344,7 @@ var model2 = strictObject({
8899
9344
  path: text
8900
9345
  });
8901
9346
 
8902
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8903
9348
  var source = picklist(["environment", "keyring", "file"]);
8904
9349
  var modelKey = strictObject({
8905
9350
  provider: text,
@@ -8909,7 +9354,7 @@ var modelKey = strictObject({
8909
9354
  var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
8910
9355
  var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
8911
9356
 
8912
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8913
9358
  var versus = strictObject({ current: number(), previous: number() });
8914
9359
  var person = { person_ref: reference, name: nullable(text) };
8915
9360
  var graph = strictObject({
@@ -8943,14 +9388,14 @@ var officialStats = strictObject({
8943
9388
  graphs: record(string(), union([graph, strictObject({ error: text })]))
8944
9389
  });
8945
9390
 
8946
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8947
9392
  var person2 = strictObject({
8948
9393
  ref: reference,
8949
9394
  name: nullable(text),
8950
9395
  identities: optional(array(identity))
8951
9396
  });
8952
9397
 
8953
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8954
9399
  var poll = strictObject({
8955
9400
  chat_id: id,
8956
9401
  message_id: id,
@@ -8966,11 +9411,11 @@ var poll = strictObject({
8966
9411
  });
8967
9412
  var pollChange = strictObject({ operation_id: id, poll });
8968
9413
 
8969
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8970
9415
  var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
8971
9416
  var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
8972
9417
 
8973
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
8974
9419
  var figures = record(string(), number());
8975
9420
  var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
8976
9421
  var rankingRow = strictObject({
@@ -9017,7 +9462,7 @@ var ranking = strictObject({
9017
9462
  rows: array(rankingRow)
9018
9463
  });
9019
9464
 
9020
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
9021
9466
  var reaction = strictObject({
9022
9467
  person: strictObject({ id, name: nullable(text), username: nullable(text) }),
9023
9468
  /** The emoji, or `custom:<id>` for a custom one. */
@@ -9025,7 +9470,7 @@ var reaction = strictObject({
9025
9470
  reacted_at: time
9026
9471
  });
9027
9472
 
9028
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
9029
9474
  var reactionChange = strictObject({
9030
9475
  operation_id: id,
9031
9476
  chat_id: id,
@@ -9033,7 +9478,7 @@ var reactionChange = strictObject({
9033
9478
  reaction: nullable(text)
9034
9479
  });
9035
9480
 
9036
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
9037
9482
  var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
9038
9483
  var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
9039
9484
  var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
@@ -9044,7 +9489,7 @@ var recipientChange = strictObject({
9044
9489
  ...partial(recipientOff).entries
9045
9490
  });
9046
9491
 
9047
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
9048
9493
  var events = array(record(string(), unknown()));
9049
9494
  var recordedRun = strictObject({
9050
9495
  run_id: id,
@@ -9116,7 +9561,7 @@ var runHit = strictObject({
9116
9561
  });
9117
9562
  var runLocation = strictObject({ path: text });
9118
9563
 
9119
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
9120
9565
  var relationship = strictObject({
9121
9566
  id,
9122
9567
  from: reference,
@@ -9133,7 +9578,24 @@ var relationship = strictObject({
9133
9578
  created_at: time
9134
9579
  });
9135
9580
 
9136
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
9137
9599
  var retentionCohort = strictObject({
9138
9600
  /** The first day of the joining day or week. */
9139
9601
  cohort: text,
@@ -9181,7 +9643,7 @@ var retention = strictObject({
9181
9643
  rows: array(retentionCohort)
9182
9644
  });
9183
9645
 
9184
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
9185
9647
  var savedSearch = strictObject({
9186
9648
  id,
9187
9649
  /** `null` for a run in the history. */
@@ -9198,7 +9660,7 @@ var savedSearch = strictObject({
9198
9660
  });
9199
9661
  var searchHistoryClear = strictObject({ cleared: count });
9200
9662
 
9201
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
9202
9664
  var sendAttempt = strictObject({
9203
9665
  at: time,
9204
9666
  profile: text,
@@ -9226,7 +9688,7 @@ var sendAttempt = strictObject({
9226
9688
  error_code: optional(text)
9227
9689
  });
9228
9690
 
9229
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
9230
9692
  var absent = strictObject({ path: text, exists: literal(false) });
9231
9693
  var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
9232
9694
  var infoSchema = strictObject({
@@ -9434,7 +9896,7 @@ var storeRepair = union([
9434
9896
  ]);
9435
9897
  var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
9436
9898
 
9437
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
9438
9900
  var range = strictObject({ from: number(), to: number() });
9439
9901
  var storeChatStatus = strictObject({
9440
9902
  chat_id: id,
@@ -9525,7 +9987,7 @@ var storeJobRetry = union([
9525
9987
  ]);
9526
9988
  var storeJobClear = strictObject({ cleared: array(id) });
9527
9989
 
9528
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
9529
9991
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
9530
9992
  var storeTable = strictObject({
9531
9993
  name: text,
@@ -9534,7 +9996,7 @@ var storeTable = strictObject({
9534
9996
  bytes: optional(nullable(count))
9535
9997
  });
9536
9998
 
9537
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
9538
10000
  var tagTarget = variant("type", [
9539
10001
  strictObject({ type: literal("chat"), chat_id: id }),
9540
10002
  strictObject({ type: literal("contact"), person_id: id }),
@@ -9565,7 +10027,7 @@ var automaticTags = strictObject({
9565
10027
  dry_run: boolean()
9566
10028
  });
9567
10029
 
9568
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
9569
10031
  var tagging = strictObject({
9570
10032
  tag: text,
9571
10033
  type: picklist(TAG_TYPES),
@@ -9578,7 +10040,7 @@ var tagging = strictObject({
9578
10040
  created_at: time
9579
10041
  });
9580
10042
 
9581
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
9582
10044
  var side = strictObject({ ref: reference, key: text, title: text, status: text });
9583
10045
  var taskPair = strictObject({
9584
10046
  task: nullable(side),
@@ -9601,7 +10063,7 @@ var taskPair = strictObject({
9601
10063
  created_at: time
9602
10064
  });
9603
10065
 
9604
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
9605
10067
  var nullableTime = nullable(time);
9606
10068
  var link = strictObject({
9607
10069
  id,
@@ -9731,8 +10193,47 @@ var taskScan = strictObject({
9731
10193
  held_chats: optional(count),
9732
10194
  tasks: array(strictObject({ source: text, kind: picklist(TASK_KINDS), category: nullable(text) }))
9733
10195
  });
10196
+ var taskAnalysisMark = strictObject({
10197
+ chat: text,
10198
+ from: time,
10199
+ through: time,
10200
+ through_id: text,
10201
+ by: text,
10202
+ checked_at: time,
10203
+ checked_through: time,
10204
+ at: time
10205
+ });
10206
+ var taskAnalysisMarkMoved = strictObject({ ...taskAnalysisMark.entries, moved: boolean() });
10207
+ var taskAnalysis = strictObject({
10208
+ chat: text,
10209
+ title: nullable(text),
10210
+ kind: text,
10211
+ newest_at: nullableTime,
10212
+ mark: nullable(taskAnalysisMark),
10213
+ waiting: count,
10214
+ late: count,
10215
+ untrusted
10216
+ });
10217
+ var taskReview = strictObject({
10218
+ chat: text,
10219
+ from: time,
10220
+ mark: nullable(taskAnalysisMark),
10221
+ late: count,
10222
+ has_more: boolean(),
10223
+ through: nullable(reference),
10224
+ messages: array(strictObject({
10225
+ ref: reference,
10226
+ at: time,
10227
+ sender: nullable(text),
10228
+ outgoing: boolean(),
10229
+ reply_to: nullable(text),
10230
+ text
10231
+ })),
10232
+ open_tasks: array(strictObject({ key: nullable(text), kind: text, title: nullable(text), source: nullable(text) })),
10233
+ untrusted
10234
+ });
9734
10235
 
9735
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
9736
10237
  var topic = strictObject({
9737
10238
  id,
9738
10239
  title: text,
@@ -9746,7 +10247,7 @@ var topic = strictObject({
9746
10247
  untrusted
9747
10248
  });
9748
10249
 
9749
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
9750
10251
  var ENTITIES = {
9751
10252
  sync_progress: progress,
9752
10253
  ...MEETING_RESULT_ENTITIES,
@@ -9786,7 +10287,8 @@ var ENTITIES = {
9786
10287
  "outgoing",
9787
10288
  "text",
9788
10289
  "transcript",
9789
- "attachments"
10290
+ "attachments",
10291
+ "email"
9790
10292
  ]),
9791
10293
  message_link: messageLink,
9792
10294
  message_write: messageWrite,
@@ -9884,6 +10386,9 @@ var ENTITIES = {
9884
10386
  task_unmerge: taskUnmerge,
9885
10387
  task_categories: taskCategories,
9886
10388
  task_scan: taskScan,
10389
+ task_analysis: taskAnalysis,
10390
+ task_analysis_mark: taskAnalysisMarkMoved,
10391
+ task_review: taskReview,
9887
10392
  fact,
9888
10393
  memory,
9889
10394
  meeting,
@@ -9894,6 +10399,7 @@ var ENTITIES = {
9894
10399
  meeting_project_evidence: meetingProjectEvidence,
9895
10400
  meeting_preparation: meetingPreparation,
9896
10401
  meeting_findings: meetingFindings,
10402
+ mail_findings: mailFindings,
9897
10403
  meeting_transcript: meetingTranscript,
9898
10404
  meeting_summary: meetingSummary,
9899
10405
  meeting_evidence: meetingEvidence,
@@ -9994,6 +10500,8 @@ var ENTITIES = {
9994
10500
  topic,
9995
10501
  folder,
9996
10502
  message_counts: messageCounts,
10503
+ response_times: responseTimes,
10504
+ waiting_chats: waitingChats,
9997
10505
  ranking,
9998
10506
  admin_report: adminReport,
9999
10507
  analysis_consent: analysisConsent,
@@ -10015,7 +10523,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
10015
10523
  return [name, definition];
10016
10524
  })), "entityDefinitions");
10017
10525
 
10018
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
10019
10527
  var schemas = /* @__PURE__ */ new WeakMap();
10020
10528
  var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
10021
10529
  if (Object.hasOwn(ENTITIES, name))
@@ -10049,7 +10557,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
10049
10557
  return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
10050
10558
  }, "answerRow");
10051
10559
 
10052
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
10053
10561
  import { join as join5 } from "node:path";
10054
10562
  var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
10055
10563
  var IMAGE_MODELS = [
@@ -10103,7 +10611,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
10103
10611
  var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join5(directory, model3.id, file.name)]), "placedImage");
10104
10612
  var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
10105
10613
 
10106
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
10107
10615
  var STEPS2 = defineSteps([
10108
10616
  ...STEPS,
10109
10617
  {
@@ -10146,7 +10654,10 @@ var STEPS2 = defineSteps([
10146
10654
  {
10147
10655
  id: "messages.list",
10148
10656
  command: "messages list",
10149
- args: [{ name: "chat", required: true }],
10657
+ args: [
10658
+ { name: "chat", required: true },
10659
+ { name: "query", required: false }
10660
+ ],
10150
10661
  why: "only the newest were read here; this reads the chat itself"
10151
10662
  },
10152
10663
  {
@@ -10304,6 +10815,16 @@ var STEPS2 = defineSteps([
10304
10815
  args: [],
10305
10816
  why: "serve still runs an older version; a restart runs the one installed now"
10306
10817
  },
10818
+ {
10819
+ id: "tasks.acknowledge",
10820
+ command: "tasks acknowledge",
10821
+ args: [
10822
+ { name: "chat", required: true },
10823
+ { name: "message", required: true },
10824
+ { name: "since_time", required: false }
10825
+ ],
10826
+ why: "once the tasks these {shown} messages hold are opened, updated or closed, so the next review starts after them"
10827
+ },
10307
10828
  {
10308
10829
  id: "search.meetings",
10309
10830
  command: "*",
@@ -10312,7 +10833,7 @@ var STEPS2 = defineSteps([
10312
10833
  }
10313
10834
  ]);
10314
10835
  var nextStep = /* @__PURE__ */ __name((id6, input) => {
10315
- const definition = STEPS2.find((step) => step.id === id6);
10836
+ const definition = STEPS2.find((step2) => step2.id === id6);
10316
10837
  if (!definition)
10317
10838
  throw new Error(`no step "${id6}"`);
10318
10839
  const args = Object.fromEntries(Object.entries(input.args ?? {}).filter(([, value]) => value !== void 0));
@@ -10335,7 +10856,7 @@ var commandAt = /* @__PURE__ */ __name((root, path2) => {
10335
10856
  at2 = at2?.commands.find((one) => one.name() === word || one.aliases().includes(word));
10336
10857
  return at2 === root ? void 0 : at2;
10337
10858
  }, "commandAt");
10338
- 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");
10339
10860
  var failureSteps = /* @__PURE__ */ __name((root, error) => {
10340
10861
  const model3 = error.details?.model;
10341
10862
  const own = error.reason === "model.not-downloaded" && typeof model3 === "string" ? [
@@ -10345,33 +10866,142 @@ var failureSteps = /* @__PURE__ */ __name((root, error) => {
10345
10866
  ] : [];
10346
10867
  return runnable(root, [...error.next ?? [], ...own]);
10347
10868
  }, "failureSteps");
10348
- var withSafety = /* @__PURE__ */ __name((steps, targets) => steps.map((step) => {
10349
- if (step.kind === "user_action")
10350
- return step;
10351
- const effects = targets(step.command)?.effects;
10352
- 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) };
10353
10874
  }), "withSafety");
10354
- 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");
10355
10876
  var kebab = /* @__PURE__ */ __name((name) => name.replaceAll("_", "-"), "kebab");
10356
10877
  var quoted2 = /* @__PURE__ */ __name((value) => {
10357
10878
  const text5 = String(value);
10358
10879
  return /^[\w@:./+-]+$/.test(text5) ? text5 : JSON.stringify(text5);
10359
10880
  }, "quoted");
10360
- var stepLine = /* @__PURE__ */ __name((root, step) => {
10361
- const command = commandAt(root, step.command);
10881
+ var stepLine = /* @__PURE__ */ __name((root, step2) => {
10882
+ const command = commandAt(root, step2.command);
10362
10883
  const positional = new Set(command?.registeredArguments.map((argument) => argument.name()) ?? []);
10363
- 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);
10364
10885
  const profile = root.getOptionValue("profile");
10365
10886
  return [
10366
10887
  root.name(),
10367
10888
  ...typeof profile === "string" && profile !== "" ? [quoted2(profile)] : [],
10368
- step.command,
10369
- ...(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()])]),
10370
10891
  ...args.filter(([name]) => !positional.has(name)).map(([name, value]) => value === true ? `--${kebab(name)}` : `--${kebab(name)} ${quoted2(value)}`)
10371
10892
  ].join(" ");
10372
10893
  }, "stepLine");
10373
10894
 
10374
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/cli/compact.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
10896
+ var where = [{ field: "ref" }, { field: ["chat_title", "chat"] }];
10897
+ var who2 = { field: ["who.owner", "who.name"], tag: "you" };
10898
+ var STATUS_SIGNAL_ROWS = {
10899
+ "status.last-message": { columns: [...where, { field: "at", as: "time" }, who2] },
10900
+ "status.reply-next": {
10901
+ columns: [
10902
+ ...where,
10903
+ { field: "data.next" },
10904
+ { field: "data.addressed.name" },
10905
+ { field: "data.waiting_since", as: "day" },
10906
+ { field: "data.overdue", tag: "overdue" }
10907
+ ]
10908
+ },
10909
+ "status.questions": {
10910
+ columns: [...where, { field: "at", as: "day" }, { field: "data.side" }, who2],
10911
+ text: ["data.excerpt"]
10912
+ },
10913
+ "status.promises": {
10914
+ columns: [
10915
+ ...where,
10916
+ { field: "at", as: "day" },
10917
+ { field: "data.source" },
10918
+ { field: "data.side" },
10919
+ { field: "data.due", as: "day" },
10920
+ { field: "data.status" }
10921
+ ],
10922
+ text: ["data.title"]
10923
+ },
10924
+ "status.amounts": {
10925
+ columns: [
10926
+ ...where,
10927
+ { field: "data.direction" },
10928
+ { field: "data.amount" },
10929
+ { field: "data.currency" },
10930
+ { field: "data.state" },
10931
+ { field: "data.since", as: "day" },
10932
+ { field: "data.asks", as: "count", tag: "asks" },
10933
+ { field: "basis" }
10934
+ ]
10935
+ },
10936
+ "status.payments": {
10937
+ columns: [{ field: "ref" }, { field: "at", as: "day" }, { field: "data.status" }],
10938
+ text: ["data.title"]
10939
+ },
10940
+ "status.topics": {
10941
+ columns: [
10942
+ ...where,
10943
+ { field: "data.query" },
10944
+ { field: "data.theirs_last", as: "day" },
10945
+ { field: "data.yours_last", as: "day" },
10946
+ { field: "data.silent_since", as: "day" }
10947
+ ]
10948
+ },
10949
+ "status.coverage": {
10950
+ columns: [
10951
+ { field: "chat" },
10952
+ { field: "chat_title" },
10953
+ { field: "data.state" },
10954
+ { field: "data.held.messages", as: "count", tag: "held" },
10955
+ { field: "data.held.oldest_at", as: "day" },
10956
+ { field: "sync_command" }
10957
+ ]
10958
+ },
10959
+ "status.children": {
10960
+ columns: [
10961
+ { field: "data.child" },
10962
+ { field: "data.key" },
10963
+ { field: "data.name" },
10964
+ { field: "data.chats", as: "count", tag: "chats" },
10965
+ { field: "data.cut" }
10966
+ ]
10967
+ }
10968
+ };
10969
+ var STATUS_ROWS = {
10970
+ ...STATUS_SIGNAL_ROWS,
10971
+ "status.chat": {
10972
+ columns: [
10973
+ { field: "chat" },
10974
+ { field: "title" },
10975
+ { field: "kind" },
10976
+ { field: "role" },
10977
+ { field: "attention", as: "count", tag: "attention" },
10978
+ { field: "why" }
10979
+ ]
10980
+ },
10981
+ "status.money": {
10982
+ columns: [
10983
+ { field: "direction" },
10984
+ { field: "amount" },
10985
+ { field: "currency" },
10986
+ { field: "rows", as: "count", tag: "rows" }
10987
+ ]
10988
+ },
10989
+ "status.signal": { columns: [{ field: "id" }, { field: "version" }] },
10990
+ "status.out-of-scope": {
10991
+ columns: [
10992
+ { field: "chat" },
10993
+ { field: "reason" },
10994
+ { field: "purpose" },
10995
+ { field: "messages", as: "count", tag: "messages" },
10996
+ { field: "first_at", as: "day" },
10997
+ { field: "last_at", as: "day" },
10998
+ { field: "read_command" }
10999
+ ]
11000
+ },
11001
+ "status.failed": { columns: [{ field: "signal" }], text: ["why"] }
11002
+ };
11003
+
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
10375
11005
  var TEXT_CHARS = 400;
10376
11006
  var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
10377
11007
  var messageRow = {
@@ -10386,6 +11016,60 @@ var messageRow = {
10386
11016
  ],
10387
11017
  text: ["text", "transcript", "excerpt"]
10388
11018
  };
11019
+ var linkedChatColumns = [
11020
+ { field: "ref" },
11021
+ { field: "title" },
11022
+ { field: "purpose" },
11023
+ { field: "proposed", prefix: "proposed" }
11024
+ ];
11025
+ var EVIDENCE_ROWS = {
11026
+ project_evidence: {
11027
+ columns: [],
11028
+ sections: {
11029
+ items: "evidence_item",
11030
+ linked_chats: "linked_chat",
11031
+ left_out: "linked_chat.left_out",
11032
+ members: "evidence_member"
11033
+ },
11034
+ whole: ["checkpoint"]
11035
+ },
11036
+ evidence_item: {
11037
+ columns: [
11038
+ { field: "ref" },
11039
+ { field: "at", as: "day" },
11040
+ { field: "context" },
11041
+ { field: "proposed", prefix: "proposed" }
11042
+ ],
11043
+ text: ["text"]
11044
+ },
11045
+ linked_chat: {
11046
+ columns: [
11047
+ ...linkedChatColumns,
11048
+ { field: "state" },
11049
+ { field: "items", as: "count", tag: "items" },
11050
+ { field: "capped", tag: "capped" },
11051
+ { field: "score", prefix: "score" },
11052
+ { field: "sync_command" }
11053
+ ]
11054
+ },
11055
+ "linked_chat.left_out": {
11056
+ columns: [
11057
+ ...linkedChatColumns,
11058
+ { field: "messages", as: "count", tag: "messages" },
11059
+ { field: "first_at", as: "day" },
11060
+ { field: "last_at", as: "day" },
11061
+ { field: "read_command" }
11062
+ ]
11063
+ },
11064
+ evidence_member: {
11065
+ columns: [
11066
+ { field: "person" },
11067
+ { field: "state" },
11068
+ { field: "proposed", prefix: "proposed" },
11069
+ { field: "score", prefix: "score" }
11070
+ ]
11071
+ }
11072
+ };
10389
11073
  var SHARED_ROWS = {
10390
11074
  message: messageRow,
10391
11075
  "message.summary": messageRow,
@@ -10407,7 +11091,9 @@ var SHARED_ROWS = {
10407
11091
  { field: "unread_count", as: "count", tag: "unread" },
10408
11092
  { field: "last_message_at", as: "time" }
10409
11093
  ]
10410
- }
11094
+ },
11095
+ ...STATUS_ROWS,
11096
+ ...EVIDENCE_ROWS
10411
11097
  };
10412
11098
  var GENERIC_ROW = {
10413
11099
  columns: [
@@ -10494,11 +11180,12 @@ var cellOf = /* @__PURE__ */ __name((item, column, clock) => {
10494
11180
  switch (column.as) {
10495
11181
  case "time":
10496
11182
  case "day": {
10497
- if (typeof value !== "string")
11183
+ const iso = typeof value === "number" && Number.isFinite(value) ? new Date(value).toISOString() : value;
11184
+ if (typeof iso !== "string")
10498
11185
  return void 0;
10499
- const parts = clock.parts(value);
11186
+ const parts = clock.parts(iso);
10500
11187
  if (!parts)
10501
- return { text: clean(value) };
11188
+ return { text: clean(iso) };
10502
11189
  const day2 = parts.date.slice(5);
10503
11190
  return { text: column.as === "day" ? day2 : `${day2} ${parts.time}`, date: parts.date };
10504
11191
  }
@@ -10520,7 +11207,7 @@ var cellOf = /* @__PURE__ */ __name((item, column, clock) => {
10520
11207
  if (value === true)
10521
11208
  return column.tag ? { text: column.tag } : void 0;
10522
11209
  if (typeof value === "string" || typeof value === "number")
10523
- return { text: clean(String(value)) };
11210
+ return { text: clean(column.prefix ? `${column.prefix} ${value}` : String(value)) };
10524
11211
  return void 0;
10525
11212
  }
10526
11213
  }, "cellOf");
@@ -10583,31 +11270,31 @@ var rowsOfItems = /* @__PURE__ */ __name((items, shape, clock, chars) => {
10583
11270
  return { header, lines };
10584
11271
  }, "rowsOfItems");
10585
11272
  var blockLine = /* @__PURE__ */ __name((fields, chars) => blockOf(fields, chars).join(" "), "blockLine");
10586
- var blockOf = /* @__PURE__ */ __name((fields, chars, indent = "") => Object.entries(fields).filter(([name]) => !(name === "priority" && "priority_label" in fields)).filter(([, value]) => present(value) || value === false).flatMap(([name, value]) => {
11273
+ var blockOf = /* @__PURE__ */ __name((fields, chars, indent = "", whole = []) => Object.entries(fields).filter(([name]) => !(name === "priority" && "priority_label" in fields)).filter(([, value]) => present(value) || value === false).flatMap(([name, value]) => {
10587
11274
  const label = `${indent}${clean(name)}:`;
10588
11275
  if (isFields(value))
10589
11276
  return [label, ...blockOf(value, chars, `${indent} `)];
10590
11277
  if (Array.isArray(value))
10591
11278
  return value.every((one) => !isFields(one) && !Array.isArray(one)) ? [`${label} ${cut(clean(value.join(", ")), chars)}`] : [`${label} ${value.length} \u2014 --json shows them`];
10592
- return [`${label} ${cut(clean(String(value)), chars)}`];
11279
+ return [`${label} ${whole.includes(name) ? clean(String(value)) : cut(clean(String(value)), chars)}`];
10593
11280
  }), "blockOf");
10594
11281
  var footerOf = /* @__PURE__ */ __name((body) => {
10595
11282
  const lines = [];
10596
11283
  const steps = body.next ?? [];
10597
- 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");
10598
11285
  if ("items" in body && body.page.has_more) {
10599
- const more = steps.find((step) => step.step === "page.next");
11286
+ const more = steps.find((step2) => step2.step === "page.next");
10600
11287
  const line = more?.kind === "command" ? more.line : void 0;
10601
11288
  const page2 = body.page;
10602
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"))}`);
10603
11290
  }
10604
11291
  for (const missing of body.missing ?? [])
10605
11292
  lines.push(`# missing: ${clean(missing.field)}: ${clean(missing.why)}`);
10606
- for (const step of steps) {
10607
- if (step.step === "page.next" && "items" in body)
11293
+ for (const step2 of steps) {
11294
+ if (step2.step === "page.next" && "items" in body)
10608
11295
  continue;
10609
- const line = lineOf2(step);
10610
- lines.push(`# next: ${clean(step.why)}${line ? `: ${clean(line)}` : ""}`);
11296
+ const line = lineOf2(step2);
11297
+ lines.push(`# next: ${clean(step2.why)}${line ? `: ${clean(line)}` : ""}`);
10611
11298
  }
10612
11299
  if (body.meta?.complete === false) {
10613
11300
  const issues = (body.meta.issues ?? []).map((issue) => `${clean(issue.source)}: ${clean(String(issue.code))}`);
@@ -10637,7 +11324,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
10637
11324
  } else if (isFields(body.item)) {
10638
11325
  const sections = shape.sections ?? {};
10639
11326
  const rest = Object.fromEntries(Object.entries(body.item).filter(([name]) => !Object.hasOwn(sections, name)));
10640
- lines = blockOf(rest, chars).map(guarded);
11327
+ lines = blockOf(rest, chars, "", shape.whole).map(guarded);
10641
11328
  for (const [name, entity] of Object.entries(sections)) {
10642
11329
  const list = body.item[name];
10643
11330
  if (!Array.isArray(list))
@@ -10650,7 +11337,65 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
10650
11337
  return lines.concat(footerOf(body)).join("\n");
10651
11338
  }, "compactText");
10652
11339
 
10653
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
10654
11399
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
10655
11400
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
10656
11401
  var strip = /* @__PURE__ */ __name((value) => {
@@ -10664,7 +11409,7 @@ var strip = /* @__PURE__ */ __name((value) => {
10664
11409
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
10665
11410
  }, "strip");
10666
11411
 
10667
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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
10668
11413
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
10669
11414
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
10670
11415
  var listOf = /* @__PURE__ */ __name((command, input) => {
@@ -10707,7 +11452,7 @@ var itemOf = /* @__PURE__ */ __name((item, { next = [], missing, meta } = {}) =>
10707
11452
  };
10708
11453
  return body;
10709
11454
  }, "itemOf");
10710
- 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");
10711
11456
  var snakeKeysKeeping = /* @__PURE__ */ __name((verbatim) => {
10712
11457
  const kept = new Set(verbatim);
10713
11458
  const convert = /* @__PURE__ */ __name((value) => {
@@ -10718,7 +11463,7 @@ var snakeKeysKeeping = /* @__PURE__ */ __name((verbatim) => {
10718
11463
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => {
10719
11464
  if (inner === void 0)
10720
11465
  return [];
10721
- const name = snake3(key);
11466
+ const name = snake4(key);
10722
11467
  return [[name, kept.has(key) || kept.has(name) ? inner : convert(inner)]];
10723
11468
  }));
10724
11469
  }, "convert");
@@ -10758,7 +11503,16 @@ var sealed = /* @__PURE__ */ __name((value) => {
10758
11503
  const { meta, ...rest } = withoutProviderRefs(value);
10759
11504
  return { ...rest, meta: metaNow(meta) };
10760
11505
  }, "sealed");
10761
- 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");
10762
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");
10763
11517
  var jsonlRecords = /* @__PURE__ */ __name((body) => linesOf(sealed(body)).split("\n").map((line) => JSON.parse(line)), "jsonlRecords");
10764
11518
  var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams, compact, full }, body, view) => {
@@ -10770,9 +11524,10 @@ var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams,
10770
11524
  const kept = withoutProviderRefs({ ...body, ...next.length > 0 ? { next } : {} });
10771
11525
  if (next.length === 0)
10772
11526
  delete kept.next;
10773
- const whole = sealed(kept);
11527
+ const sealedBody = sealed(kept);
10774
11528
  const environment = environmentOf(command);
10775
11529
  const drawn = compact && !environment.agent;
11530
+ const whole = format === "json" && !drawn && !environment.agent ? withLargeAnswerStep(command, sealedBody) : sealedBody;
10776
11531
  if (drawn) {
10777
11532
  const lined = whole.next ? { ...whole, next: compactSteps(root, whole.next) } : whole;
10778
11533
  const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
@@ -10792,8 +11547,8 @@ var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams,
10792
11547
  setExitCode(command, code);
10793
11548
  if (drawn || format === "json")
10794
11549
  return;
10795
- for (const step of next)
10796
- 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}`);
10797
11552
  }, "renderAnswer");
10798
11553
  var renderDocument = /* @__PURE__ */ __name(({ renderer }, document2) => renderer.result(document2), "renderDocument");
10799
11554
  var itemAnswer = /* @__PURE__ */ __name((item) => sealed(itemOf(item)), "itemAnswer");
@@ -10913,9 +11668,13 @@ export {
10913
11668
  rerankModel,
10914
11669
  vectorModelKey,
10915
11670
  meaningFloor,
11671
+ historyWindow,
10916
11672
  limitBatch,
11673
+ REPAIR_WORDS,
11674
+ repairConfigText,
10917
11675
  permissionIssues,
10918
11676
  publicIssue,
11677
+ fixVerb,
10919
11678
  issueMessage,
10920
11679
  readConfigFile,
10921
11680
  rememberAccount,
@@ -10946,6 +11705,7 @@ export {
10946
11705
  logsInOrOut,
10947
11706
  isLogin,
10948
11707
  destroysNothing,
11708
+ proposesOnly,
10949
11709
  changesStore,
10950
11710
  readsOverMcpAt,
10951
11711
  isStoreChange,
@@ -10999,8 +11759,8 @@ export {
10999
11759
  answerEntity,
11000
11760
  answerEntitySchema,
11001
11761
  answerProjectionSchema,
11762
+ STATUS_SIGNAL_ROWS,
11002
11763
  entityRows,
11003
- withoutProviderRefs,
11004
11764
  nextStep,
11005
11765
  lineOf,
11006
11766
  rootOf2,
@@ -11009,6 +11769,8 @@ export {
11009
11769
  failureSteps,
11010
11770
  withLines,
11011
11771
  stepLine,
11772
+ tooLargeSteps,
11773
+ withoutProviderRefs,
11012
11774
  answerSchema,
11013
11775
  listOf,
11014
11776
  itemOf,