@wirecat/hubspot-cli 0.6.0 → 0.8.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 (164) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/contracts/wirecat.json +2 -1
  3. package/dist/bin/hubspot.js +2 -2
  4. package/dist/bundle/agent-NMSIVLX7.js +41 -0
  5. package/dist/bundle/{all-profiles-HFVXPMF6.js → all-profiles-EMBBR5CW.js} +11 -11
  6. package/dist/bundle/{anthropic-VE6WR6IN.js → anthropic-AS2MTXO3.js} +5 -5
  7. package/dist/bundle/{app-server-GZ4DCQK7.js → app-server-WZWKHDLK.js} +70 -68
  8. package/dist/bundle/{bun-2DHMKD34.js → bun-OPDGMZZQ.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-T5XTYL7L.js → bun-sqlite-NBAY7FR2.js} +6 -6
  10. package/dist/bundle/{chunk-AKSWXRIU.js → chunk-2JHVQMVC.js} +1 -1
  11. package/dist/bundle/{chunk-UCGZRZJA.js → chunk-2XBDILVW.js} +1 -1
  12. package/dist/bundle/{chunk-3YTTWJKL.js → chunk-3HC5F3P7.js} +1 -1
  13. package/dist/bundle/{chunk-J4FXBF44.js → chunk-3YM4B2GT.js} +1 -1
  14. package/dist/bundle/{chunk-J76CMNWQ.js → chunk-4N7PP76S.js} +1 -1
  15. package/dist/bundle/{chunk-X2QRCFGJ.js → chunk-4NLZXDXP.js} +4 -4
  16. package/dist/bundle/{chunk-2K5BAY32.js → chunk-5JKTVAXX.js} +19 -19
  17. package/dist/bundle/{chunk-PR7ZDMGF.js → chunk-5XYI75HH.js} +3 -3
  18. package/dist/bundle/{chunk-EB53G4HO.js → chunk-6TD3DCWC.js} +2 -2
  19. package/dist/bundle/{chunk-K4Y2ZWOO.js → chunk-7SV76BVS.js} +3 -3
  20. package/dist/bundle/{chunk-PDVMYIBP.js → chunk-7T5BFWZI.js} +14450 -12008
  21. package/dist/bundle/{chunk-5WDNG4QE.js → chunk-7Z53MLQP.js} +7 -7
  22. package/dist/bundle/{chunk-RLK2EGQD.js → chunk-AINKLKDN.js} +29 -16
  23. package/dist/bundle/{chunk-E27NRLJZ.js → chunk-BGWQIFAS.js} +38 -24
  24. package/dist/bundle/{chunk-MSQGZHKM.js → chunk-CVAHCGE6.js} +27 -26
  25. package/dist/bundle/{chunk-6DABKZYH.js → chunk-D7NSIQBI.js} +125 -64
  26. package/dist/bundle/{chunk-THGAVPRA.js → chunk-D7OZWLJU.js} +11 -11
  27. package/dist/bundle/{chunk-TCSVW7BA.js → chunk-DNCLQPOM.js} +1 -1
  28. package/dist/bundle/{chunk-WASBOYI2.js → chunk-DPV53EZC.js} +4 -4
  29. package/dist/bundle/{chunk-QK5HQUHB.js → chunk-EVUMQKV7.js} +3 -3
  30. package/dist/bundle/{chunk-5O5WYSSO.js → chunk-FRF32QVB.js} +711 -633
  31. package/dist/bundle/{chunk-H4W2OO35.js → chunk-GGMAIIVE.js} +1 -1
  32. package/dist/bundle/{chunk-I75ON7VM.js → chunk-GIMHJ7HA.js} +8 -8
  33. package/dist/bundle/{chunk-5NIIXJV3.js → chunk-GXDD4QWH.js} +2 -2
  34. package/dist/bundle/{chunk-ZERQSELP.js → chunk-H6AH45GE.js} +198 -164
  35. package/dist/bundle/{chunk-DIKUPU3T.js → chunk-HZ3C4WXD.js} +3 -3
  36. package/dist/bundle/{chunk-TXO4CJW3.js → chunk-IA77VHME.js} +13 -9
  37. package/dist/bundle/{chunk-LTU4BQ4S.js → chunk-IA7LLLEI.js} +3 -3
  38. package/dist/bundle/{chunk-3HS7JTPI.js → chunk-IGNMDKP7.js} +14 -14
  39. package/dist/bundle/{chunk-G6LDK6DJ.js → chunk-IPKCM55K.js} +7 -7
  40. package/dist/bundle/{chunk-2I2KBCS6.js → chunk-JBZYHRUN.js} +5 -5
  41. package/dist/bundle/{chunk-M3LRSN6J.js → chunk-JG6LCSEX.js} +13 -13
  42. package/dist/bundle/{chunk-HZIGGAC7.js → chunk-JLXXUEAM.js} +2 -2
  43. package/dist/bundle/{chunk-T4MZJMEJ.js → chunk-JPONKBEQ.js} +23 -23
  44. package/dist/bundle/{chunk-5ILCAAY4.js → chunk-K5QWV6IX.js} +35 -35
  45. package/dist/bundle/{chunk-LHY5XGIR.js → chunk-KNL7CKF6.js} +179 -108
  46. package/dist/bundle/{chunk-JFLKTYH5.js → chunk-KVTNYRDO.js} +6 -6
  47. package/dist/bundle/chunk-KXJ3JEDH.js +2 -0
  48. package/dist/bundle/{chunk-CU76ZACK.js → chunk-L45WN3AR.js} +3 -3
  49. package/dist/bundle/{chunk-2VUIJ5XB.js → chunk-L72WUJAS.js} +2 -2
  50. package/dist/bundle/{chunk-GWXTVO43.js → chunk-LCUWAH4L.js} +7 -7
  51. package/dist/bundle/{chunk-4UEYVM46.js → chunk-LKH3UKLO.js} +4 -4
  52. package/dist/bundle/{chunk-CTN4DW2F.js → chunk-LM3W7YOM.js} +4 -4
  53. package/dist/bundle/{chunk-3TLNO3VM.js → chunk-LZPKBN3C.js} +2 -2
  54. package/dist/bundle/{chunk-EJZIEBAR.js → chunk-LZPSIYRC.js} +8 -8
  55. package/dist/bundle/{chunk-KDW7B7AR.js → chunk-MYXUJCJD.js} +5 -5
  56. package/dist/bundle/{chunk-PZ3QJDTD.js → chunk-NA2B6PYR.js} +5 -5
  57. package/dist/bundle/{chunk-TT75CEYZ.js → chunk-NB7EOAUZ.js} +1 -1
  58. package/dist/bundle/{chunk-XRFYVVFU.js → chunk-NISH4UXM.js} +2 -2
  59. package/dist/bundle/{chunk-VR2CJFVL.js → chunk-NQVMPJAQ.js} +8 -8
  60. package/dist/bundle/{chunk-J2SCELII.js → chunk-NVR6M4TF.js} +16 -16
  61. package/dist/bundle/{chunk-GR4HZBWO.js → chunk-O4AUYEGC.js} +2 -2
  62. package/dist/bundle/{chunk-TRLV5NWZ.js → chunk-OGVSGXPI.js} +640 -506
  63. package/dist/bundle/{chunk-3W5R3XAH.js → chunk-OUYXUGUX.js} +8 -8
  64. package/dist/bundle/chunk-P657KN5N.js +122 -0
  65. package/dist/bundle/{chunk-GHXTNKX2.js → chunk-P7G5HFY3.js} +2 -2
  66. package/dist/bundle/{chunk-BU5CEMUH.js → chunk-PFYPJUWX.js} +19 -15
  67. package/dist/bundle/{chunk-Q6AC7WLD.js → chunk-PLPBEWD4.js} +3 -3
  68. package/dist/bundle/{chunk-HYDXA624.js → chunk-PMQ7GP6X.js} +6 -6
  69. package/dist/bundle/{chunk-JDCFHZNU.js → chunk-Q32ZDGS2.js} +8 -8
  70. package/dist/bundle/{chunk-TAPQZYXY.js → chunk-Q7ICVP25.js} +1 -1
  71. package/dist/bundle/{chunk-WE4JSHIG.js → chunk-QLYSNL47.js} +6 -6
  72. package/dist/bundle/{chunk-H5HBZCEJ.js → chunk-QPPOIWPY.js} +8 -8
  73. package/dist/bundle/{chunk-GEJI27GN.js → chunk-R2C5WDQV.js} +6 -6
  74. package/dist/bundle/{chunk-UVGJL753.js → chunk-RQORQN2V.js} +61 -61
  75. package/dist/bundle/{chunk-YIH2A2PQ.js → chunk-RRTMPSQR.js} +2 -2
  76. package/dist/bundle/{chunk-AP3CWDRK.js → chunk-S6JG4YUH.js} +2 -2
  77. package/dist/bundle/{chunk-MJ24YFXZ.js → chunk-TTF5DP4V.js} +7 -7
  78. package/dist/bundle/{chunk-745FMNI5.js → chunk-TXDR6YSF.js} +1 -1
  79. package/dist/bundle/{chunk-3WG4MTQI.js → chunk-TY7NDMFY.js} +1 -1
  80. package/dist/bundle/{chunk-ID4GJFE7.js → chunk-U5CFLBNX.js} +8 -8
  81. package/dist/bundle/{chunk-ZKTYTOF4.js → chunk-UDSL3MUU.js} +8 -8
  82. package/dist/bundle/{chunk-RLNPTES2.js → chunk-V57E7PJQ.js} +4 -4
  83. package/dist/bundle/{chunk-67YPTVGP.js → chunk-V7IF2K3P.js} +3 -3
  84. package/dist/bundle/{chunk-NQOQG7L3.js → chunk-VB7FZOYX.js} +1 -1
  85. package/dist/bundle/{chunk-KKMOKSS5.js → chunk-VNMEE4ZZ.js} +3 -3
  86. package/dist/bundle/{chunk-UZ2CL435.js → chunk-VZ5PPYDG.js} +1 -1
  87. package/dist/bundle/chunk-WOPVBRPV.js +29 -0
  88. package/dist/bundle/{chunk-R26OEZOL.js → chunk-XEQQJBBO.js} +1 -1
  89. package/dist/bundle/chunk-XIKSGUMQ.js +1293 -0
  90. package/dist/bundle/{chunk-YDG5FIQB.js → chunk-XK5BAPHF.js} +7 -7
  91. package/dist/bundle/{chunk-QH47G73D.js → chunk-XQGN2D44.js} +3 -3
  92. package/dist/bundle/{chunk-5VTKBGPW.js → chunk-YKSH7BY2.js} +121 -36
  93. package/dist/bundle/{chunk-BM5F2ZNI.js → chunk-YWDFYQOU.js} +2 -2
  94. package/dist/bundle/{chunk-5IPB5WLB.js → chunk-ZJEENQRH.js} +12 -12
  95. package/dist/bundle/{chunk-24HPBWKZ.js → chunk-ZZOCAZSZ.js} +3 -3
  96. package/dist/bundle/command-contract-BGTXROZA.js +40 -0
  97. package/dist/bundle/{command-server-entry-H6IAJNOF.js → command-server-entry-PDLRF2RV.js} +28 -28
  98. package/dist/bundle/{decode-TR2EC46M.js → decode-26M7XE2B.js} +5 -5
  99. package/dist/bundle/{dispatch-B2EP6DDT.js → dispatch-2FTOHA5D.js} +8 -8
  100. package/dist/bundle/{echarts-7OP7I5B2.js → echarts-O3TNDAXJ.js} +2 -2
  101. package/dist/bundle/{embed-FLGS4LN7.js → embed-XJLEAWXE.js} +6 -6
  102. package/dist/bundle/{embedder-JIXQXCP3.js → embedder-OEL6PXEH.js} +9 -9
  103. package/dist/bundle/{failure-AOACEURF.js → failure-OHIXWTR6.js} +2 -2
  104. package/dist/bundle/{first-run-XJ2NWIK2.js → first-run-J2T4IKK4.js} +12 -12
  105. package/dist/bundle/first-screen-Q5KYFT3R.js +41 -0
  106. package/dist/bundle/hubspot.js +27 -27
  107. package/dist/bundle/{instructions-PYCYV6QE.js → instructions-AMH5RWVJ.js} +1 -1
  108. package/dist/bundle/{mcp-ZNULRPZ4.js → mcp-5HFPWC3W.js} +2 -2
  109. package/dist/bundle/meeting-combined-5H6VGK6O.js +25 -0
  110. package/dist/bundle/{meeting-model-2PA5WJY5.js → meeting-model-USLGH5SE.js} +11 -11
  111. package/dist/bundle/{meeting-semantic-5IH63QFV.js → meeting-semantic-Q6XYFYUD.js} +6 -6
  112. package/dist/bundle/{node-6GTNIVBM.js → node-EGMCBAO7.js} +2 -2
  113. package/dist/bundle/{node-sqlite-FBCEHPNT.js → node-sqlite-2SWWGW6H.js} +7 -7
  114. package/dist/bundle/{oauth-BFP4SCL5.js → oauth-V5LGTXF2.js} +7 -7
  115. package/dist/bundle/{open-MLU4MHGO.js → open-25EKOTZA.js} +5 -5
  116. package/dist/bundle/{openai-R7WJI6SO.js → openai-CH37GSZS.js} +15 -15
  117. package/dist/bundle/{process-NMNQLJHZ.js → process-SGHEN6MQ.js} +1 -1
  118. package/dist/bundle/{program-Z735HPFG.js → program-G4OZFVUI.js} +212 -117
  119. package/dist/bundle/{prompt-A6RM55Q4.js → prompt-2VSPX5S7.js} +5 -5
  120. package/dist/bundle/public-WB7IWBMR.js +196 -0
  121. package/dist/bundle/{recognize-ORRDV45M.js → recognize-NA5XUFKK.js} +4 -4
  122. package/dist/bundle/{remote-UF3WSC4X.js → remote-NRJOX6XW.js} +9 -9
  123. package/dist/bundle/{rerank-ZSJORUGH.js → rerank-NG3XMFCV.js} +7 -7
  124. package/dist/bundle/{schemas-EXBNVPMI.js → schemas-SKF4MZBJ.js} +1 -1
  125. package/dist/bundle/{serve-4KBJ6SIA.js → serve-MR67OBED.js} +9 -9
  126. package/dist/bundle/server-LFNGSVUQ.js +88 -0
  127. package/dist/bundle/{server-IFK4S6LJ.js → server-NZPHVRS6.js} +62 -60
  128. package/dist/bundle/{source-PBCQAG4C.js → source-P2KVDTJ5.js} +75 -73
  129. package/dist/bundle/{sqlite-runtime-XPDUWOPG.js → sqlite-runtime-V5U6F5EB.js} +6 -6
  130. package/dist/bundle/{state-4M26H7NL.js → state-L4MWAATO.js} +6 -6
  131. package/dist/bundle/store-ARASPKTV.js +34 -0
  132. package/dist/bundle/{store-ICTY3RIF.js → store-JFIZLDKO.js} +22 -22
  133. package/dist/bundle/{store-3W4ZOOIB.js → store-SUHY3G2X.js} +27 -24
  134. package/dist/bundle/store-maintenance-command-L2FXCEGU.js +75 -0
  135. package/dist/bundle/surface-NQK7CQ33.js +74 -0
  136. package/dist/bundle/writer-TYTMOXXA.js +88 -0
  137. package/dist/config.d.ts +5 -38
  138. package/dist/config.d.ts.map +1 -1
  139. package/dist/config.js.map +1 -1
  140. package/dist/crm/records.d.ts.map +1 -1
  141. package/dist/crm/records.js +3 -0
  142. package/dist/crm/records.js.map +1 -1
  143. package/dist/crm/source.js +1 -1
  144. package/dist/crm/source.js.map +1 -1
  145. package/dist/generated/definitions.d.ts +1 -1
  146. package/dist/generated/definitions.d.ts.map +1 -1
  147. package/dist/generated/manifest.d.ts +1 -1
  148. package/dist/generated/manifest.d.ts.map +1 -1
  149. package/dist/generated/manifest.js.map +1 -1
  150. package/dist/version.d.ts +1 -1
  151. package/dist/version.js +1 -1
  152. package/package.json +3 -3
  153. package/skills/hubspot-cli/SKILL.md +10 -3
  154. package/dist/bundle/agent-XB35QVOK.js +0 -40
  155. package/dist/bundle/chunk-HX2BE7DO.js +0 -40
  156. package/dist/bundle/chunk-V7N2K5OT.js +0 -1269
  157. package/dist/bundle/command-contract-5FXCYQUS.js +0 -40
  158. package/dist/bundle/first-screen-U73G5CMM.js +0 -40
  159. package/dist/bundle/meeting-combined-IHTM5H5B.js +0 -25
  160. package/dist/bundle/server-MNUAZWTN.js +0 -86
  161. package/dist/bundle/store-CDY2PW6J.js +0 -34
  162. package/dist/bundle/store-maintenance-command-Y7TC3I43.js +0 -73
  163. package/dist/bundle/surface-4LNDJZD2.js +0 -72
  164. package/dist/bundle/writer-WGHWQTC2.js +0 -86
