@wirecat/mail-cli 0.33.0 → 0.34.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 (128) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/contracts/wirecat.json +2 -2
  3. package/dist/bin/mail.js +2 -2
  4. package/dist/bundle/{all-profiles-W3CGXEEJ.js → all-profiles-2KUKROHY.js} +10 -10
  5. package/dist/bundle/{anthropic-UMDO5AKP.js → anthropic-E5KRCEVC.js} +8 -8
  6. package/dist/bundle/{app-server-4SICQ5RP.js → app-server-HIQ3QO5K.js} +60 -52
  7. package/dist/bundle/{bun-QVVCH4MJ.js → bun-KARJPE5D.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-CHD4AIUK.js → bun-sqlite-NHGX6ZUN.js} +6 -6
  9. package/dist/bundle/{chunk-TK77DCE5.js → chunk-26DYRMXE.js} +1 -1
  10. package/dist/bundle/{chunk-JADBHKBP.js → chunk-2GDLJKPT.js} +1 -1
  11. package/dist/bundle/{chunk-JUYUWMTG.js → chunk-2SCQ7Z4I.js} +4 -4
  12. package/dist/bundle/{chunk-Y2P2LC5R.js → chunk-2VBEBPGX.js} +9 -9
  13. package/dist/bundle/{chunk-OOYIPK4F.js → chunk-4SKE5GYA.js} +1 -1
  14. package/dist/bundle/{chunk-H46MANPR.js → chunk-4URI6EAV.js} +3 -3
  15. package/dist/bundle/chunk-4VHK5UBM.js +170 -0
  16. package/dist/bundle/{chunk-L3MKFI3Y.js → chunk-4VM3UCSO.js} +2 -2
  17. package/dist/bundle/chunk-5GANGHQI.js +721 -0
  18. package/dist/bundle/{chunk-AEKWEYIG.js → chunk-6G4VQFVX.js} +19 -19
  19. package/dist/bundle/{chunk-KLLT572M.js → chunk-6GGMFL7J.js} +3 -3
  20. package/dist/bundle/{chunk-UYZDH5LK.js → chunk-6LFRZDPV.js} +1 -1
  21. package/dist/bundle/{chunk-LB5FTCPZ.js → chunk-A2Y2RFNW.js} +75 -10
  22. package/dist/bundle/{chunk-35AH33VJ.js → chunk-AGZ7SNFF.js} +1 -1
  23. package/dist/bundle/chunk-CKVWAUBW.js +787 -0
  24. package/dist/bundle/{chunk-QN423PC6.js → chunk-DYQGEZA2.js} +3 -3
  25. package/dist/bundle/{chunk-BF73DBAA.js → chunk-DZRP4UCK.js} +13 -13
  26. package/dist/bundle/{chunk-CZ6ZXDSO.js → chunk-EGQJDEFY.js} +74 -36
  27. package/dist/bundle/{chunk-BRRHYXUP.js → chunk-EZAX77SM.js} +20 -20
  28. package/dist/bundle/{chunk-47YNANPZ.js → chunk-FNYWC6A3.js} +2 -2
  29. package/dist/bundle/chunk-FORAOCZ3.js +334 -0
  30. package/dist/bundle/{chunk-EW3JFV7J.js → chunk-H77ALM2Y.js} +4 -4
  31. package/dist/bundle/{chunk-OWAJN74H.js → chunk-HH647UBC.js} +23 -23
  32. package/dist/bundle/{chunk-74BYHR44.js → chunk-HRDCH2VB.js} +620 -622
  33. package/dist/bundle/{chunk-SDWYOYGN.js → chunk-I3MS74OF.js} +4 -4
  34. package/dist/bundle/{chunk-FSMCXQH2.js → chunk-IMQ4CVZJ.js} +2 -2
  35. package/dist/bundle/{chunk-XN5KH24X.js → chunk-JVGVLRBA.js} +5 -5
  36. package/dist/bundle/{chunk-MNJ3BMPZ.js → chunk-KF6O4RZO.js} +3 -3
  37. package/dist/bundle/{chunk-UX76GMQM.js → chunk-KGYK3OI3.js} +6 -6
  38. package/dist/bundle/{chunk-BZY5W35X.js → chunk-KLI5FKZ2.js} +7 -7
  39. package/dist/bundle/chunk-KNVTBDTE.js +72 -0
  40. package/dist/bundle/{chunk-SW7YGW3T.js → chunk-LKTDW5LH.js} +7 -7
  41. package/dist/bundle/{chunk-UWF3SSRL.js → chunk-LOSYDRJU.js} +28 -8
  42. package/dist/bundle/{chunk-MT7T5N2N.js → chunk-MDISZMK4.js} +4 -4
  43. package/dist/bundle/{chunk-CIG4UVP6.js → chunk-MGXYIVVJ.js} +14 -13
  44. package/dist/bundle/{chunk-2BFXHCZW.js → chunk-NAENYLIO.js} +2 -2
  45. package/dist/bundle/{chunk-LXAX6AZU.js → chunk-NHD5BOJU.js} +6 -6
  46. package/dist/bundle/{chunk-IPSLQX64.js → chunk-NI4GCP2T.js} +2 -2
  47. package/dist/bundle/{chunk-CHNNKHLL.js → chunk-NJVJH5MH.js} +1206 -1544
  48. package/dist/bundle/{chunk-S6CHYNFE.js → chunk-NWD7AFOR.js} +2 -2
  49. package/dist/bundle/{chunk-7OYZU5SP.js → chunk-NXERDBEK.js} +4 -4
  50. package/dist/bundle/{chunk-2L6D54BR.js → chunk-OG5QO5RR.js} +8 -8
  51. package/dist/bundle/{chunk-2P44S7XK.js → chunk-OJ3BI2U4.js} +26 -24
  52. package/dist/bundle/chunk-OOYRMTX5.js +374 -0
  53. package/dist/bundle/{chunk-I3UAD4EI.js → chunk-OX5MCGXL.js} +40 -40
  54. package/dist/bundle/{chunk-LACMDMDI.js → chunk-PA4GEJXQ.js} +9 -9
  55. package/dist/bundle/{chunk-RENCSP47.js → chunk-PC3N3LH3.js} +3 -3
  56. package/dist/bundle/{chunk-UG2QDGAH.js → chunk-PRDKEVUL.js} +1 -1
  57. package/dist/bundle/{chunk-2X344EUT.js → chunk-PVZMN3UZ.js} +8 -8
  58. package/dist/bundle/{chunk-GZYICXO4.js → chunk-QFJC6POK.js} +1 -1
  59. package/dist/bundle/{chunk-OFMYFFEF.js → chunk-QOQF2TX3.js} +487 -1144
  60. package/dist/bundle/{chunk-BI5P7JWM.js → chunk-QQGPV3QN.js} +2 -2
  61. package/dist/bundle/{chunk-LXUHYDNE.js → chunk-QXLYLVEC.js} +1 -1
  62. package/dist/bundle/chunk-QXYNDMA6.js +259 -0
  63. package/dist/bundle/{chunk-HFFHL7SV.js → chunk-R2GS3GBJ.js} +61 -59
  64. package/dist/bundle/{chunk-LFBD6RTX.js → chunk-RPNQXWRS.js} +4 -4
  65. package/dist/bundle/{chunk-6IS4BEN4.js → chunk-SK3N4CK5.js} +4 -4
  66. package/dist/bundle/{chunk-JCQ47WR4.js → chunk-T2EE5M7O.js} +5 -5
  67. package/dist/bundle/{chunk-XQXYAOBV.js → chunk-TZJC4AOK.js} +26 -26
  68. package/dist/bundle/{chunk-LKGJMM6W.js → chunk-V43KEZYA.js} +9 -9
  69. package/dist/bundle/{chunk-SYUIAMVA.js → chunk-VBVR6JRC.js} +260 -516
  70. package/dist/bundle/{chunk-QO7BK4WD.js → chunk-VRGEDK4T.js} +8 -8
  71. package/dist/bundle/{chunk-DI74RP6R.js → chunk-WYGDALB3.js} +31 -85
  72. package/dist/bundle/{chunk-IBIFX2LK.js → chunk-X6IGETU6.js} +2 -2
  73. package/dist/bundle/{chunk-6VCQ4CTK.js → chunk-XIF75Z7D.js} +1 -1
  74. package/dist/bundle/chunk-XWU3A7H6.js +29 -0
  75. package/dist/bundle/{chunk-TBZLGT7R.js → chunk-YWX5X5RI.js} +19 -117
  76. package/dist/bundle/{chunk-RXUVXAMM.js → chunk-Z6A6QPPW.js} +1 -1
  77. package/dist/bundle/{chunk-UAV74EY4.js → chunk-ZGZADWD7.js} +1 -1
  78. package/dist/bundle/{chunk-MJ7DUSHT.js → chunk-ZZEWQR43.js} +18 -14
  79. package/dist/bundle/command-contract-PZ7VOOXP.js +39 -0
  80. package/dist/bundle/{command-server-entry-G2ZHCN5J.js → command-server-entry-NF45UPEV.js} +28 -25
  81. package/dist/bundle/decode-DUZA3EHC.js +296 -0
  82. package/dist/bundle/{dispatch-RHIK22OA.js → dispatch-CDJZAMVP.js} +8 -8
  83. package/dist/bundle/{dist-X5G2IMYG.js → dist-RH7EMC4J.js} +29 -24
  84. package/dist/bundle/{echarts-UZJ6AREV.js → echarts-GZHZBNRA.js} +2 -2
  85. package/dist/bundle/{embed-FEXLUH3T.js → embed-VE3CSJN4.js} +6 -6
  86. package/dist/bundle/{embedder-NHQARKFJ.js → embedder-DSJ77DX5.js} +9 -9
  87. package/dist/bundle/{failure-7DIA4OET.js → failure-YH6HAGFT.js} +2 -2
  88. package/dist/bundle/{first-run-PS5NR2QG.js → first-run-3L7HLYTI.js} +12 -12
  89. package/dist/bundle/first-screen-MY5KID77.js +37 -0
  90. package/dist/bundle/{instructions-SDDUBGH4.js → instructions-OZK3BLIO.js} +1 -1
  91. package/dist/bundle/mail.js +12 -12
  92. package/dist/bundle/{mcp-GN4FTJX5.js → mcp-YUG4YR4R.js} +2 -2
  93. package/dist/bundle/meeting-combined-RYMUPY54.js +24 -0
  94. package/dist/bundle/meeting-model-U7LW5WEN.js +24 -0
  95. package/dist/bundle/meeting-semantic-64IOIQRR.js +21 -0
  96. package/dist/bundle/{node-ELCNUOCE.js → node-OS3VWBUZ.js} +2 -2
  97. package/dist/bundle/{node-sqlite-2E5MKZMH.js → node-sqlite-RQ623VFA.js} +7 -7
  98. package/dist/bundle/{oauth-JGPEIY3M.js → oauth-CBPAG734.js} +7 -7
  99. package/dist/bundle/{open-6DEMCZAB.js → open-H4DGOMBC.js} +5 -5
  100. package/dist/bundle/{openai-IVKDU5AH.js → openai-EMWRGR54.js} +28 -26
  101. package/dist/bundle/{process-67DAKAAQ.js → process-3TOIYASI.js} +1 -1
  102. package/dist/bundle/{program-ESJDQMAJ.js → program-WA6RGAJL.js} +3075 -2024
  103. package/dist/bundle/{prompt-ZBWOT5KG.js → prompt-22KNCMBI.js} +5 -5
  104. package/dist/bundle/{recognize-UUBH2DOH.js → recognize-UWD4RSCZ.js} +4 -4
  105. package/dist/bundle/{remote-UYTNWNOB.js → remote-LJY7MF2E.js} +9 -9
  106. package/dist/bundle/{rerank-X2633CQN.js → rerank-JJ6KNJFB.js} +7 -7
  107. package/dist/bundle/{serve-CP7Q4OVW.js → serve-3EPLJYVZ.js} +9 -9
  108. package/dist/bundle/{server-I7MXRSAG.js → server-5JOFO4V4.js} +52 -44
  109. package/dist/bundle/server-EOQNS7B7.js +75 -0
  110. package/dist/bundle/{sqlite-runtime-BX55LI5G.js → sqlite-runtime-MGJA5E27.js} +6 -6
  111. package/dist/bundle/{state-LLNJQXFH.js → state-UCRDOWOP.js} +6 -6
  112. package/dist/bundle/{store-K4KU5N75.js → store-265VRRQV.js} +25 -20
  113. package/dist/bundle/{store-N27XI3VV.js → store-HS272YSA.js} +21 -17
  114. package/dist/bundle/store-maintenance-command-IKZM5NRP.js +66 -0
  115. package/dist/config.d.ts +1 -0
  116. package/dist/config.d.ts.map +1 -1
  117. package/dist/identity.d.ts.map +1 -1
  118. package/dist/identity.js +2 -2
  119. package/dist/identity.js.map +1 -1
  120. package/dist/version.d.ts +1 -1
  121. package/dist/version.js +1 -1
  122. package/package.json +3 -3
  123. package/dist/bundle/command-contract-NRNQAFFE.js +0 -36
  124. package/dist/bundle/decode-U6V6D6XH.js +0 -162
  125. package/dist/bundle/first-screen-C2WTLOG2.js +0 -34
  126. package/dist/bundle/server-QGTMJ7SF.js +0 -67
  127. package/dist/bundle/store-maintenance-command-VPAFQCNA.js +0 -58
  128. /package/dist/bundle/{chunk-BDCC2J2Z.js → chunk-FEBUZHU3.js} +0 -0
