@wirecat/tg-cli 0.117.0 → 0.119.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 (137) hide show
  1. package/contracts/wirecat.json +7621 -0
  2. package/dist/bin/tg.js +2 -2
  3. package/dist/bot/transport.d.ts.map +1 -1
  4. package/dist/bot/transport.js +15 -8
  5. package/dist/bot/transport.js.map +1 -1
  6. package/dist/bundle/{adapter-VNQ72MBK.js → adapter-NEQQOANM.js} +47 -48
  7. package/dist/bundle/{all-profiles-3W2UQTCK.js → all-profiles-QFT46FTF.js} +10 -10
  8. package/dist/bundle/{anthropic-DFUW2KTG.js → anthropic-UJ4RYCWU.js} +10 -8
  9. package/dist/bundle/{app-server-5XJIMLHB.js → app-server-NE3EL5IK.js} +43 -43
  10. package/dist/bundle/{bot-api-HRRBF3W6.js → bot-api-D4H5SCP5.js} +49 -49
  11. package/dist/bundle/{bot-history-GBH5XE4N.js → bot-history-KF2PUMWA.js} +18 -18
  12. package/dist/bundle/{bun-ZMOYGG6F.js → bun-F7MH5YKA.js} +2 -2
  13. package/dist/bundle/{bun-sqlite-6FZFMA7K.js → bun-sqlite-FYDJXUHF.js} +5 -5
  14. package/dist/bundle/{chunk-HZZGOLGP.js → chunk-23JGV5FQ.js} +11 -11
  15. package/dist/bundle/{chunk-PTIB7NEE.js → chunk-2BAJ6ORN.js} +1 -1
  16. package/dist/bundle/{chunk-L5WNE4WS.js → chunk-3EQ7USKJ.js} +2 -2
  17. package/dist/bundle/{chunk-YIXXH74F.js → chunk-3K65KTXD.js} +16 -3
  18. package/dist/bundle/{chunk-66FZBLRJ.js → chunk-4AACB23H.js} +13 -13
  19. package/dist/bundle/{chunk-NUCDEOFC.js → chunk-5EHJWIW4.js} +2 -2
  20. package/dist/bundle/{chunk-VW6BF6M7.js → chunk-5FEEFXJA.js} +1 -1
  21. package/dist/bundle/{chunk-HWYSRB64.js → chunk-65BWMPCI.js} +2 -2
  22. package/dist/bundle/{chunk-Q7O4CQDO.js → chunk-6ERQJRL2.js} +2 -2
  23. package/dist/bundle/{chunk-3GRX7WP6.js → chunk-6K5R3YPN.js} +2 -2
  24. package/dist/bundle/{chunk-KVTLT4V7.js → chunk-6OE5I3PR.js} +6 -6
  25. package/dist/bundle/{chunk-B2YPB5AE.js → chunk-72QLHHSO.js} +93 -29
  26. package/dist/bundle/{chunk-FEKXHILZ.js → chunk-7C6POLLO.js} +1 -1
  27. package/dist/bundle/{chunk-F6KBVIJP.js → chunk-7VUNJDYU.js} +22 -14
  28. package/dist/bundle/{chunk-EZTYJ43A.js → chunk-BXIPT2BO.js} +1 -1
  29. package/dist/bundle/{chunk-GFHNQBD2.js → chunk-CIDFV3IT.js} +1 -1
  30. package/dist/bundle/{chunk-C6TUVV7E.js → chunk-CX2WCEQU.js} +552 -222
  31. package/dist/bundle/{chunk-UYK5AXSW.js → chunk-D4Y2KL5V.js} +4 -4
  32. package/dist/bundle/{chunk-EL6I4WTB.js → chunk-D6YTBJY6.js} +1 -1
  33. package/dist/bundle/{chunk-X3CD475M.js → chunk-DQELQ7BL.js} +419 -198
  34. package/dist/bundle/{chunk-4JDGN6OD.js → chunk-F223KYWG.js} +1 -1
  35. package/dist/bundle/{chunk-RDH2QBUE.js → chunk-FJKP6MMP.js} +5 -3
  36. package/dist/bundle/{chunk-2452HCIV.js → chunk-FQ3C6DFV.js} +3 -3
  37. package/dist/bundle/{chunk-7Y3RUEVY.js → chunk-FQZSS3AB.js} +6 -6
  38. package/dist/bundle/{chunk-V47NPSSV.js → chunk-FRW3CWC7.js} +31 -29
  39. package/dist/bundle/{chunk-AG6HWPQP.js → chunk-G3MQOH6Z.js} +3 -3
  40. package/dist/bundle/{chunk-RDSLSV4M.js → chunk-HGMMRT4G.js} +2 -2
  41. package/dist/bundle/{chunk-SQXB5ZUZ.js → chunk-HPQQ76WF.js} +23 -5
  42. package/dist/bundle/{chunk-3RJYLN5V.js → chunk-HV5YYAJX.js} +158 -20
  43. package/dist/bundle/{chunk-3MQOLYAN.js → chunk-IAGX5VFL.js} +4 -4
  44. package/dist/bundle/{chunk-TFBHDIGY.js → chunk-JKKEMVW3.js} +18 -4
  45. package/dist/bundle/{chunk-P3ASN72F.js → chunk-KBHK5UGL.js} +1 -1
  46. package/dist/bundle/{chunk-EPCFXKTX.js → chunk-KC4MQRAB.js} +34 -8
  47. package/dist/bundle/{chunk-VMCQGZIA.js → chunk-L33G5ARH.js} +2801 -718
  48. package/dist/bundle/{chunk-V2T7NYNU.js → chunk-MDLSI3EN.js} +25 -23
  49. package/dist/bundle/chunk-NDSRND3E.js +138 -0
  50. package/dist/bundle/{chunk-HORGORHK.js → chunk-OG2CG2GS.js} +12 -12
  51. package/dist/bundle/{chunk-ZPILMEFY.js → chunk-QD27C3BG.js} +8 -21
  52. package/dist/bundle/{chunk-QOGYHU3Q.js → chunk-QG5U6HCI.js} +61 -21
  53. package/dist/bundle/{chunk-TG6ZYL4B.js → chunk-QQ3QZFFD.js} +8 -8
  54. package/dist/bundle/{chunk-56Q5JV3Z.js → chunk-QTFXYR5W.js} +24 -2
  55. package/dist/bundle/{chunk-FAHHERJ7.js → chunk-RGU2G3KL.js} +4 -4
  56. package/dist/bundle/{chunk-Z4QKLHJW.js → chunk-ROOUBFUW.js} +10148 -3906
  57. package/dist/bundle/{chunk-MLHKQDUN.js → chunk-RUNFFBJU.js} +872 -562
  58. package/dist/bundle/{chunk-G7B5UIE7.js → chunk-S3HAFJVC.js} +37 -11
  59. package/dist/bundle/{chunk-BXTDAGM4.js → chunk-SMHLQEE2.js} +2 -2
  60. package/dist/bundle/{chunk-JWIUK3SK.js → chunk-TEZKCH5B.js} +2 -2
  61. package/dist/bundle/{chunk-VRDVXXXD.js → chunk-TKHEVAEG.js} +9 -8
  62. package/dist/bundle/{chunk-MP7M6FFU.js → chunk-TT4CIXVH.js} +6 -6
  63. package/dist/bundle/{chunk-M7V5XRM6.js → chunk-UBCLVM7C.js} +3 -3
  64. package/dist/bundle/{chunk-YHZFGUAP.js → chunk-V5Z2JO6X.js} +19 -19
  65. package/dist/bundle/{chunk-6GFUL4OU.js → chunk-W2BIBPRU.js} +237 -38
  66. package/dist/bundle/{chunk-6HRN7BW6.js → chunk-X5PDWCG7.js} +1 -1
  67. package/dist/bundle/{chunk-AUBRELCM.js → chunk-XDMJVWWR.js} +3 -3
  68. package/dist/bundle/{chunk-EA2PGDER.js → chunk-XM3P7LLT.js} +2 -2
  69. package/dist/bundle/{chunk-UGPZCNYC.js → chunk-YMWPRHXG.js} +1411 -809
  70. package/dist/bundle/{chunk-2XLKZL6K.js → chunk-Z4CGZAFQ.js} +65 -31
  71. package/dist/bundle/{chunk-XW5C4TI7.js → chunk-ZEQ7ONPZ.js} +47 -1
  72. package/dist/bundle/command-contract-7TGMZRBE.js +33 -0
  73. package/dist/bundle/{decode-YMSOY2AY.js → decode-5N4ERCHC.js} +5 -5
  74. package/dist/bundle/{dispatch-OP27MWX5.js → dispatch-TBGXBDHE.js} +10 -10
  75. package/dist/bundle/{echarts-7XS55TQY.js → echarts-YDEBAMXT.js} +2 -2
  76. package/dist/bundle/{embed-QTOE7NN3.js → embed-T7H62XFR.js} +6 -6
  77. package/dist/bundle/{embedder-KBBRYSNH.js → embedder-AW3O2TR3.js} +9 -9
  78. package/dist/bundle/{entry-HGEUYYMX.js → entry-L2LJ2VPY.js} +7 -7
  79. package/dist/bundle/{failure-4JUQFXJT.js → failure-AWHPW2HE.js} +2 -2
  80. package/dist/bundle/{first-run-CSGMEJXY.js → first-run-6PBZSRZU.js} +11 -11
  81. package/dist/bundle/first-screen-UKCD7D2R.js +31 -0
  82. package/dist/bundle/{instructions-S6ZXCTFH.js → instructions-C3NJERO7.js} +1 -1
  83. package/dist/bundle/{mcp-M4QN2E7R.js → mcp-CWLASTLV.js} +2 -2
  84. package/dist/bundle/{node-LCIUWXXG.js → node-P3CIIYWU.js} +2 -2
  85. package/dist/bundle/{node-sqlite-HL4WY4N2.js → node-sqlite-YVHMNRVA.js} +6 -6
  86. package/dist/bundle/{oauth-U4KIMDKG.js → oauth-5OQYA2SV.js} +7 -7
  87. package/dist/bundle/{open-EH7OS7M7.js → open-YGWUVSU7.js} +5 -5
  88. package/dist/bundle/{openai-W5TB3NA5.js → openai-U45JBQ6F.js} +16 -37
  89. package/dist/bundle/{process-3CVLTCTA.js → process-DCYX5EDG.js} +1 -1
  90. package/dist/bundle/{program-LOIZTK2P.js → program-UZBFH2EZ.js} +55 -52
  91. package/dist/bundle/{prompt-IDNH7N3W.js → prompt-HPVTPTFI.js} +7 -5
  92. package/dist/bundle/{proxy-transport-4DPZB2W2.js → proxy-transport-D7MCHGSV.js} +5 -5
  93. package/dist/bundle/{recognize-G5EWYXIF.js → recognize-IJCPFJ76.js} +4 -4
  94. package/dist/bundle/{remote-4XTBZVZD.js → remote-MWDYQWFW.js} +7 -7
  95. package/dist/bundle/{rerank-OWSTDLZN.js → rerank-SXG64475.js} +7 -7
  96. package/dist/bundle/{serve-YCPSEWP3.js → serve-KJQENHEH.js} +9 -9
  97. package/dist/bundle/{server-ODG4A2KK.js → server-MXVXZWN6.js} +35 -35
  98. package/dist/bundle/server-RTMCRKQF.js +60 -0
  99. package/dist/bundle/{state-OL2235G5.js → state-CKKJWH27.js} +6 -6
  100. package/dist/bundle/{store-5AACYNDM.js → store-R3BE4V56.js} +44 -13
  101. package/dist/bundle/store-maintenance-command-KDGBSBNU.js +49 -0
  102. package/dist/bundle/tg.js +38 -14
  103. package/dist/commands/account-removal.d.ts +3 -0
  104. package/dist/commands/account-removal.d.ts.map +1 -0
  105. package/dist/commands/account-removal.js +57 -0
  106. package/dist/commands/account-removal.js.map +1 -0
  107. package/dist/commands/context.d.ts.map +1 -1
  108. package/dist/commands/context.js +2 -0
  109. package/dist/commands/context.js.map +1 -1
  110. package/dist/http.d.ts +6 -0
  111. package/dist/http.d.ts.map +1 -0
  112. package/dist/http.js +8 -0
  113. package/dist/http.js.map +1 -0
  114. package/dist/identity.d.ts +4 -0
  115. package/dist/identity.d.ts.map +1 -1
  116. package/dist/identity.js +14 -0
  117. package/dist/identity.js.map +1 -1
  118. package/dist/telegram/map.d.ts.map +1 -1
  119. package/dist/telegram/map.js +3 -0
  120. package/dist/telegram/map.js.map +1 -1
  121. package/dist/telegram/registration.d.ts +1 -1
  122. package/dist/telegram/registration.d.ts.map +1 -1
  123. package/dist/telegram/registration.js +4 -1
  124. package/dist/telegram/registration.js.map +1 -1
  125. package/dist/version.d.ts +1 -1
  126. package/dist/version.js +1 -1
  127. package/dist/wcat.d.ts +3 -0
  128. package/dist/wcat.d.ts.map +1 -0
  129. package/dist/wcat.js +4 -0
  130. package/dist/wcat.js.map +1 -0
  131. package/package.json +7 -6
  132. package/dist/bundle/chunk-7NBUT62O.js +0 -33
  133. package/dist/bundle/command-contract-KMMHARMR.js +0 -33
  134. package/dist/bundle/first-screen-K2PBNJNE.js +0 -31
  135. package/dist/bundle/server-KELKX6S3.js +0 -60
  136. package/dist/bundle/store-maintenance-command-3J7WZYVN.js +0 -50
  137. /package/dist/bundle/{chunk-VOXIGICJ.js → chunk-DWX4DE2I.js} +0 -0
