@wirecat/mail-cli 0.12.0 → 0.13.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 (110) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/bin/mail.js +6 -2
  3. package/dist/bundle/{all-profiles-OJPRIFKU.js → all-profiles-EEOMFTKE.js} +9 -9
  4. package/dist/bundle/{anthropic-3AXHD4WH.js → anthropic-FPSVNB3F.js} +6 -6
  5. package/dist/bundle/{app-server-V4KHCUGE.js → app-server-3T6UVR7B.js} +47 -45
  6. package/dist/bundle/{bun-ISYNUTQJ.js → bun-MSNAKMDK.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-FH3D4AXL.js → bun-sqlite-GIBBI5DV.js} +5 -5
  8. package/dist/bundle/{chunk-TTKNBUMT.js → chunk-2Y3RKROM.js} +13 -3
  9. package/dist/bundle/{chunk-UDJIC6YL.js → chunk-3BC2XSNX.js} +33 -28
  10. package/dist/bundle/{chunk-OHC4GVWV.js → chunk-3CBK26T2.js} +2 -2
  11. package/dist/bundle/{chunk-QB54TE52.js → chunk-3QEYHTCQ.js} +1 -1
  12. package/dist/bundle/{chunk-T3AGR4TI.js → chunk-5XTJUQZ5.js} +667 -160
  13. package/dist/bundle/{chunk-IG2WXKIT.js → chunk-6KDFUPBT.js} +8 -8
  14. package/dist/bundle/{chunk-GUFWLTOW.js → chunk-6O6CM2ML.js} +2 -2
  15. package/dist/bundle/{chunk-MDIRW3AT.js → chunk-72CGQMAZ.js} +2 -2
  16. package/dist/bundle/{chunk-FYMQPAE5.js → chunk-7CSK47S2.js} +4 -4
  17. package/dist/bundle/{chunk-IWHXM2S7.js → chunk-7D7AKYQ2.js} +625 -298
  18. package/dist/bundle/{chunk-XTIQFMZH.js → chunk-7FCPLSSM.js} +4 -4
  19. package/dist/bundle/{chunk-V6K2GX2Y.js → chunk-7L26RKOS.js} +17 -17
  20. package/dist/bundle/{chunk-G2WDY5XB.js → chunk-AXWTELO4.js} +2 -2
  21. package/dist/bundle/{chunk-N6P55LDU.js → chunk-BZBNBPCR.js} +10 -10
  22. package/dist/bundle/{chunk-4DPICEPQ.js → chunk-CCHHEMPM.js} +2 -2
  23. package/dist/bundle/{chunk-F3QDSQ7V.js → chunk-CJPEL2N5.js} +27 -26
  24. package/dist/bundle/{chunk-AO32MFDY.js → chunk-CSJYZEFR.js} +2 -2
  25. package/dist/bundle/{chunk-6UT3MXOB.js → chunk-EFA7FRFJ.js} +3 -3
  26. package/dist/bundle/{chunk-JIIEJLAX.js → chunk-EW3XTUPB.js} +4 -4
  27. package/dist/bundle/{chunk-SW5NVASW.js → chunk-FVZST7ZH.js} +9 -9
  28. package/dist/bundle/{chunk-X37KLD23.js → chunk-GIZILLRJ.js} +12 -12
  29. package/dist/bundle/{chunk-GFCNSU3B.js → chunk-GQGJV53E.js} +176 -47
  30. package/dist/bundle/{chunk-KJP2B65C.js → chunk-H3XWM2VA.js} +29 -28
  31. package/dist/bundle/{chunk-VEXXVLBM.js → chunk-H5XCD6OG.js} +3 -3
  32. package/dist/bundle/{chunk-L3PVAY3M.js → chunk-H6Y2A4JA.js} +2 -2
  33. package/dist/bundle/{chunk-K2F7YMMM.js → chunk-HANGU5HI.js} +8 -13
  34. package/dist/bundle/{chunk-HVVLSCFB.js → chunk-IGSHWMWC.js} +1 -1
  35. package/dist/bundle/{chunk-JNUKTAMZ.js → chunk-ILHTNOIV.js} +1 -1
  36. package/dist/bundle/{chunk-6LNRNQHJ.js → chunk-JBLZ5XQG.js} +6 -4
  37. package/dist/bundle/{chunk-IXYKM7OJ.js → chunk-JYZCISN7.js} +13 -13
  38. package/dist/bundle/{chunk-44LVUMS2.js → chunk-LO66SLGD.js} +1 -1
  39. package/dist/bundle/{chunk-NSDOYHIS.js → chunk-M7JREJFC.js} +8 -8
  40. package/dist/bundle/{chunk-2TTCKOQ7.js → chunk-MBWVZINS.js} +2 -2
  41. package/dist/bundle/{chunk-LXHLQ6RK.js → chunk-NHVOJHHD.js} +7 -9
  42. package/dist/bundle/{chunk-QPQSMJBW.js → chunk-OHDDGTCH.js} +10 -10
  43. package/dist/bundle/{chunk-GYNHU56E.js → chunk-OHFSAYZG.js} +4 -4
  44. package/dist/bundle/{chunk-TZGQPTZ2.js → chunk-PQLBPYJR.js} +1 -1
  45. package/dist/bundle/{chunk-PLPSFJO6.js → chunk-SOCALLW5.js} +6 -6
  46. package/dist/bundle/{chunk-LIQ5LICB.js → chunk-TBG3FRS6.js} +3 -3
  47. package/dist/bundle/{chunk-AJ4JS2ZR.js → chunk-UFWCJUGA.js} +8 -7
  48. package/dist/bundle/{chunk-4D52FA34.js → chunk-UGXTDYUY.js} +1 -1
  49. package/dist/bundle/{chunk-YDUES6ET.js → chunk-URC4ATBD.js} +4 -4
  50. package/dist/bundle/{chunk-SYBMOE6F.js → chunk-UUBAWUUI.js} +5526 -4503
  51. package/dist/bundle/chunk-V25TCQ3Z.js +34 -0
  52. package/dist/bundle/{chunk-PSXAC6OO.js → chunk-VD5UJUNR.js} +1 -1
  53. package/dist/bundle/{chunk-KVN4RY7E.js → chunk-VMLGER4M.js} +311 -139
  54. package/dist/bundle/{chunk-6QNPJSRM.js → chunk-VNBQHV5H.js} +6 -6
  55. package/dist/bundle/{chunk-YRZ23RCS.js → chunk-VNXCWZDW.js} +7 -7
  56. package/dist/bundle/{chunk-DN54W657.js → chunk-VSHQITKC.js} +4 -4
  57. package/dist/bundle/{chunk-4GPPRLIG.js → chunk-WBI7J5B7.js} +5 -5
  58. package/dist/bundle/{chunk-NBQQ2ZTF.js → chunk-XLCFCOT4.js} +14 -14
  59. package/dist/bundle/{chunk-WL7CYT7O.js → chunk-XPBRNJ2V.js} +1 -1
  60. package/dist/bundle/{chunk-S64N24ON.js → chunk-XV66LQXV.js} +3 -3
  61. package/dist/bundle/{chunk-JAWJZTFL.js → chunk-Y2O3DACO.js} +18 -18
  62. package/dist/bundle/{chunk-BYQ3Z6UL.js → chunk-YHSXNUFQ.js} +3 -3
  63. package/dist/bundle/{chunk-GAIVTJ3E.js → chunk-YMNF4QLY.js} +24 -23
  64. package/dist/bundle/{chunk-35Y3INBK.js → chunk-ZSS22YHM.js} +2 -2
  65. package/dist/bundle/{chunk-5TACUBRJ.js → chunk-ZXLJ5EKZ.js} +8 -8
  66. package/dist/bundle/command-contract-6QSZ5QHQ.js +33 -0
  67. package/dist/bundle/{decode-FM4C2WWG.js → decode-YRTMNHC6.js} +5 -5
  68. package/dist/bundle/{dispatch-K3HG4RYT.js → dispatch-BCS2RDF4.js} +8 -8
  69. package/dist/bundle/{dist-7LNVI7VB.js → dist-NOBSXRL2.js} +13 -13
  70. package/dist/bundle/{echarts-5C2A72XM.js → echarts-5UKZVIF6.js} +2 -2
  71. package/dist/bundle/{embed-N56P6YVY.js → embed-G62XY6BJ.js} +6 -6
  72. package/dist/bundle/{embedder-QLYKFLOL.js → embedder-SCHGLA74.js} +9 -9
  73. package/dist/bundle/{failure-5ZLVZTRU.js → failure-N5S6ZS62.js} +2 -2
  74. package/dist/bundle/{first-run-VMF4PJ7Q.js → first-run-DPF2BBQN.js} +11 -11
  75. package/dist/bundle/first-screen-4MRKF6RQ.js +31 -0
  76. package/dist/bundle/{instructions-QA5FHDOJ.js → instructions-7RP5OKLE.js} +1 -1
  77. package/dist/bundle/mail.js +12 -12
  78. package/dist/bundle/{mcp-LO2XDBBC.js → mcp-MNI62HHE.js} +2 -2
  79. package/dist/bundle/{node-OXJZWUYZ.js → node-ENCKD6SS.js} +2 -2
  80. package/dist/bundle/{node-sqlite-7GCEI67B.js → node-sqlite-4ICXMPYY.js} +11 -5
  81. package/dist/bundle/{oauth-VTPIYBTP.js → oauth-CX2WYMGN.js} +7 -7
  82. package/dist/bundle/{open-7XX3YF2X.js → open-HQZYHMVE.js} +5 -4
  83. package/dist/bundle/{openai-D3KRCXSY.js → openai-3ONJIA3F.js} +14 -14
  84. package/dist/bundle/{process-KFI7SXQD.js → process-OK3HRPMD.js} +1 -1
  85. package/dist/bundle/{program-4B25STRN.js → program-FLKUE6LL.js} +2125 -866
  86. package/dist/bundle/{prompt-TBZT3APW.js → prompt-ZWKUQ42Y.js} +5 -5
  87. package/dist/bundle/{recognize-WQSE5ZPL.js → recognize-PHDYO6DC.js} +4 -4
  88. package/dist/bundle/{remote-J5HHRNVQ.js → remote-4CX7GFMU.js} +7 -7
  89. package/dist/bundle/{rerank-DP2Y3WDT.js → rerank-ZCZTGXDQ.js} +7 -7
  90. package/dist/bundle/{serve-VXPOQDQO.js → serve-3LBS7CPR.js} +11 -10
  91. package/dist/bundle/{server-OSBNGA2F.js → server-2BKI2OQP.js} +38 -37
  92. package/dist/bundle/server-X5F7VD2E.js +63 -0
  93. package/dist/bundle/{sqlite-runtime-XY32WOIT.js → sqlite-runtime-J5T7SR5W.js} +6 -5
  94. package/dist/bundle/{state-KPOPMR6O.js → state-TIRNYVEL.js} +6 -6
  95. package/dist/bundle/{store-FWRGNGP3.js → store-F7ZXMIAP.js} +29 -18
  96. package/dist/bundle/{store-UBI2YCRC.js → store-NGE2E7KZ.js} +16 -13
  97. package/dist/bundle/store-maintenance-command-QZV76KAH.js +53 -0
  98. package/dist/commands/session.js +1 -1
  99. package/dist/commands/session.js.map +1 -1
  100. package/dist/commands/status.d.ts.map +1 -1
  101. package/dist/commands/status.js +12 -7
  102. package/dist/commands/status.js.map +1 -1
  103. package/dist/version.d.ts +1 -1
  104. package/dist/version.js +1 -1
  105. package/package.json +3 -3
  106. package/dist/bundle/command-contract-TW44FY47.js +0 -33
  107. package/dist/bundle/first-screen-ZN7ODW5K.js +0 -31
  108. package/dist/bundle/server-XHWSCXVX.js +0 -62
  109. package/dist/bundle/store-maintenance-command-3ZXPEIGF.js +0 -52
  110. /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-UFWCJUGA.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-FVZST7ZH.js";