@@ -3,14 +3,14 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  executableEnvironment,
5
5
  executableOnPath
6
- } from "./chunk-3WG4MTQI.js";
6
+ } from "./chunk-TY7NDMFY.js";
7
7
  import {
8
8
  require_cross_spawn
9
9
  } from "./chunk-D72URWJE.js";
10
10
  import {
11
11
  loadConfigFile,
12
12
  saveConfigFile
13
- } from "./chunk-2K5BAY32.js";
13
+ } from "./chunk-5JKTVAXX.js";
14
14
  import {
15
15
  number,
16
16
  object,
@@ -22,7 +22,7 @@ import {
22
22
  __toESM
23
23
  } from "./chunk-ZVVMGPBJ.js";
24
24
 
25
- // 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/update/index.js
25
+ // node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/update/index.js
26
26
  var import_cross_spawn = __toESM(require_cross_spawn(), 1);
27
27
  import { existsSync } from "node:fs";
28
28
  var updateCommand = /* @__PURE__ */ __name((installer, packageName) => {
@@ -2,11 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  WIRECAT_TOOLS
5
- } from "./chunk-TT75CEYZ.js";
5
+ } from "./chunk-NB7EOAUZ.js";
6
+ import {
7
+ hasOwnAction,
8
+ isHidden
9
+ } from "./chunk-WOPVBRPV.js";
6
10
  import {
7
11
  commandPathOf,
8
12
  outputOf
9
- } from "./chunk-2I2KBCS6.js";
13
+ } from "./chunk-JBZYHRUN.js";
10
14
  import {
11
15
  Command,
12
16
  Help,
@@ -17,21 +21,21 @@ import {
17
21
  environmentOf,
18
22
  metaOf,
19
23
  takesProfile
20
- } from "./chunk-ZERQSELP.js";
24
+ } from "./chunk-H6AH45GE.js";
21
25
  import {
22
26
  wrapAnsi
23
27
  } from "./chunk-EH6ZEJGT.js";
