@wirecat/hubspot-cli 0.5.0 → 0.6.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 (178) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +73 -52
  3. package/contracts/wirecat.json +39 -13
  4. package/dist/bin/hubspot.js +2 -2
  5. package/dist/bundle/agent-XB35QVOK.js +40 -0
  6. package/dist/bundle/{all-profiles-PGFXLOKN.js → all-profiles-HFVXPMF6.js} +11 -11
  7. package/dist/bundle/{anthropic-LPOJ3TYF.js → anthropic-VE6WR6IN.js} +5 -5
  8. package/dist/bundle/{app-server-EYWGCSRY.js → app-server-GZ4DCQK7.js} +68 -68
  9. package/dist/bundle/{bun-ZJOOKIIW.js → bun-2DHMKD34.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-Y6KKH2OW.js → bun-sqlite-T5XTYL7L.js} +6 -6
  11. package/dist/bundle/{chunk-WQZENAPE.js → chunk-24HPBWKZ.js} +63 -4
  12. package/dist/bundle/{chunk-STTHRJBX.js → chunk-2I2KBCS6.js} +5 -5
  13. package/dist/bundle/{chunk-AIQT2GGK.js → chunk-2K5BAY32.js} +19 -19
  14. package/dist/bundle/{chunk-WEM4FZPM.js → chunk-2VUIJ5XB.js} +2 -2
  15. package/dist/bundle/{chunk-KRTXJMCD.js → chunk-3HS7JTPI.js} +27 -177
  16. package/dist/bundle/{chunk-BCW7DAVV.js → chunk-3TLNO3VM.js} +2 -2
  17. package/dist/bundle/{chunk-AVBKXCEY.js → chunk-3W5R3XAH.js} +8 -8
  18. package/dist/bundle/{chunk-QDNYJOWJ.js → chunk-3WG4MTQI.js} +1 -1
  19. package/dist/bundle/{chunk-HPRGUUHY.js → chunk-3YTTWJKL.js} +1 -1
  20. package/dist/bundle/{chunk-ZKPM53YG.js → chunk-4UEYVM46.js} +4 -4
  21. package/dist/bundle/{chunk-NKIKMG33.js → chunk-5ILCAAY4.js} +35 -35
  22. package/dist/bundle/{chunk-34HDRZIL.js → chunk-5IPB5WLB.js} +12 -12
  23. package/dist/bundle/{chunk-QPTHEZZ5.js → chunk-5NIIXJV3.js} +2 -2
  24. package/dist/bundle/{chunk-MPNMEWHA.js → chunk-5O5WYSSO.js} +1900 -650
  25. package/dist/bundle/{chunk-MPQ4SPZG.js → chunk-5VTKBGPW.js} +74 -31
  26. package/dist/bundle/{chunk-QIHJKE4K.js → chunk-5WDNG4QE.js} +7 -7
  27. package/dist/bundle/{chunk-OFOA6VJ2.js → chunk-67YPTVGP.js} +3 -3
  28. package/dist/bundle/{chunk-DEUCWBBH.js → chunk-6DABKZYH.js} +70 -11
  29. package/dist/bundle/{chunk-VIJV474N.js → chunk-745FMNI5.js} +1 -1
  30. package/dist/bundle/{chunk-KXWRVLSU.js → chunk-AKSWXRIU.js} +1 -1
  31. package/dist/bundle/{chunk-PMGAU6AP.js → chunk-AP3CWDRK.js} +2 -2
  32. package/dist/bundle/{chunk-5UPNDUAA.js → chunk-BM5F2ZNI.js} +2 -2
  33. package/dist/bundle/{chunk-EPBHJMF6.js → chunk-BU5CEMUH.js} +13 -13
  34. package/dist/bundle/{chunk-6PWRJGX4.js → chunk-CTN4DW2F.js} +4 -4
  35. package/dist/bundle/{chunk-CWCJEAHZ.js → chunk-CU76ZACK.js} +3 -3
  36. package/dist/bundle/{chunk-4RZ4DUQT.js → chunk-DIKUPU3T.js} +3 -3
  37. package/dist/bundle/{chunk-POTS24SH.js → chunk-E27NRLJZ.js} +18 -18
  38. package/dist/bundle/{chunk-BH5FEFZB.js → chunk-EB53G4HO.js} +2 -2
  39. package/dist/bundle/{chunk-DJUUQG6Y.js → chunk-EJZIEBAR.js} +8 -8
  40. package/dist/bundle/{chunk-BW7NPFVC.js → chunk-G6LDK6DJ.js} +7 -7
  41. package/dist/bundle/{chunk-V5VMAHDQ.js → chunk-GEJI27GN.js} +6 -6
  42. package/dist/bundle/{chunk-YQBGPBYN.js → chunk-GHXTNKX2.js} +2 -2
  43. package/dist/bundle/{chunk-5HGS65I3.js → chunk-GR4HZBWO.js} +2 -2
  44. package/dist/bundle/{chunk-I334AT2H.js → chunk-GWXTVO43.js} +7 -7
  45. package/dist/bundle/{chunk-Z7FC6VVM.js → chunk-H4W2OO35.js} +1 -1
  46. package/dist/bundle/{chunk-KAW5VEER.js → chunk-H5HBZCEJ.js} +8 -8
  47. package/dist/bundle/{chunk-VCYUYFIV.js → chunk-HX2BE7DO.js} +1 -1
  48. package/dist/bundle/{chunk-3CHJYWA2.js → chunk-HYDXA624.js} +6 -6
  49. package/dist/bundle/{chunk-DDMBPYHP.js → chunk-HZIGGAC7.js} +2 -2
  50. package/dist/bundle/{chunk-RJBKDZGV.js → chunk-I75ON7VM.js} +8 -8
  51. package/dist/bundle/{chunk-ODRF47VS.js → chunk-ID4GJFE7.js} +8 -8
  52. package/dist/bundle/{chunk-LWS5AO3H.js → chunk-J2SCELII.js} +16 -16
  53. package/dist/bundle/{chunk-R7ZOCDNG.js → chunk-J4FXBF44.js} +1 -1
  54. package/dist/bundle/{chunk-QCHW7R7L.js → chunk-J76CMNWQ.js} +1 -1
  55. package/dist/bundle/{chunk-AHZQMSXW.js → chunk-JDCFHZNU.js} +8 -8
  56. package/dist/bundle/{chunk-K3WCBNH4.js → chunk-JFLKTYH5.js} +6 -6
  57. package/dist/bundle/{chunk-5WADRBQG.js → chunk-K4Y2ZWOO.js} +3 -3
  58. package/dist/bundle/{chunk-PPQRWFJZ.js → chunk-KDW7B7AR.js} +5 -5
  59. package/dist/bundle/{chunk-YZ5MULJM.js → chunk-KKMOKSS5.js} +3 -3
  60. package/dist/bundle/{chunk-MFWECOO3.js → chunk-LHY5XGIR.js} +59 -59
  61. package/dist/bundle/{chunk-MW4ROXQ6.js → chunk-LTU4BQ4S.js} +3 -3
  62. package/dist/bundle/{chunk-A5UTNGI4.js → chunk-M3LRSN6J.js} +13 -13
  63. package/dist/bundle/{chunk-RZS7N3OZ.js → chunk-MJ24YFXZ.js} +7 -7
  64. package/dist/bundle/{chunk-HBFSGL5E.js → chunk-MSQGZHKM.js} +32 -28
  65. package/dist/bundle/{chunk-OCISQFMW.js → chunk-NQOQG7L3.js} +1 -1
  66. package/dist/bundle/{chunk-QLFD3MOL.js → chunk-PDVMYIBP.js} +1492 -733
  67. package/dist/bundle/{chunk-NEDV6RCQ.js → chunk-PR7ZDMGF.js} +3 -3
  68. package/dist/bundle/{chunk-L6WSFVTD.js → chunk-PZ3QJDTD.js} +5 -5
  69. package/dist/bundle/{chunk-LXLXF2OE.js → chunk-Q6AC7WLD.js} +3 -3
  70. package/dist/bundle/{chunk-WXEN6AXQ.js → chunk-QH47G73D.js} +3 -3
  71. package/dist/bundle/{chunk-23CLSKY7.js → chunk-QK5HQUHB.js} +3 -3
  72. package/dist/bundle/{chunk-KC4ILAKO.js → chunk-R26OEZOL.js} +1 -1
  73. package/dist/bundle/{chunk-NLPGUYCG.js → chunk-RLK2EGQD.js} +21 -15
  74. package/dist/bundle/{chunk-SBNZYRVZ.js → chunk-RLNPTES2.js} +4 -4
  75. package/dist/bundle/{chunk-K5S7MKBB.js → chunk-T4MZJMEJ.js} +17 -17
  76. package/dist/bundle/{chunk-MGMLSPIY.js → chunk-TAPQZYXY.js} +1 -1
  77. package/dist/bundle/{chunk-HPSESLOZ.js → chunk-TCSVW7BA.js} +1 -1
  78. package/dist/bundle/{chunk-7Q64D56R.js → chunk-THGAVPRA.js} +11 -11
  79. package/dist/bundle/{chunk-BVK4GUUI.js → chunk-TRLV5NWZ.js} +1706 -1820
  80. package/dist/bundle/{chunk-WDR77HPO.js → chunk-TT75CEYZ.js} +8 -1
  81. package/dist/bundle/{chunk-L4SVHQ7H.js → chunk-TXO4CJW3.js} +7 -7
  82. package/dist/bundle/{chunk-MKBQFD37.js → chunk-UCGZRZJA.js} +1 -1
  83. package/dist/bundle/{chunk-5ENY4POG.js → chunk-UVGJL753.js} +61 -61
  84. package/dist/bundle/{chunk-GZJP3KQQ.js → chunk-UZ2CL435.js} +1 -1
  85. package/dist/bundle/{chunk-YJLJZMEA.js → chunk-V7N2K5OT.js} +33 -30
  86. package/dist/bundle/{chunk-MENMD5Y5.js → chunk-VR2CJFVL.js} +8 -8
  87. package/dist/bundle/{chunk-EGR3YUWD.js → chunk-WASBOYI2.js} +4 -4
  88. package/dist/bundle/{chunk-NEP67GLY.js → chunk-WE4JSHIG.js} +6 -6
  89. package/dist/bundle/{chunk-ABPZOI3C.js → chunk-X2QRCFGJ.js} +4 -4
  90. package/dist/bundle/{chunk-ZLWQPUPB.js → chunk-XRFYVVFU.js} +2 -2
  91. package/dist/bundle/{chunk-6S422S22.js → chunk-YDG5FIQB.js} +7 -9
  92. package/dist/bundle/{chunk-ZMHD76RE.js → chunk-YIH2A2PQ.js} +2 -2
  93. package/dist/bundle/{chunk-7RIE3DAW.js → chunk-ZERQSELP.js} +189 -158
  94. package/dist/bundle/{chunk-BGUGTMTS.js → chunk-ZKTYTOF4.js} +8 -8
  95. package/dist/bundle/command-contract-5FXCYQUS.js +40 -0
  96. package/dist/bundle/{command-server-entry-B7S5AUE6.js → command-server-entry-H6IAJNOF.js} +28 -28
  97. package/dist/bundle/{decode-7L33C5UJ.js → decode-TR2EC46M.js} +5 -5
  98. package/dist/bundle/{dispatch-BIGHHSXV.js → dispatch-B2EP6DDT.js} +8 -8
  99. package/dist/bundle/{echarts-CWR3QH55.js → echarts-7OP7I5B2.js} +2 -2
  100. package/dist/bundle/{embed-GXQ3HOQ6.js → embed-FLGS4LN7.js} +6 -6
  101. package/dist/bundle/{embedder-47OYXGLS.js → embedder-JIXQXCP3.js} +9 -9
  102. package/dist/bundle/{failure-VMZOU5GZ.js → failure-AOACEURF.js} +2 -2
  103. package/dist/bundle/{first-run-YVQQOUQG.js → first-run-XJ2NWIK2.js} +12 -12
  104. package/dist/bundle/first-screen-U73G5CMM.js +40 -0
  105. package/dist/bundle/hubspot.js +27 -27
  106. package/dist/bundle/{instructions-QFS2MPK3.js → instructions-PYCYV6QE.js} +1 -1
  107. package/dist/bundle/{mcp-Z2KZNCXB.js → mcp-ZNULRPZ4.js} +2 -2
  108. package/dist/bundle/meeting-combined-IHTM5H5B.js +25 -0
  109. package/dist/bundle/{meeting-model-GLF2HVJG.js → meeting-model-2PA5WJY5.js} +11 -11
  110. package/dist/bundle/{meeting-semantic-RG56F4YX.js → meeting-semantic-5IH63QFV.js} +6 -6
  111. package/dist/bundle/{node-3TSWTXGI.js → node-6GTNIVBM.js} +2 -2
  112. package/dist/bundle/{node-sqlite-UPQCG7DJ.js → node-sqlite-FBCEHPNT.js} +7 -7
  113. package/dist/bundle/{oauth-MCVEENW3.js → oauth-BFP4SCL5.js} +7 -7
  114. package/dist/bundle/{open-JMUTKUYJ.js → open-MLU4MHGO.js} +5 -5
  115. package/dist/bundle/{openai-HT7YDOK7.js → openai-R7WJI6SO.js} +15 -15
  116. package/dist/bundle/{process-7RC6DAGM.js → process-NMNQLJHZ.js} +1 -1
  117. package/dist/bundle/{program-3DLBMOEJ.js → program-Z735HPFG.js} +474 -320
  118. package/dist/bundle/{prompt-7EROPXPF.js → prompt-A6RM55Q4.js} +5 -5
  119. package/dist/bundle/{recognize-B232GXD2.js → recognize-ORRDV45M.js} +4 -4
  120. package/dist/bundle/{remote-HGV64VRC.js → remote-UF3WSC4X.js} +9 -9
  121. package/dist/bundle/{rerank-5S6TDXHD.js → rerank-ZSJORUGH.js} +7 -7
  122. package/dist/bundle/{schemas-SB42IXEX.js → schemas-EXBNVPMI.js} +1 -1
  123. package/dist/bundle/{serve-D2WFCV6Z.js → serve-4KBJ6SIA.js} +9 -9
  124. package/dist/bundle/{server-4AXPTJPV.js → server-IFK4S6LJ.js} +60 -60
  125. package/dist/bundle/server-MNUAZWTN.js +86 -0
  126. package/dist/bundle/source-PBCQAG4C.js +426 -0
  127. package/dist/bundle/{sqlite-runtime-DAFMZNLI.js → sqlite-runtime-XPDUWOPG.js} +6 -6
  128. package/dist/bundle/{state-7OEBDXVV.js → state-4M26H7NL.js} +6 -6
  129. package/dist/bundle/{store-2ZWSWF76.js → store-3W4ZOOIB.js} +28 -24
  130. package/dist/bundle/store-CDY2PW6J.js +34 -0
  131. package/dist/bundle/{store-KC6US326.js → store-ICTY3RIF.js} +22 -22
  132. package/dist/bundle/store-maintenance-command-Y7TC3I43.js +73 -0
  133. package/dist/bundle/surface-4LNDJZD2.js +72 -0
  134. package/dist/bundle/writer-WGHWQTC2.js +86 -0
  135. package/dist/commands/account.d.ts +3 -2
  136. package/dist/commands/account.d.ts.map +1 -1
  137. package/dist/commands/account.js +31 -78
  138. package/dist/commands/account.js.map +1 -1
  139. package/dist/commands/crm-shared.d.ts.map +1 -1
  140. package/dist/commands/crm-shared.js +2 -0
  141. package/dist/commands/crm-shared.js.map +1 -1
  142. package/dist/commands/session.d.ts +0 -3
  143. package/dist/commands/session.d.ts.map +1 -1
  144. package/dist/commands/session.js +4 -31
  145. package/dist/commands/session.js.map +1 -1
  146. package/dist/config.d.ts.map +1 -1
  147. package/dist/config.js +16 -10
  148. package/dist/config.js.map +1 -1
  149. package/dist/crm/activities.d.ts +6 -1
  150. package/dist/crm/activities.d.ts.map +1 -1
  151. package/dist/crm/activities.js +36 -0
  152. package/dist/crm/activities.js.map +1 -1
  153. package/dist/crm/writer.d.ts +1 -1
  154. package/dist/crm/writer.d.ts.map +1 -1
  155. package/dist/crm/writer.js +69 -1
  156. package/dist/crm/writer.js.map +1 -1
  157. package/dist/program.d.ts.map +1 -1
  158. package/dist/program.js +0 -2
  159. package/dist/program.js.map +1 -1
  160. package/dist/reasons.d.ts.map +1 -1
  161. package/dist/reasons.js +0 -2
  162. package/dist/reasons.js.map +1 -1
  163. package/dist/version.d.ts +1 -1
  164. package/dist/version.js +1 -1
  165. package/package.json +3 -3
  166. package/skills/hubspot-cli/SKILL.md +10 -5
  167. package/skills/hubspot-cli/references/api/api-basic.md +2 -2
  168. package/skills/hubspot-cli/references/api/api-batch.md +2 -2
  169. package/dist/bundle/agent-RBQMA24N.js +0 -40
  170. package/dist/bundle/command-contract-O2UKYHLD.js +0 -40
  171. package/dist/bundle/first-screen-TU3KE2B5.js +0 -40
  172. package/dist/bundle/meeting-combined-WBEOLQMP.js +0 -25
  173. package/dist/bundle/server-FFHVNABP.js +0 -86
  174. package/dist/bundle/source-DF63EC2B.js +0 -945
  175. package/dist/bundle/store-Q3ZKD4FJ.js +0 -34
  176. package/dist/bundle/store-maintenance-command-24A4GBRP.js +0 -73
  177. package/dist/bundle/surface-SPTM57EP.js +0 -72
  178. package/dist/bundle/writer-EQQ55HOS.js +0 -86