28
28
  import {
29
29
  permissionCeiling
30
- } from "./chunk-VEXXVLBM.js";
30
+ } from "./chunk-H5XCD6OG.js";
31
31
  import {
32
32
  carries
33
- } from "./chunk-44LVUMS2.js";
33
+ } from "./chunk-LO66SLGD.js";
34
34
  import {
35
35
  filesPresent,
36
36
  sharedModelsDirectory
37
- } from "./chunk-6LNRNQHJ.js";
37
+ } from "./chunk-JBLZ5XQG.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-URC4ATBD.js";
52
52
  import {
53
53
  FACT_STATUSES,
54
- FACT_TYPES,
55
54
  LINK_KINDS,
56
55
  LINK_SOURCES,
57
56
  MEMORY_KINDS,
@@ -65,10 +64,13 @@ import {
65
64
  TASK_TYPES,
66
65
  TASK_VERDICTS,
67
66
  WORK_TASK_TYPES
68
- } from "./chunk-LXHLQ6RK.js";
67
+ } from "./chunk-NHVOJHHD.js";
69
68
  import {
69
+ FACT_TYPES,
70
70
  FIELD_TYPES,
71
71
  MEETING_RESULT_ENTITIES,
72
+ PAYMENT_DIRECTIONS,
73
+ PAYMENT_STATES,
72
74
  QUERY_BACKENDS,
73
75
  TAG_TYPES,
74
76
  describeQuery,
@@ -85,13 +87,13 @@ import {
85
87
  meetingStats,
86
88
  meetingSummary,
87
89
  meetingTranscript
88
- } from "./chunk-KVN4RY7E.js";
90
+ } from "./chunk-VMLGER4M.js";
89
91
  import {
90
92
  sharedConfigPath
91
- } from "./chunk-PLPSFJO6.js";
93
+ } from "./chunk-SOCALLW5.js";
92
94
  import {
93
95
  storePath
94
- } from "./chunk-MDIRW3AT.js";
96
+ } from "./chunk-72CGQMAZ.js";
95
97
  import {
96
98
  configFilePath,
97
99
  createRecordLog,
@@ -101,7 +103,7 @@ import {
101
103
  saveConfigFile,
102
104
  traceIdOf,
103
105
  writeSecurely
104
- } from "./chunk-JAWJZTFL.js";
106
+ } from "./chunk-Y2O3DACO.js";
105
107
  import {
106
108
  COMPACT_FLAG,
107
109
  MAX_NEXT_STEPS,
@@ -153,17 +155,17 @@ import {
153
155
  unwrap,
154
156
  variant,
155
157
  writes
156
- } from "./chunk-NSDOYHIS.js";
158
+ } from "./chunk-M7JREJFC.js";
157
159
  import {
158
160
  CliError,
159
161
  isCliError,
160
162
  visibleControls
161
- } from "./chunk-4DPICEPQ.js";
163
+ } from "./chunk-CCHHEMPM.js";
162
164
  import {
163
165
  __name
164
166
  } from "./chunk-ZVVMGPBJ.js";
165
167
 
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
168
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/ports/app.js
167
169
  var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
168
170
  var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
169
171
  const name = envName(app, "READ_ONLY");
@@ -173,7 +175,7 @@ var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
173
175
  var MESSENGER_CHANGE_REFUSAL = "send, react, change chats or change the account";
174
176
  var readOnlyRefusal = /* @__PURE__ */ __name((lock, what) => new CliError("permission_error", `this process is read-only (${lock}) \u2014 it cannot ${what}`), "readOnlyRefusal");
175
177
 
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
178
+ // 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
179
  var labels = /* @__PURE__ */ new WeakMap();
178
180
  var annotate = /* @__PURE__ */ __name((command, meta) => {
179
181
  labels.set(command, { ...labels.get(command), ...meta });
@@ -3674,7 +3676,7 @@ __name(useColor, "useColor");
3674
3676
  // node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
3675
3677
  var program = new Command();
3676
3678
 
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
3679
+ // 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
3680
  var argumentInfoSchema = object({
3679
3681
  name: string(),
3680
3682
  required: boolean(),
@@ -3748,7 +3750,7 @@ var commandsDocumentSchema = strictObject({
3748
3750
  exit_codes: record(string(), pipe(number(), integer()))
3749
3751
  });
3750
3752
 
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
3753
+ // 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
3754
  import { isDeepStrictEqual } from "node:util";
3753
3755
  var protectedCommands = /* @__PURE__ */ new WeakMap();
3754
3756
  var hidden = /* @__PURE__ */ __name((command) => Boolean(command._hidden), "hidden");
@@ -3857,7 +3859,7 @@ var sharedCommand = /* @__PURE__ */ __name((factory) => (...args) => {
3857
3859
  return result;
3858
3860
  }, "sharedCommand");
3859
3861
 
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
3862
+ // 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
3863
  var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3862
3864
  let command = root;
3863
3865
  const path2 = [];
@@ -3875,7 +3877,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3875
3877
  }
3876
3878
  }, "refuseJoinedPath");
3877
3879
 
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
3880
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/sends/guarded.js
3879
3881
  import { AsyncLocalStorage } from "node:async_hooks";
3880
3882
  var sentIds = /* @__PURE__ */ __name((typed, message2) => ({
3881
3883
  messageId: message2.id,
@@ -3981,7 +3983,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
3981
3983
  }, "guardedWrite");
3982
3984
  var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
3983
3985
 
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
3986
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/cli/execution.js
3985
3987
  var DEFAULT_COMMAND_MS = 3e4;
3986
3988
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
3987
3989
  var DEFAULT_SYNC_MS = 15 * 6e4;
@@ -4163,7 +4165,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
4163
4165
  }
4164
4166
  }, "withAbort");
4165
4167
 
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
4168
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
4167
4169
  import { existsSync, readdirSync, readFileSync } from "node:fs";
4168
4170
  import { join } from "node:path";
4169
4171
  var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
@@ -4185,7 +4187,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
4185
4187
  }, "profilesWithAccounts");
4186
4188
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
4187
4189
 
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
4190
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/background/budget.js
4189
4191
  var DEADLINE_MARGIN_MS = 5e3;
4190
4192
  var DEADLINE_MARGIN_SHARE = 0.15;
4191
4193
  var DEFAULT_REQUEST_MS = 2e3;
@@ -4228,7 +4230,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests, deadline, requestMs, signal,
4228
4230
  };
4229
4231
  }, "runBudget");
4230
4232
 
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
4233
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4232
4234
  var CORE_LOG_EVENTS = defineLogEvents([
4233
4235
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
4234
4236
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -4262,7 +4264,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
4262
4264
  cache: "cache.answered"
4263
4265
  };
4264
4266
 
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
4267
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
4266
4268
  var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
4267
4269
  var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
4268
4270
  var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
@@ -4275,13 +4277,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
4275
4277
  error: /* @__PURE__ */ __name((event2, message2) => logger.error(logAttributes(event2), message2), "error")
4276
4278
  }), "snakeLogger");
4277
4279
 
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
4280
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/runs/run.js
4279
4281
  import { randomUUID } from "node:crypto";
4280
4282
  import { appendFileSync, mkdirSync, readdirSync as readdirSync2, readFileSync as readFileSync2, rmSync, statSync, writeFileSync } from "node:fs";
4281
4283
  import { userInfo } from "node:os";
4282
4284
  import { join as join2, sep } from "node:path";
4283
4285
 
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
4286
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
4285
4287
  var diagnostic = {
4286
4288
  event: true,
4287
4289
  operation: true,
@@ -4351,7 +4353,7 @@ var LOG_ATTRIBUTES = [
4351
4353
  ...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
4352
4354
  ].sort();
4353
4355
 
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
4356
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/runs/run.js
4355
4357
  var KEEP_RUNS_FOR_DAYS = 30;
4356
4358
  var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
4357
4359
  var RUNS_SIZE_LIMIT_MB = 200;
@@ -4704,7 +4706,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
4704
4706
  };
4705
4707
  }, "metadataOf");
4706
4708
 
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
4709
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/runs/scope.js
4708
4710
  import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
4709
4711
  import { randomBytes } from "node:crypto";
4710
4712
  var scopes = new AsyncLocalStorage2();
@@ -4740,7 +4742,7 @@ var childTrace = /* @__PURE__ */ __name(() => {
4740
4742
  var attempts = new AsyncLocalStorage2();
4741
4743
  var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
4742
4744
 
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
4745
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/runs/recording.js
4744
4746
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
4745
4747
  const recording = startRecording(options);
4746
4748
  try {
@@ -4925,7 +4927,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
4925
4927
  return void 0;
4926
4928
  }, "partialOutcome");
4927
4929
 
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
4930
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/cli/deadline.js
4929
4931
  var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
4930
4932
  if (ms === void 0)
4931
4933
  return body();
@@ -4951,7 +4953,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
4951
4953
  }
4952
4954
  }, "withDeadline");
4953
4955
 
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
4956
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/cli/profile.js
4955
4957
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
4956
4958
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
4957
4959
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -5020,10 +5022,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
5020
5022
  return void 0;
5021
5023
  }, "sampleCommand");
5022
5024
 
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
5025
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/cli/settings.js
5024
5026
  import { existsSync as existsSync3 } from "node:fs";
5025
5027
 
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
5028
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/models/endpoint.js
5027
5029
  var endpoint = /* @__PURE__ */ __name((value) => {
5028
5030
  try {
5029
5031
  const url2 = new URL(value);
@@ -5033,7 +5035,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
5033
5035
  }
5034
5036
  }, "endpoint");
5035
5037
 
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
5038
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/models/settings.js
5037
5039
  var MODEL_FIELDS = ["provider", "model", "base_url"];
5038
5040
  var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