24
28
  import {
25
29
  writes
26
- } from "./chunk-H5HBZCEJ.js";
30
+ } from "./chunk-QPPOIWPY.js";
27
31
  import {
28
32
  CliError
29
- } from "./chunk-AP3CWDRK.js";
33
+ } from "./chunk-S6JG4YUH.js";
30
34
  import {
31
35
  __name
32
36
  } from "./chunk-ZVVMGPBJ.js";
33
37
 
34
- // 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/help/command-help.js
38
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
35
39
  var ARGUMENT_KINDS = {
36
40
  chat: "chat",
37
41
  chats: "chat",
@@ -105,8 +109,8 @@ var SAMPLES = {
105
109
  var MAX_NEXT = 3;
106
110
  var choices = /* @__PURE__ */ new WeakMap();
107
111
  var kindOfArgument = /* @__PURE__ */ __name((argument) => ARGUMENT_KINDS[argument.name()], "kindOfArgument");
108
- var runs = /* @__PURE__ */ __name((command) => command.commands.length === 0 || Boolean(command._actionHandler), "runs");
109
- var leaves = /* @__PURE__ */ __name((command) => command.commands.filter((child) => !child._hidden).flatMap((child) => [...runs(child) ? [child] : [], ...leaves(child)]), "leaves");
112
+ var runs = /* @__PURE__ */ __name((command) => command.commands.length === 0 || hasOwnAction(command), "runs");
113
+ var leaves = /* @__PURE__ */ __name((command) => command.commands.filter((child) => !isHidden(child)).flatMap((child) => [...runs(child) ? [child] : [], ...leaves(child)]), "leaves");
110
114
  var rootOf = /* @__PURE__ */ __name((command) => {
111
115
  let at = command;
112
116
  while (at.parent)
@@ -224,7 +228,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
224
228
  command.addHelpText("after", () => commandHelpText(command));
225
229
  }, "installCommandHelp");
226
230
 
227
- // 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/help/first-screen.js
231
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
228
232
  var WIDTH = 100;
229
233
  var widest = /* @__PURE__ */ __name((texts) => texts.reduce((most, text) => Math.max(most, text.length), 0), "widest");
230
234
  var block = /* @__PURE__ */ __name((title, rows, column) => rows.length === 0 ? [] : ["", `${title}:`, ...rows.map(([left, right]) => ` ${left.padEnd(column)}${right}`)], "block");
@@ -4,15 +4,15 @@ import {
4
4
  MAX_SECRET_INPUT,
5
5
  bufferedInput,
6
6
  inputPolicy
7
- } from "./chunk-BM5F2ZNI.js";
7
+ } from "./chunk-YWDFYQOU.js";
8
8
  import {
9
9
  CliError
10
- } from "./chunk-AP3CWDRK.js";
10
+ } from "./chunk-S6JG4YUH.js";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // 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/terminal/prompt.js
15
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
16
16
  import { createInterface } from "node:readline";
