@wirecat/zoom-cli 0.72.0 → 0.74.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 (199) hide show
  1. package/contracts/wirecat.json +1478 -0
  2. package/dist/account-removal.d.ts.map +1 -1
  3. package/dist/account-removal.js +0 -2
  4. package/dist/account-removal.js.map +1 -1
  5. package/dist/answers.d.ts +1 -3
  6. package/dist/answers.d.ts.map +1 -1
  7. package/dist/answers.js +0 -3
  8. package/dist/answers.js.map +1 -1
  9. package/dist/bin/main.js +13 -5
  10. package/dist/bin/main.js.map +1 -1
  11. package/dist/bin/zm.js +2 -2
  12. package/dist/bundle/{all-profiles-XFIPF4GF.js → all-profiles-SDOAABLC.js} +12 -12
  13. package/dist/bundle/answer-policy-RHS74QYY.js +110 -0
  14. package/dist/bundle/{anthropic-SSUBR3BC.js → anthropic-HCVY2PIN.js} +7 -7
  15. package/dist/bundle/{app-server-7DJHHF2F.js → app-server-V64VS6KN.js} +65 -61
  16. package/dist/bundle/{bun-6HBYWQIX.js → bun-EBQHHLKR.js} +2 -2
  17. package/dist/bundle/{bun-sqlite-4L3Q55NB.js → bun-sqlite-PVMXO2JB.js} +7 -7
  18. package/dist/bundle/chunk-2PNG76LV.js +707 -0
  19. package/dist/bundle/chunk-2PYZTRRC.js +84 -0
  20. package/dist/bundle/{chunk-63QXCE5Z.js → chunk-3HTJBGNP.js} +10 -10
  21. package/dist/bundle/{chunk-5X4IY5JH.js → chunk-3ROL6MBJ.js} +1763 -762
  22. package/dist/bundle/{chunk-N4QNYWWG.js → chunk-3TYNBHBK.js} +2 -2
  23. package/dist/bundle/{chunk-7SUWPMZG.js → chunk-4ELLWJT4.js} +8 -8
  24. package/dist/bundle/{chunk-PJWSGXOB.js → chunk-4EZKR6Q4.js} +7 -7
  25. package/dist/bundle/{chunk-UVZLK3M4.js → chunk-4RJL32PF.js} +25 -10
  26. package/dist/bundle/{chunk-LTWJM3ED.js → chunk-5KDBLEUF.js} +17 -17
  27. package/dist/bundle/{chunk-7IFO43Q5.js → chunk-5R6EBM5Z.js} +2 -2
  28. package/dist/bundle/{chunk-OHCLQJOV.js → chunk-6EMOZGSN.js} +3 -3
  29. package/dist/bundle/{chunk-D24OQAHM.js → chunk-6GPBDVQ2.js} +4 -4
  30. package/dist/bundle/chunk-7NE3LB7A.js +25 -0
  31. package/dist/bundle/{chunk-VIV64MQM.js → chunk-7R4UU65O.js} +26 -17
  32. package/dist/bundle/{chunk-4XQWF3U2.js → chunk-7W23N2YW.js} +6 -6
  33. package/dist/bundle/{chunk-RN5SU2RN.js → chunk-AFUHT7F7.js} +6 -6
  34. package/dist/bundle/{chunk-SXZGCD6E.js → chunk-APLV37JA.js} +3 -3
  35. package/dist/bundle/{chunk-LLUNHAZ7.js → chunk-BKMC4ETU.js} +4 -4
  36. package/dist/bundle/{chunk-IACWKZWS.js → chunk-BOGGQOVO.js} +1 -1
  37. package/dist/bundle/{chunk-U3NJBGLA.js → chunk-DSRG5NRF.js} +185 -34
  38. package/dist/bundle/{chunk-X2MP634F.js → chunk-DXZN3DU6.js} +4 -4
  39. package/dist/bundle/{chunk-ELJUBPY4.js → chunk-EA2OB75T.js} +1 -1
  40. package/dist/bundle/{chunk-ZVFYGTGJ.js → chunk-F6PUM6ZK.js} +17 -17
  41. package/dist/bundle/{chunk-MCPOZNWG.js → chunk-FIVFP53N.js} +1 -1
  42. package/dist/bundle/{chunk-WOAYHCM2.js → chunk-FL2TKSZY.js} +1 -1
  43. package/dist/bundle/{chunk-RZUJMAMK.js → chunk-FT7X74RT.js} +4 -4
  44. package/dist/bundle/{chunk-ADLS6FVG.js → chunk-FXBHOCJK.js} +1 -1
  45. package/dist/bundle/{chunk-I7CUMZD6.js → chunk-FY2X6U6O.js} +3 -3
  46. package/dist/bundle/{chunk-W3YTVEWV.js → chunk-GPGIU3OG.js} +9 -9
  47. package/dist/bundle/{chunk-6DCLZLGX.js → chunk-HCZYJMBP.js} +1 -1
  48. package/dist/bundle/{chunk-IU4DUUB3.js → chunk-HGUYJUNO.js} +325 -14
  49. package/dist/bundle/{chunk-S7SXSHRC.js → chunk-HNWDEDMU.js} +61 -30
  50. package/dist/bundle/{chunk-NMZQTYKJ.js → chunk-HZUUVNWC.js} +1 -1
  51. package/dist/bundle/{chunk-7S4D5SM2.js → chunk-I2D4ZZOD.js} +31 -32
  52. package/dist/bundle/{chunk-XPWZSW6Y.js → chunk-IJCUAKR5.js} +4 -4
  53. package/dist/bundle/{chunk-QQUY4MZY.js → chunk-IJONJTST.js} +1 -1
  54. package/dist/bundle/chunk-IS6FUZCP.js +73 -0
  55. package/dist/bundle/{chunk-ZW5KHKMA.js → chunk-IZUOL4Q6.js} +5 -5
  56. package/dist/bundle/{chunk-H53WFZBN.js → chunk-KBRIMLVN.js} +12 -12
  57. package/dist/bundle/{chunk-2MIBRVSV.js → chunk-KCPRTZBZ.js} +2 -2
  58. package/dist/bundle/chunk-KYL5FYOW.js +13 -0
  59. package/dist/bundle/{chunk-4SY67IUA.js → chunk-LHPYSVGP.js} +26 -35
  60. package/dist/bundle/{chunk-JG4MNYG2.js → chunk-LN2LWPN2.js} +1 -1
  61. package/dist/bundle/{chunk-CW46FWKW.js → chunk-LQR4V5EY.js} +14 -12
  62. package/dist/bundle/{chunk-B3SILJBU.js → chunk-LUBG5GKK.js} +30 -22
  63. package/dist/bundle/{chunk-3KRTEX5M.js → chunk-LZ4AVHBS.js} +3 -2
  64. package/dist/bundle/{chunk-RX5CJ55S.js → chunk-M4OP5ASJ.js} +1 -1
  65. package/dist/bundle/{chunk-FSCPQQS5.js → chunk-MAE5UGRQ.js} +150 -93
  66. package/dist/bundle/{chunk-KPIQXFNB.js → chunk-N7KCNMKL.js} +16 -15
  67. package/dist/bundle/{chunk-RLCVPECY.js → chunk-NKBMLSWK.js} +110 -64
  68. package/dist/bundle/{chunk-T27IMG6X.js → chunk-NV2REPY6.js} +1 -1
  69. package/dist/bundle/{chunk-EFF2XBHP.js → chunk-OP6HK2QL.js} +2 -2
  70. package/dist/bundle/{chunk-WLVG4RBZ.js → chunk-OPUGV7VW.js} +15 -2
  71. package/dist/bundle/{chunk-5AELTC52.js → chunk-P53CLAXD.js} +103 -102
  72. package/dist/bundle/{chunk-KWURWGGB.js → chunk-PKM2UKAZ.js} +32 -9
  73. package/dist/bundle/{chunk-7JYMGXLI.js → chunk-PMHMKZEJ.js} +47 -43
  74. package/dist/bundle/{chunk-23J2ANZ7.js → chunk-QAGSAOYS.js} +2 -2
  75. package/dist/bundle/{chunk-JZ4XNNL7.js → chunk-QLKCKTM4.js} +1 -1
  76. package/dist/bundle/{chunk-OP5PGE2N.js → chunk-QSWR7VDA.js} +4 -4
  77. package/dist/bundle/{chunk-LA6QUVGQ.js → chunk-R35YGFKQ.js} +163 -16
  78. package/dist/bundle/{chunk-CANRIRNZ.js → chunk-R4J4DLJV.js} +1792 -1205
  79. package/dist/bundle/{chunk-QW7YTRV2.js → chunk-RJJ4OYNH.js} +3 -3
  80. package/dist/bundle/{chunk-DOCVEKP2.js → chunk-RQJ2RXFO.js} +37 -35
  81. package/dist/bundle/{chunk-TF2WKPNW.js → chunk-RRW54FK6.js} +17 -17
  82. package/dist/bundle/{chunk-KFZL67JP.js → chunk-SKDQNYKA.js} +129 -48
  83. package/dist/bundle/{chunk-7GLJSJ7M.js → chunk-SPWKGRTO.js} +1 -1
  84. package/dist/bundle/{chunk-MSQHSW4C.js → chunk-SY4MIIWF.js} +2 -2
  85. package/dist/bundle/{chunk-ZHA56THL.js → chunk-TKPIDOW5.js} +927 -904
  86. package/dist/bundle/{chunk-WXTYYWZI.js → chunk-TLNZUPGU.js} +115 -113
  87. package/dist/bundle/{chunk-WZGKHTA4.js → chunk-TMCXUWTY.js} +8 -2
  88. package/dist/bundle/{chunk-7OD3522V.js → chunk-TN2YUZBF.js} +1192 -496
  89. package/dist/bundle/{chunk-JFPUYQSP.js → chunk-UGLNVUFX.js} +5 -5
  90. package/dist/bundle/{chunk-IFBIXU6C.js → chunk-UVWNUY3W.js} +2 -2
  91. package/dist/bundle/{chunk-5MGICK47.js → chunk-UW3BB2XW.js} +26 -26
  92. package/dist/bundle/{chunk-24OFZNRC.js → chunk-UXSTXFZQ.js} +5168 -4245
  93. package/dist/bundle/{chunk-U32VL3MA.js → chunk-WRRGO246.js} +3 -2
  94. package/dist/bundle/{chunk-QA6KIL7Q.js → chunk-WYV5IITK.js} +11 -8
  95. package/dist/bundle/{chunk-D5EUMWD5.js → chunk-X2FILY5F.js} +3 -3
  96. package/dist/bundle/{chunk-4YIGXTBP.js → chunk-XCC7R47Z.js} +3 -3
  97. package/dist/bundle/{chunk-37NF5CBJ.js → chunk-XFT3YIHU.js} +6 -8
  98. package/dist/bundle/{chunk-IXO4SCKE.js → chunk-XGEPAJBY.js} +1 -1
  99. package/dist/bundle/chunk-XWBPP2HX.js +2 -0
  100. package/dist/bundle/{chunk-RJTGENHZ.js → chunk-Y4KWWPIO.js} +4 -7
  101. package/dist/bundle/{chunk-DEPXZJ2V.js → chunk-YFLTHGB3.js} +17 -13
  102. package/dist/bundle/{chunk-JRCH4YZP.js → chunk-YM6ZATEK.js} +17 -121
  103. package/dist/bundle/{chunk-ADKMBXY4.js → chunk-YNI57LTZ.js} +1 -1
  104. package/dist/bundle/{chunk-ERJYJ36F.js → chunk-ZMHZ6CQS.js} +2 -2
  105. package/dist/bundle/{chunk-M3DMXDX6.js → chunk-ZYMTS3CI.js} +6 -6
  106. package/dist/bundle/{cli-IYYI7GAM.js → cli-5ALOQCAC.js} +152 -123
  107. package/dist/bundle/command-contract-WO5QJVLZ.js +41 -0
  108. package/dist/bundle/{command-server-entry-FXX4LJWF.js → command-server-entry-ICOMIJIH.js} +33 -33
  109. package/dist/bundle/config-YQA5TJ7Y.js +97 -0
  110. package/dist/bundle/{decode-SRGOOGBW.js → decode-7LFOROWF.js} +6 -6
  111. package/dist/bundle/{dispatch-OUHRPFUL.js → dispatch-EU67WGME.js} +9 -9
  112. package/dist/bundle/{dist-UZLNLAIO.js → dist-KJOOYNCP.js} +25 -22
  113. package/dist/bundle/{echarts-7CM2MCMW.js → echarts-EJXBKCJT.js} +2 -2
  114. package/dist/bundle/{embed-VEE56BOB.js → embed-TOZCKRRO.js} +7 -7
  115. package/dist/bundle/{embedder-SZFYR543.js → embedder-QKEKUCS5.js} +10 -10
  116. package/dist/bundle/{failure-MZBNM7M5.js → failure-CTJLEB2R.js} +3 -3
  117. package/dist/bundle/first-run-S7CQVGK6.js +29 -0
  118. package/dist/bundle/first-screen-6GW6FD6S.js +39 -0
  119. package/dist/bundle/folders-MSBTAPAG.js +24 -0
  120. package/dist/bundle/{instructions-R7OHVAWH.js → instructions-Z7GVGWXS.js} +1 -1
  121. package/dist/bundle/{main-EFUN2O3K.js → main-RL3GC4OX.js} +39 -26
  122. package/dist/bundle/{mcp-7KQUJNFN.js → mcp-TDKGDB4V.js} +2 -2
  123. package/dist/bundle/{meetings-5I2BDNTA.js → meetings-JCMLE5AO.js} +9 -7
  124. package/dist/bundle/{node-P4E63KXA.js → node-KM3CUABH.js} +9 -9
  125. package/dist/bundle/{node-3N2JGZ7V.js → node-L2PVEW3N.js} +2 -2
  126. package/dist/bundle/{node-sqlite-2UVEE2WM.js → node-sqlite-4YW3W4XI.js} +10 -10
  127. package/dist/bundle/{oauth-AYGD7UU3.js → oauth-NNHWAT6A.js} +8 -8
  128. package/dist/bundle/{open-3GUVDLGD.js → open-PF2JHJIY.js} +6 -6
  129. package/dist/bundle/openai-C72ADYMD.js +28 -0
  130. package/dist/bundle/{output-file-72JFXVHQ.js → output-file-VDOCYH2G.js} +6 -6
  131. package/dist/bundle/{process-YAHHUFR5.js → process-MNZTQ2DA.js} +1 -1
  132. package/dist/bundle/{program-OSZROCTK.js → program-FOCBZZZS.js} +146 -151
  133. package/dist/bundle/{prompt-HMCW4XQJ.js → prompt-RBSUKMV7.js} +6 -6
  134. package/dist/bundle/{recognize-VF5CA7EM.js → recognize-RM6TQKK3.js} +5 -5
  135. package/dist/bundle/{remote-5C6VTPR2.js → remote-UKHTU3YR.js} +11 -10
  136. package/dist/bundle/{rerank-ER7NEDOI.js → rerank-3LBRVESU.js} +8 -8
  137. package/dist/bundle/run-log-UXINNGKA.js +124 -0
  138. package/dist/bundle/{serve-QJWXJOM7.js → serve-OOZFTW3W.js} +10 -10
  139. package/dist/bundle/server-DM5ZPFZB.js +75 -0
  140. package/dist/bundle/{server-KCIK3Y2P.js → server-YNQPNIJD.js} +52 -50
  141. package/dist/bundle/{services-LQMYJQG3.js → services-SLEOMN4B.js} +61 -44
  142. package/dist/bundle/{speech-74GJQNQH.js → speech-FZZ6QVGU.js} +20 -20
  143. package/dist/bundle/sqlite-runtime-WUR4PWYB.js +20 -0
  144. package/dist/bundle/{state-4XDGCHDF.js → state-ET36L4TY.js} +7 -7
  145. package/dist/bundle/{store-5Y5HK2L2.js → store-DI6OUBXA.js} +20 -20
  146. package/dist/bundle/{store-Y56AHJ2Y.js → store-SQB2DOVJ.js} +34 -28
  147. package/dist/bundle/store-connection-M6LVRAZ5.js +90 -0
  148. package/dist/bundle/store-maintenance-command-B66KWG6K.js +65 -0
  149. package/dist/bundle/{streaming-E5CR6HSR.js → streaming-PQEXKTE5.js} +7 -7
  150. package/dist/bundle/tokens-SUHRRQ25.js +24 -0
  151. package/dist/bundle/zm.js +9 -9
  152. package/dist/bundle/{zoom-app-NVL7HEAX.js → zoom-app-GE4SSHOP.js} +9 -8
  153. package/dist/folders.d.ts +12 -2
  154. package/dist/folders.d.ts.map +1 -1
  155. package/dist/folders.js +81 -3
  156. package/dist/folders.js.map +1 -1
  157. package/dist/identity.d.ts +5 -0
  158. package/dist/identity.d.ts.map +1 -1
  159. package/dist/identity.js +14 -0
  160. package/dist/identity.js.map +1 -1
  161. package/dist/recording-schedule-setup.d.ts.map +1 -1
  162. package/dist/recording-schedule-setup.js +4 -7
  163. package/dist/recording-schedule-setup.js.map +1 -1
  164. package/dist/remote-http.d.ts +1 -1
  165. package/dist/remote-http.d.ts.map +1 -1
  166. package/dist/remote-http.js +21 -23
  167. package/dist/remote-http.js.map +1 -1
  168. package/dist/setup-commands.d.ts.map +1 -1
  169. package/dist/setup-commands.js +2 -4
  170. package/dist/setup-commands.js.map +1 -1
  171. package/dist/tokens.d.ts +17 -2
  172. package/dist/tokens.d.ts.map +1 -1
  173. package/dist/tokens.js +109 -29
  174. package/dist/tokens.js.map +1 -1
  175. package/dist/version.d.ts +1 -1
  176. package/dist/version.js +1 -1
  177. package/dist/wcat.d.ts +3 -0
  178. package/dist/wcat.d.ts.map +1 -0
  179. package/dist/wcat.js +4 -0
  180. package/dist/wcat.js.map +1 -0
  181. package/package.json +15 -14
  182. package/dist/bundle/answer-policy-AT6CDEE5.js +0 -110
  183. package/dist/bundle/chunk-EG25AY4L.js +0 -17
  184. package/dist/bundle/chunk-JAEPK457.js +0 -997
  185. package/dist/bundle/chunk-K6HR6HCO.js +0 -32
  186. package/dist/bundle/chunk-OY6N2ABP.js +0 -1239
  187. package/dist/bundle/chunk-YVVJ6Y5C.js +0 -153
  188. package/dist/bundle/command-contract-TX7NSUBM.js +0 -42
  189. package/dist/bundle/config-YKNM33J7.js +0 -96
  190. package/dist/bundle/first-run-KWC7RKF2.js +0 -29
  191. package/dist/bundle/first-screen-DWKMNSEI.js +0 -40
  192. package/dist/bundle/folders-UQXRSDJJ.js +0 -16
  193. package/dist/bundle/openai-NHCDLWWY.js +0 -28
  194. package/dist/bundle/run-log-JKTLKXSK.js +0 -124
  195. package/dist/bundle/server-LLGFDLLJ.js +0 -75
  196. package/dist/bundle/store-connection-4WI32AYU.js +0 -89
  197. package/dist/bundle/store-maintenance-command-PCXO5AH4.js +0 -65
  198. package/dist/bundle/tokens-E2QNVC4F.js +0 -20
  199. /package/dist/bundle/{chunk-YVNHQFLC.js → chunk-7O7XM37N.js} +0 -0