5039
5041
  provider: optional(picklist(["off", "openai", "anthropic"])),
@@ -5102,7 +5104,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
5102
5104
  };
5103
5105
  }, "modelTarget");
5104
5106
 
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
5107
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/analysis/settings.js
5106
5108
  var model = pipe(string(), trim(), minLength(1), maxLength(200));
5107
5109
  var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
5108
5110
  var AI_FIELDS = {
@@ -5146,7 +5148,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
5146
5148
  };
5147
5149
  }, "resolveAISettings");
5148
5150
 
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
5151
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/domain/duration.js
5150
5152
  var DURATION = /^(\d+)(ms|s|m|h|d)$/;
5151
5153
  var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
5152
5154
  var parseDuration = /* @__PURE__ */ __name((value, source2) => {
@@ -5160,7 +5162,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
5160
5162
  return ms;
5161
5163
  }, "parseDuration");
5162
5164
 
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
5165
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/embeddings/models.js
5164
5166
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
5165
5167
  var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
5166
5168
  var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
@@ -5319,7 +5321,7 @@ var rerankModel = /* @__PURE__ */ __name((id6) => {
5319
5321
  var vectorModelKey = /* @__PURE__ */ __name((model3) => `local:${model3.id}:${model3.dims}`, "vectorModelKey");
5320
5322
  var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
5321
5323
 
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
5324
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/services/history-limits.js
5323
5325
  var HISTORY_MAX_DAYS = 1095;
5324
5326
  var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
5325
5327
  var DAY_MS2 = 24 * 60 * 60 * 1e3;
@@ -5366,8 +5368,251 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
5366
5368
  return { batch: { ...batch, messages }, skipped };
5367
5369
  }, "limitBatch");
5368
5370
 
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
5371
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5370
5372
  import { readFileSync as readFileSync3 } from "node:fs";
5373
+
5374
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
5375
+ var REPAIR_WORDS = {
5376
+ byte_order_mark: "an invisible byte-order mark at the start",
5377
+ comment: "a comment, which JSON does not allow",
5378
+ trailing_comma: "a comma before a closing bracket",
5379
+ missing_comma: "a missing comma",
5380
+ unquoted_key: "a key without double quotes",
5381
+ single_quotes: "text in single quotes",
5382
+ missing_closer: "the file stops before its closing brackets \u2014 whatever followed this line was already lost"
5383
+ };
5384
+ var GiveUp = class {
5385
+ static {
5386
+ __name(this, "GiveUp");
5387
+ }
5388
+ at;
5389
+ why;
5390
+ constructor(at2, why) {
5391
+ this.at = at2;
5392
+ this.why = why;
5393
+ }
5394
+ };
5395
+ var NUMBER = /^-?(0|[1-9]\d*)(\.\d+)?([eE][+-]?\d+)?/;
5396
+ var LITERAL = /^(true|false|null)/;
5397
+ var KEY = /^[A-Za-z_$][\w$.-]*/;
5398
+ var ENDS_VALUE = /^[\s,\]}/]?$/;
5399
+ var repairConfigText = /* @__PURE__ */ __name((text5) => {
5400
+ try {
5401
+ JSON.parse(text5);
5402
+ return { state: "valid" };
5403
+ } catch {
5404
+ }
5405
+ const fixes = [];
5406
+ const lineAt = /* @__PURE__ */ __name((offset) => text5.slice(0, offset).split("\n").length, "lineAt");
5407
+ const fix = /* @__PURE__ */ __name((kind2, offset) => fixes.push({ kind: kind2, line: lineAt(offset) }), "fix");
5408
+ const giveUp = /* @__PURE__ */ __name((why, offset = at2) => {
5409
+ throw new GiveUp(offset, why);
5410
+ }, "giveUp");
5411
+ let at2 = 0;
5412
+ let truncated = false;
5413
+ let last = "open";
5414
+ let lastEnd = 0;
5415
+ const previous = /* @__PURE__ */ __name(() => last, "previous");
5416
+ const skip = /* @__PURE__ */ __name(() => {
5417
+ for (; ; ) {
5418
+ while (/\s/.test(text5[at2] ?? ""))
5419
+ at2++;
5420
+ if (text5.startsWith("//", at2)) {
5421
+ fix("comment", at2);
5422
+ while (at2 < text5.length && text5[at2] !== "\n")
5423
+ at2++;
5424
+ } else if (text5.startsWith("/*", at2)) {
5425
+ const end = text5.indexOf("*/", at2 + 2);
5426
+ if (end < 0)
5427
+ giveUp("a /* comment is never closed");
5428
+ fix("comment", at2);
5429
+ at2 = end + 2;
5430
+ } else
5431
+ return;
5432
+ }
5433
+ }, "skip");
5434
+ const string2 = /* @__PURE__ */ __name(() => {
5435
+ const quote = text5[at2];
5436
+ const start = at2;
5437
+ if (quote === "'")
5438
+ fix("single_quotes", at2);
5439
+ at2++;
5440
+ let body = "";
5441
+ for (; ; ) {
5442
+ if (at2 >= text5.length)
5443
+ giveUp("the file stops inside a quoted text", start);
5444
+ const char = text5[at2];
5445
+ if (char === quote)
5446
+ break;
5447
+ if (text5.charCodeAt(at2) < 32)
5448
+ giveUp("a line break inside a quoted text");
5449
+ if (char === "\\") {
5450
+ const next = text5[at2 + 1] ?? "";
5451
+ if (quote === "'" && next === "'")
5452
+ body += "'";
5453
+ else if (/^["\\/bfnrt]$/.test(next))
5454
+ body += `\\${next}`;
5455
+ else if (next === "u" && /^[0-9a-fA-F]{4}$/.test(text5.slice(at2 + 2, at2 + 6))) {
5456
+ body += text5.slice(at2, at2 + 6);
5457
+ at2 += 4;
5458
+ } else
5459
+ giveUp("an escape JSON has no meaning for");
5460
+ at2 += 2;
5461
+ continue;
5462
+ }
5463
+ body += char === '"' ? '\\"' : char;
5464
+ at2++;
5465
+ }
5466
+ at2++;
5467
+ return JSON.parse(`"${body}"`);
5468
+ }, "string");
5469
+ const key = /* @__PURE__ */ __name(() => {
5470
+ const char = text5[at2] ?? "";
5471
+ if (char === '"' || char === "'")
5472
+ return string2();
5473
+ const word = KEY.exec(text5.slice(at2))?.[0];
5474
+ if (!word)
5475
+ return giveUp("something other than a key where a key should be");
5476
+ fix("unquoted_key", at2);
5477
+ at2 += word.length;
5478
+ return word;
5479
+ }, "key");
5480
+ const scalar = /* @__PURE__ */ __name(() => {
5481
+ const char = text5[at2] ?? "";
5482
+ if (char === '"' || char === "'")
5483
+ return { json: JSON.stringify(string2()) };
5484
+ const word = (NUMBER.exec(text5.slice(at2)) ?? LITERAL.exec(text5.slice(at2)))?.[0];
5485
+ if (!word || !ENDS_VALUE.test(text5[at2 + word.length] ?? ""))
5486
+ return giveUp("a value that is not JSON \u2014 text needs quotes, and only true, false and null go without");
5487
+ if (at2 + word.length === text5.length && NUMBER.test(word))
5488
+ giveUp("the file stops inside a number");
5489
+ at2 += word.length;
5490
+ return { json: word };
5491
+ }, "scalar");
5492
+ const members = /* @__PURE__ */ __name((close, one) => {
5493
+ const out = [];
5494
+ at2++;
5495
+ last = "open";
5496
+ let comma = -1;
5497
+ for (; ; ) {
5498
+ skip();
5499
+ if (truncated)
5500
+ return out;
5501
+ if (at2 >= text5.length) {
5502
+ if (previous() === "close")
5503
+ giveUp("the file stops after a closing bracket, so which brackets are missing has two readings");
5504
+ if (previous() === "comma")
5505
+ fix("trailing_comma", comma);
5506
+ fix("missing_closer", text5.length);
5507
+ truncated = true;
5508
+ return out;
5509
+ }
5510
+ const char = text5[at2];
5511
+ if (char === close) {
5512
+ if (previous() === "comma")
5513
+ fix("trailing_comma", comma);
5514
+ at2++;
5515
+ last = "close";
5516
+ return out;
5517
+ }
5518
+ if (char === "}" || char === "]")
5519
+ giveUp(`a ${char} where ${close} should close`);
5520
+ if (char === ",") {
5521
+ if (previous() !== "value" && previous() !== "close")
5522
+ giveUp("a comma with nothing before it");
5523
+ comma = at2;
5524
+ at2++;
5525
+ last = "comma";
5526
+ continue;
5527
+ }
5528
+ if (previous() === "value" || previous() === "close") {
5529
+ if (lineAt(at2) === lineAt(lastEnd))
5530
+ giveUp("two entries on one line with no comma between them");
5531
+ fix("missing_comma", lastEnd);
5532
+ }
5533
+ out.push(one());
5534
+ }
5535
+ }, "members");
5536
+ const value = /* @__PURE__ */ __name(() => {
5537
+ const char = text5[at2] ?? "";
5538
+ let node;
5539
+ if (char === "{") {
5540
+ const seen = /* @__PURE__ */ new Set();
5541
+ node = {
5542
+ object: members("}", () => {
5543
+ const start = at2;
5544
+ const name = key();
5545
+ if (seen.has(name))
5546
+ giveUp("a key appears twice in one object", start);
5547
+ seen.add(name);
5548
+ skip();
5549
+ if (at2 >= text5.length)
5550
+ giveUp("the file stops after a key, before its value");
5551
+ if (text5[at2] !== ":")
5552
+ giveUp("a key with no colon after it");
5553
+ at2++;
5554
+ skip();
5555
+ if (at2 >= text5.length)
5556
+ giveUp("the file stops after a key, before its value");
5557
+ return [name, value()];
5558
+ })
5559
+ };
5560
+ } else if (char === "[") {
5561
+ node = {
5562
+ array: members("]", () => {
5563
+ return value();
5564
+ })
5565
+ };
5566
+ } else
5567
+ node = scalar();
5568
+ if (!truncated) {
5569
+ last = "json" in node ? "value" : "close";
5570
+ lastEnd = at2;
5571
+ }
5572
+ return node;
5573
+ }, "value");
5574
+ try {
5575
+ if (text5.includes("\0") || text5.includes(String.fromCharCode(65533)))
5576
+ giveUp("the file is not text", 0);
5577
+ if (text5.charCodeAt(0) === 65279) {
5578
+ fix("byte_order_mark", 0);
5579
+ at2 = 1;
5580
+ }
5581
+ skip();
5582
+ if (text5[at2] !== "{")
5583
+ giveUp(at2 >= text5.length ? "the file is empty" : "the file does not start with {");
5584
+ const root = value();
5585
+ skip();
5586
+ if (at2 < text5.length)
5587
+ giveUp("more text after the closing }");
5588
+ const repaired = `${serialise(root, "")}
5589
+ `;
5590
+ JSON.parse(repaired);
5591
+ return { state: "repaired", text: repaired, fixes };
5592
+ } catch (error) {
5593
+ if (!(error instanceof GiveUp))
5594
+ throw error;
5595
+ const before = text5.slice(0, error.at).split("\n");
5596
+ return {
5597
+ state: "refused",
5598
+ line: before.length,
5599
+ column: (before.at(-1)?.length ?? 0) + 1,
5600
+ why: error.why
5601
+ };
5602
+ }
5603
+ }, "repairConfigText");
5604
+ var serialise = /* @__PURE__ */ __name((node, indent) => {
5605
+ if ("json" in node)
5606
+ return node.json;
5607
+ const inner = `${indent} `;
5608
+ 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)}`);
5609
+ const [open, close] = "object" in node ? ["{", "}"] : ["[", "]"];
5610
+ return parts.length === 0 ? `${open}${close}` : `${open}
5611
+ ${parts.join(",\n")}
5612
+ ${indent}${close}`;
5613
+ }, "serialise");
5614
+
5615
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5371
5616
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
5372
5617
  var SECTIONS = ["personal", "bot"];
5373
5618
  var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
@@ -5613,17 +5858,22 @@ var withoutPath = /* @__PURE__ */ __name((raw, at2) => {
5613
5858
  return { config: prune(raw, [gone]).pruned, removed: true };
5614
5859
  }, "withoutPath");
5615
5860
  var publicIssue = /* @__PURE__ */ __name(({ at: _, ...issue }) => issue, "publicIssue");
5861
+ var fixVerb = /* @__PURE__ */ __name((issue) => issue.kind === "invalid_json" ? "repair" : "remove", "fixVerb");
5616
5862
  var issueMessage = /* @__PURE__ */ __name((issues, doctor = "doctor") => {
5617
5863
  const [first2] = issues;
5618
5864
  if (!first2)
5619
5865
  return "";
5620
5866
  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)`);
5867
+ 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
5868
  }, "issueMessage");