17
17
  import { Writable } from "node:stream";
18
18
  var EMPTY_TRIES = 3;
@@ -19,14 +19,14 @@ import {
19
19
  servicesFor,
20
20
  terminalAsker,
21
21
  waitForTurn
22
- } from "./chunk-5O5WYSSO.js";
22
+ } from "./chunk-FRF32QVB.js";
23
23
  import {
24
24
  capability,
25
25
  throughWrapper
26
- } from "./chunk-BU5CEMUH.js";
26
+ } from "./chunk-PFYPJUWX.js";
27
27
  import {
28
28
  servingProfiles
29
- } from "./chunk-QH47G73D.js";
29
+ } from "./chunk-XQGN2D44.js";
30
30
  import {
31
31
  asFirstWord,
32
32
  baseContext,
@@ -37,37 +37,37 @@ import {
37
37
  recalledAccount,
38
38
  rememberAccount,
39
39
  rootOf2 as rootOf
40
- } from "./chunk-ZERQSELP.js";
40
+ } from "./chunk-H6AH45GE.js";
41
41
  import {
42
42
  providerErrorKey
43
- } from "./chunk-I75ON7VM.js";
43
+ } from "./chunk-GIMHJ7HA.js";
44
44
  import {
45
45
  openStore
46
- } from "./chunk-PDVMYIBP.js";
46
+ } from "./chunk-7T5BFWZI.js";
47
47
  import {
48
48
  isCliFailure
49
- } from "./chunk-HZIGGAC7.js";
49
+ } from "./chunk-JLXXUEAM.js";
50
50
  import {
51
51
  CEILING_KEY,
52
52
  fetchesUnder,
53
53
  levelFor,
54
54
  readKeysForCommand
55
- } from "./chunk-G6LDK6DJ.js";
55
+ } from "./chunk-IPKCM55K.js";
56
56
  import {
57
57
  chatReferenceOf,
58
58
  ensureAccount,
59
59
  foldName,
60
60
  isId,
61
61
  pickPerson
62
- } from "./chunk-E27NRLJZ.js";
62
+ } from "./chunk-BGWQIFAS.js";
63
63
  import {
64
64
  CliError
65
- } from "./chunk-AP3CWDRK.js";
65
+ } from "./chunk-S6JG4YUH.js";
66
66
  import {
67
67
  __name
68
68
  } from "./chunk-ZVVMGPBJ.js";
