@wirecat/zoom-cli 0.72.0 → 0.73.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.
- package/contracts/wirecat.json +1478 -0
- package/dist/account-removal.d.ts.map +1 -1
- package/dist/account-removal.js +0 -2
- package/dist/account-removal.js.map +1 -1
- package/dist/answers.d.ts +1 -3
- package/dist/answers.d.ts.map +1 -1
- package/dist/answers.js +0 -3
- package/dist/answers.js.map +1 -1
- package/dist/bin/main.js +13 -5
- package/dist/bin/main.js.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-XFIPF4GF.js → all-profiles-V47CUJFK.js} +12 -12
- package/dist/bundle/answer-policy-W6H72X2R.js +112 -0
- package/dist/bundle/{anthropic-SSUBR3BC.js → anthropic-SID7Z3QN.js} +7 -7
- package/dist/bundle/{app-server-7DJHHF2F.js → app-server-KCMUSY4A.js} +67 -61
- package/dist/bundle/{bun-6HBYWQIX.js → bun-PWMM6L45.js} +2 -2
- package/dist/bundle/{bun-sqlite-4L3Q55NB.js → bun-sqlite-3TLKUN5A.js} +7 -7
- package/dist/bundle/{chunk-OY6N2ABP.js → chunk-2BAZRRJP.js} +19 -19
- package/dist/bundle/{chunk-KWURWGGB.js → chunk-2NQPB6MT.js} +28 -9
- package/dist/bundle/chunk-2PYZTRRC.js +84 -0
- package/dist/bundle/chunk-2VYEGKQ3.js +13 -0
- package/dist/bundle/{chunk-X2MP634F.js → chunk-35CYSRGJ.js} +4 -4
- package/dist/bundle/{chunk-SXZGCD6E.js → chunk-3ADFJ3UP.js} +3 -3
- package/dist/bundle/{chunk-63QXCE5Z.js → chunk-3HTJBGNP.js} +10 -10
- package/dist/bundle/{chunk-OHCLQJOV.js → chunk-44YVZIA4.js} +3 -3
- package/dist/bundle/{chunk-D24OQAHM.js → chunk-4LFFDUUW.js} +4 -4
- package/dist/bundle/{chunk-UVZLK3M4.js → chunk-4RJL32PF.js} +25 -10
- package/dist/bundle/{chunk-CANRIRNZ.js → chunk-6AO2RSYH.js} +951 -692
- package/dist/bundle/{chunk-37NF5CBJ.js → chunk-6NI4FE5G.js} +6 -8
- package/dist/bundle/{chunk-QW7YTRV2.js → chunk-6WUTUCKH.js} +3 -3
- package/dist/bundle/{chunk-WOAYHCM2.js → chunk-AIEMFRBU.js} +1 -1
- package/dist/bundle/{chunk-B3SILJBU.js → chunk-CIUJEQH4.js} +30 -22
- package/dist/bundle/{chunk-MSQHSW4C.js → chunk-CMWFYZ45.js} +2 -2
- package/dist/bundle/{chunk-2MIBRVSV.js → chunk-CQBLPBZU.js} +2 -2
- package/dist/bundle/{chunk-U3NJBGLA.js → chunk-DPSTOVKC.js} +185 -34
- package/dist/bundle/{chunk-OP5PGE2N.js → chunk-DYLYH7VE.js} +4 -4
- package/dist/bundle/{chunk-ELJUBPY4.js → chunk-EA2OB75T.js} +1 -1
- package/dist/bundle/{chunk-3KRTEX5M.js → chunk-ERQRY6WZ.js} +3 -2
- package/dist/bundle/{chunk-H53WFZBN.js → chunk-ETQNHS3A.js} +12 -12
- package/dist/bundle/{chunk-JG4MNYG2.js → chunk-EXWZCI5G.js} +1 -1
- package/dist/bundle/{chunk-MCPOZNWG.js → chunk-FIVFP53N.js} +1 -1
- package/dist/bundle/{chunk-7OD3522V.js → chunk-FJMRDRPN.js} +180 -149
- package/dist/bundle/{chunk-RZUJMAMK.js → chunk-FT7X74RT.js} +4 -4
- package/dist/bundle/{chunk-ADLS6FVG.js → chunk-FXBHOCJK.js} +1 -1
- package/dist/bundle/{chunk-JRCH4YZP.js → chunk-FZLJ2G7A.js} +17 -121
- package/dist/bundle/{chunk-ZW5KHKMA.js → chunk-G2TSDMTA.js} +5 -5
- package/dist/bundle/{chunk-7S4D5SM2.js → chunk-G3SIY4MQ.js} +29 -28
- package/dist/bundle/{chunk-M3DMXDX6.js → chunk-GCZMYDKU.js} +6 -6
- package/dist/bundle/{chunk-4XQWF3U2.js → chunk-HAMDPWEZ.js} +6 -6
- package/dist/bundle/{chunk-6DCLZLGX.js → chunk-HCZYJMBP.js} +1 -1
- package/dist/bundle/{chunk-S7SXSHRC.js → chunk-HNWDEDMU.js} +61 -30
- package/dist/bundle/{chunk-24OFZNRC.js → chunk-HO3GBTIT.js} +4038 -3729
- package/dist/bundle/chunk-IE7YBRUO.js +25 -0
- package/dist/bundle/{chunk-XPWZSW6Y.js → chunk-IJCUAKR5.js} +4 -4
- package/dist/bundle/{chunk-RLCVPECY.js → chunk-IKNOTHG2.js} +110 -64
- package/dist/bundle/{chunk-QA6KIL7Q.js → chunk-ILDGZBZD.js} +11 -8
- package/dist/bundle/{chunk-W3YTVEWV.js → chunk-JIS34MLC.js} +9 -9
- package/dist/bundle/{chunk-KFZL67JP.js → chunk-JQF4LM3V.js} +128 -47
- package/dist/bundle/{chunk-ZHA56THL.js → chunk-K5JFX5TK.js} +927 -904
- package/dist/bundle/{chunk-WXTYYWZI.js → chunk-K7EMVFJ7.js} +115 -113
- package/dist/bundle/{chunk-7GLJSJ7M.js → chunk-KHBZ4OEP.js} +1 -1
- package/dist/bundle/{chunk-PJWSGXOB.js → chunk-KK2IVZUQ.js} +7 -7
- package/dist/bundle/{chunk-YVVJ6Y5C.js → chunk-KQD4ZVNC.js} +7 -7
- package/dist/bundle/{chunk-TF2WKPNW.js → chunk-KSNJK4QM.js} +15 -15
- package/dist/bundle/{chunk-KPIQXFNB.js → chunk-KUL7S5Y3.js} +16 -15
- package/dist/bundle/{chunk-JZ4XNNL7.js → chunk-L6YSKCC3.js} +1 -1
- package/dist/bundle/chunk-LQYMN36C.js +73 -0
- package/dist/bundle/{chunk-5MGICK47.js → chunk-LSVQCI6V.js} +26 -26
- package/dist/bundle/{chunk-CW46FWKW.js → chunk-LVDTSCIN.js} +14 -12
- package/dist/bundle/{chunk-RX5CJ55S.js → chunk-M4OP5ASJ.js} +1 -1
- package/dist/bundle/{chunk-FSCPQQS5.js → chunk-MAE5UGRQ.js} +150 -93
- package/dist/bundle/{chunk-4YIGXTBP.js → chunk-MG2CCAVG.js} +3 -3
- package/dist/bundle/{chunk-N4QNYWWG.js → chunk-MOKEB656.js} +2 -2
- package/dist/bundle/{chunk-RN5SU2RN.js → chunk-N3SOTKXC.js} +6 -6
- package/dist/bundle/{chunk-7SUWPMZG.js → chunk-NBA2V6LB.js} +8 -8
- package/dist/bundle/{chunk-LLUNHAZ7.js → chunk-OFA22L4G.js} +4 -4
- package/dist/bundle/{chunk-RJTGENHZ.js → chunk-OKOJEBHK.js} +4 -7
- package/dist/bundle/{chunk-LA6QUVGQ.js → chunk-OMLVWOEF.js} +6 -2
- package/dist/bundle/{chunk-5X4IY5JH.js → chunk-OU5OXA6Q.js} +531 -416
- package/dist/bundle/{chunk-DEPXZJ2V.js → chunk-P4FU6R3Z.js} +17 -13
- package/dist/bundle/{chunk-5AELTC52.js → chunk-PACLT6IW.js} +102 -99
- package/dist/bundle/{chunk-EFF2XBHP.js → chunk-PGPHEC2X.js} +2 -2
- package/dist/bundle/{chunk-NMZQTYKJ.js → chunk-PJ3FKBXG.js} +1 -1
- package/dist/bundle/{chunk-7IFO43Q5.js → chunk-PKON63JH.js} +2 -2
- package/dist/bundle/{chunk-23J2ANZ7.js → chunk-Q43KX56Z.js} +2 -2
- package/dist/bundle/{chunk-VIV64MQM.js → chunk-QS6DWXDB.js} +26 -17
- package/dist/bundle/{chunk-IXO4SCKE.js → chunk-QVJMFZFW.js} +1 -1
- package/dist/bundle/{chunk-U32VL3MA.js → chunk-QWGEOQHA.js} +3 -2
- package/dist/bundle/{chunk-QQUY4MZY.js → chunk-R5FTCNLJ.js} +1 -1
- package/dist/bundle/{chunk-IFBIXU6C.js → chunk-SO52EJ2W.js} +2 -2
- package/dist/bundle/{chunk-JFPUYQSP.js → chunk-SYIOT45G.js} +5 -5
- package/dist/bundle/{chunk-ADKMBXY4.js → chunk-TI2OANJZ.js} +1 -1
- package/dist/bundle/{chunk-IACWKZWS.js → chunk-UIKVP23D.js} +1 -1
- package/dist/bundle/{chunk-JAEPK457.js → chunk-USIMMGWS.js} +23 -23
- package/dist/bundle/{chunk-WZGKHTA4.js → chunk-UYBLNGZ2.js} +8 -2
- package/dist/bundle/{chunk-4SY67IUA.js → chunk-V5Q2QKYM.js} +26 -33
- package/dist/bundle/{chunk-WLVG4RBZ.js → chunk-VJVYGTPM.js} +15 -2
- package/dist/bundle/{chunk-IU4DUUB3.js → chunk-VPPNYUQM.js} +8 -8
- package/dist/bundle/{chunk-D5EUMWD5.js → chunk-X2FILY5F.js} +3 -3
- package/dist/bundle/{chunk-LTWJM3ED.js → chunk-XLY7V2LB.js} +17 -17
- package/dist/bundle/chunk-XWBPP2HX.js +2 -0
- package/dist/bundle/{chunk-ZVFYGTGJ.js → chunk-Y3IH7EZC.js} +17 -17
- package/dist/bundle/{chunk-7JYMGXLI.js → chunk-Z5XCU4S7.js} +45 -41
- package/dist/bundle/{chunk-I7CUMZD6.js → chunk-ZAIE3G5I.js} +3 -3
- package/dist/bundle/{chunk-ERJYJ36F.js → chunk-ZMHZ6CQS.js} +2 -2
- package/dist/bundle/{chunk-T27IMG6X.js → chunk-ZVQDOKDY.js} +1 -1
- package/dist/bundle/{chunk-DOCVEKP2.js → chunk-ZX4QWTMQ.js} +36 -32
- package/dist/bundle/{cli-IYYI7GAM.js → cli-4ZYJ6OZE.js} +109 -101
- package/dist/bundle/command-contract-FJDDCHYP.js +43 -0
- package/dist/bundle/{command-server-entry-FXX4LJWF.js → command-server-entry-CASONRIJ.js} +35 -33
- package/dist/bundle/config-4DZHX2WX.js +99 -0
- package/dist/bundle/{decode-SRGOOGBW.js → decode-KEFCVGEB.js} +6 -6
- package/dist/bundle/{dispatch-OUHRPFUL.js → dispatch-EU67WGME.js} +9 -9
- package/dist/bundle/{dist-UZLNLAIO.js → dist-GCQ7KCKN.js} +26 -22
- package/dist/bundle/{echarts-7CM2MCMW.js → echarts-SDZA2SWG.js} +2 -2
- package/dist/bundle/{embed-VEE56BOB.js → embed-43VJEPM6.js} +7 -7
- package/dist/bundle/{embedder-SZFYR543.js → embedder-Q4ZHAGRP.js} +10 -10
- package/dist/bundle/{failure-MZBNM7M5.js → failure-CTJLEB2R.js} +3 -3
- package/dist/bundle/first-run-CPOLQVNA.js +29 -0
- package/dist/bundle/first-screen-XYESRGWW.js +41 -0
- package/dist/bundle/folders-MSBTAPAG.js +24 -0
- package/dist/bundle/{instructions-R7OHVAWH.js → instructions-7T6JJIFS.js} +1 -1
- package/dist/bundle/{main-EFUN2O3K.js → main-NA3QVPXS.js} +39 -26
- package/dist/bundle/{mcp-7KQUJNFN.js → mcp-TDKGDB4V.js} +2 -2
- package/dist/bundle/{meetings-5I2BDNTA.js → meetings-7CVIQJTA.js} +9 -7
- package/dist/bundle/{node-3N2JGZ7V.js → node-BZDMUFTW.js} +2 -2
- package/dist/bundle/{node-P4E63KXA.js → node-KM3CUABH.js} +9 -9
- package/dist/bundle/{node-sqlite-2UVEE2WM.js → node-sqlite-QHGB23B4.js} +10 -10
- package/dist/bundle/{oauth-AYGD7UU3.js → oauth-BMEMCM2I.js} +8 -8
- package/dist/bundle/{open-3GUVDLGD.js → open-JGU2NRJP.js} +6 -6
- package/dist/bundle/openai-VTXXFNCS.js +28 -0
- package/dist/bundle/{output-file-72JFXVHQ.js → output-file-VDOCYH2G.js} +6 -6
- package/dist/bundle/{process-YAHHUFR5.js → process-756VBE7E.js} +1 -1
- package/dist/bundle/{program-OSZROCTK.js → program-XM6CDIJ2.js} +138 -139
- package/dist/bundle/{prompt-HMCW4XQJ.js → prompt-2IPFXJ4B.js} +6 -6
- package/dist/bundle/{recognize-VF5CA7EM.js → recognize-672E2RIB.js} +5 -5
- package/dist/bundle/{remote-5C6VTPR2.js → remote-YLHRVPDS.js} +11 -10
- package/dist/bundle/{rerank-ER7NEDOI.js → rerank-NBXQG3OS.js} +8 -8
- package/dist/bundle/run-log-3WITBT2F.js +126 -0
- package/dist/bundle/{serve-QJWXJOM7.js → serve-FNLOUMYP.js} +10 -10
- package/dist/bundle/{server-KCIK3Y2P.js → server-7ZB5AK5H.js} +54 -50
- package/dist/bundle/server-GGRGD4SH.js +77 -0
- package/dist/bundle/{services-LQMYJQG3.js → services-Z4UWN64R.js} +46 -44
- package/dist/bundle/{speech-74GJQNQH.js → speech-XSYVCKR3.js} +20 -20
- package/dist/bundle/sqlite-runtime-GAPXJNWU.js +20 -0
- package/dist/bundle/{state-4XDGCHDF.js → state-QSA53EF5.js} +7 -7
- package/dist/bundle/{store-5Y5HK2L2.js → store-EKI4OAJH.js} +20 -20
- package/dist/bundle/{store-Y56AHJ2Y.js → store-NOF5EYUC.js} +30 -28
- package/dist/bundle/store-connection-2OZQGEIO.js +92 -0
- package/dist/bundle/store-maintenance-command-GNX3SOZ6.js +67 -0
- package/dist/bundle/{streaming-E5CR6HSR.js → streaming-PQEXKTE5.js} +7 -7
- package/dist/bundle/tokens-WJQYQ3FK.js +24 -0
- package/dist/bundle/zm.js +9 -9
- package/dist/bundle/{zoom-app-NVL7HEAX.js → zoom-app-Y7RMWLVU.js} +9 -8
- package/dist/folders.d.ts +12 -2
- package/dist/folders.d.ts.map +1 -1
- package/dist/folders.js +81 -3
- package/dist/folders.js.map +1 -1
- package/dist/identity.d.ts +5 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +14 -0
- package/dist/identity.js.map +1 -1
- package/dist/recording-schedule-setup.d.ts.map +1 -1
- package/dist/recording-schedule-setup.js +4 -7
- package/dist/recording-schedule-setup.js.map +1 -1
- package/dist/remote-http.d.ts +1 -1
- package/dist/remote-http.d.ts.map +1 -1
- package/dist/remote-http.js +21 -23
- package/dist/remote-http.js.map +1 -1
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +2 -4
- package/dist/setup-commands.js.map +1 -1
- package/dist/tokens.d.ts +17 -2
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +109 -29
- package/dist/tokens.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wcat.d.ts +3 -0
- package/dist/wcat.d.ts.map +1 -0
- package/dist/wcat.js +4 -0
- package/dist/wcat.js.map +1 -0
- package/package.json +15 -14
- package/dist/bundle/answer-policy-AT6CDEE5.js +0 -110
- package/dist/bundle/chunk-EG25AY4L.js +0 -17
- package/dist/bundle/chunk-K6HR6HCO.js +0 -32
- package/dist/bundle/command-contract-TX7NSUBM.js +0 -42
- package/dist/bundle/config-YKNM33J7.js +0 -96
- package/dist/bundle/first-run-KWC7RKF2.js +0 -29
- package/dist/bundle/first-screen-DWKMNSEI.js +0 -40
- package/dist/bundle/folders-UQXRSDJJ.js +0 -16
- package/dist/bundle/openai-NHCDLWWY.js +0 -28
- package/dist/bundle/run-log-JKTLKXSK.js +0 -124
- package/dist/bundle/server-LLGFDLLJ.js +0 -75
- package/dist/bundle/store-connection-4WI32AYU.js +0 -89
- package/dist/bundle/store-maintenance-command-PCXO5AH4.js +0 -65
- package/dist/bundle/tokens-E2QNVC4F.js +0 -20
- /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-
|
|
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.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
11
15
|
import { randomUUID } from "node:crypto";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
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.
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
20
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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 ?
|
|
60
|
-
const flags = process.platform === "win32" ? access : access | (
|
|
61
|
-
const file = await
|
|
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
|
|
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
|
|
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.
|
|
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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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.
|
|
137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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
|
|
141
|
+
const root = await realpath(destination);
|
|
207
142
|
options.signal?.throwIfAborted();
|
|
208
|
-
const folder =
|
|
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(
|
|
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
|
|
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 =
|
|
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
|
|
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.
|
|
262
|
-
import { rmdir, unlink as
|
|
196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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
|
|
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.
|
|
221
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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
|
|
232
|
+
const root = await realpath2(destination);
|
|
298
233
|
signal?.throwIfAborted();
|
|
299
|
-
const folder =
|
|
300
|
-
const owner = { version: 1, pid: process.pid, host: hostname2(), nonce:
|
|
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 =
|
|
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
|
|
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(
|
|
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
|
|
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.
|
|
292
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
358
293
|
var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
359
|
-
const folder =
|
|
294
|
+
const folder = dirname(path);
|
|
360
295
|
await mkdir2(folder, { recursive: true, mode: 448 });
|
|
361
|
-
const acquired = await nativeWriterLeaseStore({ markerDirectory:
|
|
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", `${
|
|
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.
|
|
307
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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(/^\.+/, "");
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/normalize.js
|
|
8
8
|
var NORMALIZER_VERSION = 1;
|
|
9
9
|
var fold = /* @__PURE__ */ __name((text) => text.normalize("NFKD").replace(new RegExp("\\p{M}+", "gu"), "").normalize("NFC").toLowerCase(), "fold");
|
|
10
10
|
var normalize = /* @__PURE__ */ __name((text) => fold(text).replace(new RegExp("\\p{Cc}", "gu"), " ").replace(/\s+/gu, " ").trim(), "normalize");
|
|
@@ -2,29 +2,29 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
isCommandServer
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2VYEGKQ3.js";
|
|
6
6
|
import {
|
|
7
7
|
stdinFieldOf
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PJ3FKBXG.js";
|
|
9
9
|
import {
|
|
10
10
|
commandPathOf
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-G2TSDMTA.js";
|
|
12
12
|
import {
|
|
13
13
|
commandServerRequest,
|
|
14
14
|
metaOf
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FJMRDRPN.js";
|
|
16
16
|
import {
|
|
17
17
|
errorObjectOf,
|
|
18
18
|
renderError
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4RJL32PF.js";
|
|
20
20
|
import {
|
|
21
21
|
CliError
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-EA2OB75T.js";
|
|
23
23
|
import {
|
|
24
24
|
__name
|
|
25
25
|
} from "./chunk-ZVVMGPBJ.js";
|
|
26
26
|
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/command-server.js
|
|
28
28
|
import { createInterface } from "node:readline";
|
|
29
29
|
var COMMAND_SERVER_PROTOCOL = 1;
|
|
30
30
|
var COMMAND_SERVER_IDLE_MS = 10 * 6e4;
|
|
@@ -5,21 +5,21 @@ import {
|
|
|
5
5
|
fieldsOf,
|
|
6
6
|
processStreams,
|
|
7
7
|
projectFields
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HNWDEDMU.js";
|
|
9
9
|
import {
|
|
10
10
|
COMPACT_FLAG
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4RJL32PF.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EA2OB75T.js";
|
|
15
15
|
import {
|
|
16
16
|
singleLine
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-HCZYJMBP.js";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-ZVVMGPBJ.js";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
23
23
|
var named = /* @__PURE__ */ __name((work) => {
|
|
24
24
|
try {
|
|
25
25
|
return work();
|
|
@@ -46,7 +46,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
46
46
|
return projectFields(value, fields);
|
|
47
47
|
}), "projectFields");
|
|
48
48
|
|
|
49
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
50
50
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
51
51
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
52
52
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -82,7 +82,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
82
82
|
return value;
|
|
83
83
|
}, "atDetail");
|
|
84
84
|
|
|
85
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
85
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/output.js
|
|
86
86
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
87
87
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
88
88
|
if (other)
|
|
@@ -6,16 +6,13 @@ import {
|
|
|
6
6
|
meetingResultItem,
|
|
7
7
|
runsCommand,
|
|
8
8
|
suggest
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6AO2RSYH.js";
|
|
10
10
|
import {
|
|
11
11
|
checkedClientId
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GCZMYDKU.js";
|
|
13
13
|
import {
|
|
14
14
|
sharedStoreCommand
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import {
|
|
17
|
-
ZM
|
|
18
|
-
} from "./chunk-WLVG4RBZ.js";
|
|
15
|
+
} from "./chunk-PACLT6IW.js";
|
|
19
16
|
import {
|
|
20
17
|
NO_EFFECTS,
|
|
21
18
|
REMOTE_READ,
|
|
@@ -40,34 +37,37 @@ import {
|
|
|
40
37
|
snakeKeys,
|
|
41
38
|
usableProfileName,
|
|
42
39
|
withSettingDefaults
|
|
43
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-FJMRDRPN.js";
|
|
44
41
|
import {
|
|
45
42
|
setupPermissionCeiling
|
|
46
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-6NI4FE5G.js";
|
|
47
44
|
import {
|
|
48
45
|
readOnlyLockOf,
|
|
49
46
|
readOnlyRefusal
|
|
50
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-MOKEB656.js";
|
|
51
48
|
import {
|
|
52
49
|
CEILING_KEY,
|
|
53
50
|
DEFAULT_PERMISSIONS,
|
|
54
51
|
LEVELS,
|
|
55
52
|
keyForCommand,
|
|
56
53
|
levelFor
|
|
57
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-OMLVWOEF.js";
|
|
58
55
|
import {
|
|
59
56
|
KEEP_RUNS_FOR_DAYS,
|
|
60
57
|
KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
|
|
61
58
|
RUNS_SIZE_LIMIT_MB
|
|
62
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-LSVQCI6V.js";
|
|
60
|
+
import {
|
|
61
|
+
ZM
|
|
62
|
+
} from "./chunk-VJVYGTPM.js";
|
|
63
63
|
import {
|
|
64
64
|
MEETING_RESULT_ENTITIES
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-IKNOTHG2.js";
|
|
66
66
|
import {
|
|
67
67
|
createRenderer,
|
|
68
68
|
projectFields,
|
|
69
69
|
saveConfigFile
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-HNWDEDMU.js";
|
|
71
71
|
import {
|
|
72
72
|
array,
|
|
73
73
|
boolean,
|
|
@@ -92,10 +92,10 @@ import {
|
|
|
92
92
|
strictObject,
|
|
93
93
|
string,
|
|
94
94
|
union
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-4RJL32PF.js";
|
|
96
96
|
import {
|
|
97
97
|
CliError
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-EA2OB75T.js";
|
|
99
99
|
import {
|
|
100
100
|
__name
|
|
101
101
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -2,31 +2,31 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
validateFormattedText
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ETQNHS3A.js";
|
|
6
6
|
import {
|
|
7
7
|
inputPolicy
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PGPHEC2X.js";
|
|
9
9
|
import {
|
|
10
10
|
RECORDS_SCHEMA_VERSION,
|
|
11
11
|
RECORD_TYPES,
|
|
12
12
|
pointerOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-K5JFX5TK.js";
|
|
14
14
|
import {
|
|
15
15
|
indent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HNWDEDMU.js";
|
|
17
17
|
import {
|
|
18
18
|
CliError
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-EA2OB75T.js";
|
|
20
20
|
import {
|
|
21
21
|
__name
|
|
22
22
|
} from "./chunk-ZVVMGPBJ.js";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/checks.js
|
|
25
25
|
var spelled = /* @__PURE__ */ __name((check, args) => `${check.replaceAll(".", " ")}${args === void 0 ? "" : ` ${args}`}`, "spelled");
|
|
26
26
|
var bareCheck = /* @__PURE__ */ __name((check, args) => `\`${spelled(check, args)}\``, "bareCheck");
|
|
27
27
|
var checkWords = /* @__PURE__ */ __name((command, profile) => (check, args) => `\`${command} ${profile === void 0 ? "" : `${profile} `}${spelled(check, args)}\``, "checkWords");
|
|
28
28
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/markdown.js
|
|
30
30
|
var MARKERS = [
|
|
31
31
|
["**", "bold"],
|
|
32
32
|
["~~", "strike"],
|
|
@@ -72,7 +72,7 @@ var closing = /* @__PURE__ */ __name((input, open, marker) => {
|
|
|
72
72
|
return end;
|
|
73
73
|
}, "closing");
|
|
74
74
|
|
|
75
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
75
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/markdown-spans.js
|
|
76
76
|
var STYLES = [
|
|
77
77
|
["**", "bold"],
|
|
78
78
|
["__", "underline"],
|
|
@@ -232,7 +232,7 @@ var parseMarkdownSpans = /* @__PURE__ */ __name((input) => {
|
|
|
232
232
|
return validateFormattedText(result);
|
|
233
233
|
}, "parseMarkdownSpans");
|
|
234
234
|
|
|
235
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
235
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/polls.js
|
|
236
236
|
var countedPoll = /* @__PURE__ */ __name((poll, votes, self) => {
|
|
237
237
|
const cast = votes.filter((vote) => vote.answers.length > 0);
|
|
238
238
|
const mine = self === null ? void 0 : votes.find((vote) => vote.person.id === self);
|
|
@@ -247,8 +247,8 @@ var countedPoll = /* @__PURE__ */ __name((poll, votes, self) => {
|
|
|
247
247
|
};
|
|
248
248
|
}, "countedPoll");
|
|
249
249
|
|
|
250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
251
|
-
var TABLE_RECORD_TYPES = Object.keys(RECORD_TYPES).filter((type) =>
|
|
250
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/records-table.js
|
|
251
|
+
var TABLE_RECORD_TYPES = Object.keys(RECORD_TYPES).filter((type) => RECORD_TYPES[type].sheet !== false);
|
|
252
252
|
var TableError = class extends Error {
|
|
253
253
|
static {
|
|
254
254
|
__name(this, "TableError");
|
|
@@ -310,7 +310,7 @@ var roleColumn = /* @__PURE__ */ __name((name, role) => ({
|
|
|
310
310
|
}), "roleColumn");
|
|
311
311
|
var recordColumns = /* @__PURE__ */ __name((type) => {
|
|
312
312
|
const spec = specOf(type);
|
|
313
|
-
if (!spec || spec.
|
|
313
|
+
if (!spec || spec.sheet === false)
|
|
314
314
|
return [];
|
|
315
315
|
const fields = spec.fields.properties ?? {};
|
|
316
316
|
const required = spec.fields.required ?? [];
|
|
@@ -374,7 +374,8 @@ var recordTemplate = /* @__PURE__ */ __name((type, format, { source, separator =
|
|
|
374
374
|
const envelope = {
|
|
375
375
|
schema_version: RECORDS_SCHEMA_VERSION,
|
|
376
376
|
source: {
|
|
377
|
-
provider:
|
|
377
|
+
// An import-only type is refused under a sheet's provider: `import` is the one any folder or export may use.
|
|
378
|
+
provider: source?.provider ?? (specOf(type)?.importOnly ? "import" : "sheet"),
|
|
378
379
|
account: source?.account ?? "main",
|
|
379
380
|
batch_id: source?.batch_id ?? "first-import"
|
|
380
381
|
},
|
|
@@ -2236,7 +2237,7 @@ var createDataURL = /* @__PURE__ */ __name(function(width, height, getPixel) {
|
|
|
2236
2237
|
var qrcode_default = qrcode;
|
|
2237
2238
|
var stringToBytes = qrcode.stringToBytes;
|
|
2238
2239
|
|
|
2239
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2240
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/terminal/qr.js
|
|
2240
2241
|
var QUIET_ZONE = 4;
|
|
2241
2242
|
var BLACK_ON_WHITE = "\x1B[30;107m";
|
|
2242
2243
|
var RESET = "\x1B[0m";
|
|
@@ -2283,7 +2284,7 @@ var plainQr = /* @__PURE__ */ __name((link) => {
|
|
|
2283
2284
|
return lines.join("\n");
|
|
2284
2285
|
}, "plainQr");
|
|
2285
2286
|
|
|
2286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/terminal/login-qr.js
|
|
2287
2288
|
var MARGIN = 2;
|
|
2288
2289
|
var atTerminal = /* @__PURE__ */ __name((input) => input.isTTY === true && !inputPolicy(input).noInput, "atTerminal");
|
|
2289
2290
|
var PASTE_QR = "agents: paste the QR code above into the chat as a code block, exactly as printed; when a new one is printed, paste it and say the old one expired";
|