@wirecat/hubspot-cli 0.5.0 → 0.7.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 (181) hide show
  1. package/CHANGELOG.md +50 -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-JXICB6TB.js +40 -0
  6. package/dist/bundle/{all-profiles-PGFXLOKN.js → all-profiles-GVEX5MXB.js} +11 -11
  7. package/dist/bundle/{anthropic-LPOJ3TYF.js → anthropic-GK6VBQUD.js} +5 -5
  8. package/dist/bundle/{app-server-EYWGCSRY.js → app-server-JRROE463.js} +68 -68
  9. package/dist/bundle/{bun-ZJOOKIIW.js → bun-B7XTFPUF.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-Y6KKH2OW.js → bun-sqlite-QSNZ2YP4.js} +6 -6
  11. package/dist/bundle/{chunk-DEUCWBBH.js → chunk-2FLLS5IL.js} +97 -24
  12. package/dist/bundle/{chunk-5ENY4POG.js → chunk-2HSYAKWO.js} +61 -61
  13. package/dist/bundle/{chunk-QLFD3MOL.js → chunk-2IRBXFIU.js} +2165 -839
  14. package/dist/bundle/{chunk-AIQT2GGK.js → chunk-2K5BAY32.js} +19 -19
  15. package/dist/bundle/{chunk-ZMHD76RE.js → chunk-2PCVKD27.js} +2 -2
  16. package/dist/bundle/{chunk-MENMD5Y5.js → chunk-2V5KOOJV.js} +8 -8
  17. package/dist/bundle/{chunk-QDNYJOWJ.js → chunk-3WG4MTQI.js} +1 -1
  18. package/dist/bundle/{chunk-MPNMEWHA.js → chunk-4F62XXF6.js} +2081 -711
  19. package/dist/bundle/{chunk-OFOA6VJ2.js → chunk-4HZQ5UIY.js} +3 -3
  20. package/dist/bundle/{chunk-QIHJKE4K.js → chunk-4LHNA6LJ.js} +7 -7
  21. package/dist/bundle/{chunk-7Q64D56R.js → chunk-52NC5E42.js} +11 -11
  22. package/dist/bundle/{chunk-ZLWQPUPB.js → chunk-5AVU5SF6.js} +2 -2
  23. package/dist/bundle/{chunk-MKBQFD37.js → chunk-5EJ3C3JG.js} +1 -1
  24. package/dist/bundle/{chunk-AVBKXCEY.js → chunk-5ISQ4KJM.js} +8 -8
  25. package/dist/bundle/{chunk-CWCJEAHZ.js → chunk-5MFZYHPO.js} +3 -3
  26. package/dist/bundle/{chunk-5WADRBQG.js → chunk-63YWTFZF.js} +3 -3
  27. package/dist/bundle/{chunk-I334AT2H.js → chunk-6EHX762H.js} +7 -7
  28. package/dist/bundle/{chunk-6S422S22.js → chunk-6IHXKMY6.js} +7 -9
  29. package/dist/bundle/{chunk-QCHW7R7L.js → chunk-6WKK4UZP.js} +1 -1
  30. package/dist/bundle/{chunk-VIJV474N.js → chunk-745FMNI5.js} +1 -1
  31. package/dist/bundle/{chunk-6PWRJGX4.js → chunk-A7KGBXBT.js} +4 -4
  32. package/dist/bundle/{chunk-HPRGUUHY.js → chunk-ALOPYWYY.js} +1 -1
  33. package/dist/bundle/{chunk-PMGAU6AP.js → chunk-AP3CWDRK.js} +2 -2
  34. package/dist/bundle/{chunk-LXLXF2OE.js → chunk-B3JVNOTB.js} +3 -3
  35. package/dist/bundle/{chunk-QPTHEZZ5.js → chunk-BQPAIGAF.js} +2 -2
  36. package/dist/bundle/{chunk-DDMBPYHP.js → chunk-BRBBZDMZ.js} +2 -2
  37. package/dist/bundle/{chunk-POTS24SH.js → chunk-BXXU4EXK.js} +18 -18
  38. package/dist/bundle/{chunk-34HDRZIL.js → chunk-BY3NKT34.js} +12 -12
  39. package/dist/bundle/{chunk-3CHJYWA2.js → chunk-CBTWKTWN.js} +6 -6
  40. package/dist/bundle/{chunk-RZS7N3OZ.js → chunk-CEHBT7QX.js} +7 -7
  41. package/dist/bundle/{chunk-NLPGUYCG.js → chunk-DBHJIFDS.js} +37 -18
  42. package/dist/bundle/{chunk-DJUUQG6Y.js → chunk-DIHVN5IC.js} +8 -8
  43. package/dist/bundle/{chunk-4RZ4DUQT.js → chunk-DIKUPU3T.js} +3 -3
  44. package/dist/bundle/{chunk-WEM4FZPM.js → chunk-DMYLQX2O.js} +2 -2
  45. package/dist/bundle/{chunk-LWS5AO3H.js → chunk-DWWZAQ4N.js} +16 -16
  46. package/dist/bundle/{chunk-NEP67GLY.js → chunk-GD5JTKLS.js} +6 -6
  47. package/dist/bundle/{chunk-KC4ILAKO.js → chunk-GHBJBDTW.js} +1 -1
  48. package/dist/bundle/{chunk-KRTXJMCD.js → chunk-GYH2AXPO.js} +27 -177
  49. package/dist/bundle/{chunk-K3WCBNH4.js → chunk-GZD6BYO7.js} +6 -6
  50. package/dist/bundle/{chunk-KAW5VEER.js → chunk-H5HBZCEJ.js} +8 -8
  51. package/dist/bundle/{chunk-VCYUYFIV.js → chunk-HX2BE7DO.js} +1 -1
  52. package/dist/bundle/{chunk-KXWRVLSU.js → chunk-I5WHQH5K.js} +1 -1
  53. package/dist/bundle/{chunk-R7ZOCDNG.js → chunk-INT5JXGP.js} +1 -1
  54. package/dist/bundle/{chunk-YZ5MULJM.js → chunk-IRFFXKKK.js} +3 -3
  55. package/dist/bundle/{chunk-SBNZYRVZ.js → chunk-J5HHB27S.js} +4 -4
  56. package/dist/bundle/{chunk-V5VMAHDQ.js → chunk-JEUYZCWF.js} +6 -6
  57. package/dist/bundle/{chunk-BH5FEFZB.js → chunk-JQUS4KFV.js} +2 -2
  58. package/dist/bundle/{chunk-5HGS65I3.js → chunk-KGLMYQXM.js} +2 -2
  59. package/dist/bundle/{chunk-AHZQMSXW.js → chunk-L3DUZVBP.js} +8 -8
  60. package/dist/bundle/{chunk-RJBKDZGV.js → chunk-LGGBKAVQ.js} +8 -8
  61. package/dist/bundle/{chunk-ODRF47VS.js → chunk-LJ52BS6C.js} +8 -8
  62. package/dist/bundle/{chunk-7RIE3DAW.js → chunk-M3JDGRXM.js} +221 -163
  63. package/dist/bundle/{chunk-BCW7DAVV.js → chunk-MR2BNER3.js} +2 -2
  64. package/dist/bundle/{chunk-OCISQFMW.js → chunk-NUPAXK4Z.js} +1 -1
  65. package/dist/bundle/{chunk-MW4ROXQ6.js → chunk-OX37ZK27.js} +3 -3
  66. package/dist/bundle/{chunk-MFWECOO3.js → chunk-P7N3TZLH.js} +59 -59
  67. package/dist/bundle/{chunk-L6WSFVTD.js → chunk-QAQK2WXJ.js} +5 -5
  68. package/dist/bundle/{chunk-EPBHJMF6.js → chunk-QY7EOB66.js} +13 -13
  69. package/dist/bundle/{chunk-HBFSGL5E.js → chunk-RE55EPBX.js} +33 -28
  70. package/dist/bundle/{chunk-ABPZOI3C.js → chunk-SBORPDIQ.js} +4 -4
  71. package/dist/bundle/{chunk-YQBGPBYN.js → chunk-SFFV2F3Y.js} +2 -2
  72. package/dist/bundle/{chunk-WQZENAPE.js → chunk-SMEEFN65.js} +63 -4
  73. package/dist/bundle/{chunk-GZJP3KQQ.js → chunk-SVRCPPNI.js} +1 -1
  74. package/dist/bundle/{chunk-BW7NPFVC.js → chunk-SZZVNPTI.js} +7 -7
  75. package/dist/bundle/{chunk-HPSESLOZ.js → chunk-TCSVW7BA.js} +1 -1
  76. package/dist/bundle/{chunk-L4SVHQ7H.js → chunk-TXCINEH6.js} +7 -7
  77. package/dist/bundle/{chunk-BGUGTMTS.js → chunk-UMXA357W.js} +8 -8
  78. package/dist/bundle/{chunk-PPQRWFJZ.js → chunk-VJQLJQHT.js} +5 -5
  79. package/dist/bundle/{chunk-EGR3YUWD.js → chunk-WASBOYI2.js} +4 -4
  80. package/dist/bundle/{chunk-Z7FC6VVM.js → chunk-WSTF2MWW.js} +1 -1
  81. package/dist/bundle/{chunk-BVK4GUUI.js → chunk-WSUS3MUK.js} +1853 -1874
  82. package/dist/bundle/{chunk-A5UTNGI4.js → chunk-WWIYZN67.js} +13 -13
  83. package/dist/bundle/{chunk-STTHRJBX.js → chunk-XL3NAXZY.js} +5 -5
  84. package/dist/bundle/{chunk-23CLSKY7.js → chunk-XWYYFAML.js} +3 -3
  85. package/dist/bundle/{chunk-MPQ4SPZG.js → chunk-XZLOQNS7.js} +74 -31
  86. package/dist/bundle/{chunk-MGMLSPIY.js → chunk-YDTFPDAJ.js} +1 -1
  87. package/dist/bundle/{chunk-ZKPM53YG.js → chunk-YFHCKAGU.js} +4 -4
  88. package/dist/bundle/{chunk-WDR77HPO.js → chunk-YGZ37OEN.js} +8 -1
  89. package/dist/bundle/{chunk-YJLJZMEA.js → chunk-YOVIH4QI.js} +33 -30
  90. package/dist/bundle/{chunk-NEDV6RCQ.js → chunk-YVMLFHWS.js} +3 -3
  91. package/dist/bundle/{chunk-K5S7MKBB.js → chunk-ZH76HQDA.js} +17 -17
  92. package/dist/bundle/{chunk-WXEN6AXQ.js → chunk-ZNNGK73C.js} +3 -3
  93. package/dist/bundle/{chunk-NKIKMG33.js → chunk-ZNRZJIRM.js} +35 -35
  94. package/dist/bundle/{chunk-5UPNDUAA.js → chunk-ZS6T2PYQ.js} +2 -2
  95. package/dist/bundle/command-contract-7EWUA6E6.js +40 -0
  96. package/dist/bundle/{command-server-entry-B7S5AUE6.js → command-server-entry-BFXXPNJO.js} +28 -28
  97. package/dist/bundle/{decode-7L33C5UJ.js → decode-5M7R44BR.js} +5 -5
  98. package/dist/bundle/{dispatch-BIGHHSXV.js → dispatch-B2EP6DDT.js} +8 -8
  99. package/dist/bundle/{echarts-CWR3QH55.js → echarts-7MBFY6SZ.js} +2 -2
  100. package/dist/bundle/{embed-GXQ3HOQ6.js → embed-Y4GYNHRX.js} +6 -6
  101. package/dist/bundle/{embedder-47OYXGLS.js → embedder-FI4T4LQB.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-YY66AKKG.js} +12 -12
  104. package/dist/bundle/first-screen-U7Z63VXE.js +40 -0
  105. package/dist/bundle/hubspot.js +27 -27
  106. package/dist/bundle/{instructions-QFS2MPK3.js → instructions-SM7TKV6L.js} +1 -1
  107. package/dist/bundle/{mcp-Z2KZNCXB.js → mcp-ZNULRPZ4.js} +2 -2
  108. package/dist/bundle/meeting-combined-B444C4NF.js +25 -0
  109. package/dist/bundle/{meeting-model-GLF2HVJG.js → meeting-model-DKLMBQXX.js} +11 -11
  110. package/dist/bundle/{meeting-semantic-RG56F4YX.js → meeting-semantic-C5T6UDVB.js} +6 -6
  111. package/dist/bundle/{node-3TSWTXGI.js → node-OS6OQF3F.js} +2 -2
  112. package/dist/bundle/{node-sqlite-UPQCG7DJ.js → node-sqlite-2XTWZ4HL.js} +7 -7
  113. package/dist/bundle/{oauth-MCVEENW3.js → oauth-BSSJ66FC.js} +7 -7
  114. package/dist/bundle/{open-JMUTKUYJ.js → open-UZ3TKWDY.js} +5 -5
  115. package/dist/bundle/{openai-HT7YDOK7.js → openai-POVKFBTC.js} +15 -15
  116. package/dist/bundle/{process-7RC6DAGM.js → process-A7ZJGQ6G.js} +1 -1
  117. package/dist/bundle/{program-3DLBMOEJ.js → program-Q3JFUVC6.js} +582 -337
  118. package/dist/bundle/{prompt-7EROPXPF.js → prompt-TYOYTRJM.js} +5 -5
  119. package/dist/bundle/{recognize-B232GXD2.js → recognize-GGFRONZT.js} +4 -4
  120. package/dist/bundle/{remote-HGV64VRC.js → remote-K4SLWHMI.js} +9 -9
  121. package/dist/bundle/{rerank-5S6TDXHD.js → rerank-2QTKDUBV.js} +7 -7
  122. package/dist/bundle/{schemas-SB42IXEX.js → schemas-EXBNVPMI.js} +1 -1
  123. package/dist/bundle/{serve-D2WFCV6Z.js → serve-FG2G2X6Y.js} +9 -9
  124. package/dist/bundle/{server-4AXPTJPV.js → server-KRDHBT5Q.js} +60 -60
  125. package/dist/bundle/server-VFKK6OS4.js +86 -0
  126. package/dist/bundle/source-XP2JNUVU.js +426 -0
  127. package/dist/bundle/{sqlite-runtime-DAFMZNLI.js → sqlite-runtime-TWV7KFLA.js} +6 -6
  128. package/dist/bundle/{state-7OEBDXVV.js → state-EFX5ZQED.js} +6 -6
  129. package/dist/bundle/store-LON2XRIS.js +34 -0
  130. package/dist/bundle/{store-2ZWSWF76.js → store-MNQ6YQIS.js} +28 -24
  131. package/dist/bundle/{store-KC6US326.js → store-QPVH5VPJ.js} +22 -22
  132. package/dist/bundle/store-maintenance-command-YEMPRNJX.js +73 -0
  133. package/dist/bundle/surface-UJRMT6QT.js +72 -0
  134. package/dist/bundle/writer-NOSHE7ZI.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/records.d.ts.map +1 -1
  154. package/dist/crm/records.js +3 -0
  155. package/dist/crm/records.js.map +1 -1
  156. package/dist/crm/writer.d.ts +1 -1
  157. package/dist/crm/writer.d.ts.map +1 -1
  158. package/dist/crm/writer.js +69 -1
  159. package/dist/crm/writer.js.map +1 -1
  160. package/dist/program.d.ts.map +1 -1
  161. package/dist/program.js +0 -2
  162. package/dist/program.js.map +1 -1
  163. package/dist/reasons.d.ts.map +1 -1
  164. package/dist/reasons.js +0 -2
  165. package/dist/reasons.js.map +1 -1
  166. package/dist/version.d.ts +1 -1
  167. package/dist/version.js +1 -1
  168. package/package.json +3 -3
  169. package/skills/hubspot-cli/SKILL.md +17 -5
  170. package/skills/hubspot-cli/references/api/api-basic.md +2 -2
  171. package/skills/hubspot-cli/references/api/api-batch.md +2 -2
  172. package/dist/bundle/agent-RBQMA24N.js +0 -40
  173. package/dist/bundle/command-contract-O2UKYHLD.js +0 -40
  174. package/dist/bundle/first-screen-TU3KE2B5.js +0 -40
  175. package/dist/bundle/meeting-combined-WBEOLQMP.js +0 -25
  176. package/dist/bundle/server-FFHVNABP.js +0 -86
  177. package/dist/bundle/source-DF63EC2B.js +0 -945
  178. package/dist/bundle/store-Q3ZKD4FJ.js +0 -34
  179. package/dist/bundle/store-maintenance-command-24A4GBRP.js +0 -73
  180. package/dist/bundle/surface-SPTM57EP.js +0 -72
  181. package/dist/bundle/writer-EQQ55HOS.js +0 -86