@@ -2,52 +2,31 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-ELJUBPY4.js";
5
+ } from "./chunk-EA2OB75T.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/files/lock.js
11
+ import { mkdir as mkdir2 } from "node:fs/promises";
12
+ import { basename, dirname } from "node:path";
13
+
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
11
15
  import { randomUUID } from "node:crypto";
12
- import { constants } from "node:fs";
13
- import { link, open, realpath, rename, unlink } from "node:fs/promises";
14
- import { basename, dirname, join } from "node:path";
15
- var openFolder = /* @__PURE__ */ __name((folder) => process.platform === "win32" ? Promise.resolve(void 0) : open(folder, constants.O_RDONLY | (constants.O_DIRECTORY ?? 0) | (constants.O_NOFOLLOW ?? 0)), "openFolder");
16
- var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384, overwrite = true, signal, beforePublish } = {}) => {
17
- signal?.throwIfAborted();
18
- const folder = await realpath(dirname(path));
19
- const target = join(folder, basename(path));
20
- const directory = await openFolder(folder);
21
- try {
22
- const temporary = join(folder, `.${basename(path)}.${randomUUID()}.tmp`);
23
- let handle = await open(temporary, "wx", mode);
24
- let published = false;
25
- try {
26
- await handle.writeFile(content);
27
- await handle.sync();
28
- await handle.close();
29
- handle = void 0;
30
- signal?.throwIfAborted();
31
- await beforePublish?.();
32
- if (overwrite)
33
- await rename(temporary, target);
34
- else
35
- await link(temporary, target);
36
- published = overwrite;
37
- await directory?.sync();
38
- } finally {
39
- await handle?.close().catch(() => void 0);
40
- if (!published)
41
- await unlink(temporary).catch(() => void 0);
42
- }
43
- } finally {
44
- await directory?.close().catch(() => void 0);
45
- }
46
- }, "writeFileAtomic");
16
+ import { lstat as lstat3, mkdir, open as open2, realpath as realpath2, rmdir as rmdir2, unlink as unlink3 } from "node:fs/promises";
17
+ import { hostname as hostname2 } from "node:os";
18
+ import { join as join2 } from "node:path";
47
19
 