@@ -23,28 +23,28 @@ import {
23
23
  tagMemberIds,
24
24
  thingOf,
25
25
  write
26
- } from "./chunk-CHNNKHLL.js";
26
+ } from "./chunk-NJVJH5MH.js";
27
+ import {
28
+ fold
29
+ } from "./chunk-26DYRMXE.js";
27
30
  import {
28
31
  ADDED_PROVIDER,
29
32
  filesAccountSql,
30
33
  folderProviderOf,
31
34
  folderProviderSql,
32
35
  isDocumentAccountProvider
33
- } from "./chunk-OFMYFFEF.js";
36
+ } from "./chunk-CKVWAUBW.js";
34
37
  import {
35
38
  damagedFile
36
- } from "./chunk-L3MKFI3Y.js";
37
- import {
38
- fold
39
- } from "./chunk-TK77DCE5.js";
39
+ } from "./chunk-4VM3UCSO.js";
40
40
  import {
41
41
  CliError
42
- } from "./chunk-BI5P7JWM.js";
42
+ } from "./chunk-QQGPV3QN.js";
43
43
  import {
44
44
  __name
45
45
  } from "./chunk-ZVVMGPBJ.js";
46
46
 
47
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/damage.js
47
+ // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/store/damage.js
48
48
  var DERIVED = /* @__PURE__ */ new Set(["mentions", "involvements", "embeddings"]);