@@ -3,58 +3,58 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  PER_RUN,
5
5
  envelope
6
- } from "./chunk-NKIKMG33.js";
6
+ } from "./chunk-ZNRZJIRM.js";
7
7
  import {
8
8
  mcpUrlOf
9
- } from "./chunk-HBFSGL5E.js";
9
+ } from "./chunk-RE55EPBX.js";
10
10
  import {
11
11
  skillResources
12
- } from "./chunk-NEP67GLY.js";
12
+ } from "./chunk-GD5JTKLS.js";
13
13
  import {
14
14
  StdioServerTransport,
15
15
  answeredWire,
16
16
  serveStdio
17
- } from "./chunk-OCISQFMW.js";
18
- import "./chunk-MGMLSPIY.js";
19
- import "./chunk-KRTXJMCD.js";
20
- import "./chunk-MENMD5Y5.js";
17
+ } from "./chunk-NUPAXK4Z.js";
18
+ import "./chunk-YDTFPDAJ.js";
19
+ import "./chunk-GYH2AXPO.js";
20
+ import "./chunk-2V5KOOJV.js";
21
21
  import {
22
22
  runCommandForAgent,
23
23
  toolsFromCommands
24
- } from "./chunk-MPQ4SPZG.js";
25
- import "./chunk-ABPZOI3C.js";
26
- import "./chunk-PPQRWFJZ.js";
24
+ } from "./chunk-XZLOQNS7.js";
25
+ import "./chunk-SBORPDIQ.js";
26
+ import "./chunk-VJQLJQHT.js";
27
27
  import {
28
28
  appInstructions
29
- } from "./chunk-MKBQFD37.js";
29
+ } from "./chunk-5EJ3C3JG.js";
30
30
  import {
31
31
  answered,
32
32
  failed,
33
33
  registerCommands
34
- } from "./chunk-LWS5AO3H.js";
34
+ } from "./chunk-DWWZAQ4N.js";
35
35
  import {
36
36
  agentJson
37
- } from "./chunk-ODRF47VS.js";
38
- import "./chunk-MPNMEWHA.js";
39
- import "./chunk-A5UTNGI4.js";
40
- import "./chunk-VCYUYFIV.js";
41
- import "./chunk-WDR77HPO.js";
42
- import "./chunk-4RZ4DUQT.js";
43
- import "./chunk-QDNYJOWJ.js";
44
- import "./chunk-QPTHEZZ5.js";
45
- import "./chunk-EPBHJMF6.js";
37
+ } from "./chunk-LJ52BS6C.js";
38
+ import "./chunk-4F62XXF6.js";
39
+ import "./chunk-WWIYZN67.js";
40
+ import "./chunk-HX2BE7DO.js";
41
+ import "./chunk-YGZ37OEN.js";
42
+ import "./chunk-DIKUPU3T.js";
43
+ import "./chunk-3WG4MTQI.js";
44
+ import "./chunk-BQPAIGAF.js";
45
+ import "./chunk-QY7EOB66.js";
46
46
  import {
47
47
  McpServer
48
48
  } from "./chunk-PL5P7UKW.js";