5623
5869
  var checkConfigText = /* @__PURE__ */ __name((text5, { file, tool, schema: schema2, knownPermissions }) => {
5624
5870
  const parsed = parseConfigText(text5, file);
5625
- if ("issue" in parsed)
5626
- return { issues: [publicIssue(parsed.issue)], config: void 0 };
5871
+ if ("issue" in parsed) {
5872
+ const issue = publicIssue(parsed.issue);
5873
+ if (repairConfigText(text5).state === "repaired")
5874
+ issue.fix = `${tool} config repair`;
5875
+ return { issues: [issue], config: void 0 };
5876
+ }
5627
5877
  if (!isNode(parsed.raw))
5628
5878
  return { issues: [wholeFile(file, "the file must hold a JSON object")], config: void 0 };
5629
5879
  const context2 = { file, tool };
@@ -5656,7 +5906,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
5656
5906
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
5657
5907
  }, "readConfigFile");
5658
5908
 
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
5909
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/cli/default-config.js
5660
5910
  import { existsSync as existsSync2, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
5661
5911
  import { dirname, join as join3 } from "node:path";
5662
5912
  var DEFAULT_CONFIG = {
@@ -5685,7 +5935,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
5685
5935
  }
5686
5936
  __name(ensureDefaultConfig, "ensureDefaultConfig");
5687
5937
 
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
5938
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/cli/settings.js
5689
5939
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
5690
5940
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
5691
5941
  var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
@@ -6094,7 +6344,7 @@ var given = /* @__PURE__ */ __name((value) => {
6094
6344
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
6095
6345
  }, "given");
6096
6346
 
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
6347
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/cli/context.js
6098
6348
  var runBudgetOf = /* @__PURE__ */ __name((command, requests) => {
6099
6349
  const { deadline, signal, app } = environmentOf(command);
6100
6350
  const now = deadline?.();
@@ -6217,7 +6467,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
6217
6467
  return words.join(" ");
6218
6468
  }, "commandPath");
6219
6469
 
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
6470
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/cli/effects.js
6221
6471
  var REMOTE_READ = { remote: "read", local: "read" };
6222
6472
  var FETCH = { remote: "read", local: "write" };
6223
6473
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -6325,7 +6575,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
6325
6575
  throw readOnlyRefusal(lock, what);
6326
6576
  }, "refuseUnderReadOnly");