@@ -2,36 +2,36 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  commandAvailability
5
- } from "./chunk-ABPZOI3C.js";
5
+ } from "./chunk-X2QRCFGJ.js";
6
6
  import {
7
7
  lentConnection
8
- } from "./chunk-PPQRWFJZ.js";
8
+ } from "./chunk-KDW7B7AR.js";
9
9
  import {
10
10
  QUERY_ARGUMENT
11
- } from "./chunk-EPBHJMF6.js";
11
+ } from "./chunk-BU5CEMUH.js";
12
12
  import {
13
13
  changesMessenger,
14
14
  flatten
15
- } from "./chunk-7RIE3DAW.js";
15
+ } from "./chunk-ZERQSELP.js";
16
16
  import {
17
17
  currentCaller
18
- } from "./chunk-RJBKDZGV.js";
18
+ } from "./chunk-I75ON7VM.js";
19
19
  import {
20
20
  enclosingTraceId,
21
21
  inRun,
22
22
  newRunId,
23
23
  traceOf
24
- } from "./chunk-YJLJZMEA.js";
24
+ } from "./chunk-V7N2K5OT.js";
25
25
  import {
26
26
  authorityAllowed,
27
27
  botApiAllowed
28
- } from "./chunk-BW7NPFVC.js";
28
+ } from "./chunk-G6LDK6DJ.js";
29
29
  import {
30
30
  queryDescription
31
- } from "./chunk-5ENY4POG.js";
31
+ } from "./chunk-UVGJL753.js";
32
32
  import {
33
33
  captureStreams
34
- } from "./chunk-AIQT2GGK.js";
34
+ } from "./chunk-2K5BAY32.js";
35
35
  import {
36
36
  COMPACT_FLAG,
37
37
  SNAKE_CASE,
@@ -41,7 +41,7 @@ import {
41
41
  text,
42
42
  word,
43
43
  writes
44
- } from "./chunk-KAW5VEER.js";
44
+ } from "./chunk-H5HBZCEJ.js";
45
45
  import {
46
46
  array,
47
47
  boolean,
@@ -65,15 +65,15 @@ import {
65
65
  } from "./chunk-S4UUN6LD.js";
66
66
  import {
67
67
  CliError
68
- } from "./chunk-PMGAU6AP.js";
68
+ } from "./chunk-AP3CWDRK.js";
69
69
  import {
70
70
  __name
71
71
  } from "./chunk-ZVVMGPBJ.js";