49
49
  var named = /* @__PURE__ */ __name((tables) => tables.length <= 5 ? tables.join(", ") : `${tables.slice(0, 5).join(", ")} and ${tables.length - 5} more`, "named");
50
50
  var isDerivedTable = /* @__PURE__ */ __name((table, searchIndexes) => DERIVED.has(table) || table.startsWith("vector_index_") || searchIndexes.some((index) => table === index || table.startsWith(`${index}_`)), "isDerivedTable");
@@ -147,11 +147,11 @@ var storeDamageReport = /* @__PURE__ */ __name(({ health, command, mark = null,
147
147
  };
148
148
  }, "storeDamageReport");
149
149
 
150
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
150
+ // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
151
151
  import { realpathSync, statSync } from "node:fs";
152
152
  import { resolve } from "node:path";
153
153
 
154
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/people.js
154
+ // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/people.js
155
155
  var planPeople = /* @__PURE__ */ __name((database, snapshot, mappings, bindings, conflicts) => {
156
156
  const creatable = /* @__PURE__ */ new Set();
157
157
  let people = 0, identities = 0;
@@ -214,11 +214,11 @@ var copyPeople = /* @__PURE__ */ __name((database, snapshot, mappings, now) => {
214
214
  }
215
215
  }, "copyPeople");
216
216
 
217
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/document-transfer/digest.js
217
+ // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/store/document-transfer/digest.js
218
218
  import { createHash } from "node:crypto";
219
219
  var digest = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "digest");