6327
6577
 
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
6578
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/account.js
6329
6579
  var account = strictObject({
6330
6580
  provider: text,
6331
6581
  id,
@@ -6335,7 +6585,7 @@ var account = strictObject({
6335
6585
  scope: optional(picklist(["personal", "work"]))
6336
6586
  });
6337
6587
 
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
6588
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/account-session.js
6339
6589
  var accountSession = strictObject({
6340
6590
  current: boolean(),
6341
6591
  client: nullable(text),
@@ -6345,7 +6595,7 @@ var accountSession = strictObject({
6345
6595
  created_at: optional(nullable(time))
6346
6596
  });
6347
6597
 
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
6598
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/account-change.js
6349
6599
  var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
6350
6600
  var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
6351
6601
  var audience = picklist(["everyone", "contacts", "nobody"]);
@@ -6363,7 +6613,7 @@ var accountPrivacy = strictObject({
6363
6613
  });
6364
6614
  var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
6365
6615
 
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
6616
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
6367
6617
  var accountProfile = strictObject({
6368
6618
  profile: id,
6369
6619
  current: boolean(),
@@ -6373,7 +6623,7 @@ var accountProfile = strictObject({
6373
6623
  signed_in: optional(boolean())
6374
6624
  });
6375
6625
 
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
6626
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
6377
6627
  var milliseconds = pipe(number(), minValue(0));
6378
6628
  var counterReading = strictObject({
6379
6629
  counter: picklist(["views", "reactions", "comments"]),
@@ -6385,7 +6635,7 @@ var counterReading = strictObject({
6385
6635
  });
6386
6636
  var selection = record(string(), unknown());
6387
6637
 
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
6638
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
6389
6639
  var adminRow = strictObject({
6390
6640
  ref: reference,
6391
6641
  /** What `stats * evidence` takes: a person id, a stay or a message locator. */
@@ -6438,7 +6688,7 @@ var adminReport = strictObject({
6438
6688
  rows: array(adminRow)
6439
6689
  });
6440
6690
 
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
6691
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/task.js
6442
6692
  var closeSuggestion = strictObject({
6443
6693
  as: picklist(["done", "dismissed"]),
6444
6694
  /** The agent's name. */
@@ -6496,7 +6746,7 @@ var task = strictObject({
6496
6746
  updated_at: optional(time)
6497
6747
  });
6498
6748
 
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
6749
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/agenda.js
6500
6750
  var agendaChat = strictObject({
6501
6751
  chat: reference,
6502
6752
  title: nullable(text),
@@ -6566,11 +6816,11 @@ var agenda = strictObject({
6566
6816
  unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
6567
6817
  });
6568
6818
 
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
6819
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
6570
6820
  var analysisConsent = strictObject({ chat: id, provider: text, at: time });
6571
6821
  var analysisConsentRevocation = strictObject({ revoked: boolean() });
6572
6822
 
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
6823
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/attachment.js
6574
6824
  var attachment = strictObject({
6575
6825
  /** The message it came with, as a locator; absent inside that message. */
6576
6826
  message: optional(reference),
@@ -6608,7 +6858,7 @@ var attachment = strictObject({
6608
6858
  });
6609
6859
  var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
6610
6860
 
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
6861
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
6612
6862
  var actionableError = objectWithRest({
6613
6863
  code: text,
6614
6864
  message: text,
@@ -6625,7 +6875,7 @@ var batchResult = strictObject({
6625
6875
  max_error_percent: count
6626
6876
  });
6627
6877
 
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
6878
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
6629
6879
  var extractionItem = strictObject({
6630
6880
  ref: reference,
6631
6881
  attachment: count,
@@ -6658,7 +6908,7 @@ var extractionReport = strictObject({
6658
6908
  cursor: optional(text)
6659
6909
  });
6660
6910
 
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
6911
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
6662
6912
  var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
6663
6913
  var attachmentBytes = strictObject({
6664
6914
  ref: reference,
@@ -6686,7 +6936,7 @@ var attachmentTextChange = strictObject({
6686
6936
  replaced: nullable(picklist(["extracted", "agent"]))
6687
6937
  });
6688
6938
 
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
6939
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/chart.js
6690
6940
  var chart = strictObject({
6691
6941
  version: literal(1),
6692
6942
  kind: picklist(["bar", "line", "grouped-bar"]),
@@ -6701,7 +6951,7 @@ var chart = strictObject({
6701
6951
  file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
6702
6952
  });
6703
6953
 
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
6954
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/member.js
6705
6955
  var member = strictObject({
6706
6956
  id,
6707
6957
  name: nullable(text),
@@ -6724,7 +6974,7 @@ var member = strictObject({
6724
6974
  check: optional(record(string(), unknown()))
6725
6975
  });
6726
6976
 
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
6977
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/chat.js
6728
6978
  var setting = optional(nullable(boolean()));
6729
6979
  var chat = strictObject({
6730
6980
  ref: reference,
@@ -6765,7 +7015,7 @@ var chat = strictObject({
6765
7015
  members: optional(array(member))
6766
7016
  });
6767
7017
 
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
7018
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/folder.js
6769
7019
  var named = strictObject({
6770
7020
  id,
6771
7021
  title: nullable(text),
@@ -6788,7 +7038,7 @@ var folder = strictObject({
6788
7038
  excluded_chats: optional(array(named))
6789
7039
  });
6790
7040
 
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
7041
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
6792
7042
  var inviteLink = strictObject({
6793
7043
  link: text,
6794
7044
  /** Who joins by it asks first, and an admin lets them in. */
@@ -6804,7 +7054,7 @@ var inviteLink = strictObject({
6804
7054
  joined_count: optional(count)
6805
7055
  });
6806
7056
 
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
7057
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
6808
7058
  var operated = { operation_id: id, chat_id: id };
6809
7059
  var group = strictObject({
6810
7060
  ...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
@@ -6884,7 +7134,7 @@ var chatFolderOrder = strictObject({
6884
7134
  folders: array(strictObject({ id, title: text }))
6885
7135
  });
6886
7136
 
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
7137
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
6888
7138
  var operated2 = { operation_id: id, chat_id: id };
6889
7139
  var chatRemoval = strictObject(operated2);
6890
7140
  var chatMuting = strictObject({
@@ -6895,7 +7145,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
6895
7145
  var chatPin = strictObject({ ...operated2, pinned: boolean() });
6896
7146
  var chatUnread = strictObject({ ...operated2, unread: literal(true) });
6897
7147
 
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
7148
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
6899
7149
  var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
6900
7150
  var chatEvent = strictObject({
6901
7151
  chat_id: id,
@@ -6912,7 +7162,7 @@ var chatEvent = strictObject({
6912
7162
  before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
6913
7163
  });
6914
7164
 
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
7165
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
6916
7166
  var chatMetadata = strictObject({
6917
7167
  chat_id: id,
6918
7168
  title: nullable(text),
@@ -6927,7 +7177,7 @@ var chatMetadataRefresh = strictObject({
6927
7177
  has_more: boolean()
6928
7178
  });
6929
7179
 
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
7180
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
6931
7181
  var action = picklist(["report", "delete", "remove"]);
6932
7182
  var level = picklist(["deny", "readonly", "ask", "allow"]);
6933
7183
  var chatRules = strictObject({
@@ -6964,7 +7214,7 @@ var chatModeration = strictObject({
6964
7214
  }))
6965
7215
  });
6966
7216
 
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
7217
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
6968
7218
  var optionalCount = optional(count);
6969
7219
  var minutes = nullable(number());
6970
7220
  var chatStats = strictObject({
@@ -7026,7 +7276,7 @@ var taskStats = strictObject({
7026
7276
  }))
7027
7277
  });
7028
7278
 
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
7279
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
7030
7280
  var memberCount = strictObject({
7031
7281
  day: pipe(text, isoDate()),
7032
7282
  participants: nullable(count),
@@ -7049,7 +7299,7 @@ var chatTracking = strictObject({
7049
7299
  tracked: boolean()
7050
7300
  });
7051
7301
 
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
7302
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
7053
7303
  var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
7054
7304
  var contactSync = strictObject({ added: count, changed: count, known: count });
7055
7305
  var profileFields = {
@@ -7087,7 +7337,7 @@ var profileFields = {
7087
7337
  }))
7088
7338
  };
7089
7339
 
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
7340
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/contact.js
7091
7341
  var contact = strictObject({
7092
7342
  ref: reference,
7093
7343
  id,
@@ -7118,7 +7368,7 @@ var contact = strictObject({
7118
7368
  notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
7119
7369
  });
7120
7370
 
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
7371
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
7122
7372
  var WEIGHTS = {
7123
7373
  bot: 3,
7124
7374
  scam: 3,
@@ -7143,7 +7393,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
7143
7393
  var DIGITS = /\d{5,}/;
7144
7394
  var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
7145
7395
 
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
7396
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
7147
7397
  var linkedIdentity = strictObject({
7148
7398
  provider: text,
7149
7399
  id,
@@ -7184,7 +7434,7 @@ var contactCheck = strictObject({
7184
7434
  checked_at: time
7185
7435
  });
7186
7436
 
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
7437
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/message.js
7188
7438
  var quoted = strictObject({
7189
7439
  id,
7190
7440
  sender_id: nullable(id),
@@ -7286,12 +7536,18 @@ var message = strictObject({
7286
7536
  read: nullable(boolean()),
7287
7537
  flagged: nullable(boolean()),
7288
7538
  /** 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)) }))
7539
+ sender_score: optional(strictObject({ score: number(), signals: array(text), demoted: optional(literal(true)) })),
7540
+ /** Mail `review`: filed in the mailbox of mail sent to many. */
7541
+ bulk: optional(boolean()),
7542
+ /** Mail `review`: its List-Id, `null` when it has none. */
7543
+ list_id: optional(nullable(text)),
7544
+ /** Mail `review`: the mail rule that decided how it is stored, by its id in `rules list`; `null` when none. */
7545
+ rule_id: optional(nullable(number()))
7290
7546
  })),
7291
7547
  provider_metadata: providerMetadata
7292
7548
  });
7293
7549
 
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
7550
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
7295
7551
  var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
7296
7552
  var contextMessage = strictObject({
7297
7553
  locator: reference,
@@ -7489,7 +7745,7 @@ var contactPreparation = strictObject({
7489
7745
  })
7490
7746
  });
7491
7747
 
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
7748
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
7493
7749
  var contactNote = strictObject({
7494
7750
  id,
7495
7751
  /** The contact, as a `contact:` reference. */
@@ -7501,13 +7757,13 @@ var contactNote = strictObject({
7501
7757
  updated_at: time
7502
7758
  });
7503
7759
 
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
7760
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
7505
7761
  var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
7506
7762
  var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
7507
7763
  var contactStateChange = strictObject({ operation_id: id, person_id: id });
7508
7764
  var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
7509
7765
 
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
7766
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/conversation.js
7511
7767
  var conversation = strictObject({
7512
7768
  id,
7513
7769
  chat: reference,
@@ -7522,7 +7778,7 @@ var conversation = strictObject({
7522
7778
  rules_version: count
7523
7779
  });
7524
7780
 
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
7781
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
7526
7782
  var conversationBuild = strictObject({
7527
7783
  chat: id,
7528
7784
  messages: count,
@@ -7547,7 +7803,7 @@ var catchUpPreparation = strictObject({
7547
7803
  prepared: optional(conversationPreparation)
7548
7804
  });
7549
7805
 
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
7806
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
7551
7807
  var conversationDetails = union([
7552
7808
  strictObject({ ...conversation.entries, messages: array(message) }),
7553
7809
  message
@@ -7637,7 +7893,7 @@ var conversationHit = strictObject({
7637
7893
  stale: boolean()
7638
7894
  });
7639
7895
 
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
7896
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/counters.js
7641
7897
  var counters = strictObject({
7642
7898
  cutoff: time,
7643
7899
  max_age_ms: milliseconds,
@@ -7667,7 +7923,7 @@ var counterRefresh = strictObject({
7667
7923
  complete: optional(boolean())
7668
7924
  });
7669
7925
 
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
7926
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/document.js
7671
7927
  var document = strictObject({
7672
7928
  ref: reference,
7673
7929
  id,
@@ -7682,7 +7938,7 @@ var document = strictObject({
7682
7938
  owners: optional(array(text))
7683
7939
  });
7684
7940
 
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
7941
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/document-link.js
7686
7942
  var documentLink = strictObject({
7687
7943
  ref: reference,
7688
7944
  url: text,
@@ -7693,7 +7949,7 @@ var documentLink = strictObject({
7693
7949
  sender: strictObject({ id: nullable(id), name: nullable(text) })
7694
7950
  });
7695
7951
 
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
7952
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/evidence.js
7697
7953
  var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
7698
7954
  var contribution = strictObject({
7699
7955
  message: evidenceMessage,
@@ -7723,7 +7979,17 @@ var retentionStay = strictObject({
7723
7979
  });
7724
7980
  var evidence = union([contribution, retentionStay]);
7725
7981
 
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
7982
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/fact.js
7983
+ var payment = strictObject({
7984
+ amount: text,
7985
+ currency: text,
7986
+ direction: picklist(PAYMENT_DIRECTIONS),
7987
+ counterparty: nullable(reference),
7988
+ counterparty_name: nullable(text),
7989
+ due_at: nullable(text),
7990
+ state: picklist(PAYMENT_STATES),
7991
+ item: nullable(text)
7992
+ });
7727
7993
  var fact = strictObject({
7728
7994
  ref: reference,
7729
7995
  id,
@@ -7747,13 +8013,15 @@ var fact = strictObject({
7747
8013
  /** Who recorded it: the owner, or an agent whose fact waits as proposed. */
7748
8014
  origin: picklist(["owner", "agent"]),
7749
8015
  evidence: array(reference),
8016
+ /** A `payment` fact's fields. */
8017
+ payment: optional(nullable(payment)),
7750
8018
  /** With `--sources`: each piece of evidence read back. */
7751
8019
  sources: optional(array(evidenceSource)),
7752
8020
  created_at: time,
7753
8021
  updated_at: time
7754
8022
  });
7755
8023
 
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
8024
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/hit.js
7757
8025
  var hit = strictObject({
7758
8026
  kind: picklist(["message", "mail", "note", "document", "event", "meeting"]),
7759
8027
  ref: reference,
@@ -7778,6 +8046,11 @@ var hit = strictObject({
7778
8046
  scope: optional(picklist(["transcript", "chat", "summary"])),
7779
8047
  /** A meeting transcript hit's cue, which `meetings passage` opens with the lines around it. */
7780
8048
  cue_ref: optional(reference),
8049
+ /** A meeting transcript hit's transcript language (`ru`, `en`…), `null` when unknown. */
8050
+ language: optional(nullable(text)),
8051
+ /** A meeting transcript hit's line, from 1, of `lines_total` lines in its transcript. */
8052
+ line: optional(pipe(count, minValue(1))),
8053
+ lines_total: optional(count),
7781
8054
  /** A meeting passage's stored line, so two passages of one meeting stay apart; `search meetings` gives the same. */
7782
8055
  id: optional(pipe(string(), minLength(1))),
7783
8056
  /** A message's files; absent when it has none. */
@@ -7786,7 +8059,7 @@ var hit = strictObject({
7786
8059
  untrusted
7787
8060
  });
7788
8061
 
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
8062
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/identity.js
7790
8063
  var identity = strictObject({
7791
8064
  ref: reference,
7792
8065
  provider: text,
@@ -7799,7 +8072,7 @@ var identity = strictObject({
7799
8072
  person: optional(nullable(reference))
7800
8073
  });
7801
8074
 
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
8075
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
7803
8076
  var imageEmbedding = strictObject({
7804
8077
  model: text,
7805
8078
  embedded: count,
@@ -7808,13 +8081,13 @@ var imageEmbedding = strictObject({
7808
8081
  more: boolean()
7809
8082
  });
7810
8083
 
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
8084
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
7812
8085
  import { spawn } from "node:child_process";
7813
8086
  import { randomBytes as randomBytes2 } from "node:crypto";
7814
8087
  import { closeSync, existsSync as existsSync4, mkdirSync as mkdirSync3, openSync, readdirSync as readdirSync3, readFileSync as readFileSync4, realpathSync, rmSync as rmSync3 } from "node:fs";
7815
8088
  import { dirname as dirname2, join as join4 } from "node:path";
7816
8089
 
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
8090
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
7818
8091
  var progressOf = /* @__PURE__ */ __name((input) => {
7819
8092
  const total = input.total ?? null;
7820
8093
  const updated = input.updatedAt ?? null;
@@ -7830,7 +8103,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
7830
8103
  };
7831
8104
  }, "progressOf");
7832
8105
 
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
8106
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/runs/record-log.js
7834
8107
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
7835
8108
  const run = currentRun();
7836
8109
  const trace = traceId ?? run.traceId;
@@ -7844,7 +8117,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
7844
8117
  }));
7845
8118
  }, "recordLogFor");
7846
8119
 
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
8120
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
7848
8121
  var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
7849
8122
  var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
7850
8123
  const out = openSync(log, "a", 384);
@@ -7999,7 +8272,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
7999
8272
  return { job: id6, pid, chat: input.chat, log };
8000
8273
  }, "startArchiveJob");
8001
8274
 
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
8275
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/job.js
8003
8276
  var problem = strictObject({ code: text, message: text });
8004
8277
  var job = strictObject({
8005
8278
  id,
@@ -8022,7 +8295,7 @@ var job = strictObject({
8022
8295
  error: optional(problem)
8023
8296
  });
8024
8297
 
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
8298
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/join-request.js
8026
8299
  var joinRequest = strictObject({
8027
8300
  person_id: id,
8028
8301
  name: nullable(text),
@@ -8033,7 +8306,7 @@ var joinRequest = strictObject({
8033
8306
  about: optional(text)
8034
8307
  });
8035
8308
 
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
8309
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/list-results.js
8037
8310
  var botProfile = strictObject({
8038
8311
  name: text,
8039
8312
  token: text,
@@ -8101,7 +8374,7 @@ var stickerInventory = strictObject({
8101
8374
  url: optional(nullable(text))
8102
8375
  });
8103
8376
 
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
8377
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
8105
8378
  var pollVote = strictObject({
8106
8379
  person_id: id,
8107
8380
  name: nullable(text),
@@ -8111,7 +8384,7 @@ var pollVote = strictObject({
8111
8384
  voted_at: time
8112
8385
  });
8113
8386
 
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
8387
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/listener.js
8115
8388
  var reactions = unwrap(unwrap(message.entries.reactions));
8116
8389
  var observation = strictObject({
8117
8390
  value: pipe(number(), minValue(0)),
@@ -8149,10 +8422,11 @@ var serveSummary = strictObject({
8149
8422
  replies: optional(strictObject({ sent: totals, skipped: totals, tasks: optional(totals) })),
8150
8423
  members: optional(strictObject({ fetched: count, failed: count })),
8151
8424
  stems: optional(strictObject({ stemmed: count })),
8425
+ caught_up: optional(strictObject({ chats: count, fetched: count, failed: count, stopped: boolean() })),
8152
8426
  tasks: optional(strictObject({ added: count, closed: count, review: count }))
8153
8427
  });
8154
8428
 
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
8429
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
8156
8430
  var mediaArchive = strictObject({
8157
8431
  directory: text,
8158
8432
  chats: count,
@@ -8184,7 +8458,7 @@ var mediaArchiveTimer = union([
8184
8458
  strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
8185
8459
  ]);
8186
8460
 
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
8461
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
8188
8462
  var preparationId = pipe(string(), minLength(1));
8189
8463
  var preparationCount = pipe(number(), integer(), minValue(0));
8190
8464
  var preparationTime = nullable(isoTime);
@@ -8276,7 +8550,7 @@ var preparationMeeting = strictObject({
8276
8550
  updated_at: isoTime
8277
8551
  });
8278
8552
 
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
8553
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
8280
8554
  var meetingEvidence = preparationEvidence;
8281
8555
  var meetingPersonContext = strictObject({
8282
8556
  person: strictObject({ uid: string(), name: nullable(string()) }),
@@ -8298,7 +8572,7 @@ var meetingPersonContext = strictObject({
8298
8572
  })
8299
8573
  });
8300
8574
 
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
8575
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
8302
8576
  var evidence2 = strictObject({ reference, fingerprint: text });
8303
8577
  var base = { id, project: reference, evidence: array(evidence2) };
8304
8578
  var finding = variant("kind", [
@@ -8336,7 +8610,7 @@ var meetingFindings = strictObject({
8336
8610
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome) }))
8337
8611
  });
8338
8612
 
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
8613
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
8340
8614
  var communicationCoverage = strictObject({
8341
8615
  read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
8342
8616
  query: string(),
@@ -8381,7 +8655,7 @@ var preparationCommunications = strictObject({
8381
8655
  }))
8382
8656
  });
8383
8657
 
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
8658
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
8385
8659
  var meetingPreparation = strictObject({
8386
8660
  communications: optional(preparationCommunications),
8387
8661
  schema_version: literal(1),
@@ -8494,7 +8768,7 @@ var meetingPreparation = strictObject({
8494
8768
  })
8495
8769
  });
8496
8770
 
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
8771
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
8498
8772
  var count4 = pipe(number(), integer(), minValue(0));
8499
8773
  var id3 = pipe(string(), minLength(1));
8500
8774
  var text3 = string();
@@ -8558,7 +8832,7 @@ var meetingProjectCandidates = strictObject({
8558
8832
  })
8559
8833
  });
8560
8834
 
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
8835
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
8562
8836
  var count5 = pipe(number(), integer(), minValue(0));
8563
8837
  var id4 = pipe(string(), minLength(1), maxLength(1e3));
8564
8838
  var meetingSeriesInventory = strictObject({
@@ -8588,7 +8862,7 @@ var meetingSeriesInventory = strictObject({
8588
8862
  })
8589
8863
  });
8590
8864
 
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
8865
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
8592
8866
  var text4 = string();
8593
8867
  var id5 = pipe(number(), integer(), minValue(1));
8594
8868
  var revision = picklist(["current", "superseded"]);
@@ -8605,7 +8879,7 @@ var meetingTaskProposal = strictObject({
8605
8879
  persistence: literal("proposal-only")
8606
8880
  });
8607
8881
 
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
8882
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/memory.js
8609
8883
  var memory = strictObject({
8610
8884
  ref: reference,
8611
8885
  id,
@@ -8632,7 +8906,7 @@ var memory = strictObject({
8632
8906
  updated_at: time
8633
8907
  });
8634
8908
 
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
8909
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/mention.js
8636
8910
  var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
8637
8911
  var status = picklist(["found", "linked", "dismissed"]);
8638
8912
  var mention = strictObject({
@@ -8675,13 +8949,13 @@ var mentionRebuild = strictObject({
8675
8949
  mentions: count
8676
8950
  });
8677
8951
 
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
8952
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/message-change.js
8679
8953
  var operated3 = { operation_id: id, chat_id: id };
8680
8954
  var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
8681
8955
  var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
8682
8956
  var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
8683
8957
 
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
8958
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/message-read.js
8685
8959
  var messageTranscript = strictObject({
8686
8960
  message_id: id,
8687
8961
  text,
@@ -8739,7 +9013,7 @@ var evidencePacket = strictObject({
8739
9013
  }))
8740
9014
  });
8741
9015
 
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
9016
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/message-context.js
8743
9017
  var messageThread = strictObject({
8744
9018
  ref: reference,
8745
9019
  chat: id,
@@ -8756,7 +9030,7 @@ var messageThread = strictObject({
8756
9030
  });
8757
9031
  var messageContext = union([message, messageThread]);
8758
9032
 
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
9033
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
8760
9034
  var messageCounts = strictObject({
8761
9035
  by: picklist(["chat", "sender", "day", "hour"]),
8762
9036
  total: count,
@@ -8769,7 +9043,7 @@ var messageCounts = strictObject({
8769
9043
  }))
8770
9044
  });
8771
9045
 
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
9046
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/message-link.js
8773
9047
  var messageLink = strictObject({
8774
9048
  ref: reference,
8775
9049
  url: nullable(text),
@@ -8786,7 +9060,7 @@ var messageLink = strictObject({
8786
9060
  })))
8787
9061
  });
8788
9062
 
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
9063
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
8790
9064
  var savedMessageFile = strictObject({
8791
9065
  kind: text,
8792
9066
  path: text,
@@ -8829,6 +9103,7 @@ var tasks = optional(strictObject({
8829
9103
  held: optional(count),
8830
9104
  held_chats: optional(count)
8831
9105
  }));
9106
+ var historyLimited = picklist(["group_too_large", "older_than_window"]);
8832
9107
  var messageSyncChat = strictObject({
8833
9108
  issue: optional(actionableError),
8834
9109
  resume: optional(strictObject({ before: optional(text) })),
@@ -8842,6 +9117,8 @@ var messageSyncChat = strictObject({
8842
9117
  reached_since: optional(literal(true)),
8843
9118
  reached_last: optional(literal(true)),
8844
9119
  stopped: optional(literal(true)),
9120
+ /** The history limits stopped the read: a group too large to read, or the window's start reached. */
9121
+ limited: optional(historyLimited),
8845
9122
  tasks,
8846
9123
  /** `--full-history`: the chat's pushed history is now kept in full; `false` when the store does not know the chat. */
8847
9124
  history_included: optional(boolean())
@@ -8860,14 +9137,17 @@ var messageSyncAll = strictObject({
8860
9137
  current: optional(literal(true)),
8861
9138
  stopped: optional(literal(true)),
8862
9139
  error: optional(text),
8863
- issue: optional(actionableError)
9140
+ issue: optional(actionableError),
9141
+ limited: optional(historyLimited)
8864
9142
  })),
9143
+ /** How many chats the history limits left unread (big groups) or read only to the window's start. */
9144
+ limited: optional(strictObject({ group_too_large: count, older_than_window: count })),
8865
9145
  tasks
8866
9146
  });
8867
9147
  var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
8868
9148
  var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
8869
9149
 
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
9150
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/message-write.js
8871
9151
  var messageWrite = strictObject({
8872
9152
  operation_id: id,
8873
9153
  message,
@@ -8882,7 +9162,7 @@ var draftWrite = strictObject({
8882
9162
  });
8883
9163
  var messageSend = union([messageWrite, draftWrite]);
8884
9164
 
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
9165
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/model.js
8886
9166
  var model2 = strictObject({
8887
9167
  id,
8888
9168
  kind: picklist(["audio", "text", "image", "reranker"]),
@@ -8899,7 +9179,7 @@ var model2 = strictObject({
8899
9179
  path: text
8900
9180
  });
8901
9181
 
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
9182
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/model-key.js
8903
9183
  var source = picklist(["environment", "keyring", "file"]);
8904
9184
  var modelKey = strictObject({
8905
9185
  provider: text,
@@ -8909,7 +9189,7 @@ var modelKey = strictObject({
8909
9189
  var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
8910
9190
  var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
8911
9191
 
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
9192
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
8913
9193
  var versus = strictObject({ current: number(), previous: number() });
8914
9194
  var person = { person_ref: reference, name: nullable(text) };
8915
9195
  var graph = strictObject({
@@ -8943,14 +9223,14 @@ var officialStats = strictObject({
8943
9223
  graphs: record(string(), union([graph, strictObject({ error: text })]))
8944
9224
  });
8945
9225
 
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
9226
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/person.js
8947
9227
  var person2 = strictObject({
8948
9228
  ref: reference,
8949
9229
  name: nullable(text),
8950
9230
  identities: optional(array(identity))
8951
9231
  });
8952
9232
 
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
9233
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/poll.js
8954
9234
  var poll = strictObject({
8955
9235
  chat_id: id,
8956
9236
  message_id: id,
@@ -8966,11 +9246,11 @@ var poll = strictObject({
8966
9246
  });
8967
9247
  var pollChange = strictObject({ operation_id: id, poll });
8968
9248
 
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
9249
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
8970
9250
  var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
8971
9251
  var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
8972
9252
 
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
9253
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/ranking.js
8974
9254
  var figures = record(string(), number());
8975
9255
  var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
8976
9256
  var rankingRow = strictObject({
@@ -9017,7 +9297,7 @@ var ranking = strictObject({
9017
9297
  rows: array(rankingRow)
9018
9298
  });
9019
9299
 
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
9300
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/reaction.js
9021
9301
  var reaction = strictObject({
9022
9302
  person: strictObject({ id, name: nullable(text), username: nullable(text) }),
9023
9303
  /** The emoji, or `custom:<id>` for a custom one. */
@@ -9025,7 +9305,7 @@ var reaction = strictObject({
9025
9305
  reacted_at: time
9026
9306
  });
9027
9307
 
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
9308
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
9029
9309
  var reactionChange = strictObject({
9030
9310
  operation_id: id,
9031
9311
  chat_id: id,
@@ -9033,7 +9313,7 @@ var reactionChange = strictObject({
9033
9313
  reaction: nullable(text)
9034
9314
  });
9035
9315
 
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
9316
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/recipient.js
9037
9317
  var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
9038
9318
  var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
9039
9319
  var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
@@ -9044,7 +9324,7 @@ var recipientChange = strictObject({
9044
9324
  ...partial(recipientOff).entries
9045
9325
  });
9046
9326
 
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
9327
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
9048
9328
  var events = array(record(string(), unknown()));
9049
9329
  var recordedRun = strictObject({
9050
9330
  run_id: id,
@@ -9116,7 +9396,7 @@ var runHit = strictObject({
9116
9396
  });
9117
9397
  var runLocation = strictObject({ path: text });
9118
9398
 
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
9399
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/relationship.js
9120
9400
  var relationship = strictObject({
9121
9401
  id,
9122
9402
  from: reference,
@@ -9133,7 +9413,7 @@ var relationship = strictObject({
9133
9413
  created_at: time
9134
9414
  });
9135
9415
 
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
9416
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/retention.js
9137
9417
  var retentionCohort = strictObject({
9138
9418
  /** The first day of the joining day or week. */
9139
9419
  cohort: text,
@@ -9181,7 +9461,7 @@ var retention = strictObject({
9181
9461
  rows: array(retentionCohort)
9182
9462
  });
9183
9463
 
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
9464
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
9185
9465
  var savedSearch = strictObject({
9186
9466
  id,
9187
9467
  /** `null` for a run in the history. */
@@ -9198,7 +9478,7 @@ var savedSearch = strictObject({
9198
9478
  });
9199
9479
  var searchHistoryClear = strictObject({ cleared: count });
9200
9480
 
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
9481
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
9202
9482
  var sendAttempt = strictObject({
9203
9483
  at: time,
9204
9484
  profile: text,
@@ -9226,7 +9506,7 @@ var sendAttempt = strictObject({
9226
9506
  error_code: optional(text)
9227
9507
  });
9228
9508
 
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
9509
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
9230
9510
  var absent = strictObject({ path: text, exists: literal(false) });
9231
9511
  var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
9232
9512
  var infoSchema = strictObject({
@@ -9434,7 +9714,7 @@ var storeRepair = union([
9434
9714
  ]);
9435
9715
  var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
9436
9716
 
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
9717
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/store-records.js
9438
9718
  var range = strictObject({ from: number(), to: number() });
9439
9719
  var storeChatStatus = strictObject({
9440
9720
  chat_id: id,
@@ -9525,7 +9805,7 @@ var storeJobRetry = union([
9525
9805
  ]);
9526
9806
  var storeJobClear = strictObject({ cleared: array(id) });
9527
9807
 
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
9808
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/store-table.js
9529
9809
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
9530
9810
  var storeTable = strictObject({
9531
9811
  name: text,
@@ -9534,7 +9814,7 @@ var storeTable = strictObject({
9534
9814
  bytes: optional(nullable(count))
9535
9815
  });
9536
9816
 
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
9817
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
9538
9818
  var tagTarget = variant("type", [
9539
9819
  strictObject({ type: literal("chat"), chat_id: id }),
9540
9820
  strictObject({ type: literal("contact"), person_id: id }),
@@ -9565,7 +9845,7 @@ var automaticTags = strictObject({
9565
9845
  dry_run: boolean()
9566
9846
  });
9567
9847
 
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
9848
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/tagging.js
9569
9849
  var tagging = strictObject({
9570
9850
  tag: text,
9571
9851
  type: picklist(TAG_TYPES),
@@ -9578,7 +9858,7 @@ var tagging = strictObject({
9578
9858
  created_at: time
9579
9859
  });
9580
9860
 
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
9861
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
9582
9862
  var side = strictObject({ ref: reference, key: text, title: text, status: text });
9583
9863
  var taskPair = strictObject({
9584
9864
  task: nullable(side),
@@ -9601,7 +9881,7 @@ var taskPair = strictObject({
9601
9881
  created_at: time
9602
9882
  });
9603
9883
 
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
9884
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/task-results.js
9605
9885
  var nullableTime = nullable(time);
9606
9886
  var link = strictObject({
9607
9887
  id,
@@ -9731,8 +10011,47 @@ var taskScan = strictObject({
9731
10011
  held_chats: optional(count),
9732
10012
  tasks: array(strictObject({ source: text, kind: picklist(TASK_KINDS), category: nullable(text) }))
9733
10013
  });
10014
+ var taskAnalysisMark = strictObject({
10015
+ chat: text,
10016
+ from: time,
10017
+ through: time,
10018
+ through_id: text,
10019
+ by: text,
10020
+ checked_at: time,
10021
+ checked_through: time,
10022
+ at: time
10023
+ });
10024
+ var taskAnalysisMarkMoved = strictObject({ ...taskAnalysisMark.entries, moved: boolean() });
10025
+ var taskAnalysis = strictObject({
10026
+ chat: text,
10027
+ title: nullable(text),
10028
+ kind: text,
10029
+ newest_at: nullableTime,
10030
+ mark: nullable(taskAnalysisMark),
10031
+ waiting: count,
10032
+ late: count,
10033
+ untrusted
10034
+ });
10035
+ var taskReview = strictObject({
10036
+ chat: text,
10037
+ from: time,
10038
+ mark: nullable(taskAnalysisMark),
10039
+ late: count,
10040
+ has_more: boolean(),
10041
+ through: nullable(reference),
10042
+ messages: array(strictObject({
10043
+ ref: reference,
10044
+ at: time,
10045
+ sender: nullable(text),
10046
+ outgoing: boolean(),
10047
+ reply_to: nullable(text),
10048
+ text
10049
+ })),
10050
+ open_tasks: array(strictObject({ key: nullable(text), kind: text, title: nullable(text), source: nullable(text) })),
10051
+ untrusted
10052
+ });
9734
10053
 
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
10054
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/topic.js
9736
10055
  var topic = strictObject({
9737
10056
  id,
9738
10057
  title: text,
@@ -9746,7 +10065,7 @@ var topic = strictObject({
9746
10065
  untrusted
9747
10066
  });
9748
10067
 
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
10068
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/entities/index.js
9750
10069
  var ENTITIES = {
9751
10070
  sync_progress: progress,
9752
10071
  ...MEETING_RESULT_ENTITIES,
@@ -9786,7 +10105,8 @@ var ENTITIES = {
9786
10105
  "outgoing",
9787
10106
  "text",
9788
10107
  "transcript",
9789
- "attachments"
10108
+ "attachments",
10109
+ "email"
9790
10110
  ]),
9791
10111
  message_link: messageLink,
9792
10112
  message_write: messageWrite,
@@ -9884,6 +10204,9 @@ var ENTITIES = {
9884
10204
  task_unmerge: taskUnmerge,
9885
10205
  task_categories: taskCategories,
9886
10206
  task_scan: taskScan,
10207
+ task_analysis: taskAnalysis,
10208
+ task_analysis_mark: taskAnalysisMarkMoved,
10209
+ task_review: taskReview,
9887
10210
  fact,
9888
10211
  memory,
9889
10212
  meeting,
@@ -10015,7 +10338,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
10015
10338
  return [name, definition];
10016
10339
  })), "entityDefinitions");
10017
10340
 
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
10341
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
10019
10342
  var schemas = /* @__PURE__ */ new WeakMap();
10020
10343
  var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
10021
10344
  if (Object.hasOwn(ENTITIES, name))
@@ -10049,7 +10372,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
10049
10372
  return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
10050
10373
  }, "answerRow");
10051
10374
 
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
10375
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/images/picture/models.js
10053
10376
  import { join as join5 } from "node:path";
10054
10377
  var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
10055
10378
  var IMAGE_MODELS = [
@@ -10103,7 +10426,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
10103
10426
  var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join5(directory, model3.id, file.name)]), "placedImage");
10104
10427
  var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
10105
10428
 
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
10429
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/cli/steps.js
10107
10430
  var STEPS2 = defineSteps([
10108
10431
  ...STEPS,
10109
10432
  {
@@ -10146,7 +10469,10 @@ var STEPS2 = defineSteps([
10146
10469
  {
10147
10470
  id: "messages.list",
10148
10471
  command: "messages list",
10149
- args: [{ name: "chat", required: true }],
10472
+ args: [
10473
+ { name: "chat", required: true },
10474
+ { name: "query", required: false }
10475
+ ],
10150
10476
  why: "only the newest were read here; this reads the chat itself"
10151
10477
  },
10152
10478
  {
@@ -10304,6 +10630,16 @@ var STEPS2 = defineSteps([
10304
10630
  args: [],
10305
10631
  why: "serve still runs an older version; a restart runs the one installed now"
10306
10632
  },
10633
+ {
10634
+ id: "tasks.acknowledge",
10635
+ command: "tasks acknowledge",
10636
+ args: [
10637
+ { name: "chat", required: true },
10638
+ { name: "message", required: true },
10639
+ { name: "since_time", required: false }
10640
+ ],
10641
+ why: "once the tasks these {shown} messages hold are opened, updated or closed, so the next review starts after them"
10642
+ },
10307
10643
  {
10308
10644
  id: "search.meetings",
10309
10645
  command: "*",
@@ -10371,7 +10707,116 @@ var stepLine = /* @__PURE__ */ __name((root, step) => {
10371
10707
  ].join(" ");
10372
10708
  }, "stepLine");
10373
10709
 
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
10710
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
10711
+ var where = [{ field: "ref" }, { field: ["chat_title", "chat"] }];
10712
+ var who2 = { field: ["who.owner", "who.name"], tag: "you" };
10713
+ var STATUS_SIGNAL_ROWS = {
10714
+ "status.last-message": { columns: [...where, { field: "at", as: "time" }, who2] },
10715
+ "status.reply-next": {
10716
+ columns: [
10717
+ ...where,
10718
+ { field: "data.next" },
10719
+ { field: "data.addressed.name" },
10720
+ { field: "data.waiting_since", as: "day" },
10721
+ { field: "data.overdue", tag: "overdue" }
10722
+ ]
10723
+ },
10724
+ "status.questions": {
10725
+ columns: [...where, { field: "at", as: "day" }, { field: "data.side" }, who2],
10726
+ text: ["data.excerpt"]
10727
+ },
10728
+ "status.promises": {
10729
+ columns: [
10730
+ ...where,
10731
+ { field: "at", as: "day" },
10732
+ { field: "data.source" },
10733
+ { field: "data.side" },
10734
+ { field: "data.due", as: "day" },
10735
+ { field: "data.status" }
10736
+ ],
10737
+ text: ["data.title"]
10738
+ },
10739
+ "status.amounts": {
10740
+ columns: [
10741
+ ...where,
10742
+ { field: "data.direction" },
10743
+ { field: "data.amount" },
10744
+ { field: "data.currency" },
10745
+ { field: "data.state" },
10746
+ { field: "data.since", as: "day" },
10747
+ { field: "data.asks", as: "count", tag: "asks" },
10748
+ { field: "basis" }
10749
+ ]
10750
+ },
10751
+ "status.payments": {
10752
+ columns: [{ field: "ref" }, { field: "at", as: "day" }, { field: "data.status" }],
10753
+ text: ["data.title"]
10754
+ },
10755
+ "status.topics": {
10756
+ columns: [
10757
+ ...where,
10758
+ { field: "data.query" },
10759
+ { field: "data.theirs_last", as: "day" },
10760
+ { field: "data.yours_last", as: "day" },
10761
+ { field: "data.silent_since", as: "day" }
10762
+ ]
10763
+ },
10764
+ "status.coverage": {
10765
+ columns: [
10766
+ { field: "chat" },
10767
+ { field: "chat_title" },
10768
+ { field: "data.state" },
10769
+ { field: "data.held.messages", as: "count", tag: "held" },
10770
+ { field: "data.held.oldest_at", as: "day" },
10771
+ { field: "sync_command" }
10772
+ ]
10773
+ },
10774
+ "status.children": {
10775
+ columns: [
10776
+ { field: "data.child" },
10777
+ { field: "data.key" },
10778
+ { field: "data.name" },
10779
+ { field: "data.chats", as: "count", tag: "chats" },
10780
+ { field: "data.cut" }
10781
+ ]
10782
+ }
10783
+ };
10784
+ var STATUS_ROWS = {
10785
+ ...STATUS_SIGNAL_ROWS,
10786
+ "status.chat": {
10787
+ columns: [
10788
+ { field: "chat" },
10789
+ { field: "title" },
10790
+ { field: "kind" },
10791
+ { field: "role" },
10792
+ { field: "attention", as: "count", tag: "attention" },
10793
+ { field: "why" }
10794
+ ]
10795
+ },
10796
+ "status.money": {
10797
+ columns: [
10798
+ { field: "direction" },
10799
+ { field: "amount" },
10800
+ { field: "currency" },
10801
+ { field: "rows", as: "count", tag: "rows" }
10802
+ ]
10803
+ },
10804
+ "status.signal": { columns: [{ field: "id" }, { field: "version" }] },
10805
+ "status.out-of-scope": {
10806
+ columns: [
10807
+ { field: "chat" },
10808
+ { field: "reason" },
10809
+ { field: "purpose" },
10810
+ { field: "messages", as: "count", tag: "messages" },
10811
+ { field: "first_at", as: "day" },
10812
+ { field: "last_at", as: "day" },
10813
+ { field: "read_command" }
10814
+ ]
10815
+ },
10816
+ "status.failed": { columns: [{ field: "signal" }], text: ["why"] }
10817
+ };
10818
+
10819
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/cli/compact.js
10375
10820
  var TEXT_CHARS = 400;
10376
10821
  var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
10377
10822
  var messageRow = {
@@ -10386,6 +10831,60 @@ var messageRow = {
10386
10831
  ],
10387
10832
  text: ["text", "transcript", "excerpt"]
10388
10833
  };
10834
+ var linkedChatColumns = [
10835
+ { field: "ref" },
10836
+ { field: "title" },
10837
+ { field: "purpose" },
10838
+ { field: "proposed", prefix: "proposed" }
10839
+ ];
10840
+ var EVIDENCE_ROWS = {
10841
+ project_evidence: {
10842
+ columns: [],
10843
+ sections: {
10844
+ items: "evidence_item",
10845
+ linked_chats: "linked_chat",
10846
+ left_out: "linked_chat.left_out",
10847
+ members: "evidence_member"
10848
+ },
10849
+ whole: ["checkpoint"]
10850
+ },
10851
+ evidence_item: {
10852
+ columns: [
10853
+ { field: "ref" },
10854
+ { field: "at", as: "day" },
10855
+ { field: "context" },
10856
+ { field: "proposed", prefix: "proposed" }
10857
+ ],
10858
+ text: ["text"]
10859
+ },
10860
+ linked_chat: {
10861
+ columns: [
10862
+ ...linkedChatColumns,
10863
+ { field: "state" },
10864
+ { field: "items", as: "count", tag: "items" },
10865
+ { field: "capped", tag: "capped" },
10866
+ { field: "score", prefix: "score" },
10867
+ { field: "sync_command" }
10868
+ ]
10869
+ },
10870
+ "linked_chat.left_out": {
10871
+ columns: [
10872
+ ...linkedChatColumns,
10873
+ { field: "messages", as: "count", tag: "messages" },
10874
+ { field: "first_at", as: "day" },
10875
+ { field: "last_at", as: "day" },
10876
+ { field: "read_command" }
10877
+ ]
10878
+ },
10879
+ evidence_member: {
10880
+ columns: [
10881
+ { field: "person" },
10882
+ { field: "state" },
10883
+ { field: "proposed", prefix: "proposed" },
10884
+ { field: "score", prefix: "score" }
10885
+ ]
10886
+ }
10887
+ };
10389
10888
  var SHARED_ROWS = {
10390
10889
  message: messageRow,
10391
10890
  "message.summary": messageRow,
@@ -10407,7 +10906,9 @@ var SHARED_ROWS = {
10407
10906
  { field: "unread_count", as: "count", tag: "unread" },
10408
10907
  { field: "last_message_at", as: "time" }
10409
10908
  ]
10410
- }
10909
+ },
10910
+ ...STATUS_ROWS,
10911
+ ...EVIDENCE_ROWS
10411
10912
  };
10412
10913
  var GENERIC_ROW = {
10413
10914
  columns: [
@@ -10494,11 +10995,12 @@ var cellOf = /* @__PURE__ */ __name((item, column, clock) => {
10494
10995
  switch (column.as) {
10495
10996
  case "time":
10496
10997
  case "day": {
10497
- if (typeof value !== "string")
10998
+ const iso = typeof value === "number" && Number.isFinite(value) ? new Date(value).toISOString() : value;
10999
+ if (typeof iso !== "string")
10498
11000
  return void 0;
10499
- const parts = clock.parts(value);
11001
+ const parts = clock.parts(iso);
10500
11002
  if (!parts)
10501
- return { text: clean(value) };
11003
+ return { text: clean(iso) };
10502
11004
  const day2 = parts.date.slice(5);
10503
11005
  return { text: column.as === "day" ? day2 : `${day2} ${parts.time}`, date: parts.date };
10504
11006
  }
@@ -10520,7 +11022,7 @@ var cellOf = /* @__PURE__ */ __name((item, column, clock) => {
10520
11022
  if (value === true)
10521
11023
  return column.tag ? { text: column.tag } : void 0;
10522
11024
  if (typeof value === "string" || typeof value === "number")
10523
- return { text: clean(String(value)) };
11025
+ return { text: clean(column.prefix ? `${column.prefix} ${value}` : String(value)) };
10524
11026
  return void 0;
10525
11027
  }
10526
11028
  }, "cellOf");
@@ -10583,13 +11085,13 @@ var rowsOfItems = /* @__PURE__ */ __name((items, shape, clock, chars) => {
10583
11085
  return { header, lines };
10584
11086
  }, "rowsOfItems");
10585
11087
  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]) => {
11088
+ 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
11089
  const label = `${indent}${clean(name)}:`;
10588
11090
  if (isFields(value))
10589
11091
  return [label, ...blockOf(value, chars, `${indent} `)];
10590
11092
  if (Array.isArray(value))
10591
11093
  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)}`];
11094
+ return [`${label} ${whole.includes(name) ? clean(String(value)) : cut(clean(String(value)), chars)}`];
10593
11095
  }), "blockOf");
10594
11096
  var footerOf = /* @__PURE__ */ __name((body) => {
10595
11097
  const lines = [];
@@ -10637,7 +11139,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
10637
11139
  } else if (isFields(body.item)) {
10638
11140
  const sections = shape.sections ?? {};
10639
11141
  const rest = Object.fromEntries(Object.entries(body.item).filter(([name]) => !Object.hasOwn(sections, name)));
10640
- lines = blockOf(rest, chars).map(guarded);
11142
+ lines = blockOf(rest, chars, "", shape.whole).map(guarded);
10641
11143
  for (const [name, entity] of Object.entries(sections)) {
10642
11144
  const list = body.item[name];
10643
11145
  if (!Array.isArray(list))
@@ -10650,7 +11152,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
10650
11152
  return lines.concat(footerOf(body)).join("\n");
10651
11153
  }, "compactText");
10652
11154
 
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
11155
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
10654
11156
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
10655
11157
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
10656
11158
  var strip = /* @__PURE__ */ __name((value) => {
@@ -10664,7 +11166,7 @@ var strip = /* @__PURE__ */ __name((value) => {
10664
11166
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
10665
11167
  }, "strip");
10666
11168
 
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
11169
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/cli/envelope.js
10668
11170
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
10669
11171
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
10670
11172
  var listOf = /* @__PURE__ */ __name((command, input) => {
@@ -10913,9 +11415,13 @@ export {
10913
11415
  rerankModel,
10914
11416
  vectorModelKey,
10915
11417
  meaningFloor,
11418
+ historyWindow,
10916
11419
  limitBatch,
11420
+ REPAIR_WORDS,
11421
+ repairConfigText,
10917
11422
  permissionIssues,
10918
11423
  publicIssue,
11424
+ fixVerb,
10919
11425
  issueMessage,
10920
11426
  readConfigFile,
10921
11427
  rememberAccount,
@@ -10999,6 +11505,7 @@ export {
10999
11505
  answerEntity,
11000
11506
  answerEntitySchema,
11001
11507
  answerProjectionSchema,
11508
+ STATUS_SIGNAL_ROWS,
11002
11509
  entityRows,
11003
11510
  withoutProviderRefs,
11004
11511
  nextStep,