69
69
 
70
- // 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/messenger/flooded.js
70
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
71
71
  var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
72
72
  var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
73
73
  var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
@@ -164,7 +164,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
164
164
  });
165
165
  }, "flooded");
166
166
 
167
- // 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/messenger/observed.js
167
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
168
168
  var observed = /* @__PURE__ */ __name((messenger, events) => {
169
169
  const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
170
170
  const write = currentOperation();
@@ -263,7 +263,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
263
263
  counts[part] = (counts[part] ?? 0) + items.length;
264
264
  }, "byPart");
265
265
 
266
- // 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/messenger/stored.js
266
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
267
267
  var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
268
268
  var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
269
269
  let warned = false;
@@ -839,7 +839,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
839
839
  }
840
840
  }, "keep");
841
841
 
842
- // 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/messenger/context.js
842
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
843
843
  var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
844
844
  let opened;
845
845
  return {
@@ -5,19 +5,19 @@ import {
5
5
  fieldsOf,
6
6
  processStreams,
7
7
  projectFields
8
- } from "./chunk-2K5BAY32.js";
8
+ } from "./chunk-5JKTVAXX.js";
9
9
  import {
10
10
  COMPACT_FLAG
11
- } from "./chunk-H5HBZCEJ.js";
11
+ } from "./chunk-QPPOIWPY.js";
12
12
  import {
13
13
  CliError,
14
14
  singleLine
15
- } from "./chunk-AP3CWDRK.js";
15
+ } from "./chunk-S6JG4YUH.js";
16
16
  import {
17
17
  __name
18
18
  } from "./chunk-ZVVMGPBJ.js";
