@wirecat/mail-cli 0.22.0 → 0.23.1

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 (125) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +2 -1
  3. package/dist/bin/mail.js +2 -2
  4. package/dist/bundle/{all-profiles-DTUWUCQQ.js → all-profiles-FJHJCGRU.js} +9 -9
  5. package/dist/bundle/{anthropic-YJAEQSNT.js → anthropic-AFL7NKVZ.js} +9 -7
  6. package/dist/bundle/{app-server-3ZXSTBA3.js → app-server-WKCBJMHI.js} +46 -46
  7. package/dist/bundle/{bun-34VBM7C5.js → bun-HQATAQJQ.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-GCT7ROCK.js → bun-sqlite-4ECAV7OU.js} +4 -4
  9. package/dist/bundle/{chunk-RFB27ACZ.js → chunk-2HXHAFRP.js} +2 -2
  10. package/dist/bundle/{chunk-MD64ITYO.js → chunk-34743C4C.js} +1 -1
  11. package/dist/bundle/{chunk-Z75WYAX6.js → chunk-3OZKDC6Y.js} +8 -7
  12. package/dist/bundle/{chunk-UWL2IOII.js → chunk-3QVGB2CI.js} +2 -2
  13. package/dist/bundle/{chunk-3HDQVTND.js → chunk-3UFD76IR.js} +5 -5
  14. package/dist/bundle/{chunk-SCIC2CJS.js → chunk-4IFX4HV2.js} +4 -4
  15. package/dist/bundle/{chunk-QE72KTS7.js → chunk-4IWJARFA.js} +1 -1
  16. package/dist/bundle/{chunk-ZZSHGCRC.js → chunk-4YJJQNNJ.js} +4 -4
  17. package/dist/bundle/{chunk-RPCKBXKN.js → chunk-5UKBUI4I.js} +2 -2
  18. package/dist/bundle/{chunk-J4UZXBEV.js → chunk-76RTQYJQ.js} +1 -1
  19. package/dist/bundle/{chunk-I2SDXWLR.js → chunk-7YRKUEYE.js} +118 -54
  20. package/dist/bundle/{chunk-ZKLXSVIO.js → chunk-AGNAT7CM.js} +1 -1
  21. package/dist/bundle/{chunk-HSBGNVEL.js → chunk-B6QMMRIM.js} +361 -188
  22. package/dist/bundle/{chunk-WBAA2X3E.js → chunk-BVJQBAGL.js} +11 -11
  23. package/dist/bundle/{chunk-TCCN5TON.js → chunk-CBWA2T3N.js} +24 -2
  24. package/dist/bundle/{chunk-P6FT6YYT.js → chunk-CCYHBNRL.js} +16 -16
  25. package/dist/bundle/{chunk-B74SOC4R.js → chunk-CUOCDJFI.js} +8 -8
  26. package/dist/bundle/{chunk-RY7PBP4F.js → chunk-CYQVWITQ.js} +16 -16
  27. package/dist/bundle/{chunk-566MEXK5.js → chunk-E7ZVKQHG.js} +3 -3
  28. package/dist/bundle/{chunk-HJ2CXDKJ.js → chunk-EXPR6QAX.js} +26 -12
  29. package/dist/bundle/{chunk-LTXYJAJK.js → chunk-FWFNUJQD.js} +24 -63
  30. package/dist/bundle/{chunk-VINSQR4X.js → chunk-GJNFNC76.js} +7 -7
  31. package/dist/bundle/{chunk-BHNBWFT5.js → chunk-GOMJNH56.js} +44 -0
  32. package/dist/bundle/{chunk-7XLOWYGD.js → chunk-HOKGIYUO.js} +39 -4
  33. package/dist/bundle/{chunk-FTI73RLC.js → chunk-KKGX7JMX.js} +2 -2
  34. package/dist/bundle/{chunk-BMV56JCL.js → chunk-LLYVBO3R.js} +1 -1
  35. package/dist/bundle/{chunk-QTMVGOSF.js → chunk-LQDMUMA2.js} +1336 -796
  36. package/dist/bundle/{chunk-VQZCIDSO.js → chunk-M7RGG3UU.js} +3 -3
  37. package/dist/bundle/{chunk-R3WPMQYZ.js → chunk-MBKNL5TX.js} +632 -435
  38. package/dist/bundle/{chunk-AF62BPIW.js → chunk-MUDHCYN4.js} +5 -5
  39. package/dist/bundle/{chunk-25PD6FZY.js → chunk-NKBAZ4VC.js} +2 -2
  40. package/dist/bundle/{chunk-2PPEDB67.js → chunk-NMGF3UOZ.js} +30 -30
  41. package/dist/bundle/{chunk-KMQAHDBM.js → chunk-NOA6E6MM.js} +2173 -1297
  42. package/dist/bundle/{chunk-J2U6LUT5.js → chunk-OJCUSHZG.js} +3 -3
  43. package/dist/bundle/{chunk-T3DTYJTG.js → chunk-OU5CWCG2.js} +1 -1
  44. package/dist/bundle/{chunk-OKO2Q6H6.js → chunk-PMIKRELC.js} +2 -2
  45. package/dist/bundle/{chunk-RT6SLZBI.js → chunk-QR7JZM3D.js} +1 -1
  46. package/dist/bundle/{chunk-O3M2S62X.js → chunk-QUKD5SO2.js} +3 -3
  47. package/dist/bundle/{chunk-SFC46MP2.js → chunk-QV3M2MHG.js} +10 -10
  48. package/dist/bundle/{chunk-SYEICLTR.js → chunk-R554W7ZO.js} +1 -1
  49. package/dist/bundle/{chunk-NOVBK4SY.js → chunk-R5MYOLQP.js} +12 -12
  50. package/dist/bundle/{chunk-4FWJNIPH.js → chunk-ROKTS7WM.js} +1 -1
  51. package/dist/bundle/{chunk-GAPQENMY.js → chunk-S5OTP7XS.js} +22 -4
  52. package/dist/bundle/{chunk-HRRSTIGP.js → chunk-SBGXKM4U.js} +10 -6
  53. package/dist/bundle/{chunk-ODFHIXMA.js → chunk-SNTLN2QT.js} +1 -1
  54. package/dist/bundle/{chunk-VDUGE6TH.js → chunk-SR3ADLGX.js} +2 -2
  55. package/dist/bundle/{chunk-4WIEVQ2Q.js → chunk-UMXVQIGD.js} +137 -9
  56. package/dist/bundle/{chunk-HN43G27G.js → chunk-V3TDQUXD.js} +45 -27
  57. package/dist/bundle/{chunk-3DSYLE5N.js → chunk-V7CFZ773.js} +2 -2
  58. package/dist/bundle/{chunk-LF5XM4HE.js → chunk-VAMCRP47.js} +1 -1
  59. package/dist/bundle/{chunk-Z7N4MGOQ.js → chunk-VFKX5UMJ.js} +5 -5
  60. package/dist/bundle/{chunk-72N26BQM.js → chunk-VYHIX3OP.js} +88 -88
  61. package/dist/bundle/{chunk-P2QJA7S5.js → chunk-VYIIX6VN.js} +1 -1
  62. package/dist/bundle/{chunk-V6OIIVH3.js → chunk-WN4HP7IZ.js} +11 -11
  63. package/dist/bundle/{chunk-MDDB7M7Z.js → chunk-ZXIPJF3Y.js} +1 -1
  64. package/dist/bundle/command-contract-IIHBNF7J.js +35 -0
  65. package/dist/bundle/{decode-BIOOL5E4.js → decode-QXKTMOTH.js} +4 -4
  66. package/dist/bundle/{dispatch-R5OF2FVZ.js → dispatch-G4CYFWQ2.js} +1 -1
  67. package/dist/bundle/{dist-TJVIRLE5.js → dist-5FX36DAW.js} +44 -22
  68. package/dist/bundle/{echarts-ECPGMKXO.js → echarts-HHUM43TU.js} +2 -2
  69. package/dist/bundle/{embed-F7JFSLHN.js → embed-SRZSDZVI.js} +5 -5
  70. package/dist/bundle/{embedder-U4G74HV3.js → embedder-WZIZCWLX.js} +8 -8
  71. package/dist/bundle/{failure-WYKVF6RH.js → failure-FFPK2WYB.js} +1 -1
  72. package/dist/bundle/{first-run-JTYPUYQP.js → first-run-6DVWZ3JQ.js} +8 -8
  73. package/dist/bundle/first-screen-SRZ7NYHZ.js +33 -0
  74. package/dist/bundle/{instructions-WNCGZ7OJ.js → instructions-UWONE6UT.js} +1 -1
  75. package/dist/bundle/mail.js +5 -5
  76. package/dist/bundle/{node-UIRGGMGT.js → node-HLAOYJDB.js} +2 -2
  77. package/dist/bundle/{node-sqlite-4ZM7OPRF.js → node-sqlite-RO66I7W6.js} +5 -5
  78. package/dist/bundle/{oauth-5RAJZPBW.js → oauth-VNLB2TET.js} +6 -6
  79. package/dist/bundle/{open-7ORCHOAI.js → open-QQSG343L.js} +4 -4
  80. package/dist/bundle/{openai-XSJNXJA7.js → openai-JTFC7OGF.js} +12 -12
  81. package/dist/bundle/{process-ZLO72UVZ.js → process-3CZAXR6P.js} +1 -1
  82. package/dist/bundle/{program-MXGQFQJG.js → program-XTOS4RAM.js} +4528 -2579
  83. package/dist/bundle/{prompt-IDUPCUGM.js → prompt-HGQ6GPYL.js} +6 -4
  84. package/dist/bundle/{recognize-OS3EZKIM.js → recognize-2SHMNEIZ.js} +3 -3
  85. package/dist/bundle/{remote-PF4LZR65.js → remote-GBQC3433.js} +6 -6
  86. package/dist/bundle/{rerank-CQNZF3JI.js → rerank-FQHQXFNR.js} +6 -6
  87. package/dist/bundle/{serve-Y2DDLGBT.js → serve-THU67QUZ.js} +8 -8
  88. package/dist/bundle/{server-TVRT7YEY.js → server-LOT3CLYX.js} +36 -36
  89. package/dist/bundle/server-VKMUX7ZT.js +65 -0
  90. package/dist/bundle/{sqlite-runtime-5343C3OE.js → sqlite-runtime-NOOUMBC4.js} +5 -5
  91. package/dist/bundle/{state-4GBTMPIV.js → state-KSKZCV2U.js} +5 -5
  92. package/dist/bundle/{store-QA6QJ5BB.js → store-BAKSHTKF.js} +37 -14
  93. package/dist/bundle/{store-OLBLTQPT.js → store-OHNZOQ7U.js} +30 -18
  94. package/dist/bundle/store-maintenance-command-ROQHJVEA.js +54 -0
  95. package/dist/commands/account-remove.d.ts +3 -0
  96. package/dist/commands/account-remove.d.ts.map +1 -0
  97. package/dist/commands/account-remove.js +65 -0
  98. package/dist/commands/account-remove.js.map +1 -0
  99. package/dist/commands/account.d.ts.map +1 -1
  100. package/dist/commands/account.js +3 -1
  101. package/dist/commands/account.js.map +1 -1
  102. package/dist/commands/context.d.ts +3 -1
  103. package/dist/commands/context.d.ts.map +1 -1
  104. package/dist/commands/context.js.map +1 -1
  105. package/dist/commands/rules.d.ts.map +1 -1
  106. package/dist/commands/rules.js +29 -7
  107. package/dist/commands/rules.js.map +1 -1
  108. package/dist/commands/sync.d.ts +0 -1
  109. package/dist/commands/sync.d.ts.map +1 -1
  110. package/dist/commands/sync.js +8 -2
  111. package/dist/commands/sync.js.map +1 -1
  112. package/dist/mail/changes.d.ts +1 -0
  113. package/dist/mail/changes.d.ts.map +1 -1
  114. package/dist/mail/changes.js +1 -1
  115. package/dist/mail/changes.js.map +1 -1
  116. package/dist/providers.js +2 -2
  117. package/dist/providers.js.map +1 -1
  118. package/dist/version.d.ts +1 -1
  119. package/dist/version.js +1 -1
  120. package/package.json +3 -3
  121. package/dist/bundle/chunk-QPRXTLMD.js +0 -33
  122. package/dist/bundle/command-contract-Y4ZQAJEC.js +0 -35
  123. package/dist/bundle/first-screen-W6RWTAU7.js +0 -33
  124. package/dist/bundle/server-I3IALQMC.js +0 -65
  125. package/dist/bundle/store-maintenance-command-LB6CMGP4.js +0 -55