@@ -2,30 +2,31 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  note
5
- } from "./chunk-AG6HWPQP.js";
5
+ } from "./chunk-G3MQOH6Z.js";
6
6
  import {
7
7
  currentCaller,
8
8
  endpointTemplate,
9
9
  errorDetailOf,
10
10
  framesOf,
11
- isCliFailure,
12
11
  keepsSuccess,
13
12
  providerErrorKey,
14
13
  renderEvent,
15
14
  runContextOf
16
- } from "./chunk-ZPILMEFY.js";
15
+ } from "./chunk-QD27C3BG.js";
17
16
  import {
18
17
  permissionCeiling
19
- } from "./chunk-M7V5XRM6.js";
18
+ } from "./chunk-UBCLVM7C.js";
20
19
  import {
21
20
  envName,
22
21
  readOnlyLockOf,
23
22
  readOnlyRefusal
24
- } from "./chunk-Q7O4CQDO.js";
23
+ } from "./chunk-6ERQJRL2.js";
25
24
  import {
26
25
  carries
27
- } from "./chunk-EL6I4WTB.js";
26
+ } from "./chunk-D6YTBJY6.js";
28
27
  import {
28
+ BUSINESS_KINDS,
29
+ DEAL_ROLES,
29
30
  FACT_STATUSES,
30
31
  FACT_TYPES,
31
32
  FIELD_TYPES,
@@ -42,6 +43,7 @@ import {
42
43
  PRIORITY_LABELS,
43
44
  QUERY_BACKENDS,
44
45
  RELATION_KINDS,
46
+ STANDINGS,
45
47
  TAG_TYPES,
46
48
  TASK_KINDS,
47
49
  TASK_ORIGINS,
@@ -55,6 +57,7 @@ import {
55
57
  event,
56
58
  evidenceSource,
57
59
  id,
60
+ markStoreDamaged,
58
61
  meeting,
59
62
  meetingCounts,
60
63
  meetingDetails,
@@ -72,20 +75,27 @@ import {
72
75
  project,
73
76
  providerMetadata,
74
77
  reminder,
78
+ sourceReview,
75
79
  text,
76
80
  time,
77
81
  untrusted
78
- } from "./chunk-C6TUVV7E.js";
82
+ } from "./chunk-CX2WCEQU.js";
83
+ import {
84
+ isCliFailure,
85
+ storeDamaged
86
+ } from "./chunk-ZEQ7ONPZ.js";
79
87
  import {
80
- sharedConfigPath
81
- } from "./chunk-7Y3RUEVY.js";
88
+ readSharedSection,
89
+ sharedConfigPath,
90
+ writeSharedSection
91
+ } from "./chunk-FQZSS3AB.js";
82
92
  import {
83
93
  filesPresent,
84
94
  sharedModelsDirectory
85
- } from "./chunk-F6KBVIJP.js";
95
+ } from "./chunk-7VUNJDYU.js";
86
96
  import {
87
97
  storePath
88
- } from "./chunk-3GRX7WP6.js";
98
+ } from "./chunk-6K5R3YPN.js";
89
99
  import {
90
100
  configFilePath,
91
101
  createRecordLog,
@@ -98,7 +108,7 @@ import {
98
108
  saveConfigFile,
99
109
  traceIdOf,
100
110
  writeSecurely
101
- } from "./chunk-YHZFGUAP.js";
111
+ } from "./chunk-V5Z2JO6X.js";
102
112
  import {
103
113
  COMPACT_FLAG,
104
114
  MAX_NEXT_STEPS,
@@ -141,6 +151,7 @@ import {
141
151
  regex,
142
152
  safeInteger,
143
153
  safeParse,
154
+ startsWith,
144
155
  stepOf,
145
156
  strictObject,
146
157
  string,
@@ -148,20 +159,21 @@ import {
148
159
  union,
149
160
  unknown,
150
161
  unwrap,
162
+ url,
151
163
  variant,
152
164
  writes
153
- } from "./chunk-EPCFXKTX.js";
165
+ } from "./chunk-KC4MQRAB.js";
154
166
  import {
155
167
  CliError,
156
168
  isCliError,
157
169
  singleLine,
158
170
  visibleControls
159
- } from "./chunk-BXTDAGM4.js";
171
+ } from "./chunk-SMHLQEE2.js";
160
172
  import {
161
173
  __name
162
174
  } from "./chunk-ZVVMGPBJ.js";
163
175
 
164
- // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
176
+ // node_modules/.pnpm/@wirecat+cli-base@0.87.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
165
177
  var labels = /* @__PURE__ */ new WeakMap();
166
178
  var annotate = /* @__PURE__ */ __name((command, meta) => {
167
179
  labels.set(command, { ...labels.get(command), ...meta });
@@ -3662,7 +3674,7 @@ __name(useColor, "useColor");
3662
3674
  // node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
3663
3675
  var program = new Command();
3664
3676
 
3665
- // node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
3677
+ // node_modules/.pnpm/@wirecat+cli-base@0.87.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
3666
3678
  import { isDeepStrictEqual } from "node:util";
3667
3679
  var protectedCommands = /* @__PURE__ */ new WeakMap();
3668
3680
  var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
@@ -3864,7 +3876,7 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build,
3864
3876
  return command;
3865
3877
  }, "customizeSharedCommand");
3866
3878
 
3867
- // node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
3879
+ // node_modules/.pnpm/@wirecat+cli-base@0.87.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
3868
3880
  var argumentInfoSchema = object({
3869
3881
  name: string(),
3870
3882
  required: boolean(),
@@ -3938,7 +3950,7 @@ var commandsDocumentSchema = strictObject({
3938
3950
  exit_codes: record(string(), pipe(number(), integer()))
3939
3951
  });
3940
3952
 
3941
- // node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
3953
+ // node_modules/.pnpm/@wirecat+cli-base@0.87.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
3942
3954
  var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3943
3955
  let command = root;
3944
3956
  const path2 = [];
@@ -3956,7 +3968,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3956
3968
  }
3957
3969
  }, "refuseJoinedPath");
3958
3970
 
3959
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/sends/guarded.js
3971
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/sends/guarded.js
3960
3972
  import { AsyncLocalStorage } from "node:async_hooks";
3961
3973
  var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
3962
3974
  messageId: message2.id,
@@ -4062,7 +4074,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
4062
4074
  }, "guardedWrite");
4063
4075
  var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
4064
4076
 
4065
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
4077
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
4066
4078
  var named = /* @__PURE__ */ __name((work) => {
4067
4079
  try {
4068
4080
  return work();
@@ -4089,7 +4101,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
4089
4101
  return projectFields(value, fields);
4090
4102
  }), "projectFields");
4091
4103
 
4092
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/execution.js
4104
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/execution.js
4093
4105
  var DEFAULT_COMMAND_MS = 3e4;
4094
4106
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
4095
4107
  var DEFAULT_SYNC_MS = 15 * 6e4;
@@ -4272,7 +4284,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
4272
4284
  }
4273
4285
  }, "withAbort");
4274
4286
 
4275
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/sends/permissions.js
4287
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/sends/permissions.js
4276
4288
  var LEVELS = ["deny", "readonly", "ask", "allow"];
4277
4289
  var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
4278
4290
  var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
@@ -4301,6 +4313,10 @@ var DEFAULT_PERMISSIONS = {
4301
4313
  "server.stop": "ask",
4302
4314
  "server.restart": "ask",
4303
4315
  "models.download": "ask",
4316
+ // NEED-2357.f: many MCP clients (ChatGPT) cannot answer a question, and a switch deletes nothing; kept as a key so a
4317
+ // profile can still deny it.
4318
+ "models.set": "allow",
4319
+ "models.add": "ask",
4304
4320
  "images.models.download": "ask",
4305
4321
  "schedule.run": "ask",
4306
4322
  "schedule.exec": "ask",
@@ -4668,7 +4684,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
4668
4684
  }
4669
4685
  }, "assertRetentionEvidenceRead");
4670
4686
 
4671
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
4687
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
4672
4688
  import { existsSync, readdirSync, readFileSync } from "node:fs";
4673
4689
  import { join } from "node:path";
4674
4690
  var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
@@ -4757,7 +4773,7 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
4757
4773
  return readdirSync(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
4758
4774
  }, "registryProfiles");
4759
4775
 
4760
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
4776
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
4761
4777
  import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync2 } from "node:fs";
4762
4778
  import { join as join2 } from "node:path";
4763
4779
  var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
@@ -4779,7 +4795,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
4779
4795
  }, "profilesWithAccounts");
4780
4796
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
4781
4797
 
4782
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/output-detail.js
4798
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/output-detail.js
4783
4799
  var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
4784
4800
  var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
4785
4801
  var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
@@ -4815,7 +4831,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
4815
4831
  return value;
4816
4832
  }, "atDetail");
4817
4833
 
4818
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/output.js
4834
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/output.js
4819
4835
  var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
4820
4836
  const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
4821
4837
  if (other)
@@ -4879,7 +4895,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
4879
4895
  }, "warn")
4880
4896
  }), "silence");
4881
4897
 
4882
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4898
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4883
4899
  var CORE_LOG_EVENTS = defineLogEvents([
4884
4900
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
4885
4901
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -4913,7 +4929,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
4913
4929
  cache: "cache.answered"
4914
4930
  };
4915
4931
 
4916
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
4932
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
4917
4933
  var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
4918
4934
  var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
4919
4935
  var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
@@ -4926,13 +4942,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
4926
4942
  error: /* @__PURE__ */ __name((event2, message2) => logger.error(logAttributes(event2), message2), "error")
4927
4943
  }), "snakeLogger");
4928
4944
 
4929
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/runs/run.js
4945
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/runs/run.js
4930
4946
  import { randomUUID } from "node:crypto";
4931
4947
  import { appendFileSync, mkdirSync, readdirSync as readdirSync3, readFileSync as readFileSync3, rmSync, statSync, writeFileSync } from "node:fs";
4932
4948
  import { userInfo } from "node:os";
4933
4949
  import { join as join3, sep } from "node:path";
4934
4950
 