220
220
 
221
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/collection.js
221
+ // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/collection.js
222
222
  var documentsKeyOf = /* @__PURE__ */ __name((collection) => {
223
223
  const colon = collection.indexOf(":");
224
224
  const provider = collection.slice(0, colon);
@@ -262,7 +262,7 @@ var currentCollection = /* @__PURE__ */ __name((row) => {
262
262
  };
263
263
  }, "currentCollection");
264
264
 
265
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/plan.js
265
+ // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/plan.js
266
266
  var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindings) => {
267
267
  const mappings = /* @__PURE__ */ new Map();
268
268
  const missing = /* @__PURE__ */ new Set(), conflicts = /* @__PURE__ */ new Set();
@@ -429,7 +429,7 @@ var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindin
429
429
  };
430
430
  }, "planTransfer");
431
431
 
432
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
432
+ // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
433
433
  var TRANSFER_TABLES = { document: "documents", note: "notes", memory: "memories", fact: "facts" };
434
434
  var MAX_ENTITIES = 1e3;
435
435
  var MAX_AUXILIARY = 1e4;
@@ -591,7 +591,7 @@ var transferSnapshot = /* @__PURE__ */ __name((database, collection) => read(dat
591
591
  };
592
592
  }), "transferSnapshot");
593
593
 