19
19
 
20
- // 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/sends/permissions.js
20
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/sends/permissions.js
21
21
  var LEVELS = ["deny", "readonly", "ask", "allow"];
22
22
  var DANGEROUS = /* @__PURE__ */ new Set([
23
23
  "messages.delete",
@@ -453,7 +453,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
453
453
  }
454
454
  }, "assertRetentionEvidenceRead");
455
455
 
456
- // 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/result-fields.js
456
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
457
457
  var named = /* @__PURE__ */ __name((work) => {
458
458
  try {
459
459
  return work();
@@ -480,7 +480,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
480
480
  return projectFields(value, fields);
481
481
  }), "projectFields");
482
482
 
483
- // 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/output-detail.js
483
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/output-detail.js
484
484
  var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
485
485
  var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
486
486
  var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
@@ -516,7 +516,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
516
516
  return value;
517
517
  }, "atDetail");
518
518
 
519
- // 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/output.js
519
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/output.js
520
520
  var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
521
521
  const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
522
522
  if (other)
@@ -6,21 +6,21 @@ import {
6
6
  answerSchema,
7
7
  describeOptions,
8
8
  metaOf
9
- } from "./chunk-ZERQSELP.js";
9
+ } from "./chunk-H6AH45GE.js";
10
10
  import {
11
11
  keyForCommand
12
- } from "./chunk-G6LDK6DJ.js";
12
+ } from "./chunk-IPKCM55K.js";
13
13
  import {
14
14
  jsonSchemaOf
15
- } from "./chunk-H5HBZCEJ.js";
15
+ } from "./chunk-QPPOIWPY.js";
16
16
  import {
17
17
  CliError
18
- } from "./chunk-AP3CWDRK.js";
18
+ } from "./chunk-S6JG4YUH.js";
19
19
  import {
20
20
  __name
21
21
  } from "./chunk-ZVVMGPBJ.js";
22
22
 
23
- // 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/command-contract.js
23
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
24
24
  var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
25
25
  var outputOf = /* @__PURE__ */ __name((command) => {
26
26
  const entity = answerEntitySchema(command);
@@ -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-AP3CWDRK.js";
5
+ } from "./chunk-S6JG4YUH.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
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/files/ordinary-file.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
11
11
  import { constants } from "node:fs";
12
12
  import { lstat, open } from "node:fs/promises";
13
13
  var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
@@ -73,7 +73,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
73
73
  }
74
74
  }, "syncDirectory");
75
75
 
76
- // 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/files/atomic-write.js
76
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
77
77
  import { randomUUID } from "node:crypto";
78
78
  import { constants as constants2 } from "node:fs";
79
79
  import { link, open as open2, realpath, rename, unlink } from "node:fs/promises";
@@ -111,7 +111,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
111
111
  }
112
112
  }, "writeFileAtomic");
113
113
 
114
- // 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/files/bounded-utf8.js
114
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
115
115
  var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
116
116
  if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
117
117
  throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
@@ -140,21 +140,21 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
140
140
  }
141
141
  }, "readBoundedUtf8File");
142
142
 
143
- // 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/files/lock.js
143
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/lock.js
144
144
  import { mkdir as mkdir2 } from "node:fs/promises";
145
145
  import { basename as basename2, dirname as dirname2 } from "node:path";
146
146
 
147
- // 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/files/native-writer-lease.js
147
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
148
148
  import { randomUUID as randomUUID2 } from "node:crypto";
149
149
  import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
150
150
  import { hostname as hostname2 } from "node:os";
151
151
  import { join as join3 } from "node:path";
152
152
 
153
- // 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/files/native-lease-inspection.js
153
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
154
154
  import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
155
155
  import { join as join2 } from "node:path";
156
156
 
157
- // 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/files/native-lease-owner.js
157
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
158
158
  import { hostname } from "node:os";
159
159
  var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
160
160
  var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
@@ -199,7 +199,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
199
199
  }
200
200
  }, "leaseOwnerStatus");
201
201
 
202
- // 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/files/native-lease-inspection.js
202
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
203
203
  var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
204
204
  const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
205
205
  options.signal?.throwIfAborted();
@@ -258,7 +258,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
258
258
  return { inspect, recover };
259
259
  }, "leaseInspection");
260
260
 
261
- // 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/files/native-lease-release.js
261
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
262
262
  import { rmdir, unlink as unlink3 } from "node:fs/promises";
263
263
  var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
264
264
  let releasing;
@@ -283,7 +283,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
283
283
  };
284
284
  }, "ownedNativeLease");
285
285
 
286
- // 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/files/native-writer-lease.js
286
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
287
287
  var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
288
288
  var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
289
289
  const { markerDirectory, legacyMarker } = layout;
@@ -354,7 +354,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
354
354
  };
355
355
  }, "nativeWriterLeaseStore");
356
356
 
357
- // 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/files/lock.js
357
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/lock.js
358
358
  var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
359
359
  const folder = dirname2(path);
360
360
  await mkdir2(folder, { recursive: true, mode: 448 });