4935
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
4951
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
4936
4952
  var diagnostic = {
4937
4953
  event: true,
4938
4954
  operation: true,
@@ -5002,7 +5018,7 @@ var LOG_ATTRIBUTES = [
5002
5018
  ...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
5003
5019
  ].sort();
5004
5020
 
5005
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/runs/run.js
5021
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/runs/run.js
5006
5022
  var KEEP_RUNS_FOR_DAYS = 30;
5007
5023
  var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
5008
5024
  var RUNS_SIZE_LIMIT_MB = 200;
@@ -5118,8 +5134,8 @@ var runtime = /* @__PURE__ */ __name(() => {
5118
5134
  }, "runtime");
5119
5135
  var newRunId = /* @__PURE__ */ __name((startedAt, command) => {
5120
5136
  const stamp = startedAt.toISOString().replace(/[-:]/g, "").replace(/\.\d+Z$/, "Z");
5121
- const slug = command.replace(/[^a-z0-9]+/gi, "-").toLowerCase();
5122
- return `${stamp}-${slug}-${randomUUID().slice(0, 6)}`;
5137
+ const slug2 = command.replace(/[^a-z0-9]+/gi, "-").toLowerCase();
5138
+ return `${stamp}-${slug2}-${randomUUID().slice(0, 6)}`;
5123
5139
  }, "newRunId");
5124
5140
  var INDEX = "index.jsonl";
5125
5141
  var appendIndex = /* @__PURE__ */ __name((dayDir, written) => {
@@ -5355,7 +5371,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
5355
5371
  };
5356
5372
  }, "metadataOf");
5357
5373
 
5358
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/runs/scope.js
5374
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/runs/scope.js
5359
5375
  import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
5360
5376
  import { randomBytes } from "node:crypto";
5361
5377
  var scopes = new AsyncLocalStorage2();
@@ -5374,7 +5390,7 @@ var currentRun = /* @__PURE__ */ __name(() => {
5374
5390
  }, "currentRun");
5375
5391
  var inRun = /* @__PURE__ */ __name((scope, body) => scopes.run(scope, body), "inRun");
5376
5392
  var runEvent = /* @__PURE__ */ __name((event2) => scopes.getStore()?.events?.(event2), "runEvent");
5377
- var typedCommand = /* @__PURE__ */ __name((tool, words, profile = currentRun().profile) => [tool, profile, words].filter((part) => part !== void 0 && part !== "").join(" "), "typedCommand");
5393
+ var typedCommand = /* @__PURE__ */ __name((tool, words2, profile = currentRun().profile) => [tool, profile, words2].filter((part) => part !== void 0 && part !== "").join(" "), "typedCommand");
5378
5394
  var useAsProcessRun = /* @__PURE__ */ __name((scope) => {
5379
5395
  processScope = scope;
5380
5396
  }, "useAsProcessRun");
@@ -5393,7 +5409,7 @@ var attempts = new AsyncLocalStorage2();
5393
5409
  var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
5394
5410
  var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
5395
5411
 
5396
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/runs/recording.js
5412
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/runs/recording.js
5397
5413
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
5398
5414
  const recording = startRecording(options);
5399
5415
  try {
@@ -5484,7 +5500,14 @@ var startRecording = /* @__PURE__ */ __name((options) => {
5484
5500
  ...partial2 ? { partial: partial2 } : {}
5485
5501
  });
5486
5502
  }, "succeed"),
5487
- fail: /* @__PURE__ */ __name(async (error) => {
5503
+ fail: /* @__PURE__ */ __name(async (thrown) => {
5504
+ const error = storeDamaged(thrown);
5505
+ markStoreDamaged(thrown, {
5506
+ store: storePath(options.env),
5507
+ command: `${options.app.command} ${options.command}`,
5508
+ version: options.app.version,
5509
+ runId
5510
+ });
5488
5511
  const failed = run ?? (held ? keep(open({ startedAt })) : void 0);
5489
5512
  if (failed) {
5490
5513
  if (!isCliFailure(error))
@@ -5499,8 +5522,8 @@ var startRecording = /* @__PURE__ */ __name((options) => {
5499
5522
  ...run ? {} : { keptBecauseFailed: true }
5500
5523
  });
5501
5524
  }
5502
- if (typeof error === "object" && error !== null)
5503
- settled.add(error);
5525
+ if (typeof thrown === "object" && thrown !== null)
5526
+ settled.add(thrown);
5504
5527
  }, "fail")
5505
5528
  };
5506
5529
  }, "startRecording");
@@ -5578,7 +5601,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
5578
5601
  return void 0;
5579
5602
  }, "partialOutcome");
5580
5603
 
5581
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/deadline.js
5604
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/deadline.js
5582
5605
  var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
5583
5606
  if (ms2 === void 0)
5584
5607
  return body();
@@ -5604,7 +5627,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
5604
5627
  }
5605
5628
  }, "withDeadline");
5606
5629
 
5607
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/profile.js
5630
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/profile.js
5608
5631
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
5609
5632
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
5610
5633
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -5630,19 +5653,19 @@ var takesProfile = /* @__PURE__ */ __name((command) => {
5630
5653
  return top !== void 0 && !PROFILE_FREE.has(top.name());
5631
5654
  }, "takesProfile");
5632
5655
  var commandWords = /* @__PURE__ */ __name((program2) => /* @__PURE__ */ new Set(["help", ...program2.commands.flatMap((command) => [command.name(), ...command.aliases()])]), "commandWords");
5633
- var liftProfile = /* @__PURE__ */ __name((argv, words, valued = /* @__PURE__ */ new Set()) => {
5656
+ var liftProfile = /* @__PURE__ */ __name((argv, words2, valued = /* @__PURE__ */ new Set()) => {
5634
5657
  let at2 = 0;
5635
5658
  while (argv[at2]?.startsWith("-") && argv[at2] !== "--")
5636
5659
  at2 += valued.has(argv[at2]) ? 2 : 1;
5637
5660
  const first2 = argv[at2];
5638
- if (first2 === void 0 || first2.startsWith("-") || words.has(first2))
5661
+ if (first2 === void 0 || first2.startsWith("-") || words2.has(first2))
5639
5662
  return { rest: argv };
5640
5663
  return { profile: first2, rest: [...argv.slice(0, at2), ...argv.slice(at2 + 1)] };
5641
5664
  }, "liftProfile");
5642
5665
  var valuedOptions = /* @__PURE__ */ __name((program2) => new Set(program2.options.filter((option) => option.required).flatMap((option) => [option.long, option.short].filter((flag2) => flag2 !== void 0))), "valuedOptions");
5643
- var refuseCommandName = /* @__PURE__ */ __name((profile, words, command) => {
5644
- if (words.has(profile)) {
5645
- throw new CliError("validation_error", `"${profile}" is a command, so \`${command} ${profile} \u2026\` would always mean the command and never this profile. Pick a name that is not one of: ` + [...words].sort().join(", "));
5666
+ var refuseCommandName = /* @__PURE__ */ __name((profile, words2, command) => {
5667
+ if (words2.has(profile)) {
5668
+ throw new CliError("validation_error", `"${profile}" is a command, so \`${command} ${profile} \u2026\` would always mean the command and never this profile. Pick a name that is not one of: ` + [...words2].sort().join(", "));
5646
5669
  }
5647
5670
  }, "refuseCommandName");
5648
5671
  var rootOf = /* @__PURE__ */ __name((command) => {
@@ -5673,20 +5696,20 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
5673
5696
  return void 0;
5674
5697
  }, "sampleCommand");
5675
5698
 
5676
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/settings.js
5699
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/settings.js
5677
5700
  import { existsSync as existsSync4 } from "node:fs";
5678
5701
 
5679
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/models/endpoint.js
5702
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/models/endpoint.js
5680
5703
  var endpoint = /* @__PURE__ */ __name((value) => {
5681
5704
  try {
5682
- const url2 = new URL(value);
5683
- return ["https:", "http:"].includes(url2.protocol) && !url2.username && !url2.password && !url2.search && !url2.hash;
5705
+ const url3 = new URL(value);
5706
+ return ["https:", "http:"].includes(url3.protocol) && !url3.username && !url3.password && !url3.search && !url3.hash;
5684
5707
  } catch {
5685
5708
  return false;
5686
5709
  }
5687
5710
  }, "endpoint");
5688
5711
 
5689
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/models/settings.js
5712
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/models/settings.js
5690
5713
  var MODEL_FIELDS = ["provider", "model", "base_url"];
5691
5714
  var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
5692
5715
  provider: optional(picklist(["off", "openai", "anthropic"])),
@@ -5755,13 +5778,13 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
5755
5778
  };
5756
5779
  }, "modelTarget");
5757
5780
 
5758
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/analysis/settings.js
5781
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/analysis/settings.js
5759
5782
  var model = pipe(string(), trim(), minLength(1), maxLength(200));
5760
- var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
5783
+ var url2 = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
5761
5784
  var AI_FIELDS = {
5762
5785
  embeddingProvider: optional(picklist(["local", "openai"])),
5763
5786
  embeddingModel: optional(model),
5764
- embeddingBaseUrl: optional(url),
5787
+ embeddingBaseUrl: optional(url2),
5765
5788
  embeddingDims: optional(pipe(number(), integer(), minValue(1), maxValue(65536))),
5766
5789
  models: optional(modelSettingsShape)
5767
5790
  };
@@ -5799,7 +5822,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
5799
5822
  };
5800
5823
  }, "resolveAISettings");
5801
5824
 
5802
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/domain/duration.js
5825
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/domain/duration.js
5803
5826
  var DURATION = /^(\d+)(ms|s|m|h|d)$/;
5804
5827
  var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
5805
5828
  var parseDuration = /* @__PURE__ */ __name((value, source2) => {
@@ -5813,14 +5836,16 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
5813
5836
  return ms2;
5814
5837
  }, "parseDuration");
5815
5838
 
5816
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/embeddings/models.js
5839
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/embeddings/models.js
5817
5840
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
5818
5841
  var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
5842
+ var e5Large = huggingFace("Xenova/multilingual-e5-large", "00fc3aeb3dbb95842de2ac1961d33c6319acf57b");
5819
5843
  var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