72
72
 
73
- // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/mcp/agent.js
73
+ // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/mcp/agent.js
74
74
  import { Readable } from "node:stream";
75
75
 
76
- // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
76
+ // node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
77
77
  var LINT_SEVERITIES = ["high", "medium", "low"];
78
78
  var lintRuleSchema = strictObject({
79
79
  id: word,
@@ -219,7 +219,7 @@ var overrideSchema = strictObject({
219
219
  });
220
220
  var overridesSchema = array(overrideSchema);
221
221
 
222
- // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
222
+ // node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
223
223
  var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
224
224
  var defineAuditRules = /* @__PURE__ */ __name((input) => parseRegistry("audit rules", array(auditRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineAuditRules");
225
225
  var AUDIT_RULES = defineAuditRules([
@@ -330,7 +330,13 @@ var FAMILY_SINCE_0_98 = [
330
330
  review(ENTITY, "entity lead", "b24's CRM lead and memo's differ (measured 2026-11-13)"),
331
331
  review(ENTITY, "entity product", "b24's CRM product and memo's differ (measured 2026-11-13)"),
332
332
  review(REASON, "reason ai.address-refused=model.address-refused", "one failure under two names; cli-core 0.650.0 keeps one"),
333
- review(REASON, "reason profile.unknown: code", "b24 gives it not_found, drive validation_error (measured 2026-11-13)")
333
+ review(REASON, "reason profile.unknown: code", "b24 gives it not_found, drive validation_error (measured 2026-11-13)"),
334
+ {
335
+ rule: REASON,
336
+ target: "reason account-remove.unknown-profile=account-rename.unknown-profile",
337
+ reason: "one failure under two names in cli-core 0.715\u20130.716; 0.717.0 gives account rename profile.unknown",
338
+ review_after: "2026-12-10"
339
+ }
334
340
  ];
335
341
  var PARITY_GROUPS = defineParityGroups([
336
342
  { name: "messengers", members: ["tg", "max"], covers: "tree", differences: MESSENGERS_SINCE_0_98 },
@@ -424,7 +430,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
424
430
  { path: ["upgrade"], meaning: "updates the CLI" }
425
431
  ]);
426
432
 
427
- // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
433
+ // node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
428
434
  var fieldRuleSchema = strictObject({ id: word, rule: text });
429
435
  var defineFieldRules = /* @__PURE__ */ __name((input) => parseRegistry("output field rules", array(fieldRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineFieldRules");
430
436
  var FIELD_RULES = defineFieldRules([
@@ -440,7 +446,7 @@ var FIELD_RULES = defineFieldRules([
440
446
  }
441
447
  ]);
442
448
 
443
- // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
449
+ // node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
444
450
  var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
445
451
  var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
446
452
  var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
@@ -462,7 +468,7 @@ var IDENTIFIERS = defineIdentifiers([
462
468
  { key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
463
469
  ]);
464
470
 
465
- // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-account.js
471
+ // node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-account.js
466
472
  var ACCOUNT_FLAGS = [
467
473
  {
468
474
  name: "--client-id",
@@ -499,7 +505,7 @@ var ACCOUNT_FLAGS = [
499
505
  { name: "--hide-phone", role: "output", type: "switch", meaning: "leave the phone number out of the answer" }
500
506
  ];
501
507
 
502
- // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
508
+ // node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
503
509
  var CALENDAR_FLAGS = [
504
510
  { name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
505
511
  {
@@ -587,7 +593,7 @@ var CALENDAR_FLAGS = [
587
593
  }
588
594
  ];
589
595
 
590
- // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-content.js
596
+ // node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-content.js
591
597
  var CONTENT_FLAGS = [
592
598
  { name: "--slug", value: "<slug>", role: "value", type: "string", meaning: "the last part of its web address" },
593
599
  {
@@ -605,7 +611,7 @@ var CONTENT_FLAGS = [
605
611
  }
606
612
  ];
607
613
 
608
- // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-crm.js
614
+ // node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-crm.js
609
615
  var CRM_FLAGS = [
610
616
  {
611
617
  name: "--email",
@@ -769,7 +775,7 @@ var CRM_FLAGS = [
769
775
  }
770
776
  ];
771
777
 
772
- // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
778
+ // node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
773
779
  var HOW_FLAGS = [
774
780
  {
775
781
  name: "--limit",
@@ -1762,7 +1768,7 @@ var HOW_FLAGS = [
1762
1768
  }
1763
1769
  ];
1764
1770
 
1765
- // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-knowledge.js
1771
+ // node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-knowledge.js
1766
1772
  var KNOWLEDGE_FLAGS = [
1767
1773
  {
1768
1774
  name: "--accept-terms",
@@ -1821,7 +1827,7 @@ var KNOWLEDGE_FLAGS = [
1821
1827
  }
1822
1828
  ];
1823
1829
 
1824
- // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-mail.js
1830
+ // node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-mail.js
1825
1831
  var MAIL_FLAGS = [
1826
1832
  {
1827
1833
  name: "--cc",
@@ -1851,7 +1857,38 @@ var MAIL_FLAGS = [
1851
1857
  }
1852
1858
  ];
1853
1859
 
1854
- // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-privacy.js
1860
+ // node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-mirror.js
1861
+ var MIRROR_FLAGS = [
1862
+ {
1863
+ name: "--keep",
1864
+ value: "<side>",
1865
+ role: "mode",
1866
+ type: "choice",
1867
+ meaning: "settle a conflict with one side: local, the remote by its own name (disk, drive), or both, the other kept as a conflict copy"
1868
+ },
1869
+ {
1870
+ name: "--allow-deletions",
1871
+ value: "<count>",
1872
+ role: "mode",
1873
+ type: "count",
1874
+ meaning: "let this run delete up to this many files when the mirror's guard stops it; owner only"
1875
+ },
1876
+ {
1877
+ name: "--allow-replacements",
1878
+ value: "<count>",
1879
+ role: "mode",
1880
+ type: "count",
1881
+ meaning: "let this run overwrite up to this many existing files when the mirror's guard stops it; owner only"
1882
+ },
1883
+ {
1884
+ name: "--repin",
1885
+ role: "mode",
1886
+ type: "switch",
1887
+ meaning: "accept that a replaced local or remote folder is the mirror's folder now, and sync it; owner only"
1888
+ }
1889
+ ];
1890
+
1891
+ // node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-privacy.js
1855
1892
  var PRIVACY_FLAGS = [
1856
1893
  {
1857
1894
  name: "--about-text",
@@ -1912,7 +1949,7 @@ var PRIVACY_FLAGS = [
1912
1949
  { name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" }
1913
1950
  ];
1914
1951
 
1915
- // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-schedule.js
1952
+ // node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-schedule.js
1916
1953
  var SCHEDULE_FLAGS = [
1917
1954
  {
1918
1955
  name: "--locale",
@@ -1945,7 +1982,7 @@ var SCHEDULE_FLAGS = [
1945
1982
  }
1946
1983
  ];
1947
1984
 
1948
- // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-search.js
1985
+ // node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-search.js
1949
1986
  var SEARCH_FLAGS = [
1950
1987
  {
1951
1988
  name: "--like",
@@ -1956,7 +1993,7 @@ var SEARCH_FLAGS = [
1956
1993
  }
1957
1994
  ];
1958
1995
 
1959
- // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
1996
+ // node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
1960
1997
  var WHAT_FLAGS = [
1961
1998
  {
1962
1999
  name: "--analysis-provider",
@@ -2953,7 +2990,7 @@ var WHAT_FLAGS = [
2953
2990
  }
2954
2991
  ];
2955
2992
 
2956
- // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
2993
+ // node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
2957
2994
  var FLAG_TYPES = [
2958
2995
  "switch",
2959
2996
  "count",
@@ -3248,6 +3285,11 @@ var collections = [
3248
3285
  ["roles", "the parts a person plays in a relationship, built in or the owner's own"],
3249
3286
  ["sheets", "remote spreadsheets and their cell ranges, read or changed through a provider"],
3250
3287
  ["files", "files in the source, such as Google Drive, read and changed there"],
3288
+ ["mirrors", "saved pairings of a local folder and a folder in the source, which sync keeps the same both ways"],
3289
+ [
3290
+ "conflicts",
3291
+ "files a mirror's sync found changed on both sides and could not merge, each waiting for a side or a final file"
3292
+ ],
3251
3293
  ["comments", "comments people left on a thing in the source: a channel post or a file"],
3252
3294
  ["meetings", "stored meetings, from Zoom or another provider"],
3253
3295
  ["calls", "phone calls a phone system recorded, stored as meetings with their transcripts"],
@@ -3389,11 +3431,12 @@ var VOCABULARY = defineVocabulary({
3389
3431
  ...CRM_FLAGS,
3390
3432
  ...SCHEDULE_FLAGS,
3391
3433
  ...CONTENT_FLAGS,
3392
- ...SEARCH_FLAGS
3434
+ ...SEARCH_FLAGS,
3435
+ ...MIRROR_FLAGS
3393
3436
  ]
3394
3437
  });
3395
3438
 
3396
- // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/mcp/agent.js
3439
+ // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/mcp/agent.js
3397
3440
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
3398
3441
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
3399
3442
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -5,16 +5,16 @@ import {
5
5
  backoffMs,
6
6
  realSleep,
7
7
  wallClock
8
- } from "./chunk-AIQT2GGK.js";
8
+ } from "./chunk-2K5BAY32.js";
9
9
  import {
10
10
  CliError,
11
11
  isCliError
12
- } from "./chunk-PMGAU6AP.js";
12
+ } from "./chunk-AP3CWDRK.js";
13
13
  import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/body.js
17
+ // node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/body.js
18
18
  var interrupted = /* @__PURE__ */ __name((signal) => isCliError(signal.reason) ? signal.reason : new CliError(signal.reason instanceof Error && signal.reason.name === "TimeoutError" ? "timeout" : "cancelled", "HTTP response read was interrupted"), "interrupted");
19
19
  var checked = /* @__PURE__ */ __name((signal) => {
20
20
  if (signal?.aborted)
@@ -99,7 +99,7 @@ var readJsonResponse = /* @__PURE__ */ __name(async (response, options) => {
99
99
  }
100
100
  }, "readJsonResponse");
101
101
 
102
- // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/hosts.js
102
+ // node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/hosts.js
103
103
  var LABEL = "[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?";
104
104
  var HOST_PATTERN = new RegExp(`^(?:${LABEL}(?:\\.${LABEL})*|\\*\\.${LABEL}(?:\\.${LABEL})+)$`);
105
105
  var hostProblems = /* @__PURE__ */ __name((hosts) => [
@@ -111,7 +111,7 @@ var hostCovered = /* @__PURE__ */ __name((hostname, hosts) => {
111
111
  return hosts.some((host) => host.startsWith("*.") ? name.endsWith(host.slice(1)) : name === host);
112
112
  }, "hostCovered");
113
113
 
114
- // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/fetch.js
114
+ // node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/fetch.js
115
115
  var HOST_FETCH_TIMEOUT_MS = 3e4;
116
116
  var REDIRECTS = 5;
117
117
  var REDIRECT_STATUSES = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
@@ -229,7 +229,7 @@ var hostFetch = /* @__PURE__ */ __name((options) => {
229
229
  };
230
230
  }, "hostFetch");
231
231
 
232
- // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/index.js
232
+ // node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/index.js
233
233
  var parseRetryAfter = /* @__PURE__ */ __name((header, now) => {
234
234
  if (!header)
235
235
  return void 0;
@@ -321,7 +321,7 @@ var retrying = /* @__PURE__ */ __name((send, options = {}) => {
321
321
  };
322
322
  }, "retrying");
323
323
 
324
- // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/models/endpoint.js
324
+ // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/models/endpoint.js
325
325
  var endpoint = /* @__PURE__ */ __name((value) => {
326
326
  try {
327
327
  const url = new URL(value);
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  readSharedSection,
5
5
  writeSharedSection
6
- } from "./chunk-RZS7N3OZ.js";
6
+ } from "./chunk-MJ24YFXZ.js";
7
7
  import {
8
8
  CliError
9
- } from "./chunk-PMGAU6AP.js";
9
+ } from "./chunk-AP3CWDRK.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
15
15
  var PERMISSION_ANSWERS = ["readonly", "allow"];
16
16
  var QUESTIONS = ["languages", "tools", "permissions"];
17
17
  var SECTION = "setup";
@@ -2,18 +2,18 @@ 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-5ENY4POG.js";
5
+ } from "./chunk-UVGJL753.js";
6
6
  import {
7
7
  readSharedSection,
8
8
  sharedConfigPath,
9
9
  writeSharedSection
10
- } from "./chunk-RZS7N3OZ.js";
10
+ } from "./chunk-MJ24YFXZ.js";
11
11
  import {
12
12
  storePath
13
- } from "./chunk-WEM4FZPM.js";
13
+ } from "./chunk-2VUIJ5XB.js";
14
14
  import {
15
15
  defineReasons
16
- } from "./chunk-KAW5VEER.js";
16
+ } from "./chunk-H5HBZCEJ.js";
17
17
  import {
18
18
  isoTimestamp,
19
19
  picklist,
@@ -24,12 +24,12 @@ import {
24
24
  } from "./chunk-S4UUN6LD.js";
25
25
  import {
26
26
  CliError
27
- } from "./chunk-PMGAU6AP.js";
27
+ } from "./chunk-AP3CWDRK.js";
28
28
  import {
29
29
  __name
30
30
  } from "./chunk-ZVVMGPBJ.js";
31
31
 
32
- // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/models/chat-sending.js
32
+ // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/models/chat-sending.js
33
33
  var CHAT_SENDING_MODES = ["allowed", "ask", "denied"];
34
34
  var SECTION = "chat_sending";
35
35
  var Setting = strictObject({
@@ -58,7 +58,7 @@ var chatSendingAllowed = /* @__PURE__ */ __name((env, host, command) => {
58
58
  }, "chatSendingAllowed");
59
59
  var chatSendingAskRefusal = /* @__PURE__ */ __name((what, command, details = {}) => new CliError("confirmation_required", `${what} \u2014 add --yes to send them (an agent may pass yes), or ask the owner to run \`${chatSendingCommand(command, "allowed")}\` so no yes is needed`, { ...details, reason: "chat-sending.ask" }), "chatSendingAskRefusal");
60
60
 
61
- // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/errors/reasons.js
61
+ // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/errors/reasons.js
62
62
  var validation = /* @__PURE__ */ __name((reason, message) => [reason, "validation_error", message], "validation");
63
63
  var QUERY = [
64
64
  ["query.aborted", "the search was stopped before it finished"],
@@ -105,6 +105,14 @@ var SIGN_IN = [
105
105
  validation("profile.missing", "no profile named, and none is picked for the owner; details.profiles lists the ones here"),
106
106
  ["profile.unknown", "not_found", "no profile by this name on this computer; details.profiles lists the ones here"],
107
107
  ["account-remove.busy", "conflict", "a serve or a sync runs for this profile; stop it first"],
108
+ ["account-remove.account-shared", "conflict", "another profile reads the same account, whose copy the store shares"],
109
+ ["session.duplicate", "conflict", "another profile here already signs in to this account as this user"],
110
+ [
111
+ "account-remove.account-unknown",
112
+ "conflict",
113
+ "which account another profile holds could not be read, so --delete-data waits"
114
+ ],
115
+ validation("profile.reserved", "the profile name is a folder every CRM account shares; pick another"),
108
116
  ["account-remove.unconfirmed", "confirmation_required", "removing an account asks first; add --yes"],
109
117
  ["account-remove.path-outside", "configuration_error", "the tool named a path outside its own folders"],
110
118
  [
@@ -112,7 +120,6 @@ var SIGN_IN = [
112
120
  "configuration_error",
113
121
  "the tool named a folder of its own outside the home folder"
114
122
  ],
115
- ["account-rename.unknown-profile", "not_found", "no profile by this name on this computer"],
116
123
  ["account-rename.taken", "conflict", "the new name, or a file or keyring entry under it, already exists"],
117
124
  ["account-rename.busy", "conflict", "a serve, a background service, a schedule or a sync uses this profile"],
118
125
  ["account-rename.bot", "conflict", "the profile is also a bot profile, which keeps its name"],
@@ -126,6 +133,14 @@ var PROVIDER_API = [
126
133
  validation("api.unknown-method", "the provider has no method by this name"),
127
134
  ["api.disabled", "configuration_error", "the provider's API is turned off for this OAuth project"],
128
135
  ["manifest.invalid", "configuration_error", "the source manifest does not match its shape or the generated API"],
136
+ ["source.no-id", "invalid_response", "a row of the provider's answer has no id where the source manifest says"],
137
+ ["source.no-account", "invalid_response", "the provider's answer does not name the signed-in account"],
138
+ validation("source.token-invalid", "the change token is not one this source gave"),
139
+ [
140
+ "source.changes-too-many",
141
+ "invalid_response",
142
+ "more changed since one sync than a round reads, and the provider does not list changes oldest first"
143
+ ],
129
144
  ["verify.no-id", "provider_error", "the answer to the sign-in check holds no account id where auth.verify says"],
130
145
  ["provider.usage-limit", "rate_limited", "the account's usage limit at the provider is reached; wait, do not retry"],
131
146
  ["access.denied", "permission_error", "the provider refused this account access to the item"],
@@ -133,7 +148,8 @@ var PROVIDER_API = [
133
148
  ["file.not-found", "not_found", "the file named, or its folder, does not exist"],
134
149
  validation("file.not-a-file", "the path names a folder or another thing that is not a file"),
135
150
  ["file.denied", "permission_error", "the file cannot be opened: permission denied"],
136
- validation("file.too-large", "the file is larger than the limit set for this read")
151
+ validation("file.too-large", "the file is larger than the limit set for this read"),
152
+ validation("file.not-plain-text", "the file's text is extracted on a read; writing it back would replace the file")
137
153
  ];
138
154
  var SFTP = [
139
155
  ["sftp.host-key-missing", "configuration_error", "no host key is pinned for the SFTP server"],
@@ -159,6 +175,26 @@ var SQL = [
159
175
  ["db.timeout", "timeout", "the database server did not answer in time"],
160
176
  ["db.failed", "provider_error", "the database server failed the query"]
161
177
  ];
178
+ var OFFICE = [
179
+ ["office.wrong-format", "the file is not the Office format the command edits, or its parts cannot be read"],
180
+ ["office.invalid-cell", "a cell is not an address like B7"],
181
+ ["office.invalid-value", "a cell value cannot be written: a number must be finite"],
182
+ ["office.no-sheet", "the workbook has no such sheet, or several when none is named"],
183
+ ["office.duplicate-edit", "the same cell or paragraph is changed twice in one call"],
184
+ ["office.formula-cell", "the cell holds a formula; --replace writes the value over it"],
185
+ ["office.shared-formula", "the cell holds a formula other cells share; replacing it would break theirs"],
186
+ ["office.array-formula", "the cell is part of an array formula; change it in Excel"],
187
+ ["office.rich-value", "the cell holds a picture or a linked data type, which the editor does not replace"],
188
+ ["office.table-header", "the cell is a table's header or total, whose part repeats the text; change it in Excel"],
189
+ ["office.implicit-rows", "the sheet has rows without numbers, so a row cannot be added"],
190
+ ["office.implicit-cells", "the row has cells without addresses, so a cell cannot be added"],
191
+ ["office.no-paragraph", "the document has no paragraph at that index"],
192
+ ["office.unsafe-paragraph", "the paragraph cannot be edited safely; documents show gives the reason"],
193
+ ["office.tracked-change", "the paragraph holds a tracked change"],
194
+ ["office.section-break", "the paragraph ends a section; deleting it would merge two sections"],
195
+ ["office.bookmark", "the paragraph holds a bookmark a cross-reference may point at"],
196
+ ["office.last-paragraph", "the delete would leave the document or a table cell without a paragraph"]
197
+ ].map(([reason, message]) => validation(reason, message));
162
198
  var OTHERS = [
163
199
  validation("doctor.report-exists", "the report's file exists; a problem report never overwrites a file"),
164
200
  validation("usage.unknown-command", "no command by this name; the CLI's help lists them"),
@@ -249,11 +285,17 @@ var OTHERS = [
249
285
  validation("agent.cost-unknown", "the agent reports no cost, so a cost cap cannot stop it"),
250
286
  validation("document.changed", "the document changed while it was read; nothing was saved"),
251
287
  ["document.not-imported", "not_found", "the document is not imported in this source account"],
288
+ ["document.version-missing", "not_found", "the local copy holds no such version of the document"],
252
289
  ["document.not-found", "not_found", "no listed document has that reference"],
253
290
  ["state.unreadable", "configuration_error", "a sync state file cannot be read; move it away and sync again"],
254
291
  ["profile.busy", "provider_unavailable", "another sync or write holds this profile's local copy"],
255
292
  ["profile.account-taken", "conflict", "another profile here already uses this provider account"],
256
293
  ["profile.other-account", "conflict", "this profile's copy was synced from another provider account"],
294
+ [
295
+ "documents.other-account",
296
+ "configuration_error",
297
+ "the documents are signed in as another account than the tracker copy of the same provider"
298
+ ],
257
299
  ["profile.not-synced", "not_found", "the profile has no local copy yet; sync it first"],
258
300
  ["provider.failed", "provider_error", "a read from the provider failed"],
259
301
  ["identity.none", "not_found", "the provider shows no accounts on a document"],
@@ -280,6 +322,11 @@ var OTHERS = [
280
322
  "the email could not be read again, so its skipped attachments have no text"
281
323
  ],
282
324
  ["mirror.partial", "provider_error", "some mirrored files were not synced"],
325
+ [
326
+ "mirror.stopped",
327
+ "timeout",
328
+ "the mirror's run reached its deadline before it was done; run it again with more time"
329
+ ],
283
330
  ["mirror.none", "not_found", "the profile has no mirrors; add one with mirrors add"],
284
331
  ["mirror.not-found", "not_found", "no such mirror in this profile; see mirrors list"],
285
332
  validation("mirror.not-folder", "the path to mirror is not a folder"),
@@ -302,6 +349,8 @@ var OTHERS = [
302
349
  "the earlier content could not be kept in the version store, so the sync did not replace it"
303
350
  ],
304
351
  ["mirror.remote-changed", "conflict", "the remote file changed since the listing; the next sync settles it"],
352
+ ["mirror.local-changed", "conflict", "the local file changed since the conflict was found; nothing was written"],
353
+ ["mirror.no-conflict", "not_found", "the path has no recorded conflict; the last sync settled it or never saw one"],
305
354
  ["upload.mismatch", "conflict", "the uploaded file reads back with other content; the local file changed meanwhile"],
306
355
  ["download.mismatch", "invalid_response", "the downloaded file has other content than the listing said"],
307
356
  ["catalog.unavailable", "configuration_error", "the store has no shared catalog for this account"],
@@ -569,10 +618,16 @@ var OTHERS = [
569
618
  validation("field.not-filterable", "the CRM cannot filter a list by that custom field"),
570
619
  validation("query.bad-value", "a term's value is not the kind its field takes, such as an id or a number"),
571
620
  validation("crm.record-field", "a contact's or company's field is not valid"),
621
+ validation("crm.activity-field", "a comment's or task's field is not valid, or the kind does not take it"),
572
622
  validation("crm.owner-unknown", "owner: names no CRM user: me without a known sign-in user, or not a user id"),
573
623
  validation("crm.write-unsupported", "the CRM does not take this write, or does not recognise a repeated one"),
574
624
  validation("crm.unlisted-held", "a list of every id would mark most of a kind deleted; nothing was, until --rescan"),
575
625
  validation("tracker.unlisted-held", "a tracker's id list would mark too much deleted, or the sign-in read only part; nothing was, until --rescan"),
626
+ validation("tracker.write-unsupported", "the tracker does not take this write, or does not recognise a repeated one"),
627
+ validation("tracker.field", "a field of an issue or a comment the tracker's write does not take as given"),
628
+ validation("tracker.reference", "a team, state, label, project or user no single row of the copy has by that name"),
629
+ validation("tracker.team-required", "a new issue needs its team: name one, or sync a copy that holds one"),
630
+ ["tracker.no-record", "invalid_response", "the tracker answered a write with no record and no error; sync and look"],
576
631
  validation("content.unlisted-held", "a content id list would mark too much deleted, the sign-in read only part, or the site moved; nothing was"),
577
632
  validation("content.conflict", "the post changed at the source since the last sync; sync, then write again"),
578
633
  validation("content.lossy-body", "the post's text holds blocks or embeds Markdown does not keep; --replace-body"),
@@ -628,8 +683,9 @@ var OTHERS = [
628
683
  ["person.no-owner", "not_found", "no person is marked as the owner in the store"],
629
684
  ["person.unknown", "not_found", "the store has no person by that reference; people list gives person:<uid>"],
630
685
  ["person.no-doubt", "not_found", "nothing about that person is in doubt; people links check lists who is"],
631
- validation("person.owner", "the owner's own person is not test data"),
686
+ validation("person.owner", "the owner's own person is not test data, and is never deleted"),
632
687
  validation("person.no-identity", "a person with no identity is not test data; there is nothing to hide"),
688
+ validation("person.erase-blocked", "an invoice, order, subscription or a row the person wrote still names them; change those first, nothing was deleted"),
633
689
  validation("person.from-required", "say whom the identity leaves: --from person:<uid>, or person:me for the owner"),
634
690
  [
635
691
  "identity.separated",
@@ -669,6 +725,8 @@ var OTHERS = [
669
725
  validation("identity.agent-unnamed", "an agent's link names the agent, and never as the owner"),
670
726
  validation("identity.not-shared", "only a match on a shared mailbox can say the mailbox is a company's"),
671
727
  ["organization.not-found", "not_found", "no stored organization has that id"],
728
+ validation("organization.own", "the organization is one of your own companies and is never deleted"),
729
+ validation("organization.erase-blocked", "an invoice, order, subscription or a row the organization wrote still names it; change those first, nothing was deleted"),
672
730
  validation("organization.unnamed", "a free mailbox names no company; name the organization or the company"),
673
731
  validation("organization.ambiguous", "more than one organization matches; name the one meant as a reference"),
674
732
  validation("identity.shared-phone", "more than six people share the phone number, so it proposes no one"),
@@ -793,7 +851,7 @@ var DETAILED = {
793
851
  var REASONS = defineReasons([
794
852
  ...QUERY_REASONS,
795
853
  ...INPUT_FIELD_REASONS,
796
- ...[...QUERY, ...SIGN_IN, ...PROVIDER_API, ...SFTP, ...SQL, ...OTHERS].map(([reason, code, message]) => ({
854
+ ...[...QUERY, ...SIGN_IN, ...PROVIDER_API, ...SFTP, ...SQL, ...OFFICE, ...OTHERS].map(([reason, code, message]) => ({
797
855
  reason,
798
856
  code,
799
857
  message,
@@ -801,6 +859,7 @@ var REASONS = defineReasons([
801
859
  }))
802
860
  ]);
803
861
  var DETAILS = [
862
+ "account",
804
863
  "holders",
805
864
  "profile",
806
865
  "contracts",
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-base@0.125.1_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.127.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/"))
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/store/normalize.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/store/normalize.js
8
8
  var NORMALIZER_VERSION = 1;
9
9
  var fold = /* @__PURE__ */ __name((text) => text.normalize("NFKD").replace(new RegExp("\\p{M}+", "gu"), "").normalize("NFC").toLowerCase(), "fold");
10
10
  var normalize = /* @__PURE__ */ __name((text) => fold(text).replace(new RegExp("\\p{Cc}", "gu"), " ").replace(/\s+/gu, " ").trim(), "normalize");
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/errors.js
7
+ // node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/errors.js
8
8
  var errorCodes = [
9
9
  "validation_error",
10
10
  "configuration_error",
@@ -39,7 +39,7 @@ var CliError = class extends Error {
39
39
  };
40
40
  var isCliError = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && value[BRAND] === true, "isCliError");
41
41
 
42
- // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
42
+ // node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
43
43
  var CONTROL = (
44
44
  // biome-ignore lint/suspicious/noControlCharactersInRegex: matching them is the whole point
45
45
  /[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u200B\u200E\u200F\u202A-\u202E\u2066-\u2069\uFEFF\u{E0000}-\u{E007F}]/gu
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-PMGAU6AP.js";
5
+ } from "./chunk-AP3CWDRK.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
11
11
  var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
12
12
  var MAX_SECRET_INPUT = 64 * 1024;
13
13
  var policies = /* @__PURE__ */ new WeakMap();