@@ -369,7 +369,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
369
369
  });
370
370
  }, "acquireLock");
371
371
 
372
- // 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/files/safe-name.js
372
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/safe-name.js
373
373
  import { basename as basename3, extname } from "node:path";
374
374
  var MOST_NAME_BYTES = 200;
375
375
  var bytesOf = /* @__PURE__ */ __name((text) => Buffer.byteLength(text, "utf8"), "bytesOf");
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError,
5
5
  errorCodes
6
- } from "./chunk-AP3CWDRK.js";
6
+ } from "./chunk-S6JG4YUH.js";
7
7
  import {
8
8
  __name
9
9
  } from "./chunk-ZVVMGPBJ.js";
10
10
 
11
- // 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/failures.js
11
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/errors/failures.js
12
12
  var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
13
13
  var isCommanderFailure = /* @__PURE__ */ __name((value) => {
14
14
  const { code, exitCode } = value ?? {};
@@ -23,28 +23,28 @@ import {
23
23
  tagMemberIds,
24
24
  thingOf,
25
25
  write
26
- } from "./chunk-PDVMYIBP.js";
26
+ } from "./chunk-7T5BFWZI.js";
27
27
  import {
28
28
  damagedFile
29
- } from "./chunk-HZIGGAC7.js";
29
+ } from "./chunk-JLXXUEAM.js";
30
30
  import {
31
31
  fold
32
- } from "./chunk-AKSWXRIU.js";
32
+ } from "./chunk-2JHVQMVC.js";
33
33
  import {
34
34
  ADDED_PROVIDER,
35
35
  filesAccountSql,
36
36
  folderProviderOf,
37
37
  folderProviderSql,
38
38
  isDocumentAccountProvider
39
- } from "./chunk-RLK2EGQD.js";
39
+ } from "./chunk-AINKLKDN.js";
40
40
  import {
41
41
  CliError
42
- } from "./chunk-AP3CWDRK.js";
42
+ } from "./chunk-S6JG4YUH.js";
43
43
  import {
44
44
  __name
45
45
  } from "./chunk-ZVVMGPBJ.js";
46
46
 
47
- // 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/damage.js
47
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/damage.js
48
48
  var DERIVED = /* @__PURE__ */ new Set(["mentions", "involvements", "embeddings"]);
49
49
  var named = /* @__PURE__ */ __name((tables) => tables.length <= 5 ? tables.join(", ") : `${tables.slice(0, 5).join(", ")} and ${tables.length - 5} more`, "named");
50
50
  var isDerivedTable = /* @__PURE__ */ __name((table, searchIndexes) => DERIVED.has(table) || table.startsWith("vector_index_") || searchIndexes.some((index) => table === index || table.startsWith(`${index}_`)), "isDerivedTable");
@@ -147,11 +147,11 @@ var storeDamageReport = /* @__PURE__ */ __name(({ health, command, mark = null,
147
147
  };
148
148
  }, "storeDamageReport");
149
149
 
150
- // node_modules/.pnpm/@wirecat+cli-core@0.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/document-transfer/index.js
150
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
151
151
  import { realpathSync, statSync } from "node:fs";
152
152
  import { resolve } from "node:path";
153
153
 
154
- // node_modules/.pnpm/@wirecat+cli-core@0.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/sqlite/document-transfer/people.js
154
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/people.js
155
155
  var planPeople = /* @__PURE__ */ __name((database, snapshot, mappings, bindings, conflicts) => {
156
156
  const creatable = /* @__PURE__ */ new Set();
157
157
  let people = 0, identities = 0;
@@ -214,11 +214,11 @@ var copyPeople = /* @__PURE__ */ __name((database, snapshot, mappings, now) => {
214
214
  }
215
215
  }, "copyPeople");
216
216
 
217
- // node_modules/.pnpm/@wirecat+cli-core@0.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/document-transfer/digest.js
217
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/document-transfer/digest.js
218
218
  import { createHash } from "node:crypto";
219
219
  var digest = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "digest");
220
220
 
221
- // node_modules/.pnpm/@wirecat+cli-core@0.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/sqlite/document-transfer/collection.js
221
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/collection.js
222
222
  var documentsKeyOf = /* @__PURE__ */ __name((collection) => {
223
223
  const colon = collection.indexOf(":");
224
224
  const provider = collection.slice(0, colon);
@@ -262,7 +262,7 @@ var currentCollection = /* @__PURE__ */ __name((row) => {
262
262
  };
263
263
  }, "currentCollection");
264
264
 
265
- // node_modules/.pnpm/@wirecat+cli-core@0.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/sqlite/document-transfer/plan.js
265
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/plan.js
266
266
  var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindings) => {
267
267
  const mappings = /* @__PURE__ */ new Map();
268
268
  const missing = /* @__PURE__ */ new Set(), conflicts = /* @__PURE__ */ new Set();
@@ -344,8 +344,8 @@ var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindin
344
344
  else
345
345
  missing.add(external.reference);
346
346
  }
347
- const organization2 = snapshot.collection.organization_id == null ? null : mappings.get(`organization:${String(snapshot.collection.organization_id)}`)?.id;
348
- if (target && target.organization_id !== organization2)
347
+ const organization = snapshot.collection.organization_id == null ? null : mappings.get(`organization:${String(snapshot.collection.organization_id)}`)?.id;
348
+ if (target && target.organization_id !== organization)
349
349
  conflicts.add("the destination collection has a different organization binding");