5820
5844
  var TEXT_MODELS = [
5821
5845
  {
5822
5846
  id: "e5-small",
5823
5847
  title: "multilingual-e5-small, 8-bit",
5848
+ size: "small",
5824
5849
  languages: "about 100 languages, Russian and English among them",
5825
5850
  licence: "MIT",
5826
5851
  dims: 384,
@@ -5854,6 +5879,7 @@ var TEXT_MODELS = [
5854
5879
  {
5855
5880
  id: "embeddinggemma",
5856
5881
  title: "EmbeddingGemma 300M, 4-bit",
5882
+ size: "medium",
5857
5883
  languages: "over 100 languages \u2014 the best of the two on chat, about seven times slower",
5858
5884
  licence: "Gemma Terms of Use",
5859
5885
  terms: "https://ai.google.dev/gemma/terms",
@@ -5890,16 +5916,113 @@ var TEXT_MODELS = [
5890
5916
  bytes: 1156830
5891
5917
  }
5892
5918
  ]
5919
+ },
5920
+ {
5921
+ id: "e5-large",
5922
+ title: "multilingual-e5-large, 8-bit",
5923
+ size: "large",
5924
+ languages: "about 100 languages, Russian and English among them \u2014 reads better than e5-small, several times slower",
5925
+ licence: "MIT",
5926
+ dims: 1024,
5927
+ maxTokens: 512,
5928
+ // 2026-11-07, one 8-thread session on the Ryzen AI 9 HX 470 while other benchmarks ran: 3.4 chunks/s.
5929
+ chunksPerSecond: 4,
5930
+ pooling: "mean",
5931
+ prefix: { query: "query: ", passage: "passage: " },
5932
+ onnx: "onnx/model_quantized.onnx",
5933
+ files: [
5934
+ {
5935
+ name: "onnx/model_quantized.onnx",
5936
+ url: e5Large("onnx/model_quantized.onnx"),
5937
+ sha256: "0a8d65db9a36f810ba5da15249f13145fcdc7890e6656f1fd38cd8b7c4db1fca",
5938
+ bytes: 561768762
5939
+ },
5940
+ {
5941
+ name: "tokenizer.json",
5942
+ url: e5Large("tokenizer.json"),
5943
+ sha256: "62c24cdc13d4c9952d63718d6c9fa4c287974249e16b7ade6d5a85e7bbb75626",
5944
+ bytes: 17082660
5945
+ },
5946
+ {
5947
+ name: "tokenizer_config.json",
5948
+ url: e5Large("tokenizer_config.json"),
5949
+ sha256: "efb5c0d09722e5fe59a462cd2a9976ee216d55b037597d997cd3fe833216da15",
5950
+ bytes: 418
5951
+ }
5952
+ ]
5893
5953
  }
5894
5954
  ];
5895
5955
  var DEFAULT_TEXT_MODEL = "e5-small";
5896
- var textModel = /* @__PURE__ */ __name((id6) => {
5897
- const found = TEXT_MODELS.find((model3) => model3.id === id6);
5956
+ var SECTION = "text_models";
5957
+ var slug = pipe(string(), regex(/^[a-z0-9][a-z0-9._-]{0,62}$/, "is not a model id: a-z, 0-9, . _ -"));
5958
+ var words = pipe(string(), trim(), minLength(1), maxLength(300));
5959
+ var fileName = pipe(string(), check((name) => /^[\w.-]+(\/[\w.-]+)*$/.test(name) && !name.split("/").some((part) => part === ".." || part === "."), "is not a file inside the model's folder"));
5960
+ var modelFile = strictObject({
5961
+ name: fileName,
5962
+ url: pipe(string(), url(), startsWith("https://", "has to be an https address")),
5963
+ sha256: pipe(string(), regex(/^[0-9a-f]{64}$/, "has to be a sha256 in hex")),
5964
+ bytes: pipe(number(), integer(), minValue(1))
5965
+ });
5966
+ var CustomTextModelShape = pipe(strictObject({
5967
+ id: slug,
5968
+ title: words,
5969
+ languages: words,
5970
+ licence: words,
5971
+ terms: optional(pipe(string(), url())),
5972
+ dims: pipe(number(), integer(), minValue(1), maxValue(8192)),
5973
+ maxTokens: pipe(number(), integer(), minValue(16), maxValue(32768)),
5974
+ chunksPerSecond: optional(pipe(number(), minValue(0.01))),
5975
+ pooling: picklist(["mean", "sentence_embedding"]),
5976
+ prefix: strictObject({
5977
+ query: pipe(string(), maxLength(200)),
5978
+ passage: pipe(string(), maxLength(200))
5979
+ }),
5980
+ onnx: fileName,
5981
+ externalData: optional(fileName),
5982
+ files: pipe(array(modelFile), minLength(1), maxLength(16))
5983
+ }), check((model3) => !TEXT_MODELS.some((one) => one.id === model3.id), "takes the id of a model this version ships; choose another"), check((model3) => {
5984
+ const names = model3.files.map(({ name }) => name);
5985
+ return [model3.onnx, model3.externalData, "tokenizer.json", "tokenizer_config.json"].every((name) => name === void 0 || names.includes(name));
5986
+ }, "has to list its onnx file, its external data and tokenizer.json and tokenizer_config.json among files"));
5987
+ var TextModelsSection = strictObject({
5988
+ use: optional(slug),
5989
+ custom: optional(array(CustomTextModelShape))
5990
+ });
5991
+ var textModelsFile = /* @__PURE__ */ __name((env = process.env) => sharedConfigPath(storePath(env), env), "textModelsFile");
5992
+ var readTextModelsSection = /* @__PURE__ */ __name((env = process.env) => {
5993
+ const path2 = textModelsFile(env);
5994
+ const section = readSharedSection(path2, SECTION);
5995
+ if (section === void 0)
5996
+ return {};
5997
+ const checked = safeParse(TextModelsSection, section);
5998
+ if (!checked.success) {
5999
+ const issue = checked.issues[0];
6000
+ const at2 = issue ? getDotPath(issue) : null;
6001
+ throw new CliError("configuration_error", `${path2}: ${SECTION}${at2 ? `.${at2}` : ""} ${issue?.message ?? "is not valid"}`);
6002
+ }
6003
+ const ids = checked.output.custom?.map(({ id: id6 }) => id6) ?? [];
6004
+ const twice = ids.find((id6, at2) => ids.indexOf(id6) !== at2);
6005
+ if (twice)
6006
+ throw new CliError("configuration_error", `${path2}: ${SECTION}.custom names ${twice} twice`);
6007
+ return checked.output;
6008
+ }, "readTextModelsSection");
6009
+ var writeTextModelsSection = /* @__PURE__ */ __name((section, env = process.env) => writeSharedSection(textModelsFile(env), SECTION, section.use === void 0 && !section.custom?.length ? void 0 : section), "writeTextModelsSection");
6010
+ var textModels = /* @__PURE__ */ __name((env = process.env) => [
6011
+ ...TEXT_MODELS,
6012
+ ...(readTextModelsSection(env).custom ?? []).map((model3) => ({ ...model3, custom: true }))
6013
+ ], "textModels");
6014
+ var textModel = /* @__PURE__ */ __name((id6, env = process.env) => {
6015
+ const known = textModels(env);
6016
+ const found = known.find((model3) => model3.id === id6);
5898
6017
  if (!found) {
5899
- throw new CliError("validation_error", `no text model ${id6} \u2014 one of: ${TEXT_MODELS.map((model3) => model3.id).join(", ")}`);
6018
+ throw new CliError("validation_error", `no text model ${id6} \u2014 one of: ${known.map((model3) => model3.id).join(", ")}`);
5900
6019
  }
5901
6020
  return found;
5902
6021
  }, "textModel");
6022
+ var chosenTextModel = /* @__PURE__ */ __name((env = process.env) => {
6023
+ const use = readTextModelsSection(env).use;
6024
+ return use === void 0 ? { id: DEFAULT_TEXT_MODEL, from: "default" } : { id: use, from: "chosen" };
6025
+ }, "chosenTextModel");
5903
6026
  var mmarco = huggingFace("cross-encoder/mmarco-mMiniLMv2-L12-H384-v1", "1427fd652930e4ba29e8149678df786c240d8825");
5904
6027
  var bge = huggingFace("onnx-community/bge-reranker-v2-m3-ONNX", "6f5ff65298512715a1e669753bc754d2bc8f367b");
5905
6028
  var RERANK_MODELS = [
@@ -5969,10 +6092,13 @@ var rerankModel = /* @__PURE__ */ __name((id6) => {
5969
6092
  }
5970
6093
  return found;
5971
6094
  }, "rerankModel");
5972
- var vectorModelKey = /* @__PURE__ */ __name((model3) => `local:${model3.id}:${model3.dims}`, "vectorModelKey");
6095
+ var vectorModelKey = /* @__PURE__ */ __name((model3) => {
6096
+ const weights = model3.custom ? model3.files.find(({ name }) => name === model3.onnx)?.sha256.slice(0, 12) : void 0;
6097
+ return `local:${model3.id}${weights ? `@${weights}` : ""}:${model3.dims}`;
6098
+ }, "vectorModelKey");
5973
6099
  var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
5974
6100
 
5975
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/services/history-limits.js
6101
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/services/history-limits.js
5976
6102
  var HISTORY_MAX_DAYS = 1095;
5977
6103
  var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
5978
6104
  var DAY_MS2 = 24 * 60 * 60 * 1e3;
@@ -6019,10 +6145,10 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
6019
6145
  return { batch: { ...batch, messages }, skipped };
6020
6146
  }, "limitBatch");
6021
6147
 
6022
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
6148
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
6023
6149
  import { readFileSync as readFileSync4 } from "node:fs";
6024
6150
 
6025
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
6151
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
6026
6152
  var REPAIR_WORDS = {
6027
6153
  byte_order_mark: "an invisible byte-order mark at the start",
6028
6154
  comment: "a comment, which JSON does not allow",
@@ -6263,7 +6389,7 @@ ${parts.join(",\n")}
6263
6389
  ${indent}${close}`;
6264
6390
  }, "serialise");
6265
6391
 
6266
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
6392
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
6267
6393
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
6268
6394
  var SECTIONS = ["personal", "bot"];
6269
6395
  var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
@@ -6557,7 +6683,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
6557
6683
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
6558
6684
  }, "readConfigFile");
6559
6685
 
6560
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/default-config.js
6686
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/default-config.js
6561
6687
  import { existsSync as existsSync3, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
6562
6688
  import { dirname, join as join4 } from "node:path";
6563
6689
  var DEFAULT_CONFIG = {
@@ -6586,7 +6712,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
6586
6712
  }
6587
6713
  __name(ensureDefaultConfig, "ensureDefaultConfig");
6588
6714
 
6589
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
6715
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
6590
6716
  var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
6591
6717
  var parentOf = /* @__PURE__ */ __name((config, key) => {
6592
6718
  const path2 = key.split(".");
@@ -6608,7 +6734,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
6608
6734
  return { config, added };
6609
6735
  }, "withSettingDefaults");
6610
6736
 
6611
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/settings.js
6737
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/settings.js
6612
6738
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
6613
6739
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
6614
6740
  var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
@@ -6752,8 +6878,8 @@ var NoProfileHere = class extends CliError {
6752
6878
  this.app = app;
6753
6879
  }
6754
6880
  /** `words`: the command that was typed, without its arguments, so the suggestion runs as written. */
6755
- withoutSetup(words) {
6756
- const command = words ? `${this.app.command} personal ${words}` : `${this.app.command} personal \u2026`;
6881
+ withoutSetup(words2) {
6882
+ const command = words2 ? `${this.app.command} personal ${words2}` : `${this.app.command} personal \u2026`;
6757
6883
  return new CliError("validation_error", `name a profile: there is none on this computer yet \u2014 any name works, such as \`${command}\` (or set ${envName(this.app, "PROFILE")})`, { profiles: [] });
6758
6884
  }
6759
6885
  };
@@ -7118,7 +7244,7 @@ var given = /* @__PURE__ */ __name((value) => {
7118
7244
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
7119
7245
  }, "given");
7120
7246
 
7121
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/context.js
7247
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/context.js
7122
7248
  var setExitCode = /* @__PURE__ */ __name((command, code) => {
7123
7249
  const slot = environmentOf(command).exit;
7124
7250
  if (slot)
@@ -7226,14 +7352,21 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
7226
7352
  }, "track")
7227
7353
  };
7228
7354
  }, "baseContext");
7355
+ var inCommandRun = /* @__PURE__ */ __name((command, body) => {
7356
+ const { resolveSettings } = environmentOf(command);
7357
+ if (!resolveSettings)
7358
+ return body(() => {
7359
+ });
7360
+ return baseContext(command, (flags, options) => resolveSettings(flags, { ...options, needsProfile: false })).run(body);
7361
+ }, "inCommandRun");
7229
7362
  var commandPath = /* @__PURE__ */ __name((command) => {
7230
- const words = [];
7363
+ const words2 = [];
7231
7364
  for (let current2 = command; current2?.parent; current2 = current2.parent)
7232
- words.unshift(current2.name());
7233
- return words.join(" ");
7365
+ words2.unshift(current2.name());
7366
+ return words2.join(" ");
7234
7367
  }, "commandPath");
7235
7368
 
7236
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/effects.js
7369
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/effects.js
7237
7370
  var REMOTE_READ = { remote: "read", local: "read" };
7238
7371
  var FETCH = { remote: "read", local: "write" };
7239
7372
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -7296,6 +7429,14 @@ var fetchesOnly = /* @__PURE__ */ __name((command) => {
7296
7429
  return effects?.remote === "read" && effects.local === "write" && !STORE_WRITES.has(command) && !changesAuthority(command) && !OTHER_SERVICE.has(command) && !savesFiles(command);
7297
7430
  }, "fetchesOnly");
7298
7431
  var FILE_OPTION = /* @__PURE__ */ new WeakMap();