594
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/apply.js
594
+ // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/apply.js
595
595
  var providerHere = /* @__PURE__ */ __name(({ provider, name, settings }) => {
596
596
  if (provider !== "folder" || String(name ?? "").startsWith("google-drive:"))
597
597
  return provider ?? null;
@@ -763,7 +763,7 @@ var remapEntity = /* @__PURE__ */ __name((database, entity, id, mappings) => {
763
763
  database.prepare(`UPDATE ${TRANSFER_TABLES[entity.kind]} SET ${columns.join(",")} WHERE id=?`).run(...values, id);
764
764
  }, "remapEntity");
765
765
 
766
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
766
+ // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
767
767
  var locations = /* @__PURE__ */ __name((options) => {
768
768
  for (const value of [options.source, options.destination, options.collection])
769
769
  if (typeof value !== "string" || !value.trim())
@@ -865,7 +865,7 @@ var applyWith = /* @__PURE__ */ __name(async (location, options) => {
865
865
  }
866
866
  }, "applyWith");
867
867
 
868
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/health.js
868
+ // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/store/health.js
869
869
  import { existsSync, statSync as statSync2 } from "node:fs";
870
870
  var JSON_COLUMNS = {
871
871
  accounts: ["settings"],
@@ -1007,7 +1007,7 @@ var storeHealth = /* @__PURE__ */ __name(async (path, { deep = false } = {}) =>
1007
1007
  }
1008
1008
  }, "storeHealth");
1009
1009
 
1010
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
1010
+ // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
1011
1011
  var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
1012
1012
  if (!options || typeof options !== "object" || Array.isArray(options))
1013
1013
  throw new CliError("validation_error", "project preview options are required");
@@ -1033,7 +1033,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
1033
1033
  });
1034
1034
  }, "previewProjectAnnotationSnapshot");
1035
1035
 
1036
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
1036
+ // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
1037
1037
  var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
1038
1038
  if (!options || typeof options !== "object" || Array.isArray(options))
1039
1039
  throw new CliError("validation_error", "snapshot options are required");
@@ -29,7 +29,7 @@ import {
29
29
  agentOf,
30
30
  clientHash,
31
31
  currentCaller
32
- } from "./chunk-2X344EUT.js";
32
+ } from "./chunk-PVZMN3UZ.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.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/mcp/caller.js
544
+ // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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")
@@ -629,7 +629,7 @@ var passedOn = /* @__PURE__ */ __name((value, tool) => {
629
629
  };
630
630
  }, "passedOn");
631
631
 
632
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
632
+ // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
633
633
  import { PassThrough, Writable } from "node:stream";