49
- import "./chunk-23CLSKY7.js";
50
- import "./chunk-V5VMAHDQ.js";
51
- import "./chunk-7Q64D56R.js";
52
- import "./chunk-LXLXF2OE.js";
49
+ import "./chunk-XWYYFAML.js";
50
+ import "./chunk-JEUYZCWF.js";
51
+ import "./chunk-52NC5E42.js";
52
+ import "./chunk-B3JVNOTB.js";
53
53
  import {
54
54
  mcpHttpMarker
55
- } from "./chunk-SBNZYRVZ.js";
56
- import "./chunk-WXEN6AXQ.js";
57
- import "./chunk-STTHRJBX.js";
55
+ } from "./chunk-J5HHB27S.js";
56
+ import "./chunk-ZNNGK73C.js";
57
+ import "./chunk-XL3NAXZY.js";
58
58
  import {
59
59
  DEFAULT_OUTPUT_BYTES,
60
60
  changesAuthorityAt,
@@ -65,56 +65,56 @@ import {
65
65
  readOnlyLockOf,
66
66
  readsOverMcpAt,
67
67
  rootOf2 as rootOf
68
- } from "./chunk-7RIE3DAW.js";
69
- import "./chunk-RJBKDZGV.js";
70
- import "./chunk-OFOA6VJ2.js";
71
- import "./chunk-L6WSFVTD.js";
72
- import "./chunk-R7ZOCDNG.js";
73
- import "./chunk-K5S7MKBB.js";
74
- import "./chunk-YZ5MULJM.js";
75
- import "./chunk-QLFD3MOL.js";
76
- import "./chunk-BGUGTMTS.js";
77
- import "./chunk-CWCJEAHZ.js";
78
- import "./chunk-I334AT2H.js";
79
- import "./chunk-YJLJZMEA.js";
80
- import "./chunk-DDMBPYHP.js";
81
- import "./chunk-AHZQMSXW.js";
82
- import "./chunk-QIHJKE4K.js";
83
- import "./chunk-K3WCBNH4.js";
84
- import "./chunk-6PWRJGX4.js";
85
- import "./chunk-DEUCWBBH.js";
86
- import "./chunk-DJUUQG6Y.js";
87
- import "./chunk-VIJV474N.js";
88
- import "./chunk-BW7NPFVC.js";
89
- import "./chunk-POTS24SH.js";
90
- import "./chunk-NEDV6RCQ.js";
91
- import "./chunk-KXWRVLSU.js";
92
- import "./chunk-NLPGUYCG.js";
93
- import "./chunk-KC4ILAKO.js";
94
- import "./chunk-ZMHD76RE.js";
95
- import "./chunk-5ENY4POG.js";
96
- import "./chunk-HPSESLOZ.js";
97
- import "./chunk-RZS7N3OZ.js";
68
+ } from "./chunk-M3JDGRXM.js";
69
+ import "./chunk-LGGBKAVQ.js";
70
+ import "./chunk-4HZQ5UIY.js";
71
+ import "./chunk-QAQK2WXJ.js";
72
+ import "./chunk-INT5JXGP.js";
73
+ import "./chunk-ZH76HQDA.js";
74
+ import "./chunk-IRFFXKKK.js";
75
+ import "./chunk-2IRBXFIU.js";
76
+ import "./chunk-UMXA357W.js";
77
+ import "./chunk-5MFZYHPO.js";
78
+ import "./chunk-6EHX762H.js";
79
+ import "./chunk-YOVIH4QI.js";
80
+ import "./chunk-BRBBZDMZ.js";
81
+ import "./chunk-L3DUZVBP.js";
82
+ import "./chunk-4LHNA6LJ.js";
83
+ import "./chunk-GZD6BYO7.js";
84
+ import "./chunk-A7KGBXBT.js";
85
+ import "./chunk-2FLLS5IL.js";
86
+ import "./chunk-DIHVN5IC.js";
87
+ import "./chunk-745FMNI5.js";
88
+ import "./chunk-SZZVNPTI.js";
89
+ import "./chunk-BXXU4EXK.js";
90
+ import "./chunk-YVMLFHWS.js";
91
+ import "./chunk-I5WHQH5K.js";
92
+ import "./chunk-DBHJIFDS.js";
93
+ import "./chunk-GHBJBDTW.js";
94
+ import "./chunk-2PCVKD27.js";
95
+ import "./chunk-2HSYAKWO.js";
96
+ import "./chunk-TCSVW7BA.js";
97
+ import "./chunk-CEHBT7QX.js";
98
98
  import "./chunk-D72URWJE.js";