48
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
49
- import { constants as constants2 } from "node:fs";
50
- import { lstat, open as open2 } from "node:fs/promises";
20
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
21
+ import { lstat as lstat2, readdir, realpath, unlink } from "node:fs/promises";
22
+ import { join } from "node:path";
23
+
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
25
+ import { hostname } from "node:os";
26
+
27
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
28
+ import { constants } from "node:fs";
29
+ import { lstat, open } from "node:fs/promises";
51
30
  var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
52
31
  var sameIdentity = /* @__PURE__ */ __name((left, right) => left.ino === right.ino && deviceOf(left.dev) === deviceOf(right.dev), "sameIdentity");
53
32
  var openOrdinaryFile = /* @__PURE__ */ __name(async (path, options = {}) => {
@@ -56,16 +35,16 @@ var openOrdinaryFile = /* @__PURE__ */ __name(async (path, options = {}) => {
56
35
  throw new CliError("validation_error", "archive path must be an ordinary file without a symlink");
57
36
  if (!before.isFile())
58
37
  throw new CliError("validation_error", "archive path must be an ordinary file");
59
- const access = options.writable ? constants2.O_RDWR : constants2.O_RDONLY;
60
- const flags = process.platform === "win32" ? access : access | (constants2.O_NOFOLLOW ?? 0) | (constants2.O_NONBLOCK ?? 0);
61
- const file = await open2(path, flags);
38
+ const access = options.writable ? constants.O_RDWR : constants.O_RDONLY;
39
+ const flags = process.platform === "win32" ? access : access | (constants.O_NOFOLLOW ?? 0) | (constants.O_NONBLOCK ?? 0);
40
+ const file = await open(path, flags);
62
41
  try {
63
42
  const opened = await file.stat({ bigint: true });
64
43
  const after = await lstat(path, { bigint: true });
65
44
  if (!opened.isFile() || !after.isFile() || before.ino !== opened.ino || before.ino !== after.ino)
66
45
  throw new CliError("validation_error", "archive file changed while opening");
67
46
  if (process.platform === "win32" && before.dev === 0n && after.dev === 0n) {
68
- const witness = await open2(path, flags);
47
+ const witness = await open(path, flags);
69
48
  try {
70
49
  const identified = await witness.stat({ bigint: true });
71
50
  const final = await lstat(path, { bigint: true });
@@ -101,7 +80,7 @@ var sameOrdinaryFile = /* @__PURE__ */ __name(async (path, created) => {
101
80
  var syncDirectory = /* @__PURE__ */ __name(async (path) => {
102
81
  if (process.platform === "win32")
103
82
  return;
104
- const directory = await open2(path, constants2.O_RDONLY | (constants2.O_DIRECTORY ?? 0) | (constants2.O_NOFOLLOW ?? 0));
83
+ const directory = await open(path, constants.O_RDONLY | (constants.O_DIRECTORY ?? 0) | (constants.O_NOFOLLOW ?? 0));
105
84
  try {
106
85
  if (!(await directory.stat()).isDirectory())
107
86
  throw new CliError("validation_error", "archive publication directory must be ordinary");
@@ -111,51 +90,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
111
90
  }
112
91
  }, "syncDirectory");
113
92
 
114
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
115
- var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
116
- if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
117
- throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
118
- const file = await openOrdinaryFile(path);
119
- try {
120
- if ((await file.stat()).size > maxBytes)
121
- throw new CliError("validation_error", "input file exceeds its byte budget");
122
- const chunks = [], buffer = Buffer.alloc(Math.min(65536, maxBytes + 1));
123
- let bytes = 0;
124
- for (; ; ) {
125
- const { bytesRead } = await file.read(buffer, 0, Math.min(buffer.length, maxBytes - bytes + 1), null);
126
- if (bytesRead === 0)
127
- break;
128
- bytes += bytesRead;
129
- if (bytes > maxBytes)
130
- throw new CliError("validation_error", "input file exceeds its byte budget");
131
- chunks.push(Buffer.from(buffer.subarray(0, bytesRead)));
132
- }
133
- try {
134
- return new TextDecoder("utf-8", { fatal: true }).decode(Buffer.concat(chunks, bytes));
135
- } catch {
136
- throw new CliError("validation_error", "input file must contain valid UTF-8");
137
- }
138
- } finally {
139
- await file.close();
140
- }
141
- }, "readBoundedUtf8File");
142
-
143
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/files/lock.js
144
- import { mkdir as mkdir2 } from "node:fs/promises";
145
- import { basename as basename2, dirname as dirname2 } from "node:path";
146
-
147
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
148
- import { randomUUID as randomUUID2 } from "node:crypto";
149
- import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
150
- import { hostname as hostname2 } from "node:os";
151
- import { join as join3 } from "node:path";
152
-
153
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
154
- import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
155
- import { join as join2 } from "node:path";
156
-
157
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
158
- import { hostname } from "node:os";
93
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
159
94
  var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
160
95
  var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
161
96
  signal?.throwIfAborted();
@@ -199,13 +134,13 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
199
134
  }
200
135
  }, "leaseOwnerStatus");
201
136
 
202
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
137
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
203
138
  var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
204
139
  const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
205
140
  options.signal?.throwIfAborted();
206
- const root = await realpath2(destination);
141
+ const root = await realpath(destination);
207
142
  options.signal?.throwIfAborted();
208
- const folder = join2(root, markerDirectory);
143
+ const folder = join(root, markerDirectory);
209
144
  let names;
210
145
  try {
211
146
  if ((await lstat2(folder)).isSymbolicLink())
@@ -221,7 +156,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
221
156
  const result = [];
222
157
  for (const name of names.sort()) {
223
158
  options.signal?.throwIfAborted();
224
- const owner = await readLeaseOwner(join2(folder, name), name, options.signal);
159
+ const owner = await readLeaseOwner(join(folder, name), name, options.signal);
225
160
  result.push({
226
161
  name,
227
162
  status: owner ? leaseOwnerStatus(owner) : "unrecognized",
@@ -233,7 +168,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
233
168
  }, "inspect");
234
169
  const recover = /* @__PURE__ */ __name(async (destination, options = {}) => {
235
170
  options.signal?.throwIfAborted();
236
- const root = await realpath2(destination);
171
+ const root = await realpath(destination);
237
172
  const locks = await inspect(root, options);
238
173
  const removed = [];
239
174
  if (options.apply)
@@ -241,12 +176,12 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
241
176
  options.signal?.throwIfAborted();
242
177
  if (lock.status !== "stale")
243
178
  continue;
244
- const path = join2(root, markerDirectory, lock.name);
179
+ const path = join(root, markerDirectory, lock.name);
245
180
  const owner = await readLeaseOwner(path, lock.name, options.signal);
246
181
  if (!owner || leaseOwnerStatus(owner) !== "stale")
247
182
  continue;
248
183
  try {
249
- await unlink2(path);
184
+ await unlink(path);
250
185
  removed.push(lock.name);
251
186
  } catch (error) {
252
187
  if (!missingLeaseFile(error))
@@ -258,8 +193,8 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
258
193
  return { inspect, recover };
259
194
  }, "leaseInspection");
260
195
 
261
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
262
- import { rmdir, unlink as unlink3 } from "node:fs/promises";
196
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
197
+ import { rmdir, unlink as unlink2 } from "node:fs/promises";
263
198
  var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
264
199
  let releasing;
265
200
  const held = /* @__PURE__ */ __name(async () => {
@@ -271,7 +206,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
271
206
  const release = /* @__PURE__ */ __name(async () => {
272
207
  if (!await held())
273
208
  throw new CliError("configuration_error", "owned archive lock changed before release");
274
- await unlink3(path);
209
+ await unlink2(path);
275
210
  await rmdir(folder).catch(() => void 0);
276
211
  }, "release");
277
212
  return {
@@ -283,7 +218,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
283
218
  };
284
219
  }, "ownedNativeLease");
285
220
 
286
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
221
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
287
222
  var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
288
223
  var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
289
224
  const { markerDirectory, legacyMarker } = layout;
@@ -294,12 +229,12 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
294
229
  ...inspection,
295
230
  acquire: /* @__PURE__ */ __name(async (destination, { signal } = {}) => {
296
231
  signal?.throwIfAborted();
297
- const root = await realpath3(destination);
232
+ const root = await realpath2(destination);
298
233
  signal?.throwIfAborted();
299
- const folder = join3(root, markerDirectory);
300
- const owner = { version: 1, pid: process.pid, host: hostname2(), nonce: randomUUID2() };
234
+ const folder = join2(root, markerDirectory);
235
+ const owner = { version: 1, pid: process.pid, host: hostname2(), nonce: randomUUID() };
301
236
  const name = `${owner.pid}-${owner.nonce}.json`;
302
- const path = join3(folder, name);
237
+ const path = join2(folder, name);
303
238
  const marker = /* @__PURE__ */ __name(async (attempt = 1) => {
304
239
  await mkdir(folder, { recursive: true });
305
240
  try {
@@ -307,7 +242,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
307
242
  throw new CliError("validation_error", "archive lock directory must not be a symlink");
308
243
  await inspection.recover(root, { apply: true, signal });
309
244
  signal?.throwIfAborted();
310
- return await open3(path, "wx", 384);
245
+ return await open2(path, "wx", 384);
311
246
  } catch (error) {
312
247
  if (attempt < 5 && missingLeaseFile(error))
313
248
  return marker(attempt + 1);
@@ -332,7 +267,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
332
267
  return { status: "busy", locks };
333
268
  if (legacyMarker) {
334
269
  try {
335
- await lstat3(join3(root, legacyMarker));
270
+ await lstat3(join2(root, legacyMarker));
336
271
  return { status: "legacy" };
337
272
  } catch (error) {
338
273
  if (!missingLeaseFile(error))
@@ -346,7 +281,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
346
281
  await file.close().catch(() => void 0);
347
282
  if (!retained) {
348
283
  if (identity && await sameOrdinaryFile(path, identity))
349
- await unlink4(path).catch(() => void 0);
284
+ await unlink3(path).catch(() => void 0);
350
285
  await rmdir2(folder).catch(() => void 0);
351
286
  }
352
287
  }
@@ -354,22 +289,89 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
354
289
  };
355
290
  }, "nativeWriterLeaseStore");
356
291
 
357
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/files/lock.js
292
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/files/lock.js
358
293
  var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
359
- const folder = dirname2(path);
294
+ const folder = dirname(path);
360
295
  await mkdir2(folder, { recursive: true, mode: 448 });
361
- const acquired = await nativeWriterLeaseStore({ markerDirectory: basename2(path) }).acquire(folder, {
296
+ const acquired = await nativeWriterLeaseStore({ markerDirectory: basename(path) }).acquire(folder, {
362
297
  ...signal ? { signal } : {}
363
298
  });
364
299
  if (acquired.status === "acquired")
365
300
  return acquired.lease;
366
- throw new CliError("validation_error", `${basename2(path)} is locked by another process`, {
301
+ throw new CliError("validation_error", `${basename(path)} is locked by another process`, {
367
302
  reason: "file.locked",
368
303
  ...acquired.status === "busy" ? { holders: acquired.locks } : {}
369
304
  });
370
305
  }, "acquireLock");
371
306
 
372
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/files/safe-name.js
307
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
308
+ import { randomUUID as randomUUID2 } from "node:crypto";
309
+ import { constants as constants2 } from "node:fs";
310
+ import { link, open as open3, realpath as realpath3, rename, unlink as unlink4 } from "node:fs/promises";
311
+ import { basename as basename2, dirname as dirname2, join as join3 } from "node:path";
312
+ var openFolder = /* @__PURE__ */ __name((folder) => process.platform === "win32" ? Promise.resolve(void 0) : open3(folder, constants2.O_RDONLY | (constants2.O_DIRECTORY ?? 0) | (constants2.O_NOFOLLOW ?? 0)), "openFolder");
313
+ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384, overwrite = true, signal, beforePublish } = {}) => {
314
+ signal?.throwIfAborted();
315
+ const folder = await realpath3(dirname2(path));
316
+ const target = join3(folder, basename2(path));
317
+ const directory = await openFolder(folder);
318
+ try {
319
+ const temporary = join3(folder, `.${basename2(path)}.${randomUUID2()}.tmp`);
320
+ let handle = await open3(temporary, "wx", mode);
321
+ let published = false;
322
+ try {
323
+ await handle.writeFile(content);
324
+ await handle.sync();
325
+ await handle.close();
326
+ handle = void 0;
327
+ signal?.throwIfAborted();
328
+ await beforePublish?.();
329
+ if (overwrite)
330
+ await rename(temporary, target);
331
+ else
332
+ await link(temporary, target);
333
+ published = overwrite;
334
+ await directory?.sync();
335
+ } finally {
336
+ await handle?.close().catch(() => void 0);
337
+ if (!published)
338
+ await unlink4(temporary).catch(() => void 0);
339
+ }
340
+ } finally {
341
+ await directory?.close().catch(() => void 0);
342
+ }
343
+ }, "writeFileAtomic");
344
+
345
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
346
+ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
347
+ if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
348
+ throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
349
+ const file = await openOrdinaryFile(path);
350
+ try {
351
+ if ((await file.stat()).size > maxBytes)
352
+ throw new CliError("validation_error", "input file exceeds its byte budget");
353
+ const chunks = [], buffer = Buffer.alloc(Math.min(65536, maxBytes + 1));
354
+ let bytes = 0;
355
+ for (; ; ) {
356
+ const { bytesRead } = await file.read(buffer, 0, Math.min(buffer.length, maxBytes - bytes + 1), null);
357
+ if (bytesRead === 0)
358
+ break;
359
+ bytes += bytesRead;
360
+ if (bytes > maxBytes)
361
+ throw new CliError("validation_error", "input file exceeds its byte budget");
362
+ chunks.push(Buffer.from(buffer.subarray(0, bytesRead)));
363
+ }
364
+ try {
365
+ return new TextDecoder("utf-8", { fatal: true }).decode(Buffer.concat(chunks, bytes));
366
+ } catch {
367
+ throw new CliError("validation_error", "input file must contain valid UTF-8");
368
+ }
369
+ } finally {
370
+ await file.close();
371
+ }
372
+ }, "readBoundedUtf8File");
373
+
374
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/files/safe-name.js
373
375
  import { basename as basename3 } from "node:path";
374
376
  var safeName = /* @__PURE__ */ __name((name, platform = process.platform) => {
375
377
  let plain = name === void 0 ? "" : basename3(name.replaceAll("\\", "/")).replace(/[\p{Cc}​-‏‪-‮⁦-⁩]/gu, "").replace(/^\.+/, "");
@@ -3,17 +3,22 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError,
5
5
  errorCodes
6
- } from "./chunk-ELJUBPY4.js";
6
+ } from "./chunk-EA2OB75T.js";
7
7
  import {
8
8
  __name
9
9
  } from "./chunk-ZVVMGPBJ.js";
10
10
 
11
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/errors/failures.js
11
+ // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/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 ?? {};
15
15
  return value instanceof Error && typeof code === "string" && code.startsWith("commander.") && typeof exitCode === "number";
16
16
  }, "isCommanderFailure");
17
+ var USAGE_REASONS = {
18
+ "commander.unknownCommand": "usage.unknown-command",
19
+ "commander.unknownOption": "usage.unknown-option"
20
+ };
21
+ var usageReason = /* @__PURE__ */ __name((code) => USAGE_REASONS[code], "usageReason");
17
22
  var failureKey = /* @__PURE__ */ __name((error) => isCliFailure(error) ? error.code : error instanceof Error ? error.name : "error", "failureKey");
18
23
  var SQLITE_CORRUPT = 11;
19
24
  var SQLITE_NOTADB = 26;
@@ -58,6 +63,7 @@ var isStoreDamage = /* @__PURE__ */ __name((error) => damageIn(error) !== void 0
58
63
  export {
59
64
  isCliFailure,
60
65
  isCommanderFailure,
66
+ usageReason,
61
67
  failureKey,
62
68
  sqliteCode,
63
69
  storeDamaged,