350
350
  for (const tagging of snapshot.taggings) {
351
351
  if (Number(tagging.tag_group_size ?? 1) > 1)
@@ -429,7 +429,7 @@ var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindin
429
429
  };
430
430
  }, "planTransfer");
431
431
 
432
- // node_modules/.pnpm/@wirecat+cli-core@0.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/sqlite/document-transfer/snapshot.js
432
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
433
433
  var TRANSFER_TABLES = { document: "documents", note: "notes", memory: "memories", fact: "facts" };
434
434
  var MAX_ENTITIES = 1e3;
435
435
  var MAX_AUXILIARY = 1e4;
@@ -591,7 +591,7 @@ var transferSnapshot = /* @__PURE__ */ __name((database, collection) => read(dat
591
591
  };
592
592
  }), "transferSnapshot");
593
593
 
594
- // node_modules/.pnpm/@wirecat+cli-core@0.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/sqlite/document-transfer/apply.js
594
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/apply.js
595
595
  var providerHere = /* @__PURE__ */ __name(({ provider, name, settings }) => {
596
596
  if (provider !== "folder" || String(name ?? "").startsWith("google-drive:"))
597
597
  return provider ?? null;
@@ -645,11 +645,11 @@ var applyTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindi
645
645
  mappings.set(external.key, botNamed(database, external.bot.name, now(), external.bot.kind));
646
646
  let collectionId = plan.collectionId;
647
647
  if (collectionId === void 0) {
648
- const organization2 = snapshot.collection.organization_id == null ? void 0 : mapped(mappings, "organization", snapshot.collection.organization_id);
648
+ const organization = snapshot.collection.organization_id == null ? void 0 : mapped(mappings, "organization", snapshot.collection.organization_id);
649
649
  collectionId = insert(database, "accounts", "provider external_id name created_at settings updated_at scope organization_id", {
650
650
  ...snapshot.collection,
651
651
  provider: providerHere(snapshot.collection),
652
- organization_id: organization2?.id ?? null
652
+ organization_id: organization?.id ?? null
653
653
  });
654
654
  }
655
655
  mappings.set(`account:${String(snapshot.collection.id)}`, { type: "account", id: collectionId });
@@ -763,7 +763,7 @@ var remapEntity = /* @__PURE__ */ __name((database, entity, id, mappings) => {
763
763
  database.prepare(`UPDATE ${TRANSFER_TABLES[entity.kind]} SET ${columns.join(",")} WHERE id=?`).run(...values, id);
764
764
  }, "remapEntity");
765
765
 
766
- // node_modules/.pnpm/@wirecat+cli-core@0.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/document-transfer/index.js
766
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
767
767
  var locations = /* @__PURE__ */ __name((options) => {
768
768
  for (const value of [options.source, options.destination, options.collection])
769
769
  if (typeof value !== "string" || !value.trim())
@@ -865,7 +865,7 @@ var applyWith = /* @__PURE__ */ __name(async (location, options) => {
865
865
  }
866
866
  }, "applyWith");
867
867
 
868
- // node_modules/.pnpm/@wirecat+cli-core@0.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/health.js
868
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/health.js
869
869
  import { existsSync, statSync as statSync2 } from "node:fs";
870
870
  var JSON_COLUMNS = {
871
871
  accounts: ["settings"],
@@ -1007,7 +1007,7 @@ var storeHealth = /* @__PURE__ */ __name(async (path, { deep = false } = {}) =>
1007
1007
  }
1008
1008
  }, "storeHealth");
1009
1009
 
1010
- // node_modules/.pnpm/@wirecat+cli-core@0.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/project-transfer/preview.js
1010
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
1011
1011
  var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
1012
1012
  if (!options || typeof options !== "object" || Array.isArray(options))
1013
1013
  throw new CliError("validation_error", "project preview options are required");
@@ -1022,18 +1022,18 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
1022
1022
  throw new CliError("validation_error", "project preview project is a project:<safe integer id> reference");
1023
1023
  const budget = new SnapshotBudget(options.maxReadBytes ?? 4 * 1024 * 1024);
1024
1024
  const target = options.target;
1025
- const project2 = options.project;
1025
+ const project = options.project;
1026
1026
  return damagedFile([target], async () => {
1027
1027
  const context = await openStoreContext({ path: target, env: options.env, readOnly: true });
1028
1028
  try {
1029
- return previewAnnotationSnapshot(context.database, Number(project2.slice(8)), snapshot, options.bindings, budget);
1029
+ return previewAnnotationSnapshot(context.database, Number(project.slice(8)), snapshot, options.bindings, budget);
1030
1030
  } finally {
1031
1031
  context.database.close();
1032
1032
  }
1033
1033
  });
1034
1034
  }, "previewProjectAnnotationSnapshot");
1035
1035
 
1036
- // 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/project-transfer/snapshot.js
1036
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
1037
1037
  var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
1038
1038
  if (!options || typeof options !== "object" || Array.isArray(options))
1039
1039
  throw new CliError("validation_error", "snapshot options are required");