99
- import "./chunk-5UPNDUAA.js";
100
- import "./chunk-WEM4FZPM.js";
101
- import "./chunk-3CHJYWA2.js";
102
- import "./chunk-Z7FC6VVM.js";
103
- import "./chunk-AIQT2GGK.js";
99
+ import "./chunk-ZS6T2PYQ.js";
100
+ import "./chunk-DMYLQX2O.js";
101
+ import "./chunk-CBTWKTWN.js";
102
+ import "./chunk-WSTF2MWW.js";
103
+ import "./chunk-2K5BAY32.js";
104
104
  import {
105
105
  mcpErrorResult
106
- } from "./chunk-KAW5VEER.js";
106
+ } from "./chunk-H5HBZCEJ.js";
107
107
  import "./chunk-S4UUN6LD.js";
108
108
  import "./chunk-Y5E2WNWB.js";
109
109
  import {
110
110
  CliError
111
- } from "./chunk-PMGAU6AP.js";
112
- import "./chunk-QCHW7R7L.js";
111
+ } from "./chunk-AP3CWDRK.js";
112
+ import "./chunk-6WKK4UZP.js";
113
113
  import {
114
114
  __name
115
115
  } from "./chunk-ZVVMGPBJ.js";
116
116
 
117
- // 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/app-server.js
117
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
118
118
  var EXCLUDED = [["mcp"]];