@@ -1,18 +1,22 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
+ CATALOG_KINDS,
5
+ CONTRACT_KINDS,
6
+ CONTRACT_STATUSES,
4
7
  DEAL_KINDS,
5
8
  DEAL_STATUSES,
6
9
  INVOICE_DIRECTIONS,
7
10
  MONEY_DIRECTIONS,
11
+ ORDER_DIRECTIONS,
8
12
  ORDER_PURPOSES,
9
13
  ORDER_STATUSES,
10
- dayMonth,
14
+ SUBSCRIPTION_STATUSES,
15
+ TRANSACTION_STATUSES,
16
+ WALLET_KINDS,
11
17
  formatMeetingReference,
12
- moneyLabel,
13
- notes,
14
18
  parseMeetingReference
15
- } from "./chunk-I2SDXWLR.js";
19
+ } from "./chunk-7YRKUEYE.js";
16
20
  import {
17
21
  CliError,
18
22
  singleLine
@@ -21,7 +25,7 @@ import {
21
25
  __name
22
26
  } from "./chunk-ZVVMGPBJ.js";
23
27
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/locator.js
28
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/locator.js
25
29
  var SCHEME = "msg:";
26
30
  var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
27
31
  var isLocator = /* @__PURE__ */ __name((reference) => reference.trim().startsWith(SCHEME), "isLocator");
@@ -35,7 +39,7 @@ var parseLocator = /* @__PURE__ */ __name((reference) => {
35
39
  return { provider, account, chat, message };
36
40
  }, "parseLocator");
37
41
 
38
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/references.js
42
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/references.js
39
43
  var SIMPLE_REFERENCES = [
40
44
  "note",
41
45
  "document",
@@ -191,7 +195,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text2) => {
191
195
  return match !== null && byPrefix.has(match[1]);
192
196
  }, "looksLikeReference");
