@wirecat/tg-cli 0.123.0 → 0.125.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 (131) hide show
  1. package/contracts/wirecat.json +54 -5
  2. package/dist/bin/tg.js +2 -2
  3. package/dist/bundle/{adapter-GAOG65O2.js → adapter-H2LTOLOA.js} +54 -53
  4. package/dist/bundle/{all-profiles-HLE6PHNI.js → all-profiles-75HGEFL7.js} +10 -10
  5. package/dist/bundle/{anthropic-FZC4BS7T.js → anthropic-N54MKE4C.js} +17 -10
  6. package/dist/bundle/{app-server-SHZNMV27.js → app-server-3N5INKKI.js} +62 -52
  7. package/dist/bundle/{bot-api-LRS2KMDE.js → bot-api-V65KTEAH.js} +53 -52
  8. package/dist/bundle/{bot-history-IJ7ZZKW5.js → bot-history-TT2EAHEE.js} +18 -18
  9. package/dist/bundle/{bun-FACL53HM.js → bun-LN4J7PA7.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-B2MD7RTL.js → bun-sqlite-6PDBFBUI.js} +6 -6
  11. package/dist/bundle/{chunk-BGUYYKS3.js → chunk-37SZHAEA.js} +343 -112
  12. package/dist/bundle/{chunk-UB6J5HRW.js → chunk-3GILMKQ2.js} +3 -3
  13. package/dist/bundle/{chunk-WSLTW6MI.js → chunk-4KIOWSDL.js} +3 -3
  14. package/dist/bundle/{chunk-VVRWH5VH.js → chunk-4TCBRKWQ.js} +14 -9
  15. package/dist/bundle/{chunk-MFN5MSIL.js → chunk-6HLB73UN.js} +3 -3
  16. package/dist/bundle/{chunk-DEMGDKCX.js → chunk-6Y6SSZ34.js} +2406 -2371
  17. package/dist/bundle/{chunk-Z5HHBTS5.js → chunk-77Z3OGAT.js} +23 -4
  18. package/dist/bundle/{chunk-VUBZFMGP.js → chunk-7KCBPAQS.js} +2 -2
  19. package/dist/bundle/{chunk-ZJPXRW65.js → chunk-7OBSIDBJ.js} +4 -4
  20. package/dist/bundle/{chunk-OOWE2O5U.js → chunk-AI2J3WJT.js} +1 -1
  21. package/dist/bundle/{chunk-EABZ2CUG.js → chunk-AMPHPP4P.js} +34 -29
  22. package/dist/bundle/{chunk-STPYSD6W.js → chunk-B252D7V4.js} +3 -3
  23. package/dist/bundle/{chunk-V4722KYX.js → chunk-BLNMM3AX.js} +2 -2
  24. package/dist/bundle/{chunk-SWGGYBCW.js → chunk-CNEJQQMD.js} +40 -21
  25. package/dist/bundle/{chunk-4DCFLHLN.js → chunk-DI3RJ3MJ.js} +4 -4
  26. package/dist/bundle/{chunk-7EFJHLKW.js → chunk-DNCOELTM.js} +1 -1
  27. package/dist/bundle/chunk-DYOZ7CUV.js +71 -0
  28. package/dist/bundle/{chunk-E2Z4C6CQ.js → chunk-E4HDE5DN.js} +6 -6
  29. package/dist/bundle/chunk-EIGV2JKX.js +13 -0
  30. package/dist/bundle/{chunk-6KT5BTWL.js → chunk-FHPEUAHQ.js} +367 -184
  31. package/dist/bundle/{chunk-MCPOZNWG.js → chunk-FIVFP53N.js} +1 -1
  32. package/dist/bundle/{chunk-SNEJK4SN.js → chunk-FSP74THJ.js} +4 -4
  33. package/dist/bundle/{chunk-PAHSIORC.js → chunk-FUYCAROL.js} +6 -6
  34. package/dist/bundle/{chunk-WA7YED3Y.js → chunk-GRDVBJCR.js} +1 -1
  35. package/dist/bundle/{chunk-OE5JMZSM.js → chunk-GUPMDMFM.js} +9 -9
  36. package/dist/bundle/{chunk-6FK2Z75N.js → chunk-HHG5FR5H.js} +2 -2
  37. package/dist/bundle/{chunk-U5FILNK6.js → chunk-IN3NAFUN.js} +69 -6
  38. package/dist/bundle/{chunk-3BUQXB7B.js → chunk-INZAZMUF.js} +15 -117
  39. package/dist/bundle/{chunk-4W4EVVL4.js → chunk-IX3GUNGV.js} +4 -4
  40. package/dist/bundle/{chunk-SCGCDLI7.js → chunk-JB4BO5XZ.js} +1 -1
  41. package/dist/bundle/{chunk-XDL4L3OI.js → chunk-JC6HMPL7.js} +14229 -12041
  42. package/dist/bundle/chunk-JCNKGZQG.js +1068 -0
  43. package/dist/bundle/{chunk-PZQ2MQFX.js → chunk-JKF7LZBU.js} +6 -6
  44. package/dist/bundle/{chunk-5R5HGV2J.js → chunk-LD42OGKK.js} +4 -4
  45. package/dist/bundle/{chunk-3P7HWXDJ.js → chunk-LU2CHHPC.js} +14 -5
  46. package/dist/bundle/{chunk-RX5CJ55S.js → chunk-M4OP5ASJ.js} +1 -1
  47. package/dist/bundle/{chunk-3JISIGLP.js → chunk-MK4IKICN.js} +2 -2
  48. package/dist/bundle/{chunk-3S6KZCZ7.js → chunk-NM5GBJME.js} +57 -28
  49. package/dist/bundle/{chunk-KKMNMQMW.js → chunk-NTHALPDT.js} +2 -2
  50. package/dist/bundle/{chunk-B6G3TNN4.js → chunk-OG2ONSH6.js} +156 -43
  51. package/dist/bundle/{chunk-EOUUI5FI.js → chunk-PCC7GWOS.js} +4 -4
  52. package/dist/bundle/{chunk-ADI5R2MM.js → chunk-QVK7NF3A.js} +51 -51
  53. package/dist/bundle/{chunk-Q74XVJFT.js → chunk-QYT6HDCL.js} +1 -1
  54. package/dist/bundle/{chunk-EISV5YWD.js → chunk-RX5GU7GQ.js} +6994 -6232
  55. package/dist/bundle/{chunk-NYRAW4M5.js → chunk-RZ7KBWDQ.js} +4 -7
  56. package/dist/bundle/{chunk-V23X3W2W.js → chunk-S4SOS27T.js} +8 -8
  57. package/dist/bundle/{chunk-V4JEZFW5.js → chunk-SGHF75RQ.js} +2 -2
  58. package/dist/bundle/{chunk-T5OO7VDT.js → chunk-TAFH5K5D.js} +3900 -3425
  59. package/dist/bundle/{chunk-QLB3BFSN.js → chunk-TVQBOIWC.js} +1 -1
  60. package/dist/bundle/{chunk-QLXKWAET.js → chunk-UG66U2T7.js} +88 -21
  61. package/dist/bundle/{chunk-ZOBRYIUG.js → chunk-URFBZNLU.js} +2 -2
  62. package/dist/bundle/{chunk-ZQ3WGGKK.js → chunk-UTNK2PFE.js} +13 -13
  63. package/dist/bundle/{chunk-LVGX7VTD.js → chunk-VG3EQJYV.js} +34 -5
  64. package/dist/bundle/{chunk-FFHX7VKP.js → chunk-VHD4V64E.js} +1 -1
  65. package/dist/bundle/{chunk-BAB3ALHZ.js → chunk-VUBSGQ2O.js} +30 -26
  66. package/dist/bundle/{chunk-UBFDPLFQ.js → chunk-VZDAVZYX.js} +6 -6
  67. package/dist/bundle/{chunk-QVMAZVSN.js → chunk-WH4T44L3.js} +1 -1
  68. package/dist/bundle/{chunk-RDKPKS2P.js → chunk-X6436BYW.js} +2 -2
  69. package/dist/bundle/{chunk-SMFUKHG2.js → chunk-XS5C5TQ7.js} +24 -9
  70. package/dist/bundle/{chunk-ENEMZAIJ.js → chunk-XTNOBJRP.js} +14 -12
  71. package/dist/bundle/{chunk-HJLTWT52.js → chunk-YRZXOQOB.js} +2 -2
  72. package/dist/bundle/{chunk-5IHYZ6ED.js → chunk-ZX5OSZHH.js} +12 -12
  73. package/dist/bundle/command-contract-JP6SCP7U.js +34 -0
  74. package/dist/bundle/{command-server-entry-5LKDRLEX.js → command-server-entry-BLSFT3T6.js} +24 -22
  75. package/dist/bundle/{decode-L4DQDHXA.js → decode-NNLEQU7B.js} +5 -5
  76. package/dist/bundle/{dispatch-PQSCFHEX.js → dispatch-PRAIGIFS.js} +8 -8
  77. package/dist/bundle/{echarts-6LES2JIV.js → echarts-XAZHGDOM.js} +2 -2
  78. package/dist/bundle/{embed-T5MLKX75.js → embed-Q7ZCVSCO.js} +6 -6
  79. package/dist/bundle/{embedder-56NMRLC5.js → embedder-MVS3PVWQ.js} +9 -9
  80. package/dist/bundle/{entry-U5GV6Y46.js → entry-XN3ZZAOK.js} +9 -8
  81. package/dist/bundle/{failure-BX5HJAQE.js → failure-7Y34AUJT.js} +2 -2
  82. package/dist/bundle/{first-run-ISQ52V3I.js → first-run-G4EFTONI.js} +11 -11
  83. package/dist/bundle/first-screen-RIDJEPC3.js +32 -0
  84. package/dist/bundle/{instructions-CJEXDI7E.js → instructions-QDHYYZBU.js} +1 -1
  85. package/dist/bundle/{mcp-7KQUJNFN.js → mcp-TDKGDB4V.js} +2 -2
  86. package/dist/bundle/{node-QLWTGZW7.js → node-3Y7OVY2U.js} +2 -2
  87. package/dist/bundle/{node-sqlite-X2C3RR2Q.js → node-sqlite-R2SBROJM.js} +7 -7
  88. package/dist/bundle/{oauth-VP3KMHLX.js → oauth-WSPWMWTV.js} +7 -7
  89. package/dist/bundle/{open-GLR5EUZS.js → open-VFLF4HRQ.js} +5 -5
  90. package/dist/bundle/{openai-6CDCJ5LQ.js → openai-DFCKZZDV.js} +23 -18
  91. package/dist/bundle/{process-7FABZ3T2.js → process-VZKFAGNP.js} +1 -1
  92. package/dist/bundle/{program-KUIAHJDX.js → program-2LB3CUZX.js} +86 -67
  93. package/dist/bundle/{prompt-XPHIZMD2.js → prompt-RVLA2PEY.js} +5 -5
  94. package/dist/bundle/{proxy-transport-IIB7ZXIS.js → proxy-transport-DP7SIMIC.js} +5 -5
  95. package/dist/bundle/{recognize-FVFYI3XX.js → recognize-LEKNA3G5.js} +4 -4
  96. package/dist/bundle/{remote-3AMCG2P4.js → remote-WG5V2I2G.js} +9 -7
  97. package/dist/bundle/{rerank-XV4E25ML.js → rerank-ONAEQVJ6.js} +7 -7
  98. package/dist/bundle/{serve-NVSZA4UN.js → serve-BL2X6FZG.js} +14 -14
  99. package/dist/bundle/{server-MBMPHRJE.js → server-3LSC4BMK.js} +36 -35
  100. package/dist/bundle/server-7EYEEGJT.js +62 -0
  101. package/dist/bundle/sqlite-runtime-RQXPRH6C.js +19 -0
  102. package/dist/bundle/{state-JBMB2QUR.js → state-O7LRA526.js} +6 -6
  103. package/dist/bundle/store-7C4UAND2.js +276 -0
  104. package/dist/bundle/{store-T4SCYTY2.js → store-HMJUPK45.js} +15 -13
  105. package/dist/bundle/store-maintenance-command-I7PSA3SZ.js +52 -0
  106. package/dist/bundle/tg.js +13 -13
  107. package/dist/commands/account-removal.d.ts.map +1 -1
  108. package/dist/commands/account-removal.js +5 -3
  109. package/dist/commands/account-removal.js.map +1 -1
  110. package/dist/commands/session.d.ts.map +1 -1
  111. package/dist/commands/session.js +21 -3
  112. package/dist/commands/session.js.map +1 -1
  113. package/dist/paths.d.ts +6 -0
  114. package/dist/paths.d.ts.map +1 -1
  115. package/dist/paths.js +23 -2
  116. package/dist/paths.js.map +1 -1
  117. package/dist/program.d.ts +4 -1
  118. package/dist/program.d.ts.map +1 -1
  119. package/dist/program.js +5 -2
  120. package/dist/program.js.map +1 -1
  121. package/dist/version.d.ts +1 -1
  122. package/dist/version.js +1 -1
  123. package/package.json +4 -4
  124. package/skills/tg-cli/SKILL.md +6 -2
  125. package/dist/bundle/chunk-I7K4OR5Q.js +0 -265
  126. package/dist/bundle/chunk-PZJXQMSZ.js +0 -27
  127. package/dist/bundle/command-contract-HWSWHMO4.js +0 -33
  128. package/dist/bundle/first-screen-7L4AMZDO.js +0 -31
  129. package/dist/bundle/server-MHVGYRQZ.js +0 -61
  130. package/dist/bundle/store-maintenance-command-F7WQMTMP.js +0 -49
  131. /package/dist/bundle/{chunk-YVNHQFLC.js → chunk-XWBPP2HX.js} +0 -0