119
119
  var aliasesOf = /* @__PURE__ */ __name((root, path) => {
120
120
  let at = root;
@@ -230,7 +230,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
230
230
  var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
231
231
  const { app } = options;
232
232
  const { build } = createAppServer(command, context, options);
233
- const { serveOverHttp } = await import("./serve-D2WFCV6Z.js");
233
+ const { serveOverHttp } = await import("./serve-FG2G2X6Y.js");
234
234
  const listening = await serveOverHttp(build, {
235
235
  ...http,
236
236
  appName: app.command,
@@ -18,12 +18,12 @@ import {
18
18
  jitCompatCheck,
19
19
  refineSqliteCodecs,
20
20
  sql
21
- } from "./chunk-QCHW7R7L.js";
21
+ } from "./chunk-6WKK4UZP.js";
22
22
  import {
23
23
  __name
24
24
  } from "./chunk-ZVVMGPBJ.js";
25
25
 
26
- // 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/sqlite/drizzle/bun.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
27
27
  import { Database } from "bun:sqlite";
28
28
  var bunSQLiteCodecs = refineSqliteCodecs({
29
29
  "integer:boolean": { normalize: booleanFromInteger },
@@ -3,22 +3,22 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  loadVectorExtension,
5
5
  vectorExtension
6
- } from "./chunk-ZLWQPUPB.js";
6
+ } from "./chunk-5AVU5SF6.js";
7
7
  import {
8
8
  refuseOwnerStoreInTests
9
- } from "./chunk-WEM4FZPM.js";
10
- import "./chunk-AIQT2GGK.js";
11
- import "./chunk-KAW5VEER.js";
9
+ } from "./chunk-DMYLQX2O.js";
10
+ import "./chunk-2K5BAY32.js";
11
+ import "./chunk-H5HBZCEJ.js";
12
12
  import "./chunk-S4UUN6LD.js";
13
13
  import {
14
14
  importFrom
15
15
  } from "./chunk-Y5E2WNWB.js";
16
- import "./chunk-PMGAU6AP.js";
16
+ import "./chunk-AP3CWDRK.js";
17
17
  import {
18
18
  __name
19
19
  } from "./chunk-ZVVMGPBJ.js";
20
20
 
21
- // 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/drivers/bun-sqlite.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
22
22
  var customised = false;
23
23
  var ownLibrary = /* @__PURE__ */ __name(async () => {
24
24
  try {
@@ -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-2HSYAKWO.js";
6
6
  import {
7
7
  readSharedSection,
8
8
  sharedConfigPath,
9
9
  writeSharedSection
10
- } from "./chunk-RZS7N3OZ.js";
10
+ } from "./chunk-CEHBT7QX.js";
11
11
  import {
12
12
  storePath
13
- } from "./chunk-WEM4FZPM.js";
13
+ } from "./chunk-DMYLQX2O.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.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/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,8 +58,23 @@ 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.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/errors/sftp-reasons.js
62
62
  var validation = /* @__PURE__ */ __name((reason, message) => [reason, "validation_error", message], "validation");
63
+ var SFTP = [
64
+ ["sftp.host-key-missing", "configuration_error", "no host key is pinned for the SFTP server"],
65
+ ["sftp.host-key-mismatch", "authentication_error", "the SFTP server's host key is not the pinned one"],
66
+ ["sftp.auth-missing", "configuration_error", "an SFTP connection needs a password or a private key"],
67
+ ["sftp.key-invalid", "configuration_error", "the SFTP private key or its passphrase cannot be read"],
68
+ ["sftp.library-missing", "configuration_error", "SFTP needs the ssh2 package in the CLI's dependencies"],
69
+ ["sftp.timeout", "timeout", "the SFTP server did not answer in time"],
70
+ validation("sftp.too-large", "the file is larger than the read's byte limit"),
71
+ validation("sftp.closed", "the SFTP connection was closed before the operation"),
72
+ validation("sftp.file-changed", "the file changed on the server while a stream read it; read it again"),
73
+ ["ssh.forward-refused", "permission_error", "the SSH server does not allow forwarding to that address"],
74
+ ["ssh.forward-failed", "network_error", "the SSH server could not reach the address behind it"]
75
+ ];
76
+
77
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/errors/reasons.js
63
78
  var QUERY = [
64
79
  ["query.aborted", "the search was stopped before it finished"],
65
80
  ["query.conflict", "two parts of the query contradict each other"],
@@ -105,6 +120,14 @@ var SIGN_IN = [
105
120
  validation("profile.missing", "no profile named, and none is picked for the owner; details.profiles lists the ones here"),
106
121
  ["profile.unknown", "not_found", "no profile by this name on this computer; details.profiles lists the ones here"],
107
122
  ["account-remove.busy", "conflict", "a serve or a sync runs for this profile; stop it first"],
123
+ ["account-remove.account-shared", "conflict", "another profile reads the same account, whose copy the store shares"],
124
+ ["session.duplicate", "conflict", "another profile here already signs in to this account as this user"],
125
+ [
126
+ "account-remove.account-unknown",
127
+ "conflict",
128
+ "which account another profile holds could not be read, so --delete-data waits"
129
+ ],
130
+ validation("profile.reserved", "the profile name is a folder every CRM account shares; pick another"),
108
131
  ["account-remove.unconfirmed", "confirmation_required", "removing an account asks first; add --yes"],
109
132
  ["account-remove.path-outside", "configuration_error", "the tool named a path outside its own folders"],
110
133
  [
@@ -112,7 +135,6 @@ var SIGN_IN = [
112
135
  "configuration_error",
113
136
  "the tool named a folder of its own outside the home folder"
114
137
  ],
115
- ["account-rename.unknown-profile", "not_found", "no profile by this name on this computer"],
116
138
  ["account-rename.taken", "conflict", "the new name, or a file or keyring entry under it, already exists"],
117
139
  ["account-rename.busy", "conflict", "a serve, a background service, a schedule or a sync uses this profile"],
118
140
  ["account-rename.bot", "conflict", "the profile is also a bot profile, which keeps its name"],
@@ -126,6 +148,15 @@ var PROVIDER_API = [
126
148
  validation("api.unknown-method", "the provider has no method by this name"),
127
149
  ["api.disabled", "configuration_error", "the provider's API is turned off for this OAuth project"],
128
150
  ["manifest.invalid", "configuration_error", "the source manifest does not match its shape or the generated API"],
151
+ ["source.no-id", "invalid_response", "a row of the provider's answer has no id where the source manifest says"],
152
+ ["source.no-account", "invalid_response", "the provider's answer does not name the signed-in account"],
153
+ validation("source.token-invalid", "the change token is not one this source gave"),
154
+ [
155
+ "source.changes-too-many",
156
+ "invalid_response",
157
+ "more changed since one sync than a round reads, and the provider does not list changes oldest first"
158
+ ],
159
+ ["source.deletions-unchecked", "permission_error", "the provider refused its deletions; sync --rescan finds them"],
129
160
  ["verify.no-id", "provider_error", "the answer to the sign-in check holds no account id where auth.verify says"],
130
161
  ["provider.usage-limit", "rate_limited", "the account's usage limit at the provider is reached; wait, do not retry"],
131
162
  ["access.denied", "permission_error", "the provider refused this account access to the item"],
@@ -133,20 +164,8 @@ var PROVIDER_API = [
133
164
  ["file.not-found", "not_found", "the file named, or its folder, does not exist"],
134
165
  validation("file.not-a-file", "the path names a folder or another thing that is not a file"),
135
166
  ["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")
137
- ];
138
- var SFTP = [
139
- ["sftp.host-key-missing", "configuration_error", "no host key is pinned for the SFTP server"],
140
- ["sftp.host-key-mismatch", "authentication_error", "the SFTP server's host key is not the pinned one"],
141
- ["sftp.auth-missing", "configuration_error", "an SFTP connection needs a password or a private key"],
142
- ["sftp.key-invalid", "configuration_error", "the SFTP private key or its passphrase cannot be read"],
143
- ["sftp.library-missing", "configuration_error", "SFTP needs the ssh2 package in the CLI's dependencies"],
144
- ["sftp.timeout", "timeout", "the SFTP server did not answer in time"],
145
- validation("sftp.too-large", "the file is larger than the read's byte limit"),
146
- validation("sftp.closed", "the SFTP connection was closed before the operation"),
147
- validation("sftp.file-changed", "the file changed on the server while a stream read it; read it again"),
148
- ["ssh.forward-refused", "permission_error", "the SSH server does not allow forwarding to that address"],
149
- ["ssh.forward-failed", "network_error", "the SSH server could not reach the address behind it"]
167
+ validation("file.too-large", "the file is larger than the limit set for this read"),
168
+ validation("file.not-plain-text", "the file's text is extracted on a read; writing it back would replace the file")
150
169
  ];
151
170
  var SQL = [
152
171
  validation("sql.bad-identifier", "a table or column name is not a plain identifier"),
@@ -159,7 +178,29 @@ var SQL = [
159
178
  ["db.timeout", "timeout", "the database server did not answer in time"],
160
179
  ["db.failed", "provider_error", "the database server failed the query"]
161
180
  ];
181
+ var OFFICE = [
182
+ ["office.wrong-format", "the file is not the Office format the command edits, or its parts cannot be read"],
183
+ ["office.invalid-cell", "a cell is not an address like B7"],
184
+ ["office.invalid-value", "a value cannot be written: an infinite number, a cell text too long, an unknown style"],
185
+ ["office.no-sheet", "the workbook has no such sheet, or several when none is named"],
186
+ ["office.duplicate-edit", "the same cell or paragraph is changed twice in one call"],
187
+ ["office.formula-cell", "the cell holds a formula; --replace writes the value over it"],
188
+ ["office.shared-formula", "the cell holds a formula other cells share; replacing it would break theirs"],
189
+ ["office.array-formula", "the cell is part of an array formula; change it in Excel"],
190
+ ["office.rich-value", "the cell holds a picture or a linked data type, which the editor does not replace"],
191
+ ["office.table-header", "the cell is a table's header or total, whose part repeats the text; change it in Excel"],
192
+ ["office.implicit-rows", "the sheet has rows without numbers, so a row cannot be added"],
193
+ ["office.implicit-cells", "the row has cells without addresses, so a cell cannot be added"],
194
+ ["office.no-paragraph", "the document has no paragraph at that index"],
195
+ ["office.unsafe-paragraph", "the paragraph cannot be edited safely; documents show gives the reason"],
196
+ ["office.tracked-change", "the paragraph holds a tracked change"],
197
+ ["office.section-break", "the paragraph ends a section; deleting it would merge two sections"],
198
+ ["office.bookmark", "the paragraph holds a bookmark a cross-reference may point at"],
199
+ ["office.last-paragraph", "the delete would leave the document or a table cell without a paragraph"],
200
+ ["office.invalid-sheet-name", "a new sheet's name is empty, too long, repeated or holds a character Excel refuses"]
201
+ ].map(([reason, message]) => validation(reason, message));
162
202
  var OTHERS = [
203
+ ["office.file-exists", "conflict", "a file is there already; create never replaces one, update changes it"],
163
204
  validation("doctor.report-exists", "the report's file exists; a problem report never overwrites a file"),
164
205
  validation("usage.unknown-command", "no command by this name; the CLI's help lists them"),
165
206
  validation("usage.unknown-option", "the command takes no option by this name; its help lists them"),
@@ -241,6 +282,11 @@ var OTHERS = [
241
282
  "nothing holds this agent to the CLI's commands, so no schedule starts it"
242
283
  ],
243
284
  ["read-only.output-outside", "permission_error", "a read-only process writes files only inside its working folder"],
285
+ [
286
+ "schedule.outside-folder",
287
+ "permission_error",
288
+ "schedule exec runs only a schedule file in the tool's own schedules folder"
289
+ ],
244
290
  [
245
291
  "agent.refused",
246
292
  "permission_error",
@@ -248,12 +294,21 @@ var OTHERS = [
248
294
  ],
249
295
  validation("agent.cost-unknown", "the agent reports no cost, so a cost cap cannot stop it"),
250
296
  validation("document.changed", "the document changed while it was read; nothing was saved"),
297
+ validation("document.needs-ocr", "the PDF has no text layer; a documents sync reads it with OCR (read_scans)"),
298
+ validation("document.scan-unread", "OCR could not read the scan or picture; a sync tries again once the file changes"),
299
+ validation("document.scan-later", "OCR stopped at its page limit or a busy model; the next sync goes on"),
251
300
  ["document.not-imported", "not_found", "the document is not imported in this source account"],
301
+ ["document.version-missing", "not_found", "the local copy holds no such version of the document"],
252
302
  ["document.not-found", "not_found", "no listed document has that reference"],
253
303
  ["state.unreadable", "configuration_error", "a sync state file cannot be read; move it away and sync again"],
254
304
  ["profile.busy", "provider_unavailable", "another sync or write holds this profile's local copy"],
255
305
  ["profile.account-taken", "conflict", "another profile here already uses this provider account"],
256
306
  ["profile.other-account", "conflict", "this profile's copy was synced from another provider account"],
307
+ [
308
+ "documents.other-account",
309
+ "configuration_error",
310
+ "the documents are signed in as another account than the tracker copy of the same provider"
311
+ ],
257
312
  ["profile.not-synced", "not_found", "the profile has no local copy yet; sync it first"],
258
313
  ["provider.failed", "provider_error", "a read from the provider failed"],
259
314
  ["identity.none", "not_found", "the provider shows no accounts on a document"],
@@ -280,6 +335,11 @@ var OTHERS = [
280
335
  "the email could not be read again, so its skipped attachments have no text"
281
336
  ],
282
337
  ["mirror.partial", "provider_error", "some mirrored files were not synced"],
338
+ [
339
+ "mirror.stopped",
340
+ "timeout",
341
+ "the mirror's run reached its deadline before it was done; run it again with more time"
342
+ ],
283
343
  ["mirror.none", "not_found", "the profile has no mirrors; add one with mirrors add"],
284
344
  ["mirror.not-found", "not_found", "no such mirror in this profile; see mirrors list"],
285
345
  validation("mirror.not-folder", "the path to mirror is not a folder"),
@@ -302,6 +362,9 @@ var OTHERS = [
302
362
  "the earlier content could not be kept in the version store, so the sync did not replace it"
303
363
  ],
304
364
  ["mirror.remote-changed", "conflict", "the remote file changed since the listing; the next sync settles it"],
365
+ ["mirror.local-changed", "conflict", "the local file changed since the conflict was found; nothing was written"],
366
+ ["mirror.no-conflict", "not_found", "the path has no recorded conflict; the last sync settled it or never saw one"],
367
+ ["upload.replace-interrupted", "conflict", "another file took the path during a replace; the new content is kept"],
305
368
  ["upload.mismatch", "conflict", "the uploaded file reads back with other content; the local file changed meanwhile"],
306
369
  ["download.mismatch", "invalid_response", "the downloaded file has other content than the listing said"],
307
370
  ["catalog.unavailable", "configuration_error", "the store has no shared catalog for this account"],
@@ -569,10 +632,16 @@ var OTHERS = [
569
632
  validation("field.not-filterable", "the CRM cannot filter a list by that custom field"),
570
633
  validation("query.bad-value", "a term's value is not the kind its field takes, such as an id or a number"),
571
634
  validation("crm.record-field", "a contact's or company's field is not valid"),
635
+ validation("crm.activity-field", "a comment's or task's field is not valid, or the kind does not take it"),
572
636
  validation("crm.owner-unknown", "owner: names no CRM user: me without a known sign-in user, or not a user id"),
573
637
  validation("crm.write-unsupported", "the CRM does not take this write, or does not recognise a repeated one"),
574
638
  validation("crm.unlisted-held", "a list of every id would mark most of a kind deleted; nothing was, until --rescan"),
575
639
  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"),
640
+ validation("tracker.write-unsupported", "the tracker does not take this write, or does not recognise a repeated one"),
641
+ validation("tracker.field", "a field of an issue or a comment the tracker's write does not take as given"),
642
+ validation("tracker.reference", "a team, state, label, project or user no single row of the copy has by that name"),
643
+ validation("tracker.team-required", "a new issue needs its team: name one, or sync a copy that holds one"),
644
+ ["tracker.no-record", "invalid_response", "the tracker answered a write with no record and no error; sync and look"],
576
645
  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
646
  validation("content.conflict", "the post changed at the source since the last sync; sync, then write again"),
578
647
  validation("content.lossy-body", "the post's text holds blocks or embeds Markdown does not keep; --replace-body"),
@@ -628,8 +697,9 @@ var OTHERS = [
628
697
  ["person.no-owner", "not_found", "no person is marked as the owner in the store"],
629
698
  ["person.unknown", "not_found", "the store has no person by that reference; people list gives person:<uid>"],
630
699
  ["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"),
700
+ validation("person.owner", "the owner's own person is not test data, and is never deleted"),
632
701
  validation("person.no-identity", "a person with no identity is not test data; there is nothing to hide"),
702
+ validation("person.erase-blocked", "an invoice, order, subscription or a row the person wrote still names them; change those first, nothing was deleted"),
633
703
  validation("person.from-required", "say whom the identity leaves: --from person:<uid>, or person:me for the owner"),
634
704
  [
635
705
  "identity.separated",
@@ -669,6 +739,8 @@ var OTHERS = [
669
739
  validation("identity.agent-unnamed", "an agent's link names the agent, and never as the owner"),
670
740
  validation("identity.not-shared", "only a match on a shared mailbox can say the mailbox is a company's"),
671
741
  ["organization.not-found", "not_found", "no stored organization has that id"],
742
+ validation("organization.own", "the organization is one of your own companies and is never deleted"),
743
+ validation("organization.erase-blocked", "an invoice, order, subscription or a row the organization wrote still names it; change those first, nothing was deleted"),
672
744
  validation("organization.unnamed", "a free mailbox names no company; name the organization or the company"),
673
745
  validation("organization.ambiguous", "more than one organization matches; name the one meant as a reference"),
674
746
  validation("identity.shared-phone", "more than six people share the phone number, so it proposes no one"),
@@ -793,7 +865,7 @@ var DETAILED = {
793
865
  var REASONS = defineReasons([
794
866
  ...QUERY_REASONS,
795
867
  ...INPUT_FIELD_REASONS,
796
- ...[...QUERY, ...SIGN_IN, ...PROVIDER_API, ...SFTP, ...SQL, ...OTHERS].map(([reason, code, message]) => ({
868
+ ...[...QUERY, ...SIGN_IN, ...PROVIDER_API, ...SFTP, ...SQL, ...OFFICE, ...OTHERS].map(([reason, code, message]) => ({
797
869
  reason,
798
870
  code,
799
871
  message,
@@ -801,6 +873,7 @@ var REASONS = defineReasons([
801
873
  }))
802
874
  ]);
803
875
  var DETAILS = [
876
+ "account",
804
877
  "holders",
805
878
  "profile",
806
879
  "contracts",