7432
+ var writesFileOnlyWith = /* @__PURE__ */ __name((command, option) => {
7433
+ const flag2 = command.options.find((one) => one.attributeName() === option);
7434
+ if (!flag2 || optionMetaOf(flag2).mcp !== false)
7435
+ throw new Error(`${command.name()}: writesFileOnlyWith needs --${option} added first, as an owner-only option`);
7436
+ FILE_OPTION.set(command, option);
7437
+ return command;
7438
+ }, "writesFileOnlyWith");
7439
+ var writesNewFileOnlyWith = /* @__PURE__ */ __name((command, option) => destroysNothing(writesFileOnlyWith(command, option)), "writesNewFileOnlyWith");
7299
7440
  var writesFileNow = /* @__PURE__ */ __name((command) => {
7300
7441
  const option = FILE_OPTION.get(command);
7301
7442
  return option === void 0 || command.opts()[option] !== void 0;
@@ -7320,10 +7461,10 @@ var refuseStoreChange = /* @__PURE__ */ __name((app, env) => {
7320
7461
  throw readOnlyRefusal(lock, storeChangeRefusal(app));
7321
7462
  }, "refuseStoreChange");
7322
7463
  var pathOf2 = /* @__PURE__ */ __name((command) => {
7323
- const words = [];
7464
+ const words2 = [];
7324
7465
  for (let at2 = command; at2.parent; at2 = at2.parent)
7325
- words.unshift(at2.name());
7326
- return words;
7466
+ words2.unshift(at2.name());
7467
+ return words2;
7327
7468
  }, "pathOf");
7328
7469
  var changesMessenger = /* @__PURE__ */ __name((command) => {
7329
7470
  const { path: path2, effects, lifetime, reaches } = "path" in command ? command : { path: pathOf2(command), ...metaOf(command) };
@@ -7357,7 +7498,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
7357
7498
  throw readOnlyRefusal(lock, what);
7358
7499
  }, "refuseUnderReadOnly");
7359
7500
 
7360
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/account.js
7501
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/account.js
7361
7502
  var account = strictObject({
7362
7503
  provider: text,
7363
7504
  id,
@@ -7367,7 +7508,7 @@ var account = strictObject({
7367
7508
  scope: optional(picklist(["personal", "work"]))
7368
7509
  });
7369
7510
 
7370
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/account-session.js
7511
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/account-session.js
7371
7512
  var accountSession = strictObject({
7372
7513
  current: boolean(),
7373
7514
  client: nullable(text),
@@ -7377,7 +7518,7 @@ var accountSession = strictObject({
7377
7518
  created_at: optional(nullable(time))
7378
7519
  });
7379
7520
 
7380
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/account-change.js
7521
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/account-change.js
7381
7522
  var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
7382
7523
  var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
7383
7524
  var audience = picklist(["everyone", "contacts", "nobody"]);
@@ -7394,8 +7535,19 @@ var accountPrivacy = strictObject({
7394
7535
  last_seen: optional(shownAudience)
7395
7536
  });
7396
7537
  var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
7538
+ var removalKind = picklist(["sign_in", "keyring", "config", "file", "store", "unit", "schedule"]);
7539
+ var accountRemoval = strictObject({
7540
+ profile: text,
7541
+ data: picklist(["kept", "deleted"]),
7542
+ dry_run: boolean(),
7543
+ account: nullable(strictObject({ provider: text, account: text })),
7544
+ revoked: nullable(boolean()),
7545
+ config_file: text,
7546
+ removed: array(strictObject({ kind: removalKind, target: text })),
7547
+ kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
7548
+ });
7397
7549
 
7398
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
7550
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
7399
7551
  var accountProfile = strictObject({
7400
7552
  profile: id,
7401
7553
  current: boolean(),
@@ -7407,7 +7559,7 @@ var accountProfile = strictObject({
7407
7559
  bot: optional(literal(true))
7408
7560
  });
7409
7561
 
7410
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
7562
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
7411
7563
  var milliseconds = pipe(number(), minValue(0));
7412
7564
  var counterReading = strictObject({
7413
7565
  counter: picklist(["views", "reactions", "comments"]),
@@ -7419,7 +7571,7 @@ var counterReading = strictObject({
7419
7571
  });
7420
7572
  var selection = record(string(), unknown());
7421
7573
 
7422
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
7574
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
7423
7575
  var adminRow = strictObject({
7424
7576
  ref: reference,
7425
7577
  /** What `stats * evidence` takes: a person id, a stay or a message locator. */
@@ -7472,7 +7624,7 @@ var adminReport = strictObject({
7472
7624
  rows: array(adminRow)
7473
7625
  });
7474
7626
 
7475
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/task.js
7627
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/task.js
7476
7628
  var closeSuggestion = strictObject({
7477
7629
  as: picklist(["done", "dismissed"]),
7478
7630
  /** The agent's name. */
@@ -7534,7 +7686,7 @@ var task = strictObject({
7534
7686
  updated_at: optional(time)
7535
7687
  });
7536
7688
 
7537
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/agenda.js
7689
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/agenda.js
7538
7690
  var agendaChat = strictObject({
7539
7691
  chat: reference,
7540
7692
  title: nullable(text),
@@ -7604,11 +7756,11 @@ var agenda = strictObject({
7604
7756
  unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
7605
7757
  });
7606
7758
 
7607
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
7759
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
7608
7760
  var analysisConsent = strictObject({ chat: id, provider: text, at: time });
7609
7761
  var analysisConsentRevocation = strictObject({ revoked: boolean() });
7610
7762
 
7611
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/attachment.js
7763
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/attachment.js
7612
7764
  var attachment = strictObject({
7613
7765
  /** The message it came with, as a locator; absent inside that message. */
7614
7766
  message: optional(reference),
@@ -7646,7 +7798,7 @@ var attachment = strictObject({
7646
7798
  });
7647
7799
  var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
7648
7800
 
7649
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
7801
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
7650
7802
  var actionableError = objectWithRest({
7651
7803
  code: text,
7652
7804
  message: text,
@@ -7663,7 +7815,7 @@ var batchResult = strictObject({
7663
7815
  max_error_percent: count
7664
7816
  });
7665
7817
 
7666
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
7818
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
7667
7819
  var extractionItem = strictObject({
7668
7820
  ref: reference,
7669
7821
  attachment: count,
@@ -7696,7 +7848,7 @@ var extractionReport = strictObject({
7696
7848
  cursor: optional(text)
7697
7849
  });
7698
7850
 
7699
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
7851
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
7700
7852
  var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
7701
7853
  var attachmentBytes = strictObject({
7702
7854
  ref: reference,
@@ -7724,7 +7876,7 @@ var attachmentTextChange = strictObject({
7724
7876
  replaced: nullable(picklist(["extracted", "agent"]))
7725
7877
  });
7726
7878
 
7727
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/chart.js
7879
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/chart.js
7728
7880
  var chart = strictObject({
7729
7881
  version: literal(1),
7730
7882
  kind: picklist(["bar", "line", "grouped-bar"]),
@@ -7739,7 +7891,7 @@ var chart = strictObject({
7739
7891
  file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
7740
7892
  });
7741
7893
 
7742
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/member.js
7894
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/member.js
7743
7895
  var member = strictObject({
7744
7896
  id,
7745
7897
  name: nullable(text),
@@ -7762,7 +7914,7 @@ var member = strictObject({
7762
7914
  check: optional(record(string(), unknown()))
7763
7915
  });
7764
7916
 
7765
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/chat.js
7917
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/chat.js
7766
7918
  var setting = optional(nullable(boolean()));
7767
7919
  var chat = strictObject({
7768
7920
  ref: reference,
@@ -7803,7 +7955,7 @@ var chat = strictObject({
7803
7955
  members: optional(array(member))
7804
7956
  });
7805
7957
 
7806
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/folder.js
7958
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/folder.js
7807
7959
  var named2 = strictObject({
7808
7960
  id,
7809
7961
  title: nullable(text),
@@ -7826,7 +7978,7 @@ var folder = strictObject({
7826
7978
  excluded_chats: optional(array(named2))
7827
7979
  });
7828
7980
 
7829
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
7981
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
7830
7982
  var inviteLink = strictObject({
7831
7983
  link: text,
7832
7984
  /** Who joins by it asks first, and an admin lets them in. */
@@ -7842,7 +7994,7 @@ var inviteLink = strictObject({
7842
7994
  joined_count: optional(count)
7843
7995
  });
7844
7996
 
7845
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
7997
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
7846
7998
  var operated = { operation_id: id, chat_id: id };
7847
7999
  var group = strictObject({
7848
8000
  ...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
@@ -7922,7 +8074,7 @@ var chatFolderOrder = strictObject({
7922
8074
  folders: array(strictObject({ id, title: text }))
7923
8075
  });
7924
8076
 
7925
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
8077
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
7926
8078
  var operated2 = { operation_id: id, chat_id: id };
7927
8079
  var chatRemoval = strictObject(operated2);
7928
8080
  var chatMuting = strictObject({
@@ -7933,7 +8085,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
7933
8085
  var chatPin = strictObject({ ...operated2, pinned: boolean() });
7934
8086
  var chatUnread = strictObject({ ...operated2, unread: literal(true) });
7935
8087
 
7936
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
8088
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
7937
8089
  var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
7938
8090
  var chatEvent = strictObject({
7939
8091
  chat_id: id,
@@ -7950,7 +8102,7 @@ var chatEvent = strictObject({
7950
8102
  before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
7951
8103
  });
7952
8104
 
7953
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
8105
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
7954
8106
  var chatMetadata = strictObject({
7955
8107
  chat_id: id,
7956
8108
  title: nullable(text),
@@ -7965,7 +8117,7 @@ var chatMetadataRefresh = strictObject({
7965
8117
  has_more: boolean()
7966
8118
  });
7967
8119
 
7968
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
8120
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
7969
8121
  var action = picklist(["report", "delete", "remove"]);
7970
8122
  var level = picklist(["deny", "readonly", "ask", "allow"]);
7971
8123
  var chatRules = strictObject({
@@ -8002,7 +8154,7 @@ var chatModeration = strictObject({
8002
8154
  }))
8003
8155
  });
8004
8156
 
8005
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
8157
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
8006
8158
  var optionalCount = optional(count);
8007
8159
  var minutes = nullable(number());
8008
8160
  var chatStats = strictObject({
@@ -8076,7 +8228,7 @@ var taskStats = strictObject({
8076
8228
  }))
8077
8229
  });
8078
8230
 
8079
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
8231
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
8080
8232
  var memberCount = strictObject({
8081
8233
  day: pipe(text, isoDate()),
8082
8234
  participants: nullable(count),
@@ -8099,7 +8251,7 @@ var chatTracking = strictObject({
8099
8251
  tracked: boolean()
8100
8252
  });
8101
8253
 
8102
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
8254
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
8103
8255
  var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
8104
8256
  var contactSync = strictObject({ added: count, changed: count, known: count });
8105
8257
  var profileFields = {
@@ -8137,7 +8289,7 @@ var profileFields = {
8137
8289
  }))
8138
8290
  };
8139
8291
 
8140
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/contact.js
8292
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/contact.js
8141
8293
  var contact = strictObject({
8142
8294
  ref: reference,
8143
8295
  id,
@@ -8168,7 +8320,7 @@ var contact = strictObject({
8168
8320
  notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
8169
8321
  });
8170
8322
 
8171
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
8323
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
8172
8324
  var WEIGHTS = {
8173
8325
  bot: 3,
8174
8326
  scam: 3,
@@ -8193,7 +8345,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
8193
8345
  var DIGITS = /\d{5,}/;
8194
8346
  var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
8195
8347
 
8196
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
8348
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
8197
8349
  var linkedIdentity = strictObject({
8198
8350
  provider: text,
8199
8351
  id,
@@ -8201,6 +8353,7 @@ var linkedIdentity = strictObject({
8201
8353
  username: nullable(text),
8202
8354
  is_bot: nullable(boolean()),
8203
8355
  accounts: array(id),
8356
+ seen_in: array(strictObject({ account: id, scope: picklist(["personal", "work"]) })),
8204
8357
  method: text,
8205
8358
  linked_by: text,
8206
8359
  linked_at: time
@@ -8234,7 +8387,7 @@ var contactCheck = strictObject({
8234
8387
  checked_at: time
8235
8388
  });
8236
8389
 
8237
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/message.js
8390
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/message.js
8238
8391
  var quoted = strictObject({
8239
8392
  id,
8240
8393
  sender_id: nullable(id),
@@ -8353,7 +8506,7 @@ var message = strictObject({
8353
8506
  provider_metadata: providerMetadata
8354
8507
  });
8355
8508
 
8356
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
8509
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
8357
8510
  var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
8358
8511
  var contextMessage = strictObject({
8359
8512
  locator: reference,
@@ -8387,6 +8540,8 @@ var contextEvent = strictObject({
8387
8540
  });
8388
8541
  var context = strictObject({
8389
8542
  person: contextPerson,
8543
+ /** The accounts read: only those of the scopes the caller may read. */
8544
+ accounts: array(strictObject({ provider: text, account: id, scope: picklist(["personal", "work"]) })),
8390
8545
  shared: array(sharedChat),
8391
8546
  last: strictObject({
8392
8547
  from_them: nullable(contextMessage),
@@ -8551,7 +8706,7 @@ var contactPreparation = strictObject({
8551
8706
  })
8552
8707
  });
8553
8708
 
8554
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
8709
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
8555
8710
  var contactNote = strictObject({
8556
8711
  id,
8557
8712
  /** The contact, as a `contact:` reference. */
@@ -8563,13 +8718,13 @@ var contactNote = strictObject({
8563
8718
  updated_at: time
8564
8719
  });
8565
8720
 
8566
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
8721
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
8567
8722
  var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
8568
8723
  var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
8569
8724
  var contactStateChange = strictObject({ operation_id: id, person_id: id });
8570
8725
  var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
8571
8726
 
8572
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/conversation.js
8727
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/conversation.js
8573
8728
  var conversation = strictObject({
8574
8729
  id,
8575
8730
  chat: reference,
@@ -8584,7 +8739,7 @@ var conversation = strictObject({
8584
8739
  rules_version: count
8585
8740
  });
8586
8741
 
8587
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
8742
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
8588
8743
  var conversationBuild = strictObject({
8589
8744
  chat: id,
8590
8745
  messages: count,
@@ -8609,7 +8764,7 @@ var catchUpPreparation = strictObject({
8609
8764
  prepared: optional(conversationPreparation)
8610
8765
  });
8611
8766
 
8612
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
8767
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
8613
8768
  var conversationDetails = union([
8614
8769
  strictObject({ ...conversation.entries, messages: array(message) }),
8615
8770
  message
@@ -8699,7 +8854,7 @@ var conversationHit = strictObject({
8699
8854
  stale: boolean()
8700
8855
  });
8701
8856
 
8702
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/counters.js
8857
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/counters.js
8703
8858
  var counters = strictObject({
8704
8859
  cutoff: time,
8705
8860
  max_age_ms: milliseconds,
@@ -8729,7 +8884,7 @@ var counterRefresh = strictObject({
8729
8884
  complete: optional(boolean())
8730
8885
  });
8731
8886
 
8732
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/deal.js
8887
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/deal.js
8733
8888
  var nullableText = nullable(text);
8734
8889
  var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
8735
8890
  var outcome = picklist(["open", "won", "lost"]);
@@ -8766,7 +8921,7 @@ var deal = strictObject({
8766
8921
  value: unknown(),
8767
8922
  option_id: optional(union([string(), array(string())]))
8768
8923
  })),
8769
- people: array(strictObject({ ...party.entries, role: picklist(["owner", "contact", "decision-maker"]) })),
8924
+ people: array(strictObject({ ...party.entries, role: picklist(DEAL_ROLES) })),
8770
8925
  author: strictObject({
8771
8926
  type: picklist(["person", "bot"]),
8772
8927
  id,
@@ -8793,7 +8948,10 @@ var pipelineStage = strictObject({
8793
8948
  open: count,
8794
8949
  /** With a funnel: rows that got this far, and the share of them that reached the next stage. */
8795
8950
  reached: optional(count),
8796
- conversion: optional(nullable(number()))
8951
+ conversion: optional(nullable(number())),
8952
+ /** With a funnel: rows standing in it now, and their sum per currency, never converted. */
8953
+ items: optional(count),
8954
+ amounts: optional(array(strictObject({ amount: text, currency: text, items: count })))
8797
8955
  });
8798
8956
  var pipeline = strictObject({
8799
8957
  id,
@@ -8816,7 +8974,7 @@ var stage = strictObject({
8816
8974
  untrusted
8817
8975
  });
8818
8976
 
8819
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/document.js
8977
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/document.js
8820
8978
  var document = strictObject({
8821
8979
  ref: reference,
8822
8980
  id,
@@ -8831,7 +8989,7 @@ var document = strictObject({
8831
8989
  owners: optional(array(text))
8832
8990
  });
8833
8991
 
8834
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/document-link.js
8992
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/document-link.js
8835
8993
  var documentLink = strictObject({
8836
8994
  ref: reference,
8837
8995
  url: text,
@@ -8842,7 +9000,7 @@ var documentLink = strictObject({
8842
9000
  sender: strictObject({ id: nullable(id), name: nullable(text) })
8843
9001
  });
8844
9002
 
8845
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/evidence.js
9003
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/evidence.js
8846
9004
  var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
8847
9005
  var contribution = strictObject({
8848
9006
  message: evidenceMessage,
@@ -8872,7 +9030,7 @@ var retentionStay = strictObject({
8872
9030
  });
8873
9031
  var evidence = union([contribution, retentionStay]);
8874
9032
 
8875
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/fact.js
9033
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/fact.js
8876
9034
  var fact = strictObject({
8877
9035
  ref: reference,
8878
9036
  id,
@@ -8898,13 +9056,14 @@ var fact = strictObject({
8898
9056
  evidence: array(reference),
8899
9057
  /** With `--sources`: each piece of evidence read back. */
8900
9058
  sources: optional(array(evidenceSource)),
9059
+ source_review: optional(sourceReview),
8901
9060
  created_at: time,
8902
9061
  updated_at: time
8903
9062
  });
8904
9063
 
8905
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/hit.js
9064
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/hit.js
8906
9065
  var hit = strictObject({
8907
- kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead"]),
9066
+ kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead", ...BUSINESS_KINDS]),
8908
9067
  ref: reference,
8909
9068
  provider: text,
8910
9069
  url: optional(text),
@@ -8934,13 +9093,17 @@ var hit = strictObject({
8934
9093
  lines_total: optional(count),
8935
9094
  /** A meeting passage's stored line, so two passages of one meeting stay apart; `search meetings` gives the same. */
8936
9095
  id: optional(pipe(string(), minLength(1))),
9096
+ /** A business hit's: `proposed` waits for the owner; a product or a wallet has no review and is `confirmed`. */
9097
+ review: optional(picklist(["proposed", "confirmed"])),
9098
+ /** A business hit's record in the import that made it; absent for one the owner or an agent wrote. */
9099
+ source_record: optional(strictObject({ provider: text, account: text, external_id: text })),
8937
9100
  /** A message's files; absent when it has none. */
8938
9101
  attachments: optional(array(hitFile)),
8939
9102
  /** Absent on a note hit: the owner wrote it. */
8940
9103
  untrusted
8941
9104
  });
8942
9105
 
8943
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/identity.js
9106
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/identity.js
8944
9107
  var identity = strictObject({
8945
9108
  ref: reference,
8946
9109
  provider: text,
@@ -8953,7 +9116,7 @@ var identity = strictObject({
8953
9116
  person: optional(nullable(reference))
8954
9117
  });
8955
9118
 
8956
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
9119
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
8957
9120
  var imageEmbedding = strictObject({
8958
9121
  model: text,
8959
9122
  embedded: count,
@@ -8962,13 +9125,13 @@ var imageEmbedding = strictObject({
8962
9125
  more: boolean()
8963
9126
  });
8964
9127
 
8965
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
9128
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8966
9129
  import { spawn } from "node:child_process";
8967
9130
  import { randomBytes as randomBytes2 } from "node:crypto";
8968
9131
  import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync3, openSync, readdirSync as readdirSync4, readFileSync as readFileSync5, realpathSync, rmSync as rmSync3 } from "node:fs";
8969
9132
  import { dirname as dirname2, join as join5 } from "node:path";
8970
9133
 
8971
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
9134
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
8972
9135
  var progressOf = /* @__PURE__ */ __name((input) => {
8973
9136
  const total = input.total ?? null;
8974
9137
  const updated = input.updatedAt ?? null;
@@ -8984,7 +9147,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
8984
9147
  };
8985
9148
  }, "progressOf");
8986
9149
 
8987
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/runs/record-log.js
9150
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/runs/record-log.js
8988
9151
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
8989
9152
  const run = currentRun();
8990
9153
  const trace = traceId ?? run.traceId;
@@ -8998,7 +9161,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
8998
9161
  }));
8999
9162
  }, "recordLogFor");
9000
9163
 
9001
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
9164
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
9002
9165
  var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
9003
9166
  var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
9004
9167
  const out = openSync(log, "a", 384);
@@ -9153,7 +9316,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
9153
9316
  return { job: id6, pid, chat: input.chat, log };
9154
9317
  }, "startArchiveJob");
9155
9318
 
9156
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/job.js
9319
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/job.js
9157
9320
  var problem = strictObject({ code: text, message: text });
9158
9321
  var job = strictObject({
9159
9322
  id,
@@ -9176,7 +9339,7 @@ var job = strictObject({
9176
9339
  error: optional(problem)
9177
9340
  });
9178
9341
 
9179
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/join-request.js
9342
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/join-request.js
9180
9343
  var joinRequest = strictObject({
9181
9344
  person_id: id,
9182
9345
  name: nullable(text),
@@ -9187,7 +9350,7 @@ var joinRequest = strictObject({
9187
9350
  about: optional(text)
9188
9351
  });
9189
9352
 
9190
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/list-results.js
9353
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/list-results.js
9191
9354
  var botProfile = strictObject({
9192
9355
  name: text,
9193
9356
  token: text,
@@ -9232,11 +9395,13 @@ var scheduledJob = strictObject({
9232
9395
  failing_since: optional(time),
9233
9396
  failures: optional(number()),
9234
9397
  cost_usd: optional(number()),
9235
- /** The last time a run did not start, and why: the day's cost cap, or too little new mail. */
9398
+ input_hash: optional(text),
9399
+ /** The last time a run did not start, and why: the day's cost cap, too little new mail, or the same input. */
9236
9400
  skipped: optional(strictObject({
9237
9401
  at: time,
9238
9402
  why: text,
9239
- /** A dotted id for `why`, so a client can translate it: `cost.day-cap`, `mail.none-new`, `mail.below-threshold`. */
9403
+ /** A dotted id for `why`, so a client can translate it: `cost.day-cap`, `mail.none-new`, `mail.below-threshold`,
9404
+ * `mail.same-input`. */
9240
9405
  reason: optional(pipe(text, regex(/^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$/)))
9241
9406
  })),
9242
9407
  /** How the run's result went along each route; `reason` a dotted id, `error` the sending CLI's code and reason id. */
@@ -9280,7 +9445,7 @@ var stickerInventory = strictObject({
9280
9445
  url: optional(nullable(text))
9281
9446
  });
9282
9447
 
9283
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
9448
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
9284
9449
  var pollVote = strictObject({
9285
9450
  person_id: id,
9286
9451
  name: nullable(text),
@@ -9290,7 +9455,7 @@ var pollVote = strictObject({
9290
9455
  voted_at: time
9291
9456
  });
9292
9457
 
9293
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/listener.js
9458
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/listener.js
9294
9459
  var reactions = unwrap(unwrap(message.entries.reactions));
9295
9460
  var observation = strictObject({
9296
9461
  value: pipe(number(), minValue(0)),
@@ -9332,7 +9497,7 @@ var serveSummary = strictObject({
9332
9497
  tasks: optional(strictObject({ added: count, closed: count, review: count }))
9333
9498
  });
9334
9499
 
9335
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
9500
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
9336
9501
  var mailCounts = strictObject({
9337
9502
  by: picklist(["day", "week", "sender"]),
9338
9503
  received: count,
@@ -9347,7 +9512,7 @@ var mailCounts = strictObject({
9347
9512
  }))
9348
9513
  });
9349
9514
 
9350
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
9515
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
9351
9516
  var evidence2 = strictObject({ reference, fingerprint: text });
9352
9517
  var base = { id, evidence: array(evidence2) };
9353
9518
  var finding = variant("kind", [
@@ -9491,7 +9656,7 @@ var mailFindings = strictObject({
9491
9656
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
9492
9657
  });
9493
9658
 
9494
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
9659
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
9495
9660
  var mediaArchive = strictObject({
9496
9661
  directory: text,
9497
9662
  chats: count,
@@ -9523,7 +9688,7 @@ var mediaArchiveTimer = union([
9523
9688
  strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
9524
9689
  ]);
9525
9690
 
9526
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
9691
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
9527
9692
  var preparationId = pipe(string(), minLength(1));
9528
9693
  var preparationCount = pipe(number(), integer(), minValue(0));
9529
9694
  var preparationTime = nullable(isoTime);
@@ -9615,7 +9780,7 @@ var preparationMeeting = strictObject({
9615
9780
  updated_at: isoTime
9616
9781
  });
9617
9782
 
9618
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
9783
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
9619
9784
  var meetingEvidence = preparationEvidence;
9620
9785
  var meetingPersonContext = strictObject({
9621
9786
  person: strictObject({ uid: string(), name: nullable(string()) }),
@@ -9637,7 +9802,7 @@ var meetingPersonContext = strictObject({
9637
9802
  })
9638
9803
  });
9639
9804
 
9640
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
9805
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
9641
9806
  var evidence3 = strictObject({ reference, fingerprint: text });
9642
9807
  var base2 = { id, project: reference, evidence: array(evidence3) };
9643
9808
  var finding2 = variant("kind", [
@@ -9675,7 +9840,7 @@ var meetingFindings = strictObject({
9675
9840
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
9676
9841
  });
9677
9842
 
9678
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
9843
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
9679
9844
  var communicationCoverage = strictObject({
9680
9845
  read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
9681
9846
  query: string(),
@@ -9720,7 +9885,7 @@ var preparationCommunications = strictObject({
9720
9885
  }))
9721
9886
  });
9722
9887
 
9723
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
9888
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
9724
9889
  var meetingPreparation = strictObject({
9725
9890
  communications: optional(preparationCommunications),
9726
9891
  schema_version: literal(1),
@@ -9833,7 +9998,7 @@ var meetingPreparation = strictObject({
9833
9998
  })
9834
9999
  });
9835
10000
 
9836
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
10001
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
9837
10002
  var count4 = pipe(number(), integer(), minValue(0));
9838
10003
  var id3 = pipe(string(), minLength(1));
9839
10004
  var text3 = string();
@@ -9897,7 +10062,7 @@ var meetingProjectCandidates = strictObject({
9897
10062
  })
9898
10063
  });
9899
10064
 
9900
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
10065
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
9901
10066
  var count5 = pipe(number(), integer(), minValue(0));
9902
10067
  var id4 = pipe(string(), minLength(1), maxLength(1e3));
9903
10068
  var meetingSeriesInventory = strictObject({
@@ -9927,7 +10092,7 @@ var meetingSeriesInventory = strictObject({
9927
10092
  })
9928
10093
  });
9929
10094
 
9930
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
10095
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
9931
10096
  var text4 = string();
9932
10097
  var id5 = pipe(number(), integer(), minValue(1));
9933
10098
  var revision = picklist(["current", "superseded"]);
@@ -9944,7 +10109,7 @@ var meetingTaskProposal = strictObject({
9944
10109
  persistence: literal("proposal-only")
9945
10110
  });
9946
10111
 
9947
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/memory.js
10112
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/memory.js
9948
10113
  var memory = strictObject({
9949
10114
  ref: reference,
9950
10115
  id,
@@ -9967,11 +10132,12 @@ var memory = strictObject({
9967
10132
  /** With `--sources`: each piece of evidence read back. */
9968
10133
  sources: optional(array(evidenceSource)),
9969
10134
  last_verified_at: nullable(time),
10135
+ source_review: optional(sourceReview),
9970
10136
  created_at: time,
9971
10137
  updated_at: time
9972
10138
  });
9973
10139
 
9974
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/mention.js
10140
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/mention.js
9975
10141
  var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
9976
10142
  var status = picklist(["found", "linked", "dismissed"]);
9977
10143
  var mention = strictObject({
@@ -10014,13 +10180,13 @@ var mentionRebuild = strictObject({
10014
10180
  mentions: count
10015
10181
  });
10016
10182
 
10017
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/message-change.js
10183
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/message-change.js
10018
10184
  var operated3 = { operation_id: id, chat_id: id };
10019
10185
  var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
10020
10186
  var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
10021
10187
  var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
10022
10188
 
10023
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/message-read.js
10189
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/message-read.js
10024
10190
  var messageTranscript = strictObject({
10025
10191
  message_id: id,
10026
10192
  text,
@@ -10078,7 +10244,7 @@ var evidencePacket = strictObject({
10078
10244
  }))
10079
10245
  });
10080
10246
 
10081
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/message-context.js
10247
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/message-context.js
10082
10248
  var messageThread = strictObject({
10083
10249
  ref: reference,
10084
10250
  chat: id,
@@ -10095,7 +10261,7 @@ var messageThread = strictObject({
10095
10261
  });
10096
10262
  var messageContext = union([message, messageThread]);
10097
10263
 
10098
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
10264
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
10099
10265
  var messageCounts = strictObject({
10100
10266
  by: picklist(["chat", "sender", "day", "hour"]),
10101
10267
  total: count,
@@ -10108,7 +10274,7 @@ var messageCounts = strictObject({
10108
10274
  }))
10109
10275
  });
10110
10276
 
10111
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/message-link.js
10277
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/message-link.js
10112
10278
  var messageLink = strictObject({
10113
10279
  ref: reference,
10114
10280
  url: nullable(text),
@@ -10125,7 +10291,7 @@ var messageLink = strictObject({
10125
10291
  })))
10126
10292
  });
10127
10293
 
10128
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
10294
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
10129
10295
  var savedMessageFile = strictObject({
10130
10296
  kind: text,
10131
10297
  path: text,
@@ -10212,7 +10378,7 @@ var messageSyncAll = strictObject({
10212
10378
  var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
10213
10379
  var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
10214
10380
 
10215
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/message-write.js
10381
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/message-write.js
10216
10382
  var messageWrite = strictObject({
10217
10383
  operation_id: id,
10218
10384
  message,
@@ -10227,7 +10393,7 @@ var draftWrite = strictObject({
10227
10393
  });
10228
10394
  var messageSend = union([messageWrite, draftWrite]);
10229
10395
 
10230
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/model.js
10396
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/model.js
10231
10397
  var model2 = strictObject({
10232
10398
  id,
10233
10399
  kind: picklist(["audio", "text", "image", "reranker"]),
@@ -10235,16 +10401,34 @@ var model2 = strictObject({
10235
10401
  /** Which languages it reads, in words. */
10236
10402
  languages: text,
10237
10403
  licence: optional(text),
10404
+ /** A text model's licence terms to accept with `models download --accept-terms`. */
10405
+ terms: optional(text),
10406
+ /** A text model's size next to the others: small is fastest, large reads best. */
10407
+ size: optional(picklist(["small", "medium", "large"])),
10408
+ /** A text model's vector length. */
10409
+ dims: optional(count),
10410
+ /** About how many chunks a second a text model embeds here, when measured. */
10411
+ chunks_per_second: optional(number()),
10412
+ /** A text model the owner added with `models add`. */
10413
+ custom: optional(boolean()),
10238
10414
  /** What its files take on disk once downloaded. */
10239
10415
  size_bytes: count,
10240
10416
  downloaded: boolean(),
10241
- /** The one used when no model is named. */
10417
+ /** The one used when no model is named: for text, the one `models use` chose. */
10242
10418
  default: boolean(),
10243
10419
  /** The folder its files are in once downloaded, so an agent can place them by hand. */
10244
10420
  path: text
10245
10421
  });
10422
+ var chosenModel = strictObject({
10423
+ ...model2.entries,
10424
+ previous: id,
10425
+ /** Chunk texts the previous model has vectors for and this one has not; `null` when no store is there to count. */
10426
+ to_embed: nullable(count),
10427
+ /** Embedding time alone at the model's speed, done a part per sync; `null` when the speed or the count is unknown. */
10428
+ estimate_seconds: nullable(count)
10429
+ });
10246
10430
 
10247
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/model-key.js
10431
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/model-key.js
10248
10432
  var source = picklist(["environment", "keyring", "file"]);
10249
10433
  var modelKey = strictObject({
10250
10434
  provider: text,
@@ -10254,7 +10438,7 @@ var modelKey = strictObject({
10254
10438
  var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
10255
10439
  var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
10256
10440
 
10257
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
10441
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
10258
10442
  var versus = strictObject({ current: number(), previous: number() });
10259
10443
  var person = { person_ref: reference, name: nullable(text) };
10260
10444
  var graph = strictObject({
@@ -10288,14 +10472,14 @@ var officialStats = strictObject({
10288
10472
  graphs: record(string(), union([graph, strictObject({ error: text })]))
10289
10473
  });
10290
10474
 
10291
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/person.js
10475
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/person.js
10292
10476
  var person2 = strictObject({
10293
10477
  ref: reference,
10294
10478
  name: nullable(text),
10295
10479
  identities: optional(array(identity))
10296
10480
  });
10297
10481
 
10298
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/poll.js
10482
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/poll.js
10299
10483
  var poll = strictObject({
10300
10484
  chat_id: id,
10301
10485
  message_id: id,
@@ -10311,11 +10495,11 @@ var poll = strictObject({
10311
10495
  });
10312
10496
  var pollChange = strictObject({ operation_id: id, poll });
10313
10497
 
10314
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
10498
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
10315
10499
  var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
10316
10500
  var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
10317
10501
 
10318
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/ranking.js
10502
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/ranking.js
10319
10503
  var figures = record(string(), number());
10320
10504
  var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
10321
10505
  var rankingRow = strictObject({
@@ -10362,7 +10546,7 @@ var ranking = strictObject({
10362
10546
  rows: array(rankingRow)
10363
10547
  });
10364
10548
 
10365
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/reaction.js
10549
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/reaction.js
10366
10550
  var reaction = strictObject({
10367
10551
  person: strictObject({ id, name: nullable(text), username: nullable(text) }),
10368
10552
  /** The emoji, or `custom:<id>` for a custom one. */
@@ -10370,7 +10554,7 @@ var reaction = strictObject({
10370
10554
  reacted_at: time
10371
10555
  });
10372
10556
 
10373
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
10557
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
10374
10558
  var reactionChange = strictObject({
10375
10559
  operation_id: id,
10376
10560
  chat_id: id,
@@ -10378,7 +10562,7 @@ var reactionChange = strictObject({
10378
10562
  reaction: nullable(text)
10379
10563
  });
10380
10564
 
10381
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/recipient.js
10565
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/recipient.js
10382
10566
  var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
10383
10567
  var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
10384
10568
  var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
@@ -10389,7 +10573,7 @@ var recipientChange = strictObject({
10389
10573
  ...partial(recipientOff).entries
10390
10574
  });
10391
10575
 
10392
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
10576
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
10393
10577
  var events = array(record(string(), unknown()));
10394
10578
  var recordedRun = strictObject({
10395
10579
  run_id: id,
@@ -10461,7 +10645,7 @@ var runHit = strictObject({
10461
10645
  });
10462
10646
  var runLocation = strictObject({ path: text });
10463
10647
 
10464
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/relationship.js
10648
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/relationship.js
10465
10649
  var relationship = strictObject({
10466
10650
  id,
10467
10651
  from: reference,
@@ -10475,10 +10659,16 @@ var relationship = strictObject({
10475
10659
  confirmed: boolean(),
10476
10660
  provenance: nullable(text),
10477
10661
  confidence_category: picklist(["owner-confirmed", "weak"]),
10662
+ /** `reported`: a CRM account says so and nobody confirmed it; `ended`: it no longer holds. */
10663
+ standing: picklist(STANDINGS),
10664
+ /** A job title beside it, never its role. */
10665
+ position: nullable(text),
10666
+ starts_at: nullable(time),
10667
+ ends_at: nullable(time),
10478
10668
  created_at: time
10479
10669
  });
10480
10670
 
10481
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
10671
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
10482
10672
  var milliseconds2 = nullable(pipe(number(), minValue(0)));
10483
10673
  var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
10484
10674
  var responseTimes = strictObject({
@@ -10495,7 +10685,7 @@ var waitingChats = strictObject({
10495
10685
  by_kind: strictObject({ private: count, group: count })
10496
10686
  });
10497
10687
 
10498
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/retention.js
10688
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/retention.js
10499
10689
  var retentionCohort = strictObject({
10500
10690
  /** The first day of the joining day or week. */
10501
10691
  cohort: text,
@@ -10543,7 +10733,7 @@ var retention = strictObject({
10543
10733
  rows: array(retentionCohort)
10544
10734
  });
10545
10735
 
10546
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
10736
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
10547
10737
  var savedSearch = strictObject({
10548
10738
  id,
10549
10739
  /** `null` for a run in the history. */
@@ -10560,7 +10750,7 @@ var savedSearch = strictObject({
10560
10750
  });
10561
10751
  var searchHistoryClear = strictObject({ cleared: count });
10562
10752
 
10563
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
10753
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
10564
10754
  var sendAttempt = strictObject({
10565
10755
  at: time,
10566
10756
  profile: text,
@@ -10588,7 +10778,7 @@ var sendAttempt = strictObject({
10588
10778
  error_code: optional(text)
10589
10779
  });
10590
10780
 
10591
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
10781
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
10592
10782
  var absent = strictObject({ path: text, exists: literal(false) });
10593
10783
  var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
10594
10784
  var infoSchema = strictObject({
@@ -10809,7 +10999,7 @@ var storeRepair = union([
10809
10999
  ]);
10810
11000
  var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
10811
11001
 
10812
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/store-records.js
11002
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/store-records.js
10813
11003
  var range = strictObject({ from: number(), to: number() });
10814
11004
  var storeChatStatus = strictObject({
10815
11005
  chat_id: id,
@@ -10907,7 +11097,7 @@ var storeJobRetry = union([
10907
11097
  ]);
10908
11098
  var storeJobClear = strictObject({ cleared: array(id) });
10909
11099
 
10910
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/store-table.js
11100
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/store-table.js
10911
11101
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
10912
11102
  var storeTable = strictObject({
10913
11103
  name: text,
@@ -10916,7 +11106,7 @@ var storeTable = strictObject({
10916
11106
  bytes: optional(nullable(count))
10917
11107
  });
10918
11108
 
10919
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
11109
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
10920
11110
  var tagTarget = variant("type", [
10921
11111
  strictObject({ type: literal("chat"), chat_id: id }),
10922
11112
  strictObject({ type: literal("contact"), person_id: id }),
@@ -10947,7 +11137,7 @@ var automaticTags = strictObject({
10947
11137
  dry_run: boolean()
10948
11138
  });
10949
11139
 
10950
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/tagging.js
11140
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/tagging.js
10951
11141
  var tagging = strictObject({
10952
11142
  tag: text,
10953
11143
  type: picklist(TAG_TYPES),
@@ -10960,7 +11150,7 @@ var tagging = strictObject({
10960
11150
  created_at: time
10961
11151
  });
10962
11152
 
10963
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
11153
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
10964
11154
  var side = strictObject({ ref: reference, key: text, title: text, status: text });
10965
11155
  var taskPair = strictObject({
10966
11156
  task: nullable(side),
@@ -10983,7 +11173,7 @@ var taskPair = strictObject({
10983
11173
  created_at: time
10984
11174
  });
10985
11175
 
10986
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/task-results.js
11176
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/task-results.js
10987
11177
  var nullableTime = nullable(time);
10988
11178
  var link = strictObject({
10989
11179
  id,
@@ -11157,7 +11347,19 @@ var taskReview = strictObject({
11157
11347
  untrusted
11158
11348
  });
11159
11349
 
11160
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/topic.js
11350
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/template.js
11351
+ var template = strictObject({
11352
+ key: text,
11353
+ channel: picklist(["telegram", "email", "text"]),
11354
+ language: text,
11355
+ about: text,
11356
+ renders: boolean(),
11357
+ source: picklist(["stored", "default"]),
11358
+ updated_at: nullable(time),
11359
+ updated_by: nullable(text)
11360
+ });
11361
+
11362
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/topic.js
11161
11363
  var topic = strictObject({
11162
11364
  id,
11163
11365
  title: text,
@@ -11171,7 +11373,7 @@ var topic = strictObject({
11171
11373
  untrusted
11172
11374
  });
11173
11375
 
11174
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/index.js
11376
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/index.js
11175
11377
  var ENTITIES = {
11176
11378
  sync_progress: progress,
11177
11379
  deal,
@@ -11259,6 +11461,7 @@ var ENTITIES = {
11259
11461
  account_session: accountSession,
11260
11462
  account_change: accountChange,
11261
11463
  ended_account_sessions: endedAccountSessions,
11464
+ account_removal: accountRemoval,
11262
11465
  account_privacy: accountPrivacy,
11263
11466
  account_privacy_change: accountPrivacyChange,
11264
11467
  account_profile: accountProfile,
@@ -11413,6 +11616,7 @@ var ENTITIES = {
11413
11616
  chat_folder_order: chatFolderOrder,
11414
11617
  chat_rules: chatRules,
11415
11618
  chat_moderation: chatModeration,
11619
+ "model.chosen": chosenModel,
11416
11620
  model_key: modelKey,
11417
11621
  "model_key.stored": storedModelKey,
11418
11622
  "model_key.removed": removedModelKey,
@@ -11450,14 +11654,15 @@ var ENTITIES = {
11450
11654
  tracked_chat: trackedChat,
11451
11655
  tracked_chat_history: trackedChatHistory,
11452
11656
  chat_tracking: chatTracking,
11453
- task_stats: taskStats
11657
+ task_stats: taskStats,
11658
+ template
11454
11659
  };
11455
11660
  var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.entries(ENTITIES).map(([name, schema2]) => {
11456
11661
  const { $schema: _, ...definition } = jsonSchemaOf(schema2);
11457
11662
  return [name, definition];
11458
11663
  })), "entityDefinitions");
11459
11664
 
11460
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
11665
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
11461
11666
  var schemas = /* @__PURE__ */ new WeakMap();
11462
11667
  var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
11463
11668
  if (Object.hasOwn(ENTITIES, name))
@@ -11491,7 +11696,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
11491
11696
  return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
11492
11697
  }, "answerRow");
11493
11698
 
11494
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/images/picture/models.js
11699
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/images/picture/models.js
11495
11700
  import { join as join6 } from "node:path";
11496
11701
  var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
11497
11702
  var IMAGE_MODELS = [
@@ -11545,7 +11750,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
11545
11750
  var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
11546
11751
  var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
11547
11752
 
11548
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/steps.js
11753
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/steps.js
11549
11754
  var STEPS2 = defineSteps([
11550
11755
  ...STEPS,
11551
11756
  {
@@ -11759,6 +11964,12 @@ var STEPS2 = defineSteps([
11759
11964
  ],
11760
11965
  why: "once the tasks these {shown} messages hold are opened, updated or closed, so the next review starts after them"
11761
11966
  },
11967
+ {
11968
+ id: "store.recover",
11969
+ command: "store recover",
11970
+ args: [],
11971
+ why: "the store file is damaged; this says what is lost and the commands that recover it"
11972
+ },
11762
11973
  {
11763
11974
  id: "search.meetings",
11764
11975
  command: "*",
@@ -11773,10 +11984,10 @@ var nextStep = /* @__PURE__ */ __name((id6, input) => {
11773
11984
  const args = Object.fromEntries(Object.entries(input.args ?? {}).filter(([, value]) => value !== void 0));
11774
11985
  return stepOf(definition, { ...input, args });
11775
11986
  }, "nextStep");
11776
- var lineOf = /* @__PURE__ */ __name((command, words) => {
11987
+ var lineOf = /* @__PURE__ */ __name((command, words2) => {
11777
11988
  const root = rootOf2(command);
11778
11989
  const profile = root.getOptionValue("profile");
11779
- return typedCommand(root.name(), words, typeof profile === "string" && profile !== "" ? profile : void 0);
11990
+ return typedCommand(root.name(), words2, typeof profile === "string" && profile !== "" ? profile : void 0);
11780
11991
  }, "lineOf");
11781
11992
  var rootOf2 = /* @__PURE__ */ __name((command) => {
11782
11993
  let root = command;
@@ -11797,7 +12008,7 @@ var failureSteps = /* @__PURE__ */ __name((root, error) => {
11797
12008
  nextStep(IMAGE_MODELS.some((one) => one.id === model3) ? "models.download-image" : "models.download", {
11798
12009
  args: { model: model3 }
11799
12010
  })
11800
- ] : [];
12011
+ ] : error.reason === "store.damaged" ? [nextStep("store.recover", {})] : [];
11801
12012
  return runnable(root, [...error.next ?? [], ...own]);
11802
12013
  }, "failureSteps");
11803
12014
  var withSafety = /* @__PURE__ */ __name((steps, targets) => steps.map((step2) => {
@@ -11826,7 +12037,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
11826
12037
  ].join(" ");
11827
12038
  }, "stepLine");
11828
12039
 
11829
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
12040
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
11830
12041
  var where = [{ field: "ref" }];
11831
12042
  var who2 = { field: ["who.owner", "who.name"], tag: "you" };
11832
12043
  var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
@@ -11918,7 +12129,7 @@ var STATUS_ROWS = {
11918
12129
  "status.failed": { columns: [{ field: "signal" }], text: ["why"] }
11919
12130
  };
11920
12131
 
11921
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/compact.js
12132
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/compact.js
11922
12133
  var TEXT_CHARS = 400;
11923
12134
  var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
11924
12135
  var messageRow = {
@@ -12284,7 +12495,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
12284
12495
  return lines.concat(footerOf(body)).join("\n");
12285
12496
  }, "compactText");
12286
12497
 
12287
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
12498
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
12288
12499
  var SOFT_OUTPUT_BYTES = 256 * 1024;
12289
12500
  var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
12290
12501
  var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
@@ -12310,10 +12521,10 @@ var declaresRow = /* @__PURE__ */ __name((command) => {
12310
12521
  return rowShapeOf(command, rows2 && entityRows(rows2)) !== GENERIC_ROW;
12311
12522
  }, "declaresRow");
12312
12523
  var pathOf3 = /* @__PURE__ */ __name((command) => {
12313
- const words = [];
12524
+ const words2 = [];
12314
12525
  for (let at2 = command; at2.parent; at2 = at2.parent)
12315
- words.unshift(at2.name());
12316
- return words.join(" ");
12526
+ words2.unshift(at2.name());
12527
+ return words2.join(" ");
12317
12528
  }, "pathOf");
12318
12529
  var step = /* @__PURE__ */ __name((command, id6, args, why) => ({
12319
12530
  kind: "command",
@@ -12342,7 +12553,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
12342
12553
  return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
12343
12554
  }, "largeAnswerSteps");
12344
12555
 
12345
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
12556
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
12346
12557
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
12347
12558
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
12348
12559
  var strip = /* @__PURE__ */ __name((value) => {
@@ -12356,7 +12567,7 @@ var strip = /* @__PURE__ */ __name((value) => {
12356
12567
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
12357
12568
  }, "strip");
12358
12569
 
12359
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/envelope.js
12570
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/envelope.js
12360
12571
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
12361
12572
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
12362
12573
  var listOf = /* @__PURE__ */ __name((command, input) => {
@@ -12577,9 +12788,13 @@ export {
12577
12788
  endpoint,
12578
12789
  modelTarget,
12579
12790
  parseDuration,
12580
- TEXT_MODELS,
12581
12791
  DEFAULT_TEXT_MODEL,
12792
+ CustomTextModelShape,
12793
+ readTextModelsSection,
12794
+ writeTextModelsSection,
12795
+ textModels,
12582
12796
  textModel,
12797
+ chosenTextModel,
12583
12798
  RERANK_MODELS,
12584
12799
  DEFAULT_RERANK_MODEL,
12585
12800
  rerankModel,
@@ -12609,9 +12824,12 @@ export {
12609
12824
  REPAIR_WORDS,
12610
12825
  repairConfigText,
12611
12826
  permissionIssues,
12827
+ withoutPath,
12612
12828
  publicIssue,
12613
12829
  fixVerb,
12614
12830
  issueMessage,
12831
+ readConfigFile,
12832
+ accountFileFor,
12615
12833
  rememberAccount,
12616
12834
  recalledAccount,
12617
12835
  NONE_NAMED,
@@ -12626,6 +12844,7 @@ export {
12626
12844
  secretInputOf,
12627
12845
  outputFor,
12628
12846
  baseContext,
12847
+ inCommandRun,
12629
12848
  REMOTE_READ,
12630
12849
  FETCH,
12631
12850
  REMOTE_WRITE,
@@ -12641,6 +12860,7 @@ export {
12641
12860
  destroysNothing,
12642
12861
  admittedUnderLock,
12643
12862
  changesStore,
12863
+ writesNewFileOnlyWith,
12644
12864
  readsOverMcpAt,
12645
12865
  isStoreChange,
12646
12866
  previewFlag,
@@ -12710,6 +12930,7 @@ export {
12710
12930
  sendAttempt,
12711
12931
  storeTable,
12712
12932
  tagging,
12933
+ template,
12713
12934
  topic,
12714
12935
  ENTITIES,
12715
12936
  entityDefinitions,