@@ -1,11 +1,5 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
- import {
4
- note
5
- } from "./chunk-UB6J5HRW.js";
6
- import {
7
- carries
8
- } from "./chunk-QLB3BFSN.js";
9
3
  import {
10
4
  currentCaller,
11
5
  endpointTemplate,
@@ -15,18 +9,33 @@ import {
15
9
  providerErrorKey,
16
10
  renderEvent,
17
11
  runContextOf
18
- } from "./chunk-VVRWH5VH.js";
12
+ } from "./chunk-4TCBRKWQ.js";
19
13
  import {
20
14
  permissionCeiling
21
- } from "./chunk-STPYSD6W.js";
15
+ } from "./chunk-B252D7V4.js";
22
16
  import {
17
+ ancestorValue,
23
18
  envName,
24
19
  readOnlyLockOf,
25
20
  readOnlyRefusal
26
- } from "./chunk-PZJXQMSZ.js";
21
+ } from "./chunk-DYOZ7CUV.js";
22
+ import {
23
+ carries
24
+ } from "./chunk-TVQBOIWC.js";
25
+ import {
26
+ endpoint
27
+ } from "./chunk-VG3EQJYV.js";
28
+ import {
29
+ note
30
+ } from "./chunk-3GILMKQ2.js";
31
+ import {
32
+ filesPresent,
33
+ sharedModelsDirectory
34
+ } from "./chunk-PCC7GWOS.js";
27
35
  import {
28
36
  BUSINESS_KINDS,
29
37
  CATEGORIES,
38
+ CRM_ACTIVITY_KINDS,
30
39
  DEAL_KINDS,
31
40
  DEAL_ROLES,
32
41
  DEAL_STATUSES,
@@ -100,23 +109,19 @@ import {
100
109
  typedCommand,
101
110
  untrusted,
102
111
  useAsProcessRun
103
- } from "./chunk-DEMGDKCX.js";
112
+ } from "./chunk-6Y6SSZ34.js";
104
113
  import {
105
114
  isCliFailure,
106
115
  storeDamaged
107
- } from "./chunk-Z5HHBTS5.js";
116
+ } from "./chunk-77Z3OGAT.js";
108
117
  import {
109
118
  readSharedSection,
110
119
  sharedConfigPath,
111
120
  writeSharedSection
112
- } from "./chunk-PAHSIORC.js";
113
- import {
114
- filesPresent,
115
- sharedModelsDirectory
116
- } from "./chunk-EOUUI5FI.js";
121
+ } from "./chunk-FUYCAROL.js";
117
122
  import {
118
123
  storePath
119
- } from "./chunk-KKMNMQMW.js";
124
+ } from "./chunk-NTHALPDT.js";
120
125
  import {
121
126
  configFilePath,
122
127
  createRecordLog,
@@ -128,7 +133,7 @@ import {
128
133
  resolvePaths,
129
134
  saveConfigFile,
130
135
  writeSecurely
131
- } from "./chunk-3S6KZCZ7.js";
136
+ } from "./chunk-NM5GBJME.js";
132
137
  import {
133
138
  COMPACT_FLAG,
134
139
  MAX_NEXT_STEPS,
@@ -182,18 +187,18 @@ import {
182
187
  url,
183
188
  variant,
184
189
  writes
185
- } from "./chunk-SMFUKHG2.js";
190
+ } from "./chunk-XS5C5TQ7.js";
186
191
  import {
187
192
  CliError,
188
193
  isCliError,
189
194
  singleLine,
190
195
  visibleControls
191
- } from "./chunk-VUBZFMGP.js";
196
+ } from "./chunk-7KCBPAQS.js";
192
197
  import {
193
198
  __name
194
199
  } from "./chunk-ZVVMGPBJ.js";
195
200
 
196
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
201
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
197
202
  var labels = /* @__PURE__ */ new WeakMap();
198
203
  var annotate = /* @__PURE__ */ __name((command, meta) => {
199
204
  labels.set(command, { ...labels.get(command), ...meta });
@@ -3694,7 +3699,7 @@ __name(useColor, "useColor");
3694
3699
  // node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
3695
3700
  var program = new Command();
3696
3701
 
3697
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
3702
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
3698
3703
  import { isDeepStrictEqual } from "node:util";
3699
3704
  var protectedCommands = /* @__PURE__ */ new WeakMap();
3700
3705
  var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
@@ -3896,7 +3901,7 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build,
3896
3901
  return command;
3897
3902
  }, "customizeSharedCommand");
3898
3903
 