634
634
  var lineReader = /* @__PURE__ */ __name((onMessage) => {
635
635
  let rest = "";
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/http/listen.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/http/listen.js
8
8
  import { createServer } from "node:http";
9
9
  import { Readable } from "node:stream";
10
10
  var MAX_BODY = 4 * 1024 * 1024;
@@ -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-OFMYFFEF.js";
5
+ } from "./chunk-QOQF2TX3.js";
6
6
  import {
7
7
  defineReasons
8
- } from "./chunk-UWF3SSRL.js";
8
+ } from "./chunk-LOSYDRJU.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/errors/reasons.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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"],
@@ -32,10 +32,16 @@ var SIGN_IN = [
32
32
  ["oauth.timeout", "timeout", "the sign-in was not finished in time"],
33
33
  ["oauth.mismatch", "authentication_error", "the pasted sign-in result belongs to another sign-in"],
34
34
  ["session.missing", "authentication_error", "this profile is not signed in: no saved sign-in or API token"],
35
+ ["session.unreadable", "configuration_error", "the profile's stored secrets cannot be read; sign in again"],
35
36
  ["oauth.locked", "provider_unavailable", "another process holds this sign-in's lock"],
36
37
  ["oauth.no-response", "outcome_unknown", "the token request did not finish"],
37
38
  ["oauth.unavailable", "provider_unavailable", "the provider's token endpoint is unavailable"],
38
39
  ["oauth.expired", "authentication_error", "the provider refused the saved sign-in; sign in again"],
40
+ [
41
+ "oauth.moved-rotating",
42
+ "authentication_error",
43
+ "a run with moved folders cannot refresh a sign-in whose refresh token rotates"
44
+ ],
39
45
  ["oauth.invalid-response", "invalid_response", "the provider's token response could not be used"],
40
46
  ["oauth.failed", "authentication_error", "the provider returned no offline refresh token"],
41
47
  ["oauth.revoke-failed", "outcome_unknown", "the provider did not confirm the revoke"],
@@ -48,6 +54,7 @@ var SIGN_IN = [
48
54
  ["sign-in.secret-without-id", "configuration_error", "an OAuth client secret is set without its client id"],
49
55
  validation("account-remove.no-choice", "account remove needs --keep-data or --delete-data, one of them"),
50
56
  ["account-remove.unknown-profile", "not_found", "no profile by this name on this computer"],
57
+ validation("profile.missing", "no profile named, and none is picked for the owner; details.profiles lists the ones here"),
51
58
  ["profile.unknown", "not_found", "no profile by this name on this computer; details.profiles lists the ones here"],
52
59
  ["account-remove.busy", "conflict", "a serve or a sync runs for this profile; stop it first"],
53
60
  ["account-remove.unconfirmed", "confirmation_required", "removing an account asks first; add --yes"],
@@ -67,7 +74,8 @@ var PROVIDER_API = [
67
74
  ["item.not-found", "not_found", "the provider has no item by this id, or this account cannot see it"],
68
75
  ["file.not-found", "not_found", "the file named, or its folder, does not exist"],
69
76
  validation("file.not-a-file", "the path names a folder or another thing that is not a file"),
70
- ["file.denied", "permission_error", "the file cannot be opened: permission denied"]
77
+ ["file.denied", "permission_error", "the file cannot be opened: permission denied"],
78
+ validation("file.too-large", "the file is larger than the limit set for this read")
71
79
  ];
72
80
  var SFTP = [
73
81
  ["sftp.host-key-missing", "configuration_error", "no host key is pinned for the SFTP server"],
@@ -77,7 +85,21 @@ var SFTP = [
77
85
  ["sftp.library-missing", "configuration_error", "SFTP needs the ssh2 package in the CLI's dependencies"],
78
86
  ["sftp.timeout", "timeout", "the SFTP server did not answer in time"],
79
87
  validation("sftp.too-large", "the file is larger than the read's byte limit"),
80
- validation("sftp.closed", "the SFTP connection was closed before the operation")
88
+ validation("sftp.closed", "the SFTP connection was closed before the operation"),
89
+ validation("sftp.file-changed", "the file changed on the server while a stream read it; read it again"),
90
+ ["ssh.forward-refused", "permission_error", "the SSH server does not allow forwarding to that address"],
91
+ ["ssh.forward-failed", "network_error", "the SSH server could not reach the address behind it"]
92
+ ];
93
+ var SQL = [
94
+ validation("sql.bad-identifier", "a table or column name is not a plain identifier"),
95
+ ["sql.library-missing", "configuration_error", "this database needs the mysql2 or pg package in the CLI"],
96
+ ["db.refused", "authentication_error", "the database server refused the user or password"],
97
+ ["db.no-database", "not_found", "the database server has no such database"],
98
+ ["db.no-table", "not_found", "the database has no such table"],
99
+ ["db.no-select", "permission_error", "the database user may not read the table; grant it SELECT"],
100
+ ["db.read-only", "permission_error", "the database refused a write: the connection only reads"],
101
+ ["db.timeout", "timeout", "the database server did not answer in time"],
102
+ ["db.failed", "provider_error", "the database server failed the query"]
81
103
  ];
82
104
  var OTHERS = [
83
105
  validation("doctor.report-exists", "the report's file exists; a problem report never overwrites a file"),
@@ -109,6 +131,13 @@ var OTHERS = [
109
131
  ["ai.images-not-allowed", "permission_error", "the AI model may not read pictures; models ai set --allow-remote"],
110
132
  ["picture-reading.off", "permission_error", "picture reading is never; models picture-reading set request"],
111
133
  ["picture-reading.owner-only", "permission_error", "only the owner turns picture reading on, not an agent"],
134
+ [
135
+ "chat-sending.denied",
136
+ "permission_error",
137
+ "models chats is denied: chat text never goes to a model off this computer, even with --yes"
138
+ ],
139
+ ["chat-sending.ask", "confirmation_required", "models chats is ask: pass --yes, or the owner sets it to allowed"],
140
+ ["chat-sending.owner-only", "permission_error", "only the owner makes models chats less strict, not an agent"],
112
141
  validation("picture-reading.agent-missing", "choose the agent that reads: --agent claude or --agent codex"),
113
142
  validation("picture-reading.not-a-picture", "the file is not a PNG, JPEG or WebP picture"),
114
143
  ["picture-reading.unavailable-file", "not_found", "the picture could not be fetched, or is over the size limit"],
@@ -164,6 +193,7 @@ var OTHERS = [
164
193
  ["document.not-imported", "not_found", "the document is not imported in this source account"],
165
194
  ["document.not-found", "not_found", "no listed document has that reference"],
166
195
  ["meeting.not-found", "not_found", "no meeting row has that event or meeting reference"],
196
+ ["listing.too-large", "provider_error", "the listing is over its bound; the checkpoint was kept"],
167
197
  ["listing.source-not-found", "not_found", "a source: term names no account holding what is listed"],
168
198
  validation("query.empty-window", "the time window ends before it starts, so no row can fall in it"),
169
199
  ["extraction.invalid-proposals", "invalid_response", "the model's memory proposals could not be used"],
@@ -181,6 +211,15 @@ var OTHERS = [
181
211
  "the email could not be read again, so its skipped attachments have no text"
182
212
  ],
183
213
  ["mirror.partial", "provider_error", "some mirrored files were not synced"],
214
+ ["mirror.none", "not_found", "the profile has no mirrors; add one with mirrors add"],
215
+ ["mirror.not-found", "not_found", "no such mirror in this profile; see mirrors list"],
216
+ validation("mirror.not-folder", "the path to mirror is not a folder"),
217
+ ["catalog.unavailable", "configuration_error", "the store has no shared catalog for this account"],
218
+ ["catalog.not-found", "not_found", "the file or folder is not in the local catalog; run catalog import or sync"],
219
+ validation("catalog.depth-invalid", "tree depth must be between 0 and 50"),
220
+ ["catalog.cycle", "invalid_response", "local folder ancestry contains a cycle"],
221
+ validation("catalog.tree-limit", "the tree is over 10000 entries; name a smaller folder or lower --depth"),
222
+ validation("export.exists", "the output file already exists"),
184
223
  ["profile.wrong-account", "authentication_error", "the signed-in source account does not match this profile"],
185
224
  validation("push.too-many-files", "the folder holds more files than one push takes"),
186
225
  validation("push.unreadable", "the folder to push could not be read"),
@@ -191,7 +230,7 @@ var OTHERS = [
191
230
  "the settings file's damage has more than one reading; nothing was changed, so it is fixed by hand"
192
231
  ],
193
232
  ["state.invalid", "configuration_error", "the saved sync state is unreadable or invalid; it is kept, not reset"],
194
- ["sync.partial", "provider_error", "some calendars did not sync; the next sync retries them"],
233
+ ["sync.partial", "provider_error", "some sources did not sync; the next sync retries them"],
195
234
  validation("event.conflict", "the event changed at the provider since the last sync; sync and try again"),
196
235
  validation("event.notify-required", "the event has other attendees; say whether to notify them"),
197
236
  validation("remind.window", "--due-within is outside 1m to 1d"),
@@ -202,6 +241,7 @@ var OTHERS = [
202
241
  "the reminder program failed for some events; the next run retries them"
203
242
  ],
204
243
  ["sync.failed", "provider_error", "the sync failed; the answer comes from what the store already holds"],
244
+ validation("event.conference-exists", "the event has a meeting link already, which its attendees use"),
205
245
  validation("event.repeat-invalid", "the repeat rule is outside the RFC 5545 subset the calendars take"),
206
246
  validation("event.repeat-kind", "the series' rule holds a date or a time of the kind the event is leaving"),
207
247
  validation("event.repeat-split", "the series cannot be split at this occurrence, or was split there already"),
@@ -251,6 +291,7 @@ var OTHERS = [
251
291
  ["meetings.server-unreachable", "network_error", "the meetings service could not be reached"],
252
292
  ["meetings.server-signed-out", "authentication_error", "the meetings service needs a sign-in"],
253
293
  ["meetings.server-refused", "permission_error", "the meetings service refused the request"],
294
+ ["meetings.server-rate-limited", "rate_limited", "the meetings service asked to wait before more requests"],
254
295
  ["meetings.server-failed", "provider_error", "the meetings service could not be read, or what it returned kept"],
255
296
  [
256
297
  "meetings.server-capped",
@@ -324,6 +365,7 @@ var OTHERS = [
324
365
  validation("index.not-ready", "the search index is still being built"),
325
366
  validation("input.closed", "the input closed before the answer"),
326
367
  validation("input.empty", "a hidden prompt got an empty answer three times"),
368
+ validation("input.incomplete", "the answers stop before the step that checks them"),
327
369
  validation("input.required", "the command needs an answer and cannot ask for one"),
328
370
  validation("input.too-large", "the input is over its size limit"),
329
371
  ["meeting-project.stale", "conflict", "the meeting's project changed meanwhile"],
@@ -402,16 +444,32 @@ var OTHERS = [
402
444
  validation("pipeline.field", "a pipeline needs a name and at least one stage, each named once"),
403
445
  ["pipeline.not-found", "not_found", "no stored pipeline has that name or reference"],
404
446
  validation("crm.stage-unknown", "a CRM item stands in a stage the store does not hold; it was not kept"),
405
- validation("crm.item-invalid", "a CRM item has a field the store refuses, such as a currency it does not keep"),
447
+ validation("crm.item-invalid", "a CRM item has a field the store refuses, such as a status it does not know"),
448
+ validation("crm.amount-unkept", "a CRM deal's amount is in a currency or with decimals the store cannot hold: the deal is kept without it"),
406
449
  validation("crm.pipeline-required", "the CRM has more than one pipeline of the kind; the command names one"),
407
450
  validation("field.unknown", "no custom field of the kind has that code or label; `fields list` lists them"),
408
451
  validation("field.ambiguous", "more than one custom field has that label; name one by its code"),
409
452
  validation("field.unknown-option", "the list field has no option with that id or label"),
453
+ validation("crm.record-ambiguous", "more than one contact or company has that name; name one by its id"),
454
+ validation("field.ambiguous-option", "more than one option of the list field has that label; name one by its id"),
410
455
  validation("field.unknown-kind", "fields are listed for deals, leads, people and organizations only"),
456
+ [
457
+ "crm.foreign-contacts-spent",
458
+ "permission_error",
459
+ "the day's views of contacts and companies that are not yours are spent"
460
+ ],
461
+ [
462
+ "crm.client-reads-admin-only",
463
+ "permission_error",
464
+ "a raw api call that reads contacts or companies is the CRM administrator's"
465
+ ],
466
+ validation("field.not-filterable", "the CRM cannot filter a list by that custom field"),
467
+ validation("query.bad-value", "a term's value is not the kind its field takes, such as an id or a number"),
468
+ validation("crm.record-field", "a contact's or company's field is not valid"),
411
469
  validation("crm.write-unsupported", "the CRM does not take this write, or does not recognise a repeated one"),
412
470
  validation("crm.unlisted-held", "a list of every id would mark most of a kind deleted; nothing was, until --rescan"),
413
471
  validation("crm.narrowing-held", "the default scope mine would mark most of a kind's stored rows deleted; none is, until the owner sets the scope"),
414
- validation("crm.unassigned-dropped", "the CRM does not let this sign-in count a user in unassigned as nobody's; that user's deals are not copied"),
472
+ validation("crm.unassigned-dropped", "the CRM does not let this sign-in choose a user in unassigned; that user's deals are not copied"),
415
473
  validation("crm.not-reported", "the CRM did not list users or departments; what they would say is unknown, nothing withdrawn"),
416
474
  validation("crm.reference-unknown", "a CRM row names a contact, company or user the store does not hold; that link was not made"),
417
475
  validation("crm.pending-dropped", "relationships waited too long for an end that never came; they were dropped"),
@@ -475,6 +533,11 @@ var OTHERS = [
475
533
  "conflict",
476
534
  "the people a merge or a proposed link names changed since; undo the later merge, or propose the link again"
477
535
  ],
536
+ [
537
+ "identity.merge-conflict",
538
+ "conflict",
539
+ "a row of the renamed identity has no counterpart on the identity it merges into; the pair is left as it was"
540
+ ],
478
541
  ["identity.no-merge", "not_found", "nothing of that person is merged into the other; people show lists the merges"],
479
542
  validation("identity.held-elsewhere", "the identity sits on another person than the one named; name that person to take it off them"),
480
543
  validation("identity.several-persons", "the identities that leave a person are all of that one person"),
@@ -612,7 +675,7 @@ var INPUT_FIELD_REASONS = defineReasons([
612
675
  var REASONS = defineReasons([
613
676
  ...QUERY_REASONS,
614
677
  ...INPUT_FIELD_REASONS,
615
- ...[...QUERY, ...SIGN_IN, ...PROVIDER_API, ...SFTP, ...OTHERS].map(([reason, code, message]) => ({
678
+ ...[...QUERY, ...SIGN_IN, ...PROVIDER_API, ...SFTP, ...SQL, ...OTHERS].map(([reason, code, message]) => ({
616
679
  reason,
617
680
  code,
618
681
  message,
@@ -689,6 +752,8 @@ var DETAILS = [
689
752
  ];
690
753
  var SHARED = { reasons: REASONS, details: DETAILS };
691
754
  var merged = /* @__PURE__ */ new WeakMap();
755
+ var coreCodes = new Map(REASONS.map((entry) => [entry.reason, entry.code]));
756
+ var sameAsCore = /* @__PURE__ */ __name((entry) => coreCodes.get(entry.reason) === entry.code, "sameAsCore");
692
757
  var failureContext = /* @__PURE__ */ __name((errors) => {
693
758
  if (!errors)
694
759
  return SHARED;
@@ -699,7 +764,7 @@ var failureContext = /* @__PURE__ */ __name((errors) => {
699
764
  if (unnamed.length > 0)
700
765
  throw new Error(`error details must be snake_case: ${unnamed.join(", ")}`);
701
766
  const context = {
702
- reasons: defineReasons([...REASONS, ...errors.reasons ?? []]),
767
+ reasons: defineReasons([...REASONS, ...(errors.reasons ?? []).filter((entry) => !sameAsCore(entry))]),
703
768
  details: [.../* @__PURE__ */ new Set([...DETAILS, ...errors.details ?? []])]
704
769
  };
705
770
  merged.set(errors, context);
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/installer.js
7
+ // node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/installer.js
8
8
  var installerOf = /* @__PURE__ */ __name((scriptPath) => {
9
9
  const path = scriptPath.replaceAll("\\", "/");
10
10
  if (path.includes("/_npx/"))