193
197
 
194
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/providers.js
198
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/providers.js
195
199
  var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm"];
196
200
  var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
197
201
  var CRM_OPENS = { deal: "deals show", lead: "leads show", pipeline: "pipelines show" };
@@ -358,35 +362,7 @@ var holdsKind = /* @__PURE__ */ __name((provider, kind2) => kindsIn(provider).in
358
362
  var holdsKindOf = /* @__PURE__ */ __name((provider, kind2) => kindIn(provider) === void 0 ? kind2 === "messages" : holdsKind(provider, kind2), "holdsKindOf");
359
363
  var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
360
364
 
361
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/business.js
362
- var CATALOG_KINDS = ["product", "service"];
363
- var CONTRACT_KINDS = ["sale", "purchase", "service", "lease", "employment", "nda", "license", "other"];
364
- var CONTRACT_STATUSES = ["draft", "active", "ended", "terminated"];
365
- var PERIOD_UNITS = ["day", "week", "month", "year"];
366
- var SUBSCRIPTION_STATUSES = ["trial", "active", "paused", "cancelled", "ended"];
367
- var WALLET_KINDS = ["bank", "card", "cash", "wallet", "other"];
368
- var TRANSACTION_STATUSES = ["pending", "booked"];
369
- var ORDER_DIRECTIONS = ["purchase", "sale"];
370
- var intervalOf = /* @__PURE__ */ __name((text2, reason = "subscription.interval") => {
371
- const match = typeof text2 === "string" ? /^(?:([1-9]\d{0,2})-)?(day|week|month|year)$/.exec(text2.trim()) : null;
372
- if (!match)
373
- throw new CliError("validation_error", "an interval is a count and a unit, such as 1-month or 2-week", { reason });
374
- return { count: match[1] === void 0 ? 1 : Number(match[1]), unit: match[2] };
375
- }, "intervalOf");
376
- var intervalText = /* @__PURE__ */ __name(({ count, unit }) => `${count}-${unit}`, "intervalText");
377
- var priced = /* @__PURE__ */ __name((units, currency2) => units === null || currency2 === null ? "" : `, ${moneyLabel(units, currency2)}`, "priced");
378
- var pending = /* @__PURE__ */ __name((review) => review === "confirmed" ? null : review, "pending");
379
- var productLine = /* @__PURE__ */ __name((product) => {
380
- const price = product.unitPrice === null || product.currency === null ? "" : moneyLabel(product.unitPrice, product.currency);
381
- const per = price && product.unit !== null ? ` per ${product.unit}` : "";
382
- return `${product.name}${price ? ` \xB7 ${price}${per}` : ""}${notes(product.kind, product.archived ? "archived" : null)}`;
383
- }, "productLine");
384
- var contractLine = /* @__PURE__ */ __name((contract) => `${contract.number ?? `#${contract.id}`} \xB7 ${contract.name}${priced(contract.value, contract.currency)}` + notes(contract.status, pending(contract.review)), "contractLine");
385
- var subscriptionLine = /* @__PURE__ */ __name((subscription) => `${subscription.name}${priced(subscription.price, subscription.currency)} every ${intervalText(subscription.interval)}` + notes(subscription.status, pending(subscription.review)), "subscriptionLine");
386
- var walletLine = /* @__PURE__ */ __name((wallet) => `${wallet.name} \xB7 ${wallet.kind}, ${wallet.currency}${wallet.numberHint === null ? "" : `, \u2026${wallet.numberHint}`}` + notes(wallet.closed ? "closed" : null), "walletLine");
387
- var transactionLine = /* @__PURE__ */ __name((transaction) => `${moneyLabel(transaction.amount, transaction.currency)} ${transaction.direction}${transaction.label === null ? "" : ` \xB7 ${transaction.label}`}, ${dayMonth(transaction.date)}` + notes(transaction.status === "pending" ? "pending" : null, pending(transaction.review)), "transactionLine");
388
-
389
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/record-fields.js
365
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/record-fields.js
390
366
  var DECIMAL_PATTERN = "^[0-9]{1,16}(\\.[0-9]{1,6})?$";
391
367
  var SIGNED_DECIMAL = "^-?[0-9]{1,16}(\\.[0-9]{1,6})?$";
392
368
  var DAY = "^[0-9]{4}-[0-9]{2}-[0-9]{2}$";
@@ -436,7 +412,7 @@ var arrayOf = /* @__PURE__ */ __name((item, maxItems, description) => ({
436
412
  }), "arrayOf");
437
413
  var isObject = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isObject");
438
414
 
439
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/record-types.js
415
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/record-types.js
440
416
  var kept = /* @__PURE__ */ __name((description) => ({ description }), "kept");
441
417
  var PARTY = ["person", "organization"];
442
418
  var ORGANIZATION = ["organization"];
@@ -809,7 +785,7 @@ var hasV1Roles = /* @__PURE__ */ __name((type) => rolesOf(type).some(([, role])
809
785
  var IDENTITY_TYPES = RECORD_ENTITY_TYPES.filter((type) => RECORD_TYPES[type].review === "identity");
810
786
  var article = /* @__PURE__ */ __name((word) => /^[aeiou]/.test(word) ? "an" : "a", "article");
811
787
 
812
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/counters.js
788
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/counters.js
813
789
  var COUNTER_FIELDS = ["views", "reactions", "comments"];
814
790
  var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
815
791
  var counterValue = /* @__PURE__ */ __name((message, field) => {
@@ -846,7 +822,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
846
822
  return states.some((one) => one.freshness === "stale") ? "stale" : "fresh";
847
823
  }, "counterFreshness");
848
824
 
849
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
825
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
850
826
  var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
851
827
  var AUTHOR_MEASURES = [
852
828
  "messages",
@@ -986,14 +962,14 @@ var withoutUrls = /* @__PURE__ */ __name((text2) => text2.replace(/\S+/gu, (toke
986
962
  var rankingWords = /* @__PURE__ */ __name((text2) => withoutUrls(text2).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
987
963
  var rankingQuestion = /* @__PURE__ */ __name((text2) => withoutUrls(text2).includes("?"), "rankingQuestion");
988
964
 
989
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/crm.js
965
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/crm.js
990
966
  var CRM_KINDS = ["organization", "person", "deal", "lead"];
991
967
  var isItemKind = /* @__PURE__ */ __name((kind2) => kind2 === "deal" || kind2 === "lead", "isItemKind");
992
968
 
993
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/records.js
969
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/records.js
994
970
  import { createHash } from "node:crypto";
995
971
 
996
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
972
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
997
973
  var PHONE_PLANS = [
998
974
  {
999
975
  country: "us",
@@ -1373,7 +1349,7 @@ var PHONE_PLANS = [
1373
1349
  }
1374
1350
  ];
1375
1351
 
1376
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/phones.js
1352
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/phones.js
1377
1353
  var PHONE_COUNTRIES = PHONE_PLANS.map((plan) => plan.country);
1378
1354
  var DEFAULT_PHONE_COUNTRIES = ["ru"];
1379
1355
  var parsePhoneCountries = /* @__PURE__ */ __name((value) => {
@@ -1414,7 +1390,7 @@ var nationalPhone = /* @__PURE__ */ __name((digits, countries, { anyType }) => {
1414
1390
  return void 0;
1415
1391
  }, "nationalPhone");
1416
1392
 
1417
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/records.js
1393
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/records.js
1418
1394
  var RECORDS_SCHEMA_VERSION = 1;
1419
1395
  var RECORD_OPERATIONS = ["upsert", "delete"];
1420
1396
  var LINE_OPTIONS = ["text", "products"];
@@ -1585,7 +1561,7 @@ var fieldReferences = /* @__PURE__ */ __name((record, options = {}) => {
1585
1561
  return found;
1586
1562
  }, "fieldReferences");
1587
1563
 
1588
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/google-documents.js
1564
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/google-documents.js
1589
1565
  var LINK = /https?:\/\/(?:(?:docs|drive|sheets|slides)\.google\.com|forms\.gle)(?:[/?#][^\s<>"'`]*)?/gi;
1590
1566
  var ID = /^[\w-]{10,}$/;
1591
1567
  var trimUrl = /* @__PURE__ */ __name((url) => {
@@ -1627,7 +1603,7 @@ var googleDocumentLinks = /* @__PURE__ */ __name((text2) => [...text2.matchAll(L
1627
1603
  return { url, documentId: googleDocumentId(url) };
1628
1604
  }), "googleDocumentLinks");
1629
1605
 
1630
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/mentions.js
1606
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/mentions.js
1631
1607
  import { domainToUnicode } from "node:url";
1632
1608
 
1633
1609
  // node_modules/.pnpm/psl@1.15.0/node_modules/psl/dist/psl.mjs
@@ -11649,7 +11625,7 @@ var oa = /* @__PURE__ */ __name((e) => {
11649
11625
  }, "oa");
11650
11626
  var na = { parse: O, get: aa, isValid: oa };
11651
11627
 
11652
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/places.js
11628
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/places.js
11653
11629
  var BEFORE = [
11654
11630
  [/^(?:ул\.?|улиц[аеыу]|улицей)$/iu, "\u0443\u043B\u0438\u0446\u0430"],
11655
11631
  [/^(?:пр-т|просп\.?|проспект[аеу]?)$/iu, "\u043F\u0440\u043E\u0441\u043F\u0435\u043A\u0442"],
@@ -11909,7 +11885,7 @@ var findPlaces = /* @__PURE__ */ __name((text2) => {
11909
11885
  return found.sort((a, b) => a.start - b.start);
11910
11886
  }, "findPlaces");
11911
11887
 
11912
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/mentions.js
11888
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/mentions.js
11913
11889
  var MENTION_KINDS = ["phone", "email", "url", "document", "person-name", "place"];
11914
11890
  var MENTION_VERSIONS = {
11915
11891
  phone: 1,
@@ -12140,21 +12116,6 @@ export {
12140
12116
  holdsKind,
12141
12117
  holdsKindOf,
12142
12118
  kindOf,
12143
- CATALOG_KINDS,
12144
- CONTRACT_KINDS,
12145
- CONTRACT_STATUSES,
12146
- PERIOD_UNITS,
12147
- SUBSCRIPTION_STATUSES,
12148
- WALLET_KINDS,
12149
- TRANSACTION_STATUSES,
12150
- ORDER_DIRECTIONS,
12151
- intervalOf,
12152
- intervalText,
12153
- productLine,
12154
- contractLine,
12155
- subscriptionLine,
12156
- walletLine,
12157
- transactionLine,
12158
12119
  isObject,
12159
12120
  RECORD_TYPES,
12160
12121
  isRecordType,
@@ -7,7 +7,7 @@ import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/search/languages.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/search/languages.js
11
11
  var LANGUAGES = [
12
12
  { name: "russian", code: "ru", label: "Russian", script: "cyrillic", dictionary: "dictionary-ru" },
13
13
  { name: "english", code: "en", label: "English", script: "latin", dictionary: "dictionary-en" },
@@ -15,12 +15,12 @@ var LANGUAGES = [
15
15
  ];
16
16
  var languagesOf = /* @__PURE__ */ __name((script) => LANGUAGES.filter((one) => one.script === script).map(({ name }) => name), "languagesOf");
17
17
 
18
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/store/normalize.js
18
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/store/normalize.js
19
19
  var NORMALIZER_VERSION = 1;
20
20
  var fold = /* @__PURE__ */ __name((text) => text.normalize("NFKD").replace(new RegExp("\\p{M}+", "gu"), "").normalize("NFC").toLowerCase(), "fold");
21
21
  var normalize = /* @__PURE__ */ __name((text) => fold(text).replace(new RegExp("\\p{Cc}", "gu"), " ").replace(/\s+/gu, " ").trim(), "normalize");
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/search/snowball/base-stemmer.js
23
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/search/snowball/base-stemmer.js
24
24
  var BaseStemmer = class {
25
25
  static {
26
26
  __name(this, "BaseStemmer");
@@ -395,7 +395,7 @@ var BaseStemmer = class {
395
395
  }
396
396
  };
397
397
 
398
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/search/snowball/english-stemmer.js
398
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/search/snowball/english-stemmer.js
399
399
  var a_0 = [
400
400
  ["arsen", -1],
401
401
  ["commun", -1],
@@ -1096,7 +1096,7 @@ var english_stemmer_default = class extends BaseStemmer {
1096
1096
  stemWord = this.stem;
1097
1097
  };
1098
1098
 
1099
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/search/snowball/russian-stemmer.js
1099
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/search/snowball/russian-stemmer.js
1100
1100
  var a_02 = [
1101
1101
  ["\u0432", 1],
1102
1102
  ["\u0438\u0432", 2, 1],
@@ -1519,7 +1519,7 @@ var russian_stemmer_default = class extends BaseStemmer {
1519
1519
  stemWord = this.stem;
1520
1520
  };
1521
1521
 
1522
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/search/snowball/spanish-stemmer.js
1522
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/search/snowball/spanish-stemmer.js
1523
1523
  var a_03 = [
1524
1524
  ["", 6],
1525
1525
  ["\xE1", 1, 1],
@@ -2195,7 +2195,7 @@ var spanish_stemmer_default = class extends BaseStemmer {
2195
2195
  stemWord = this.stem;
2196
2196
  };
2197
2197
 
2198
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/search/stem.js
2198
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/search/stem.js
2199
2199
  var SNOWBALL_VERSION = "3.1.1";
2200
2200
  var CYRILLIC_STEMMERS = [...languagesOf("cyrillic"), "none"];
2201
2201
  var LATIN_STEMMERS = [...languagesOf("latin"), "none"];
@@ -389,6 +389,23 @@ function safeInteger(message$1) {
389
389
  }
390
390
  __name(safeInteger, "safeInteger");
391
391
  // @__NO_SIDE_EFFECTS__
392
+ function startsWith(requirement, message$1) {
393
+ return {
394
+ kind: "validation",
395
+ type: "starts_with",
396
+ reference: startsWith,
397
+ async: false,
398
+ expects: `"${requirement}"`,
399
+ requirement,
400
+ message: message$1,
401
+ "~run"(dataset, config$1) {
402
+ if (dataset.typed && !dataset.value.startsWith(this.requirement)) _addIssue(this, "start", dataset, config$1, { received: `"${dataset.value.slice(0, this.requirement.length)}"` });
403
+ return dataset;
404
+ }
405
+ };
406
+ }
407
+ __name(startsWith, "startsWith");
408
+ // @__NO_SIDE_EFFECTS__
392
409
  function transform(operation) {
393
410
  return {
394
411
  kind: "transformation",
@@ -417,6 +434,31 @@ function trim() {
417
434
  };
418
435
  }
419
436
  __name(trim, "trim");
437
+ // @__NO_SIDE_EFFECTS__
438
+ function url(message$1) {
439
+ return {
440
+ kind: "validation",
441
+ type: "url",
442
+ reference: url,
443
+ async: false,
444
+ expects: null,
445
+ requirement(input) {
446
+ try {
447
+ if (URL.canParse) return URL.canParse(input);
448
+ new URL(input);
449
+ return true;
450
+ } catch {
451
+ return false;
452
+ }
453
+ },
454
+ message: message$1,
455
+ "~run"(dataset, config$1) {
456
+ if (dataset.typed && !this.requirement(dataset.value)) _addIssue(this, "URL", dataset, config$1);
457
+ return dataset;
458
+ }
459
+ };
460
+ }
461
+ __name(url, "url");
420
462
  var ABORT_EARLY_CONFIG = { abortEarly: true };
421
463
  // @__NO_SIDE_EFFECTS__
422
464
  function getFallback(schema, dataset, config$1) {
@@ -2420,8 +2462,10 @@ export {
2420
2462
  nonEmpty,
2421
2463
  regex,
2422
2464
  safeInteger,
2465
+ startsWith,
2423
2466
  transform,
2424
2467
  trim,
2468
+ url,
2425
2469
  forward,
2426
2470
  array,
2427
2471
  boolean,
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  QUERY_REASONS
5
- } from "./chunk-I2SDXWLR.js";
5
+ } from "./chunk-7YRKUEYE.js";
6
6
  import {
7
7
  defineReasons
8
- } from "./chunk-BHNBWFT5.js";
8
+ } from "./chunk-GOMJNH56.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/errors/reasons.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/errors/reasons.js
14
14
  var validation = /* @__PURE__ */ __name((reason, message) => [reason, "validation_error", message], "validation");
15
15
  var QUERY = [
16
16
  ["query.aborted", "the search was stopped before it finished"],
@@ -44,7 +44,17 @@ var SIGN_IN = [
44
44
  ["sign-in.client-file-invalid", "configuration_error", "the file is not a Desktop app OAuth client JSON"],
45
45
  ["oauth.scope-missing", "permission_error", "the sign-in lacks a permission this command needs"],
46
46
  ["sign-in.client-rejected", "configuration_error", "the provider rejected the OAuth client"],
47
- ["sign-in.secret-without-id", "configuration_error", "an OAuth client secret is set without its client id"]
47
+ ["sign-in.secret-without-id", "configuration_error", "an OAuth client secret is set without its client id"],
48
+ validation("account-remove.no-choice", "account remove needs --keep-data or --delete-data, one of them"),
49
+ ["account-remove.unknown-profile", "not_found", "no profile by this name on this computer"],
50
+ ["account-remove.busy", "conflict", "a serve or a sync runs for this profile; stop it first"],
51
+ ["account-remove.unconfirmed", "confirmation_required", "removing an account asks first; add --yes"],
52
+ ["account-remove.path-outside", "configuration_error", "the tool named a path outside its own folders"],
53
+ [
54
+ "account-remove.folder-outside",
55
+ "configuration_error",
56
+ "the tool named a folder of its own outside the home folder"
57
+ ]
48
58
  ];
49
59
  var PROVIDER_API = [
50
60
  ["offline.refused", "permission_error", "this command needs the provider; --offline was given"],
@@ -57,6 +67,7 @@ var PROVIDER_API = [
57
67
  ];
58
68
  var OTHERS = [
59
69
  ["query.time-limit", "timeout", "the search took longer than its time limit; the query itself is valid"],
70
+ ["enrichment.owner-only", "permission_error", "only the owner turns enrichment on, not an agent"],
60
71
  ["model.offline", "permission_error", "downloading a model needs the network; --offline was requested"],
61
72
  [
62
73
  "contract.unacknowledged-override",
@@ -205,6 +216,11 @@ var OTHERS = [
205
216
  "recovering the store needs the sqlite3 program, 3.43 or newer, with its .recover command"
206
217
  ],
207
218
  validation("store.recovery-failed", "the recovered store did not pass its check, so the store was left as it was"),
219
+ [
220
+ "serve.outdated",
221
+ "configuration_error",
222
+ "the store or the installed version is newer than this serve; it stopped so its unit starts the installed one"
223
+ ],
208
224
  validation("store.recovering", "another recovery of the store is running; wait for it to finish"),
209
225
  validation("store.changed-during-recovery", "the store was written to during the recovery, so it was left as it was"),
210
226
  [
@@ -220,6 +236,7 @@ var OTHERS = [
220
236
  validation("evidence.row-too-large", "one evidence row is over its size limit"),
221
237
  validation("index.not-ready", "the search index is still being built"),
222
238
  validation("input.closed", "the input closed before the answer"),
239
+ validation("input.empty", "a hidden prompt got an empty answer three times"),
223
240
  validation("input.required", "the command needs an answer and cannot ask for one"),
224
241
  validation("input.too-large", "the input is over its size limit"),
225
242
  ["meeting-project.stale", "configuration_error", "the meeting's project changed meanwhile"],
@@ -228,10 +245,13 @@ var OTHERS = [
228
245
  validation("fact.payment-retired", "a payment is a payments row in store.finance, not a fact"),
229
246
  validation("fact.revoke-correction", "an accepted correction cannot be revoked; its superseded fact stays"),
230
247
  validation("finance.allocate", "the invoice or payment cannot take an allocation in its state"),
248
+ validation("finance.below-paid", "the invoice's lines would total less than is paid on it"),
231
249
  validation("finance.currency", "the payment and the invoice are in different currencies; nothing is converted"),
232
250
  validation("finance.field", "a field of the invoice or payment is not valid"),
233
251
  validation("finance.line-amount", "an invoice line's amount is not its quantity times its unit price"),
252
+ validation("finance.line", "an invoice keeps at least one line: reject or void it instead"),
234
253
  validation("finance.lines", "the invoice's lines are not valid"),
254
+ ["finance.no-line", "not_found", "the invoice has no line at that position"],
235
255
  ["finance.not-allocated", "not_found", "the payment is not allocated to that invoice"],
236
256
  validation("finance.over-invoice", "the allocation would settle more than the invoice's total"),
237
257
  validation("finance.over-payment", "the allocation would use more than the payment's amount"),
@@ -332,6 +352,12 @@ var OTHERS = [
332
352
  "conflict",
333
353
  "the owner separated this identity from that person; only the owner links it again"
334
354
  ],
355
+ ["identity.owner-only", "permission_error", "only the owner undoes a merge or splits a person"],
356
+ [
357
+ "identity.stale",
358
+ "conflict",
359
+ "an identity of the merge was merged on into another person since; undo that merge first"
360
+ ],
335
361
  ["transcription.no-key", "authentication_error", "no OpenAI key is set for transcription"],
336
362
  validation("transcription.too-large", "the audio is over the transcription provider's size limit"),
337
363
  [
@@ -373,6 +399,8 @@ var OTHERS = [
373
399
  validation("relationship.role-built-in", "a built-in role stays on its list"),
374
400
  validation("relationship.role-in-use", "relationships still hold that role; change them first (details.count)"),
375
401
  validation("relationship.role-unknown", "the role is not one the relationship takes; the message lists them"),
402
+ validation("relationship.engagement-ends", "only a person's member-of a project takes an engagement level"),
403
+ validation("relationship.engagement-unknown", "the engagement level is not none, low, medium or high"),
376
404
  validation("ranking.invalid", "the ranking is not valid"),
377
405
  validation("ref.malformed", "the reference has a known kind but not its shape"),
378
406
  validation("ref.unknown-kind", "the text names no kind of reference"),
@@ -390,6 +418,13 @@ var OTHERS = [
390
418
  validation("tag-review.required", "the tag needs the owner's review first"),
391
419
  ["tag-review.stale", "configuration_error", "the tag review changed meanwhile"],
392
420
  validation("tag.invalid", "the tag is not valid"),
421
+ validation("template.unknown-key", "there is no message template by that key"),
422
+ validation("template.no-renderer", "nothing renders that template key yet, so a template for it cannot be checked"),
423
+ validation("template.unknown-language", "cli-core ships no template in that language, so one would never be used"),
424
+ validation("template.check-failed", "the template failed its check and was not saved; the message says why"),
425
+ validation("template.no-history", "the template has no earlier body to put back"),
426
+ validation("template.no-editor", "no editor is set: set VISUAL or EDITOR, or pass the template with --file"),
427
+ ["template.owner-only", "permission_error", "only the owner changes a message template, not an agent"],
393
428
  ["reactions.list-hidden", "permission_error", "the chat does not let its members see who reacted"],
394
429
  ["reactions.broadcast", "permission_error", "a channel does not show who reacted to its posts"],
395
430
  validation("task.external-id", "an external id is <service>:<id>, such as avito:4512345678"),
@@ -29,7 +29,7 @@ import {
29
29
  agentOf,
30
30
  clientHash,
31
31
  currentCaller
32
- } from "./chunk-B74SOC4R.js";
32
+ } from "./chunk-CUOCDJFI.js";
33
33
  import {
34
34
  __name
35
35
  } from "./chunk-ZVVMGPBJ.js";
@@ -541,7 +541,7 @@ function toError(value) {
541
541
  }
542
542
  __name(toError, "toError");
543
543
 
544
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/mcp/caller.js
544
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/mcp/caller.js
545
545
  var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
546
546
  const client = caller?.agent?.client?.name;
547
547
  if (client && client !== "unknown")
@@ -19,7 +19,7 @@ import {
19
19
  string,
20
20
  text,
21
21
  unknown
22
- } from "./chunk-BHNBWFT5.js";
22
+ } from "./chunk-GOMJNH56.js";
23
23
  import {
24
24
  CliError,
25
25
  visibleControls