3899
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
3904
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
3900
3905
  var argumentInfoSchema = object({
3901
3906
  name: string(),
3902
3907
  required: boolean(),
@@ -3934,7 +3939,7 @@ var commandInfoSchema = object({
3934
3939
  summary: optional(string()),
3935
3940
  description: string(),
3936
3941
  usage: string(),
3937
- origin: picklist(["handwritten", "generated"]),
3942
+ origin: picklist(["handwritten", "generated", "cli-core"]),
3938
3943
  api_operation: optional(string()),
3939
3944
  effects: optional(effectsSchema),
3940
3945
  state: optional(picklist(["beta", "deprecated"])),
@@ -3970,7 +3975,7 @@ var commandsDocumentSchema = strictObject({
3970
3975
  exit_codes: record(string(), pipe(number(), integer()))
3971
3976
  });
3972
3977
 
3973
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
3978
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
3974
3979
  var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3975
3980
  let command = root;
3976
3981
  const path2 = [];
@@ -3988,7 +3993,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3988
3993
  }
3989
3994
  }, "refuseJoinedPath");
3990
3995
 
3991
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/sends/permissions.js
3996
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/sends/permissions.js
3992
3997
  var LEVELS = ["deny", "readonly", "ask", "allow"];
3993
3998
  var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
3994
3999
  var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
@@ -4014,6 +4019,7 @@ var DEFAULT_PERMISSIONS = {
4014
4019
  "store.clear": "ask",
4015
4020
  "store.decrypt": "ask",
4016
4021
  "store.copies.delete": "ask",
4022
+ "store.recover.run": "ask",
4017
4023
  "server.start": "ask",
4018
4024
  "server.stop": "ask",
4019
4025
  "server.restart": "ask",
@@ -4303,6 +4309,8 @@ var readKeysForCommand = /* @__PURE__ */ __name((path2) => {
4303
4309
  return [key, "messages"];
4304
4310
  if (path2[0] === "store" && ["reset", "clear", "decrypt"].includes(path2[1] ?? ""))
4305
4311
  return [key, "messages"];
4312
+ if (key === "store.recover.run")
4313
+ return [key, "messages"];
4306
4314
  if (path2[0] === "search") {
4307
4315
  if (path2[1] === "notes")
4308
4316
  return [key];
@@ -4389,7 +4397,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
4389
4397
  }
4390
4398
  }, "assertRetentionEvidenceRead");
4391
4399
 
4392
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/account.js
4400
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/account.js
4393
4401
  var account = strictObject({
4394
4402
  provider: text,
4395
4403
  id,
@@ -4399,7 +4407,7 @@ var account = strictObject({
4399
4407
  scope: optional(picklist(["personal", "work"]))
4400
4408
  });
4401
4409
 
4402
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/account-session.js
4410
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/account-session.js
4403
4411
  var accountSession = strictObject({
4404
4412
  current: boolean(),
4405
4413
  client: nullable(text),
@@ -4409,7 +4417,7 @@ var accountSession = strictObject({
4409
4417
  created_at: optional(nullable(time))
4410
4418
  });
4411
4419
 
4412
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/account-change.js
4420
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/account-change.js
4413
4421
  var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
4414
4422
  var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
4415
4423
  var audience = picklist(["everyone", "contacts", "nobody"]);
@@ -4438,7 +4446,7 @@ var accountRemoval = strictObject({
4438
4446
  kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
4439
4447
  });
4440
4448
 
4441
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
4449
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
4442
4450
  var accountProfile = strictObject({
4443
4451
  profile: id,
4444
4452
  current: boolean(),
@@ -4450,7 +4458,7 @@ var accountProfile = strictObject({
4450
4458
  bot: optional(literal(true))
4451
4459
  });
4452
4460
 
4453
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
4461
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
4454
4462
  var milliseconds = pipe(number(), minValue(0));
4455
4463
  var counterReading = strictObject({
4456
4464
  counter: picklist(["views", "reactions", "comments"]),
@@ -4462,7 +4470,7 @@ var counterReading = strictObject({
4462
4470
  });
4463
4471
  var selection = record(string(), unknown());
4464
4472
 
4465
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
4473
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
4466
4474
  var adminRow = strictObject({
4467
4475
  ref: reference,
4468
4476
  /** What `stats * evidence` takes: a person id, a stay or a message locator. */
@@ -4515,7 +4523,7 @@ var adminReport = strictObject({
4515
4523
  rows: array(adminRow)
4516
4524
  });
4517
4525
 
4518
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/task.js
4526
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/task.js
4519
4527
  var closeSuggestion = strictObject({
4520
4528
  as: picklist(["done", "dismissed"]),
4521
4529
  /** The agent's name. */
@@ -4577,7 +4585,7 @@ var task = strictObject({
4577
4585
  updated_at: optional(time)
4578
4586
  });
4579
4587
 
4580
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/agenda.js
4588
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/agenda.js
4581
4589
  var agendaChat = strictObject({
4582
4590
  chat: reference,
4583
4591
  title: nullable(text),
@@ -4647,11 +4655,11 @@ var agenda = strictObject({
4647
4655
  unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
4648
4656
  });
4649
4657
 
4650
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
4658
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
4651
4659
  var analysisConsent = strictObject({ chat: id, provider: text, at: time });
4652
4660
  var analysisConsentRevocation = strictObject({ revoked: boolean() });
4653
4661
 
4654
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/attachment.js
4662
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/attachment.js
4655
4663
  var attachment = strictObject({
4656
4664
  /** The message it came with, as a locator; absent inside that message. */
4657
4665
  message: optional(reference),
@@ -4687,9 +4695,16 @@ var attachment = strictObject({
4687
4695
  url: optional(text)
4688
4696
  }))))
4689
4697
  });
4690
- var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
4698
+ var hitFile = strictObject({
4699
+ position: count,
4700
+ kind: text,
4701
+ name: optional(text),
4702
+ size: optional(count),
4703
+ /** The saved copy on this computer, once `messages download` fetched it; absent until then. */
4704
+ local_path: optional(text)
4705
+ });
4691
4706
 
4692
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
4707
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
4693
4708
  var actionableError = objectWithRest({
4694
4709
  code: text,
4695
4710
  message: text,
@@ -4706,7 +4721,7 @@ var batchResult = strictObject({
4706
4721
  max_error_percent: count
4707
4722
  });
4708
4723
 
4709
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
4724
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
4710
4725
  var extractionItem = strictObject({
4711
4726
  ref: reference,
4712
4727
  attachment: count,
@@ -4739,7 +4754,7 @@ var extractionReport = strictObject({
4739
4754
  cursor: optional(text)
4740
4755
  });
4741
4756
 
4742
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
4757
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
4743
4758
  var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
4744
4759
  var attachmentBytes = strictObject({
4745
4760
  ref: reference,
@@ -4764,10 +4779,13 @@ var attachmentTextChange = strictObject({
4764
4779
  attachment: count,
4765
4780
  origin: literal("agent"),
4766
4781
  chars: count,
4767
- replaced: nullable(picklist(["extracted", "agent"]))
4782
+ replaced: nullable(picklist(["extracted", "agent"])),
4783
+ /** `images read` only: who read the picture, `agent:claude` or `agent:codex/<model>`, and what it read. */
4784
+ extractor: optional(text),
4785
+ text: optional(text)
4768
4786
  });
4769
4787
 
4770
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
4788
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
4771
4789
  var WEIGHTS = {
4772
4790
  bot: 3,
4773
4791
  scam: 3,
@@ -4792,7 +4810,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
4792
4810
  var DIGITS = /\d{5,}/;
4793
4811
  var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
4794
4812
 
4795
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
4813
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
4796
4814
  var linkedIdentity = strictObject({
4797
4815
  provider: text,
4798
4816
  id,
@@ -4800,6 +4818,9 @@ var linkedIdentity = strictObject({
4800
4818
  username: nullable(text),
4801
4819
  phone: optional(nullable(text)),
4802
4820
  email: optional(nullable(text)),
4821
+ /** Every phone and address the source gave, `phone` and `email` among them. */
4822
+ phones: optional(array(text)),
4823
+ emails: optional(array(text)),
4803
4824
  is_bot: nullable(boolean()),
4804
4825
  accounts: array(id),
4805
4826
  seen_in: array(strictObject({ account: id, scope: picklist(["personal", "work"]) })),
@@ -4810,6 +4831,8 @@ var linkedIdentity = strictObject({
4810
4831
  var linkedPerson = strictObject({
4811
4832
  uid: id,
4812
4833
  name: nullable(text),
4834
+ /** The name `people list` shows: the person's own, else an account's, a username, phone or address. */
4835
+ display_name: optional(nullable(text)),
4813
4836
  identities: array(linkedIdentity),
4814
4837
  /** An agent's link: the `identity_link` proposal the owner decides; the person is still as it was. */
4815
4838
  proposal: optional(text)
@@ -4842,7 +4865,7 @@ var contactCheck = strictObject({
4842
4865
  checked_at: time
4843
4866
  });
4844
4867
 
4845
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/member.js
4868
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/member.js
4846
4869
  var member = strictObject({
4847
4870
  id,
4848
4871
  name: nullable(text),
@@ -4865,7 +4888,7 @@ var member = strictObject({
4865
4888
  check: optional(record(string(), unknown()))
4866
4889
  });
4867
4890
 
4868
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/chat.js
4891
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/chat.js
4869
4892
  var setting = optional(nullable(boolean()));
4870
4893
  var chat = strictObject({
4871
4894
  ref: reference,
@@ -4906,7 +4929,7 @@ var chat = strictObject({
4906
4929
  members: optional(array(member))
4907
4930
  });
4908
4931
 
4909
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/message.js
4932
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/message.js
4910
4933
  var quoted = strictObject({
4911
4934
  id,
4912
4935
  sender_id: nullable(id),
@@ -5025,7 +5048,20 @@ var message = strictObject({
5025
5048
  provider_metadata: providerMetadata
5026
5049
  });
5027
5050
 
5028
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
5051
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/recorded-meeting.js
5052
+ var recordedMeeting = strictObject({
5053
+ ref: reference,
5054
+ meeting_id: count,
5055
+ account: strictObject({ provider: text, account: text }),
5056
+ title: nullable(text),
5057
+ started_at: nullable(time),
5058
+ duration_ms: nullable(count),
5059
+ has_transcript: boolean(),
5060
+ event: nullable(reference),
5061
+ people: array(reference)
5062
+ });
5063
+
5064
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
5029
5065
  var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
5030
5066
  var contextMessage = strictObject({
5031
5067
  locator: reference,
@@ -5071,6 +5107,8 @@ var context = strictObject({
5071
5107
  mentions: array(contextMessage),
5072
5108
  /** Calendar events they are invited to, one occurrence per series. */
5073
5109
  events: optional(strictObject({ upcoming: array(contextEvent), recent: array(contextEvent) })),
5110
+ /** Recorded meetings and calls they took part in, newest first. */
5111
+ meetings: optional(array(recordedMeeting)),
5074
5112
  limits: strictObject({ messages: count, bytes: count }),
5075
5113
  complete: boolean(),
5076
5114
  not_read: array(strictObject({
@@ -5229,12 +5267,24 @@ var contactPreparation = strictObject({
5229
5267
  })
5230
5268
  });
5231
5269
 
5232
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/deal.js
5270
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/deal.js
5233
5271
  var nullableText = nullable(text);
5234
5272
  var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
5235
5273
  var outcome = picklist(["open", "won", "lost"]);
5236
5274
  var crmAccount = nullable(strictObject({ provider: text, account: text }));
5237
5275
  var day = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
5276
+ var activity = strictObject({
5277
+ external_id: text,
5278
+ kind: picklist(CRM_ACTIVITY_KINDS),
5279
+ subject: text,
5280
+ body: nullableText,
5281
+ due_at: nullable(time),
5282
+ done: boolean(),
5283
+ /** The identity `<account>/user/<id>` responsible for it. */
5284
+ assignee: nullableText,
5285
+ created_at: time,
5286
+ updated_at: time
5287
+ });
5238
5288
  var deal = strictObject({
5239
5289
  id,
5240
5290
  ref: reference,
@@ -5249,6 +5299,9 @@ var deal = strictObject({
5249
5299
  base_stage: nullable(strictObject({ ref: reference, name: text })),
5250
5300
  status: outcome,
5251
5301
  organization: nullable(party),
5302
+ /** A CRM copy's own person and company as the CRM keeps them on it, such as a lead's with nobody linked yet. */
5303
+ contact_name: nullableText,
5304
+ company_name: nullableText,
5252
5305
  currency: nullableText,
5253
5306
  amount: nullableText,
5254
5307
  close_date: day,
@@ -5283,6 +5336,10 @@ var deal = strictObject({
5283
5336
  project_name: nullableText,
5284
5337
  created_at: time,
5285
5338
  updated_at: time,
5339
+ /** `show` of a CRM copy whose `activities` setting is on: its activities and tasks, open ones first. */
5340
+ activities: optional(array(activity)),
5341
+ /** `show` of a CRM copy: the newest recorded meetings and calls of its people, in its account's scope. */
5342
+ meetings: optional(array(recordedMeeting)),
5286
5343
  untrusted
5287
5344
  });
5288
5345
  var lead = deal;
@@ -5321,7 +5378,7 @@ var stage = strictObject({
5321
5378
  untrusted
5322
5379
  });
5323
5380
 
5324
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/business-context.js
5381
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/business-context.js
5325
5382
  var nullableText2 = nullable(text);
5326
5383
  var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
5327
5384
  var standing = picklist(STANDINGS);
@@ -5495,7 +5552,7 @@ var dealBrief = strictObject({
5495
5552
  not_read: coverage2.entries.not_read
5496
5553
  });
5497
5554
 
5498
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/chart.js
5555
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/chart.js
5499
5556
  var chart = strictObject({
5500
5557
  version: literal(1),
5501
5558
  kind: picklist(["bar", "line", "grouped-bar"]),
@@ -5510,7 +5567,7 @@ var chart = strictObject({
5510
5567
  file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
5511
5568
  });
5512
5569
 
5513
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/folder.js
5570
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/folder.js
5514
5571
  var named = strictObject({
5515
5572
  id,
5516
5573
  title: nullable(text),
@@ -5533,7 +5590,7 @@ var folder = strictObject({
5533
5590
  excluded_chats: optional(array(named))
5534
5591
  });
5535
5592
 
5536
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
5593
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
5537
5594
  var inviteLink = strictObject({
5538
5595
  link: text,
5539
5596
  /** Who joins by it asks first, and an admin lets them in. */
@@ -5549,7 +5606,7 @@ var inviteLink = strictObject({
5549
5606
  joined_count: optional(count)
5550
5607
  });
5551
5608
 
5552
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
5609
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
5553
5610
  var operated = { operation_id: id, chat_id: id };
5554
5611
  var group = strictObject({
5555
5612
  ...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
@@ -5629,7 +5686,7 @@ var chatFolderOrder = strictObject({
5629
5686
  folders: array(strictObject({ id, title: text }))
5630
5687
  });
5631
5688
 
5632
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
5689
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
5633
5690
  var operated2 = { operation_id: id, chat_id: id };
5634
5691
  var chatRemoval = strictObject(operated2);
5635
5692
  var chatMuting = strictObject({
@@ -5640,7 +5697,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
5640
5697
  var chatPin = strictObject({ ...operated2, pinned: boolean() });
5641
5698
  var chatUnread = strictObject({ ...operated2, unread: literal(true) });
5642
5699
 
5643
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
5700
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
5644
5701
  var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
5645
5702
  var chatEvent = strictObject({
5646
5703
  chat_id: id,
@@ -5657,7 +5714,7 @@ var chatEvent = strictObject({
5657
5714
  before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
5658
5715
  });
5659
5716
 
5660
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
5717
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
5661
5718
  var chatMetadata = strictObject({
5662
5719
  chat_id: id,
5663
5720
  title: nullable(text),
@@ -5672,7 +5729,7 @@ var chatMetadataRefresh = strictObject({
5672
5729
  has_more: boolean()
5673
5730
  });
5674
5731
 
5675
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
5732
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
5676
5733
  var action = picklist(["report", "delete", "remove"]);
5677
5734
  var level = picklist(["deny", "readonly", "ask", "allow"]);
5678
5735
  var chatRules = strictObject({
@@ -5709,7 +5766,7 @@ var chatModeration = strictObject({
5709
5766
  }))
5710
5767
  });
5711
5768
 
5712
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
5769
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
5713
5770
  var optionalCount = optional(count);
5714
5771
  var minutes = nullable(number());
5715
5772
  var chatStats = strictObject({
@@ -5785,7 +5842,7 @@ var taskStats = strictObject({
5785
5842
  }))
5786
5843
  });
5787
5844
 
5788
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
5845
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
5789
5846
  var memberCount = strictObject({
5790
5847
  day: pipe(text, isoDate()),
5791
5848
  participants: nullable(count),
@@ -5808,7 +5865,7 @@ var chatTracking = strictObject({
5808
5865
  tracked: boolean()
5809
5866
  });
5810
5867
 
5811
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
5868
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
5812
5869
  var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
5813
5870
  var contactSync = strictObject({ added: count, changed: count, known: count });
5814
5871
  var profileFields = {
@@ -5846,7 +5903,7 @@ var profileFields = {
5846
5903
  }))
5847
5904
  };
5848
5905
 
5849
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/contact.js
5906
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/contact.js
5850
5907
  var contact = strictObject({
5851
5908
  ref: reference,
5852
5909
  id,
@@ -5877,7 +5934,7 @@ var contact = strictObject({
5877
5934
  notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
5878
5935
  });
5879
5936
 
5880
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
5937
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
5881
5938
  var contactNote = strictObject({
5882
5939
  id,
5883
5940
  /** The contact, as a `contact:` reference. */
@@ -5889,13 +5946,13 @@ var contactNote = strictObject({
5889
5946
  updated_at: time
5890
5947
  });
5891
5948
 
5892
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
5949
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
5893
5950
  var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
5894
5951
  var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
5895
5952
  var contactStateChange = strictObject({ operation_id: id, person_id: id });
5896
5953
  var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
5897
5954
 
5898
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/conversation.js
5955
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/conversation.js
5899
5956
  var conversation = strictObject({
5900
5957
  id,
5901
5958
  chat: reference,
@@ -5910,7 +5967,7 @@ var conversation = strictObject({
5910
5967
  rules_version: count
5911
5968
  });
5912
5969
 
5913
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
5970
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
5914
5971
  var conversationBuild = strictObject({
5915
5972
  chat: id,
5916
5973
  messages: count,
@@ -5935,7 +5992,7 @@ var catchUpPreparation = strictObject({
5935
5992
  prepared: optional(conversationPreparation)
5936
5993
  });
5937
5994
 
5938
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
5995
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
5939
5996
  var conversationDetails = union([
5940
5997
  strictObject({ ...conversation.entries, messages: array(message) }),
5941
5998
  message
@@ -6025,7 +6082,7 @@ var conversationHit = strictObject({
6025
6082
  stale: boolean()
6026
6083
  });
6027
6084
 
6028
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/counters.js
6085
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/counters.js
6029
6086
  var counters = strictObject({
6030
6087
  cutoff: time,
6031
6088
  max_age_ms: milliseconds,
@@ -6055,7 +6112,7 @@ var counterRefresh = strictObject({
6055
6112
  complete: optional(boolean())
6056
6113
  });
6057
6114
 
6058
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/document.js
6115
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/document.js
6059
6116
  var document = strictObject({
6060
6117
  ref: reference,
6061
6118
  id,
@@ -6070,7 +6127,7 @@ var document = strictObject({
6070
6127
  owners: optional(array(text))
6071
6128
  });
6072
6129
 
6073
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/document-link.js
6130
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/document-link.js
6074
6131
  var documentLink = strictObject({
6075
6132
  ref: reference,
6076
6133
  url: text,
@@ -6081,7 +6138,7 @@ var documentLink = strictObject({
6081
6138
  sender: strictObject({ id: nullable(id), name: nullable(text) })
6082
6139
  });
6083
6140
 
6084
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/evidence.js
6141
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/evidence.js
6085
6142
  var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
6086
6143
  var contribution = strictObject({
6087
6144
  message: evidenceMessage,
@@ -6111,7 +6168,7 @@ var retentionStay = strictObject({
6111
6168
  });
6112
6169
  var evidence = union([contribution, retentionStay]);
6113
6170
 
6114
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/fact.js
6171
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/fact.js
6115
6172
  var fact = strictObject({
6116
6173
  ref: reference,
6117
6174
  id,
@@ -6142,7 +6199,7 @@ var fact = strictObject({
6142
6199
  updated_at: time
6143
6200
  });
6144
6201
 
6145
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/hit.js
6202
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/hit.js
6146
6203
  var hit = strictObject({
6147
6204
  kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead", ...BUSINESS_KINDS]),
6148
6205
  ref: reference,
@@ -6188,7 +6245,7 @@ var hit = strictObject({
6188
6245
  untrusted
6189
6246
  });
6190
6247
 
6191
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/identity.js
6248
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/identity.js
6192
6249
  var identity = strictObject({
6193
6250
  ref: reference,
6194
6251
  provider: text,
@@ -6204,7 +6261,7 @@ var identity = strictObject({
6204
6261
  person: optional(nullable(reference))
6205
6262
  });
6206
6263
 
6207
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
6264
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
6208
6265
  var imageEmbedding = strictObject({
6209
6266
  model: text,
6210
6267
  embedded: count,
@@ -6213,13 +6270,13 @@ var imageEmbedding = strictObject({
6213
6270
  more: boolean()
6214
6271
  });
6215
6272
 
6216
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
6273
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
6217
6274
  import { spawn } from "node:child_process";
6218
6275
  import { randomBytes } from "node:crypto";
6219
6276
  import { closeSync, existsSync, mkdirSync, openSync, readdirSync, readFileSync, realpathSync, rmSync } from "node:fs";
6220
6277
  import { dirname, join } from "node:path";
6221
6278
 
6222
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
6279
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
6223
6280
  var progressOf = /* @__PURE__ */ __name((input) => {
6224
6281
  const total = input.total ?? null;
6225
6282
  const updated = input.updatedAt ?? null;
@@ -6235,7 +6292,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
6235
6292
  };
6236
6293
  }, "progressOf");
6237
6294
 
6238
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/runs/record-log.js
6295
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/runs/record-log.js
6239
6296
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
6240
6297
  const run = currentRun();
6241
6298
  const trace = traceId ?? run.traceId;
@@ -6249,7 +6306,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
6249
6306
  }));
6250
6307
  }, "recordLogFor");
6251
6308
 
6252
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
6309
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
6253
6310
  var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
6254
6311
  var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
6255
6312
  const out = openSync(log, "a", 384);
@@ -6404,7 +6461,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
6404
6461
  return { job: id6, pid, chat: input.chat, log };
6405
6462
  }, "startArchiveJob");
6406
6463
 
6407
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/job.js
6464
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/job.js
6408
6465
  var problem = strictObject({ code: text, message: text });
6409
6466
  var job = strictObject({
6410
6467
  id,
@@ -6427,7 +6484,7 @@ var job = strictObject({
6427
6484
  error: optional(problem)
6428
6485
  });
6429
6486
 
6430
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/join-request.js
6487
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/join-request.js
6431
6488
  var joinRequest = strictObject({
6432
6489
  person_id: id,
6433
6490
  name: nullable(text),
@@ -6438,7 +6495,7 @@ var joinRequest = strictObject({
6438
6495
  about: optional(text)
6439
6496
  });
6440
6497
 
6441
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/list-results.js
6498
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/list-results.js
6442
6499
  var botProfile = strictObject({
6443
6500
  name: text,
6444
6501
  token: text,
@@ -6502,12 +6559,39 @@ var scheduledJob = strictObject({
6502
6559
  error: optional(text)
6503
6560
  })))
6504
6561
  })),
6505
- /** Agent schedules: what today's runs cost, in US dollars. */
6506
- spent_today_usd: optional(number()),
6507
- /** Agent schedules: the cap on one run (`--max-cost`), null when none. */
6562
+ /** Agent schedules: the agent it starts, as `schedule agents list` names it; null for a program no agent here runs. */
6563
+ harness: optional(nullable(text)),
6564
+ /** Agent schedules: whether the agent reports what a run cost; when it does not, the cost fields are null. */
6565
+ reports_cost: optional(boolean()),
6566
+ /** Agent schedules: what today's runs cost, in US dollars; null when the agent reports no cost (unknown, not 0). */
6567
+ spent_today_usd: optional(nullable(number())),
6568
+ /** Agent schedules: the cap on one run (`--max-cost`), null when none or when the agent reports no cost. */
6508
6569
  max_cost_usd: optional(nullable(number())),
6509
- /** Agent schedules: the daily cap in force, the schedule's `--max-cost-per-day` or the config's; 0 for none. */
6510
- max_cost_per_day_usd: optional(number())
6570
+ /**
6571
+ * Agent schedules: the daily cap in force, the schedule's `--max-cost-per-day` or the config's; 0 for none; null when
6572
+ * the agent reports no cost, so no cap can stop it.
6573
+ */
6574
+ max_cost_per_day_usd: optional(nullable(number()))
6575
+ });
6576
+ var scheduleHarness = strictObject({
6577
+ id: text,
6578
+ name: text,
6579
+ /** The program names it is found by on PATH, the first found wins. */
6580
+ programs: array(text),
6581
+ /** It reports what a run costs, so `--max-cost` and `--max-cost-per-day` hold. */
6582
+ reports_cost: boolean(),
6583
+ /** The agent's own limits hold a one-shot run to the CLIs' commands (claude, gemini, opencode). */
6584
+ restricted: boolean(),
6585
+ /** Why an agent that is not restricted is not, and what it may still do: a client shows it before the owner picks. */
6586
+ restricted_reason: nullable(text),
6587
+ /**
6588
+ * Not restricted, yet a schedule starts it once the owner accepts that with `--allow-dangerous` (codex, whose sandbox
6589
+ * blocks the network and most writes); refused without it (`agent.unrestricted`). False for the rest.
6590
+ */
6591
+ allowed_with_ack: boolean(),
6592
+ installed: boolean(),
6593
+ /** Where its program is, or null when it is not on PATH. */
6594
+ path: nullable(text)
6511
6595
  });
6512
6596
  var botTemplate = strictObject({
6513
6597
  name: nullable(text),
@@ -6535,7 +6619,7 @@ var stickerInventory = strictObject({
6535
6619
  url: optional(nullable(text))
6536
6620
  });
6537
6621
 
6538
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
6622
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
6539
6623
  var pollVote = strictObject({
6540
6624
  person_id: id,
6541
6625
  name: nullable(text),
@@ -6545,7 +6629,7 @@ var pollVote = strictObject({
6545
6629
  voted_at: time
6546
6630
  });
6547
6631
 
6548
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/listener.js
6632
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/listener.js
6549
6633
  var reactions = unwrap(unwrap(message.entries.reactions));
6550
6634
  var observation = strictObject({
6551
6635
  value: pipe(number(), minValue(0)),
@@ -6587,7 +6671,7 @@ var serveSummary = strictObject({
6587
6671
  tasks: optional(strictObject({ added: count, closed: count, review: count }))
6588
6672
  });
6589
6673
 
6590
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
6674
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
6591
6675
  var mailCounts = strictObject({
6592
6676
  by: picklist(["day", "week", "sender"]),
6593
6677
  received: count,
@@ -6602,7 +6686,7 @@ var mailCounts = strictObject({
6602
6686
  }))
6603
6687
  });
6604
6688
 
6605
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
6689
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
6606
6690
  var evidence2 = strictObject({ reference, fingerprint: text });
6607
6691
  var base = { id, evidence: array(evidence2) };
6608
6692
  var finding = variant("kind", [
@@ -6746,7 +6830,7 @@ var mailFindings = strictObject({
6746
6830
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
6747
6831
  });
6748
6832
 
6749
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
6833
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
6750
6834
  var mediaArchive = strictObject({
6751
6835
  directory: text,
6752
6836
  chats: count,
@@ -6778,7 +6862,7 @@ var mediaArchiveTimer = union([
6778
6862
  strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
6779
6863
  ]);
6780
6864
 
6781
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
6865
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
6782
6866
  var preparationId = pipe(string(), minLength(1));
6783
6867
  var preparationCount = pipe(number(), integer(), minValue(0));
6784
6868
  var preparationTime = nullable(isoTime);
@@ -6870,7 +6954,7 @@ var preparationMeeting = strictObject({
6870
6954
  updated_at: isoTime
6871
6955
  });
6872
6956
 
6873
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
6957
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
6874
6958
  var meetingEvidence = preparationEvidence;
6875
6959
  var meetingPersonContext = strictObject({
6876
6960
  person: strictObject({ uid: string(), name: nullable(string()) }),
@@ -6892,7 +6976,7 @@ var meetingPersonContext = strictObject({
6892
6976
  })
6893
6977
  });
6894
6978
 
6895
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
6979
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
6896
6980
  var evidence3 = strictObject({ reference, fingerprint: text });
6897
6981
  var base2 = { id, project: reference, evidence: array(evidence3) };
6898
6982
  var finding2 = variant("kind", [
@@ -6930,7 +7014,7 @@ var meetingFindings = strictObject({
6930
7014
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
6931
7015
  });
6932
7016
 
6933
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
7017
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
6934
7018
  var communicationCoverage = strictObject({
6935
7019
  read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
6936
7020
  query: string(),
@@ -6975,7 +7059,7 @@ var preparationCommunications = strictObject({
6975
7059
  }))
6976
7060
  });
6977
7061
 
6978
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
7062
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
6979
7063
  var meetingPreparation = strictObject({
6980
7064
  communications: optional(preparationCommunications),
6981
7065
  schema_version: literal(1),
@@ -7088,7 +7172,7 @@ var meetingPreparation = strictObject({
7088
7172
  })
7089
7173
  });
7090
7174
 
7091
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
7175
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
7092
7176
  var count3 = pipe(number(), integer(), minValue(0));
7093
7177
  var id3 = pipe(string(), minLength(1));
7094
7178
  var text3 = string();
@@ -7152,7 +7236,7 @@ var meetingProjectCandidates = strictObject({
7152
7236
  })
7153
7237
  });
7154
7238
 
7155
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
7239
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
7156
7240
  var count4 = pipe(number(), integer(), minValue(0));
7157
7241
  var id4 = pipe(string(), minLength(1), maxLength(1e3));
7158
7242
  var meetingSeriesInventory = strictObject({
@@ -7182,7 +7266,7 @@ var meetingSeriesInventory = strictObject({
7182
7266
  })
7183
7267
  });
7184
7268
 
7185
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
7269
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
7186
7270
  var text4 = string();
7187
7271
  var id5 = pipe(number(), integer(), minValue(1));
7188
7272
  var revision = picklist(["current", "superseded"]);
@@ -7199,7 +7283,7 @@ var meetingTaskProposal = strictObject({
7199
7283
  persistence: literal("proposal-only")
7200
7284
  });
7201
7285
 
7202
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/memory.js
7286
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/memory.js
7203
7287
  var memory = strictObject({
7204
7288
  ref: reference,
7205
7289
  id,
@@ -7227,7 +7311,7 @@ var memory = strictObject({
7227
7311
  updated_at: time
7228
7312
  });
7229
7313
 
7230
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/mention.js
7314
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/mention.js
7231
7315
  var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
7232
7316
  var status = picklist(["found", "linked", "proposed", "dismissed"]);
7233
7317
  var mention = strictObject({
@@ -7271,13 +7355,13 @@ var mentionRebuild = strictObject({
7271
7355
  mentions: count
7272
7356
  });
7273
7357
 
7274
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/message-change.js
7358
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/message-change.js
7275
7359
  var operated3 = { operation_id: id, chat_id: id };
7276
7360
  var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
7277
7361
  var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
7278
7362
  var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
7279
7363
 
7280
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/message-read.js
7364
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/message-read.js
7281
7365
  var messageTranscript = strictObject({
7282
7366
  message_id: id,
7283
7367
  text,
@@ -7335,7 +7419,7 @@ var evidencePacket = strictObject({
7335
7419
  }))
7336
7420
  });
7337
7421
 
7338
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/message-context.js
7422
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/message-context.js
7339
7423
  var messageThread = strictObject({
7340
7424
  ref: reference,
7341
7425
  chat: id,
@@ -7352,7 +7436,7 @@ var messageThread = strictObject({
7352
7436
  });
7353
7437
  var messageContext = union([message, messageThread]);
7354
7438
 
7355
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
7439
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
7356
7440
  var messageCounts = strictObject({
7357
7441
  by: picklist(["chat", "sender", "day", "hour"]),
7358
7442
  total: count,
@@ -7365,7 +7449,7 @@ var messageCounts = strictObject({
7365
7449
  }))
7366
7450
  });
7367
7451
 
7368
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/message-link.js
7452
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/message-link.js
7369
7453
  var messageLink = strictObject({
7370
7454
  ref: reference,
7371
7455
  url: nullable(text),
@@ -7382,7 +7466,7 @@ var messageLink = strictObject({
7382
7466
  })))
7383
7467
  });
7384
7468
 
7385
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
7469
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
7386
7470
  var savedMessageFile = strictObject({
7387
7471
  kind: text,
7388
7472
  path: text,
@@ -7469,7 +7553,7 @@ var messageSyncAll = strictObject({
7469
7553
  var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
7470
7554
  var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
7471
7555
 
7472
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/message-write.js
7556
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/message-write.js
7473
7557
  var messageWrite = strictObject({
7474
7558
  operation_id: id,
7475
7559
  message,
@@ -7484,7 +7568,7 @@ var draftWrite = strictObject({
7484
7568
  });
7485
7569
  var messageSend = union([messageWrite, draftWrite]);
7486
7570
 
7487
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/model.js
7571
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/model.js
7488
7572
  var model = strictObject({
7489
7573
  id,
7490
7574
  kind: picklist(["audio", "text", "image", "reranker"]),
@@ -7519,7 +7603,7 @@ var chosenModel = strictObject({
7519
7603
  estimate_seconds: nullable(count)
7520
7604
  });
7521
7605
 
7522
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/model-key.js
7606
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/model-key.js
7523
7607
  var source = picklist(["environment", "keyring", "file"]);
7524
7608
  var modelKey = strictObject({
7525
7609
  provider: text,
@@ -7529,7 +7613,7 @@ var modelKey = strictObject({
7529
7613
  var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
7530
7614
  var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
7531
7615
 
7532
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
7616
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
7533
7617
  var versus = strictObject({ current: number(), previous: number() });
7534
7618
  var person = { person_ref: reference, name: nullable(text) };
7535
7619
  var graph = strictObject({
@@ -7563,14 +7647,14 @@ var officialStats = strictObject({
7563
7647
  graphs: record(string(), union([graph, strictObject({ error: text })]))
7564
7648
  });
7565
7649
 
7566
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/person.js
7650
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/person.js
7567
7651
  var person2 = strictObject({
7568
7652
  ref: reference,
7569
7653
  name: nullable(text),
7570
7654
  identities: optional(array(identity))
7571
7655
  });
7572
7656
 
7573
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/poll.js
7657
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/poll.js
7574
7658
  var poll = strictObject({
7575
7659
  chat_id: id,
7576
7660
  message_id: id,
@@ -7586,11 +7670,11 @@ var poll = strictObject({
7586
7670
  });
7587
7671
  var pollChange = strictObject({ operation_id: id, poll });
7588
7672
 
7589
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
7673
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
7590
7674
  var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
7591
7675
  var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
7592
7676
 
7593
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/ranking.js
7677
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/ranking.js
7594
7678
  var figures = record(string(), number());
7595
7679
  var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
7596
7680
  var rankingRow = strictObject({
@@ -7637,7 +7721,7 @@ var ranking = strictObject({
7637
7721
  rows: array(rankingRow)
7638
7722
  });
7639
7723
 
7640
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/reaction.js
7724
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/reaction.js
7641
7725
  var reaction = strictObject({
7642
7726
  person: strictObject({ id, name: nullable(text), username: nullable(text) }),
7643
7727
  /** The emoji, or `custom:<id>` for a custom one. */
@@ -7645,7 +7729,7 @@ var reaction = strictObject({
7645
7729
  reacted_at: time
7646
7730
  });
7647
7731
 
7648
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
7732
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
7649
7733
  var reactionChange = strictObject({
7650
7734
  operation_id: id,
7651
7735
  chat_id: id,
@@ -7653,7 +7737,7 @@ var reactionChange = strictObject({
7653
7737
  reaction: nullable(text)
7654
7738
  });
7655
7739
 
7656
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/recipient.js
7740
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/recipient.js
7657
7741
  var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
7658
7742
  var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
7659
7743
  var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
@@ -7664,7 +7748,7 @@ var recipientChange = strictObject({
7664
7748
  ...partial(recipientOff).entries
7665
7749
  });
7666
7750
 
7667
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
7751
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
7668
7752
  var events = array(record(string(), unknown()));
7669
7753
  var recordedRun = strictObject({
7670
7754
  run_id: id,
@@ -7736,7 +7820,7 @@ var runHit = strictObject({
7736
7820
  });
7737
7821
  var runLocation = strictObject({ path: text });
7738
7822
 
7739
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/relationship.js
7823
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/relationship.js
7740
7824
  var relationship = strictObject({
7741
7825
  id,
7742
7826
  from: reference,
@@ -7763,7 +7847,7 @@ var relationship = strictObject({
7763
7847
  created_at: time
7764
7848
  });
7765
7849
 
7766
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
7850
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
7767
7851
  var milliseconds2 = nullable(pipe(number(), minValue(0)));
7768
7852
  var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
7769
7853
  var responseTimes = strictObject({
@@ -7780,7 +7864,7 @@ var waitingChats = strictObject({
7780
7864
  by_kind: strictObject({ private: count, group: count })
7781
7865
  });
7782
7866
 
7783
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/retention.js
7867
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/retention.js
7784
7868
  var retentionCohort = strictObject({
7785
7869
  /** The first day of the joining day or week. */
7786
7870
  cohort: text,
@@ -7828,7 +7912,7 @@ var retention = strictObject({
7828
7912
  rows: array(retentionCohort)
7829
7913
  });
7830
7914
 
7831
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
7915
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
7832
7916
  var savedSearch = strictObject({
7833
7917
  id,
7834
7918
  /** `null` for a run in the history. */
@@ -7845,7 +7929,7 @@ var savedSearch = strictObject({
7845
7929
  });
7846
7930
  var searchHistoryClear = strictObject({ cleared: count });
7847
7931
 
7848
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
7932
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
7849
7933
  var sendAttempt = strictObject({
7850
7934
  at: time,
7851
7935
  profile: text,
@@ -7873,7 +7957,7 @@ var sendAttempt = strictObject({
7873
7957
  error_code: optional(text)
7874
7958
  });
7875
7959
 
7876
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
7960
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
7877
7961
  var absent = strictObject({ path: text, exists: literal(false) });
7878
7962
  var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
7879
7963
  var infoSchema = strictObject({
@@ -8103,7 +8187,7 @@ var storeRepair = union([
8103
8187
  ]);
8104
8188
  var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
8105
8189
 
8106
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/store-records.js
8190
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/store-records.js
8107
8191
  var range = strictObject({ from: number(), to: number() });
8108
8192
  var storeChatStatus = strictObject({
8109
8193
  chat_id: id,
@@ -8201,7 +8285,7 @@ var storeJobRetry = union([
8201
8285
  ]);
8202
8286
  var storeJobClear = strictObject({ cleared: array(id) });
8203
8287
 
8204
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/store-table.js
8288
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/store-table.js
8205
8289
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
8206
8290
  var storeTable = strictObject({
8207
8291
  name: text,
@@ -8210,7 +8294,7 @@ var storeTable = strictObject({
8210
8294
  bytes: optional(nullable(count))
8211
8295
  });
8212
8296
 
8213
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
8297
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
8214
8298
  var tagTarget = variant("type", [
8215
8299
  strictObject({ type: literal("chat"), chat_id: id }),
8216
8300
  strictObject({ type: literal("contact"), person_id: id }),
@@ -8241,7 +8325,7 @@ var automaticTags = strictObject({
8241
8325
  dry_run: boolean()
8242
8326
  });
8243
8327
 
8244
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/tagging.js
8328
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/tagging.js
8245
8329
  var tagging = strictObject({
8246
8330
  tag: text,
8247
8331
  type: picklist(TAG_TYPES),
@@ -8254,7 +8338,7 @@ var tagging = strictObject({
8254
8338
  created_at: time
8255
8339
  });
8256
8340
 
8257
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
8341
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
8258
8342
  var side = strictObject({ ref: reference, key: text, title: text, status: text });
8259
8343
  var taskPair = strictObject({
8260
8344
  task: nullable(side),
@@ -8277,7 +8361,7 @@ var taskPair = strictObject({
8277
8361
  created_at: time
8278
8362
  });
8279
8363
 
8280
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/task-results.js
8364
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/task-results.js
8281
8365
  var nullableTime = nullable(time);
8282
8366
  var link = strictObject({
8283
8367
  id,
@@ -8451,7 +8535,7 @@ var taskReview = strictObject({
8451
8535
  untrusted
8452
8536
  });
8453
8537
 
8454
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/template.js
8538
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/template.js
8455
8539
  var template = strictObject({
8456
8540
  key: text,
8457
8541
  channel: picklist(["telegram", "email", "text"]),
@@ -8463,7 +8547,7 @@ var template = strictObject({
8463
8547
  updated_by: nullable(text)
8464
8548
  });
8465
8549
 
8466
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/topic.js
8550
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/topic.js
8467
8551
  var topic = strictObject({
8468
8552
  id,
8469
8553
  title: text,
@@ -8477,7 +8561,7 @@ var topic = strictObject({
8477
8561
  untrusted
8478
8562
  });
8479
8563
 
8480
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/entities/index.js
8564
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/entities/index.js
8481
8565
  var ENTITIES = {
8482
8566
  sync_progress: progress,
8483
8567
  deal,
@@ -8584,6 +8668,7 @@ var ENTITIES = {
8584
8668
  topic_icon: topicIcon,
8585
8669
  bot_webhook: botWebhook,
8586
8670
  scheduled_job: scheduledJob,
8671
+ schedule_harness: scheduleHarness,
8587
8672
  call_record: callRecord,
8588
8673
  sticker_inventory: stickerInventory,
8589
8674
  note,
@@ -8771,7 +8856,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
8771
8856
  return [name, definition];
8772
8857
  })), "entityDefinitions");
8773
8858
 
8774
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
8859
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
8775
8860
  var schemas = /* @__PURE__ */ new WeakMap();
8776
8861
  var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
8777
8862
  if (Object.hasOwn(ENTITIES, name))
@@ -8805,7 +8890,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
8805
8890
  return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
8806
8891
  }, "answerRow");
8807
8892
 
8808
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/command-server-request.js
8893
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/command-server-request.js
8809
8894
  import { AsyncLocalStorage } from "node:async_hooks";
8810
8895
  var requests = new AsyncLocalStorage();
8811
8896
  var inCommandServerRequest = /* @__PURE__ */ __name((request, work) => requests.run(request, work), "inCommandServerRequest");
@@ -8820,7 +8905,7 @@ var exitCodeSet = /* @__PURE__ */ __name(() => {
8820
8905
  return direct;
8821
8906
  }, "exitCodeSet");
8822
8907
 
8823
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/sends/guarded.js
8908
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/sends/guarded.js
8824
8909
  import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
8825
8910
  var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
8826
8911
  messageId: message2.id,
@@ -8926,7 +9011,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
8926
9011
  }, "guardedWrite");
8927
9012
  var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
8928
9013
 
8929
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
9014
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
8930
9015
  var named2 = /* @__PURE__ */ __name((work) => {
8931
9016
  try {
8932
9017
  return work();
@@ -8953,7 +9038,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named2(() => {
8953
9038
  return projectFields(value, fields);
8954
9039
  }), "projectFields");
8955
9040
 
8956
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/execution.js
9041
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/execution.js
8957
9042
  var DEFAULT_COMMAND_MS = 3e4;
8958
9043
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
8959
9044
  var DEFAULT_SYNC_MS = 15 * 6e4;
@@ -9136,7 +9221,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
9136
9221
  }
9137
9222
  }, "withAbort");
9138
9223
 
9139
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
9224
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
9140
9225
  import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync2 } from "node:fs";
9141
9226
  import { join as join2 } from "node:path";
9142
9227
  var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
@@ -9225,7 +9310,7 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
9225
9310
  return readdirSync2(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
9226
9311
  }, "registryProfiles");
9227
9312
 
9228
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
9313
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
9229
9314
  import { existsSync as existsSync3, readdirSync as readdirSync3, readFileSync as readFileSync3 } from "node:fs";
9230
9315
  import { join as join3 } from "node:path";
9231
9316
  var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
@@ -9247,7 +9332,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
9247
9332
  }, "profilesWithAccounts");
9248
9333
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
9249
9334
 
9250
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/output-detail.js
9335
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/output-detail.js
9251
9336
  var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
9252
9337
  var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
9253
9338
  var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
@@ -9283,7 +9368,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
9283
9368
  return value;
9284
9369
  }, "atDetail");
9285
9370
 
9286
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/output.js
9371
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/output.js
9287
9372
  var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
9288
9373
  const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
9289
9374
  if (other)
@@ -9347,7 +9432,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
9347
9432
  }, "warn")
9348
9433
  }), "silence");
9349
9434
 
9350
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/runs/log-events.js
9435
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/runs/log-events.js
9351
9436
  var CORE_LOG_EVENTS = defineLogEvents([
9352
9437
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
9353
9438
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -9358,6 +9443,7 @@ var CORE_LOG_EVENTS = defineLogEvents([
9358
9443
  keys: ["operation", "reason"]
9359
9444
  },
9360
9445
  { id: "store.write", meaning: "a committed write changed rows of one store table", keys: ["table", "op", "n"] },
9446
+ { id: "sync.progress", meaning: "what a sync's progress line showed: chats and messages so far", keys: ["counts"] },
9361
9447
  { id: "command.crashed", meaning: "a command failed on a bug; where, never what", keys: ["error_class", "frames"] },
9362
9448
  {
9363
9449
  id: "events.dropped",
@@ -9380,10 +9466,11 @@ var DIAGNOSTIC_LOG_EVENTS = {
9380
9466
  response: "provider.response",
9381
9467
  warning: "client.warning",
9382
9468
  cache: "cache.answered",
9383
- store: "store.write"
9469
+ store: "store.write",
9470
+ progress: "sync.progress"
9384
9471
  };
9385
9472
 
9386
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/runs/recording.js
9473
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/runs/recording.js
9387
9474
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
9388
9475
  const recording = startRecording(options);
9389
9476
  try {
@@ -9598,7 +9685,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
9598
9685
  return void 0;
9599
9686
  }, "partialOutcome");
9600
9687
 
9601
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/deadline.js
9688
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/deadline.js
9602
9689
  var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
9603
9690
  if (ms2 === void 0)
9604
9691
  return body();
@@ -9624,7 +9711,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
9624
9711
  }
9625
9712
  }, "withDeadline");
9626
9713
 
9627
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/profile.js
9714
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/profile.js
9628
9715
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
9629
9716
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
9630
9717
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -9693,20 +9780,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
9693
9780
  return void 0;
9694
9781
  }, "sampleCommand");
9695
9782
 
9696
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/settings.js
9783
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/settings.js
9697
9784
  import { existsSync as existsSync6 } from "node:fs";
9698
9785
 
9699
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/models/endpoint.js
9700
- var endpoint = /* @__PURE__ */ __name((value) => {
9701
- try {
9702
- const url3 = new URL(value);
9703
- return ["https:", "http:"].includes(url3.protocol) && !url3.username && !url3.password && !url3.search && !url3.hash;
9704
- } catch {
9705
- return false;
9706
- }
9707
- }, "endpoint");
9708
-
9709
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/models/settings.js
9786
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/models/settings.js
9710
9787
  var MODEL_FIELDS = ["provider", "model", "base_url"];
9711
9788
  var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
9712
9789
  provider: optional(picklist(["off", "openai", "anthropic"])),
@@ -9775,7 +9852,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
9775
9852
  };
9776
9853
  }, "modelTarget");
9777
9854
 
9778
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/analysis/settings.js
9855
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/analysis/settings.js
9779
9856
  var model2 = pipe(string(), trim(), minLength(1), maxLength(200));
9780
9857
  var url2 = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
9781
9858
  var AI_FIELDS = {
@@ -9819,7 +9896,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
9819
9896
  };
9820
9897
  }, "resolveAISettings");
9821
9898
 
9822
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/domain/duration.js
9899
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/domain/duration.js
9823
9900
  var DURATION = /^(\d+)(ms|s|m|h|d)$/;
9824
9901
  var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
9825
9902
  var parseDuration = /* @__PURE__ */ __name((value, source2) => {
@@ -9833,7 +9910,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
9833
9910
  return ms2;
9834
9911
  }, "parseDuration");
9835
9912
 
9836
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/embeddings/models.js
9913
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/embeddings/models.js
9837
9914
  import { existsSync as existsSync4 } from "node:fs";
9838
9915
  import { join as join4 } from "node:path";
9839
9916
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
@@ -10110,7 +10187,7 @@ var vectorModelKey = /* @__PURE__ */ __name((model3) => {
10110
10187
  }, "vectorModelKey");
10111
10188
  var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
10112
10189
 
10113
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/services/history-limits.js
10190
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/services/history-limits.js
10114
10191
  var HISTORY_MAX_DAYS = 1095;
10115
10192
  var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
10116
10193
  var DAY_MS = 24 * 60 * 60 * 1e3;
@@ -10157,10 +10234,10 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
10157
10234
  return { batch: { ...batch, messages }, skipped };
10158
10235
  }, "limitBatch");
10159
10236
 
10160
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
10237
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
10161
10238
  import { readFileSync as readFileSync4 } from "node:fs";
10162
10239
 
10163
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
10240
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
10164
10241
  var REPAIR_WORDS = {
10165
10242
  byte_order_mark: "an invisible byte-order mark at the start",
10166
10243
  comment: "a comment, which JSON does not allow",
@@ -10401,7 +10478,7 @@ ${parts.join(",\n")}
10401
10478
  ${indent}${close}`;
10402
10479
  }, "serialise");
10403
10480
 
10404
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
10481
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
10405
10482
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
10406
10483
  var SECTIONS = ["personal", "bot"];
10407
10484
  var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
@@ -10695,7 +10772,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
10695
10772
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
10696
10773
  }, "readConfigFile");
10697
10774
 
10698
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/default-config.js
10775
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/default-config.js
10699
10776
  import { existsSync as existsSync5, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync } from "node:fs";
10700
10777
  import { dirname as dirname2, join as join5 } from "node:path";
10701
10778
  var DEFAULT_CONFIG = {
@@ -10724,7 +10801,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
10724
10801
  }
10725
10802
  __name(ensureDefaultConfig, "ensureDefaultConfig");
10726
10803
 
10727
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
10804
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
10728
10805
  var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
10729
10806
  var parentOf = /* @__PURE__ */ __name((config, key) => {
10730
10807
  const path2 = key.split(".");
@@ -10746,7 +10823,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
10746
10823
  return { config, added };
10747
10824
  }, "withSettingDefaults");
10748
10825
 
10749
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/settings.js
10826
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/settings.js
10750
10827
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
10751
10828
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
10752
10829
  var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
@@ -10916,11 +10993,12 @@ var fromFile = /* @__PURE__ */ __name((settings, key, fallback) => first([
10916
10993
  ], fallback), "fromFile");
10917
10994
  var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
10918
10995
  const declared = extension.permissions;
10919
- const profileEntries = {
10996
+ const botEntries = {
10920
10997
  ...SHARED_PROFILE_ENTRIES,
10921
10998
  ...declared ? { permissions: optional(commandPathLevels) } : {},
10922
10999
  ...extension.profile
10923
11000
  };
11001
+ const profileEntries = { ...botEntries, ...extension.personal };
10924
11002
  const defaultsOnly = { ...SHARED_DEFAULTS_ONLY, ...extension.defaults };
10925
11003
  const defaultsEntries = { ...profileEntries, ...defaultsOnly };
10926
11004
  const strictOf = /* @__PURE__ */ __name((entries) => strictObject(entries, objectMessage), "strictOf");
@@ -10932,7 +11010,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
10932
11010
  defaults: optional(strictOf(defaultsEntries)),
10933
11011
  profiles: optional(record(string(), strictOf(profileEntries), "has to be an object of profiles, by name"), {}),
10934
11012
  personal: optional(kindSection(profileEntries)),
10935
- bot: optional(kindSection({ ...profileEntries, ...BOT_ONLY_ENTRIES }))
11013
+ bot: optional(kindSection({ ...botEntries, ...BOT_ONLY_ENTRIES }))
10936
11014
  };
10937
11015
  const schema2 = strictOf(configEntries);
10938
11016
  const defaultsOnlyKeys = Object.keys(defaultsOnly);
@@ -11271,7 +11349,7 @@ var given = /* @__PURE__ */ __name((value) => {
11271
11349
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
11272
11350
  }, "given");
11273
11351
 
11274
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/context.js
11352
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/context.js
11275
11353
  var setExitCode = /* @__PURE__ */ __name((command, code) => {
11276
11354
  const slot = environmentOf(command).exit;
11277
11355
  const request = commandServerRequest();
@@ -11330,6 +11408,7 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
11330
11408
  });
11331
11409
  const closeables = [];
11332
11410
  const ranFor = namedProfile(settings);
11411
+ let namedTheAnswer = false;
11333
11412
  return {
11334
11413
  settings,
11335
11414
  renderer,
@@ -11345,6 +11424,9 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
11345
11424
  return withAbort(environment.commandSignal, () => withDeadline(unbounded ? void 0 : settings.commandTimeoutMs, closeables, () => body(() => {
11346
11425
  })));
11347
11426
  const runName = name ?? `${environment.agent ? "mcp " : ""}${commandPath(command)}`;
11427
+ const answersFor = !environment.agent && name === void 0 && !namedTheAnswer;
11428
+ if (answersFor)
11429
+ namedTheAnswer = true;
11348
11430
  return recorded({
11349
11431
  app: environment.app,
11350
11432
  command: runName,
@@ -11371,7 +11453,7 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
11371
11453
  ...settings.keepSuccessfulRunsForDays === void 0 ? {} : { keepSuccessDays: settings.keepSuccessfulRunsForDays },
11372
11454
  ...settings.keepStoreRunsForDays === void 0 ? {} : { keepStoreDays: settings.keepStoreRunsForDays },
11373
11455
  ...settings.runsSizeLimitMb === void 0 ? {} : { maxBytes: settings.runsSizeLimitMb * 1024 * 1024 },
11374
- processRun: !environment.agent,
11456
+ processRun: answersFor,
11375
11457
  format,
11376
11458
  streams,
11377
11459
  env
@@ -11397,7 +11479,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
11397
11479
  return words2.join(" ");
11398
11480
  }, "commandPath");
11399
11481
 
11400
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/effects.js
11482
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/effects.js
11401
11483
  var REMOTE_READ = { remote: "read", local: "read" };
11402
11484
  var FETCH = { remote: "read", local: "write" };
11403
11485
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -11468,6 +11550,7 @@ var writesFileOnlyWith = /* @__PURE__ */ __name((command, option) => {
11468
11550
  return command;
11469
11551
  }, "writesFileOnlyWith");
11470
11552
  var writesNewFileOnlyWith = /* @__PURE__ */ __name((command, option) => destroysNothing(writesFileOnlyWith(command, option)), "writesNewFileOnlyWith");
11553
+ var fileOptionOf = /* @__PURE__ */ __name((command) => FILE_OPTION.get(command), "fileOptionOf");
11471
11554
  var writesFileNow = /* @__PURE__ */ __name((command) => {
11472
11555
  const option = FILE_OPTION.get(command);
11473
11556
  return option === void 0 || command.opts()[option] !== void 0;
@@ -11529,7 +11612,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
11529
11612
  throw readOnlyRefusal(lock, what);
11530
11613
  }, "refuseUnderReadOnly");
11531
11614
 
11532
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/images/picture/models.js
11615
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/images/picture/models.js
11533
11616
  import { join as join6 } from "node:path";
11534
11617
  var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
11535
11618
  var IMAGE_MODELS = [
@@ -11583,7 +11666,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
11583
11666
  var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
11584
11667
  var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
11585
11668
 
11586
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/steps.js
11669
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/steps.js
11587
11670
  var STEPS2 = defineSteps([
11588
11671
  ...STEPS,
11589
11672
  {
@@ -11598,6 +11681,15 @@ var STEPS2 = defineSteps([
11598
11681
  ],
11599
11682
  why: "the local copy is missing messages; syncing brings them in"
11600
11683
  },
11684
+ {
11685
+ id: "search.server",
11686
+ command: "search messages",
11687
+ args: [
11688
+ { name: "query", required: true },
11689
+ { name: "backend", required: true }
11690
+ ],
11691
+ why: "only the local copy was searched, and it does not hold every message; the messenger's own search reaches the rest"
11692
+ },
11601
11693
  {
11602
11694
  id: "messages.transcribe",
11603
11695
  command: "messages transcribe",
@@ -11864,7 +11956,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
11864
11956
  ].join(" ");
11865
11957
  }, "stepLine");
11866
11958
 
11867
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
11959
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
11868
11960
  var where = [{ field: "ref" }];
11869
11961
  var who2 = { field: ["who.owner", "who.name"], tag: "you" };
11870
11962
  var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
@@ -11956,7 +12048,7 @@ var STATUS_ROWS = {
11956
12048
  "status.failed": { columns: [{ field: "signal" }], text: ["why"] }
11957
12049
  };
11958
12050
 
11959
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/compact.js
12051
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/compact.js
11960
12052
  var TEXT_CHARS = 400;
11961
12053
  var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
11962
12054
  var messageRow = {
@@ -12322,7 +12414,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
12322
12414
  return lines.concat(footerOf(body)).join("\n");
12323
12415
  }, "compactText");
12324
12416
 
12325
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
12417
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
12326
12418
  var SOFT_OUTPUT_BYTES = 256 * 1024;
12327
12419
  var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
12328
12420
  var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
@@ -12380,7 +12472,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
12380
12472
  return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
12381
12473
  }, "largeAnswerSteps");
12382
12474
 
12383
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
12475
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
12384
12476
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
12385
12477
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
12386
12478
  var strip = /* @__PURE__ */ __name((value) => {
@@ -12394,7 +12486,91 @@ var strip = /* @__PURE__ */ __name((value) => {
12394
12486
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
12395
12487
  }, "strip");
12396
12488
 
12397
- // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/envelope.js
12489
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/untrusted-marks.js
12490
+ var OPEN = "\u27E6";
12491
+ var CLOSE = "\u27E7";
12492
+ var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
12493
+ if (readOnlyLockOf(app, env) === void 0)
12494
+ return void 0;
12495
+ const mark = ancestorValue(envName(app, "UNTRUSTED_MARK"), env);
12496
+ return mark && /^[0-9a-f]{16}$/.test(mark) ? mark : void 0;
12497
+ }, "untrustedMarkOf");
12498
+ var marked = /* @__PURE__ */ __name((text5, mark, source2, id6) => {
12499
+ const inside = text5.replaceAll(OPEN, "").replaceAll(CLOSE, "").replaceAll(mark, "");
12500
+ const named3 = id6 === void 0 ? "" : ` id=${id6.replaceAll(OPEN, "").replaceAll(CLOSE, "").replace(/\s/g, "")}`;
12501
+ return `${OPEN}untrusted:${mark} source=${source2}${named3}${CLOSE}${inside}${OPEN}/untrusted:${mark}${CLOSE}`;
12502
+ }, "marked");
12503
+ var idOf = /* @__PURE__ */ __name((value) => {
12504
+ const id6 = value.ref ?? value.id;
12505
+ return typeof id6 === "string" || typeof id6 === "number" ? String(id6) : void 0;
12506
+ }, "idOf");
12507
+ var markAt = /* @__PURE__ */ __name((value, path2, mark, source2, id6) => {
12508
+ if (Array.isArray(value))
12509
+ return value.map((one) => markAt(one, path2, mark, source2, id6));
12510
+ if (path2.length === 0)
12511
+ return typeof value === "string" && !value.startsWith(`${OPEN}untrusted:${mark} `) ? marked(value, mark, source2, id6) : value;
12512
+ if (value === null || typeof value !== "object")
12513
+ return value;
12514
+ const [key = "", ...rest] = path2;
12515
+ const record2 = value;
12516
+ if (!(key in record2))
12517
+ return value;
12518
+ return { ...record2, [key]: markAt(record2[key], rest, mark, source2, idOf(record2) ?? id6) };
12519
+ }, "markAt");
12520
+ var withUntrustedMarked = /* @__PURE__ */ __name((value, mark, id6) => {
12521
+ if (Array.isArray(value))
12522
+ return value.map((one) => withUntrustedMarked(one, mark, id6));
12523
+ if (value === null || typeof value !== "object")
12524
+ return value;
12525
+ const record2 = value;
12526
+ const own = idOf(record2) ?? id6;
12527
+ let result = Object.fromEntries(Object.entries(record2).map(([key, child]) => [
12528
+ key,
12529
+ key === "untrusted" ? child : withUntrustedMarked(child, mark, own)
12530
+ ]));
12531
+ const fields = Array.isArray(record2.untrusted) ? record2.untrusted.filter((one) => typeof one === "string") : [];
12532
+ for (const field of fields)
12533
+ result = markAt(result, field.split("."), mark, field, own);
12534
+ return result;
12535
+ }, "withUntrustedMarked");
12536
+ var MESSAGE_UNTRUSTED = [
12537
+ "text",
12538
+ "transcript",
12539
+ "excerpt",
12540
+ "sender_name",
12541
+ "sender_username",
12542
+ "chat_title",
12543
+ "subject",
12544
+ "snippet",
12545
+ "attachments.name",
12546
+ "attachments.title",
12547
+ "attachments.text",
12548
+ "from.name",
12549
+ "to.name",
12550
+ "cc.name",
12551
+ "bcc.name",
12552
+ "reply_addresses.name"
12553
+ ];
12554
+ var DECLARED = /* @__PURE__ */ new WeakMap();
12555
+ var marksUntrusted = /* @__PURE__ */ __name((command, fields = MESSAGE_UNTRUSTED) => {
12556
+ DECLARED.set(command, fields);
12557
+ return command;
12558
+ }, "marksUntrusted");
12559
+ var untrustedFieldsOf = /* @__PURE__ */ __name((command) => DECLARED.get(command), "untrustedFieldsOf");
12560
+ var withFieldsMarked = /* @__PURE__ */ __name((value, fields, mark, id6) => {
12561
+ if (Array.isArray(value))
12562
+ return value.map((one) => withFieldsMarked(one, fields, mark, id6));
12563
+ if (value === null || typeof value !== "object")
12564
+ return value;
12565
+ const record2 = value;
12566
+ const own = idOf(record2) ?? id6;
12567
+ let result = Object.fromEntries(Object.entries(record2).map(([key, child]) => [key, withFieldsMarked(child, fields, mark, own)]));
12568
+ for (const field of fields)
12569
+ result = markAt(result, field.split("."), mark, field, own);
12570
+ return result;
12571
+ }, "withFieldsMarked");
12572
+
12573
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/envelope.js
12398
12574
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
12399
12575
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
12400
12576
  var listOf = /* @__PURE__ */ __name((command, input) => {
@@ -12506,7 +12682,11 @@ var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams,
12506
12682
  const root = rootOf2(command);
12507
12683
  const runnableSteps = runnable(root, body.next);
12508
12684
  const next = environmentOf(command).agent ? runnableSteps : withLines(root, runnableSteps);
12509
- const kept = withoutProviderRefs({ ...body, ...next.length > 0 ? { next } : {} });
12685
+ const { app, env } = environmentOf(command);
12686
+ const mark = app ? untrustedMarkOf(app, env ?? process.env) : void 0;
12687
+ const declared = untrustedFieldsOf(command);
12688
+ const shown = mark === void 0 ? body : withUntrustedMarked(declared ? withFieldsMarked(body, declared, mark) : body, mark);
12689
+ const kept = withoutProviderRefs({ ...shown, ...next.length > 0 ? { next } : {} });
12510
12690
  if (next.length === 0)
12511
12691
  delete kept.next;
12512
12692
  const sealedBody = sealed(kept);
@@ -12558,6 +12738,7 @@ export {
12558
12738
  Help,
12559
12739
  Option,
12560
12740
  Command,
12741
+ hasSharedContract,
12561
12742
  assertSharedContracts,
12562
12743
  overrideSharedContract,
12563
12744
  sharedContractOverrides,
@@ -12624,6 +12805,7 @@ export {
12624
12805
  topicIcon,
12625
12806
  botWebhook,
12626
12807
  scheduledJob,
12808
+ scheduleHarness,
12627
12809
  callRecord,
12628
12810
  stickerInventory,
12629
12811
  pollVote,
@@ -12678,7 +12860,6 @@ export {
12678
12860
  refuseCommandName,
12679
12861
  rootOf,
12680
12862
  sampleCommand,
12681
- endpoint,
12682
12863
  modelTarget,
12683
12864
  parseDuration,
12684
12865
  DEFAULT_TEXT_MODEL,
@@ -12745,6 +12926,7 @@ export {
12745
12926
  admittedUnderLock,
12746
12927
  changesStore,
12747
12928
  writesNewFileOnlyWith,
12929
+ fileOptionOf,
12748
12930
  readsOverMcpAt,
12749
12931
  isStoreChange,
12750
12932
  previewFlag,
@@ -12767,6 +12949,7 @@ export {
12767
12949
  stepLine,
12768
12950
  tooLargeSteps,
12769
12951
  withoutProviderRefs,
12952
+ marksUntrusted,
12770
12953
  answerSchema,
12771
12954
  listOf,
12772
12955
  itemOf,