@wirecat/zoom-cli 0.79.0 → 0.80.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/README.md +5 -4
- package/dist/answer-output.d.ts +1 -1
- package/dist/answer-output.js +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-LDSHUH5W.js → all-profiles-5GOKWOT4.js} +6 -6
- package/dist/bundle/answer-policy-7PYXHK2I.js +122 -0
- package/dist/bundle/{anthropic-UH3QWA3F.js → anthropic-NHXMOFYS.js} +2 -2
- package/dist/bundle/{app-server-LFANTLAJ.js → app-server-HFW5Z5PI.js} +58 -58
- package/dist/bundle/{bun-M3J2QTR3.js → bun-M5IGY2TG.js} +2 -2
- package/dist/bundle/{bun-sqlite-NYP5UH23.js → bun-sqlite-MTP5JJQ2.js} +3 -3
- package/dist/bundle/{chunk-OLMEJNL4.js → chunk-2P6MQH4V.js} +5 -5
- package/dist/bundle/{chunk-4BQN5IFQ.js → chunk-2XZ2YKW4.js} +3 -3
- package/dist/bundle/{chunk-PP6SZLCY.js → chunk-3AOESMW6.js} +27 -17
- package/dist/bundle/{chunk-3AFZ6Q5N.js → chunk-3BTRJYIT.js} +9 -9
- package/dist/bundle/{chunk-W7HM2VGO.js → chunk-3UONR5HW.js} +1 -1
- package/dist/bundle/{chunk-2N57GL4L.js → chunk-3Z7CFQTI.js} +1 -1
- package/dist/bundle/{chunk-X2M6NIQG.js → chunk-475P3LWG.js} +1 -1
- package/dist/bundle/{chunk-2PUMYKGV.js → chunk-4F7Q5CET.js} +15 -15
- package/dist/bundle/{chunk-HZRQLAHO.js → chunk-4OAR7BGU.js} +1 -1
- package/dist/bundle/{chunk-FO5UNFFN.js → chunk-5CJ6AAUI.js} +2 -2
- package/dist/bundle/{chunk-65DOVVHQ.js → chunk-5K54M6RD.js} +1 -1
- package/dist/bundle/{chunk-E5WLE7BM.js → chunk-5QXQIZJY.js} +1 -1
- package/dist/bundle/{chunk-I6VDTYML.js → chunk-5XO2AY6D.js} +6 -6
- package/dist/bundle/{chunk-XFMVDQ6J.js → chunk-6CDMGT6Q.js} +1 -1
- package/dist/bundle/{chunk-ND7TBQKO.js → chunk-6I4C4ZFT.js} +1 -1
- package/dist/bundle/{chunk-Y4UDPQ3L.js → chunk-6LY4LBSD.js} +5 -5
- package/dist/bundle/{chunk-ZKVYV25H.js → chunk-6MDL2LZA.js} +5 -5
- package/dist/bundle/{chunk-NQMHYLZO.js → chunk-6PIXP5IH.js} +18 -18
- package/dist/bundle/{chunk-DFCHHR5M.js → chunk-6QCBTBDA.js} +1 -1
- package/dist/bundle/{chunk-SGFNQFP4.js → chunk-75JW7X2W.js} +29 -29
- package/dist/bundle/{chunk-W5HRTC6X.js → chunk-7U5X37TE.js} +5 -5
- package/dist/bundle/{chunk-WE4UFASG.js → chunk-A3TUG2DP.js} +1 -1
- package/dist/bundle/{chunk-4T3J4NCF.js → chunk-ARL2TTPZ.js} +7 -7
- package/dist/bundle/{chunk-YCW422X7.js → chunk-BIKHHFD2.js} +414 -358
- package/dist/bundle/{chunk-3QPAD6YI.js → chunk-BPSURRAD.js} +5 -5
- package/dist/bundle/{chunk-M4RXPZ6K.js → chunk-BRMV33MO.js} +2 -2
- package/dist/bundle/{chunk-2LJARGNG.js → chunk-BW5JEOBE.js} +10 -10
- package/dist/bundle/{chunk-GTUBQQU2.js → chunk-CHEHK6IW.js} +55 -55
- package/dist/bundle/{chunk-5KEOCHBZ.js → chunk-CW6CPQHI.js} +3 -3
- package/dist/bundle/{chunk-BTFPDS52.js → chunk-CWCDCNXA.js} +5 -5
- package/dist/bundle/{chunk-M5FW654Z.js → chunk-D4HKTC2T.js} +1 -1
- package/dist/bundle/{chunk-2OTETB4A.js → chunk-DYRISFHZ.js} +4 -4
- package/dist/bundle/{chunk-2IPIBDXI.js → chunk-DZ6H3YJH.js} +10 -10
- package/dist/bundle/{chunk-XDBGGOE2.js → chunk-E3JVLVVB.js} +26 -24
- package/dist/bundle/{chunk-XAOSZGTD.js → chunk-EI37UXDR.js} +1 -1
- package/dist/bundle/{chunk-YOBTKYIX.js → chunk-EMYRUJCV.js} +34 -11
- package/dist/bundle/{chunk-HOXBHGP2.js → chunk-EPIA2UUM.js} +9 -9
- package/dist/bundle/{chunk-JJGUHWLB.js → chunk-FSLR2YGR.js} +6 -6
- package/dist/bundle/{chunk-7DTWT7BN.js → chunk-G5VH4WUF.js} +1 -1
- package/dist/bundle/{chunk-AWLZZTPW.js → chunk-GCPO7T2X.js} +2 -2
- package/dist/bundle/{chunk-W656MRJD.js → chunk-GCUOZ2OA.js} +4 -4
- package/dist/bundle/{chunk-2W6QGFHF.js → chunk-GGKEQQME.js} +5 -5
- package/dist/bundle/{chunk-BOVYOUB3.js → chunk-GRYXOSN6.js} +7 -7
- package/dist/bundle/{chunk-XOYMIEAZ.js → chunk-GVKZZT7E.js} +2 -2
- package/dist/bundle/{chunk-UQKVZFIX.js → chunk-HGSBLY6M.js} +11 -11
- package/dist/bundle/{chunk-Y64L7A7E.js → chunk-HH7GR6TN.js} +2 -2
- package/dist/bundle/{chunk-XEIL6VNA.js → chunk-IQWBGMCR.js} +3 -3
- package/dist/bundle/{chunk-TUECY6LV.js → chunk-JGSVWLL2.js} +1 -1
- package/dist/bundle/{chunk-P4WHDL2F.js → chunk-JJX4HKDV.js} +3 -3
- package/dist/bundle/{chunk-QRKSASGP.js → chunk-JXSEH64A.js} +2 -2
- package/dist/bundle/{chunk-LCCVEX4R.js → chunk-K672XJ2P.js} +10 -10
- package/dist/bundle/{chunk-I75KOOUD.js → chunk-L2TURFT6.js} +1 -1
- package/dist/bundle/{chunk-N5O3XVX3.js → chunk-L6FM5RQY.js} +2 -2
- package/dist/bundle/{chunk-RUE3WP7K.js → chunk-M4LAF627.js} +43 -21
- package/dist/bundle/{chunk-J62BQBVG.js → chunk-MH4L5LL6.js} +2 -2
- package/dist/bundle/{chunk-NKFEEY5M.js → chunk-N5YUHN6S.js} +10 -10
- package/dist/bundle/{chunk-PJFVE7UH.js → chunk-NMETTKCV.js} +30 -15
- package/dist/bundle/{chunk-P4MZOAPC.js → chunk-NRVMK5H3.js} +537 -400
- package/dist/bundle/{chunk-2GI63IPV.js → chunk-NXFKZFTC.js} +2 -2
- package/dist/bundle/{chunk-VX6ZSKXM.js → chunk-O4ZBFATF.js} +10 -10
- package/dist/bundle/{chunk-63WT3HCY.js → chunk-OXPHJEJ2.js} +1 -1
- package/dist/bundle/{chunk-RMQ7EALU.js → chunk-P2JTVRGU.js} +16 -16
- package/dist/bundle/{chunk-NI7UYGTF.js → chunk-PKW3TPNP.js} +11 -11
- package/dist/bundle/{chunk-525BI32C.js → chunk-PMO2Z6DQ.js} +2 -2
- package/dist/bundle/{chunk-U7QXC75C.js → chunk-Q5LUGY2V.js} +5 -5
- package/dist/bundle/{chunk-QX3PO5UE.js → chunk-Q6MISDKJ.js} +2 -2
- package/dist/bundle/{chunk-4S7RUA3U.js → chunk-RFXJLG5V.js} +7420 -7177
- package/dist/bundle/{chunk-TP7GDWVF.js → chunk-RT7C3SSJ.js} +1 -1
- package/dist/bundle/{chunk-DQVCCO7G.js → chunk-SUG6YGAF.js} +168 -154
- package/dist/bundle/{chunk-HVQVCGME.js → chunk-TDBVM2SS.js} +1 -1
- package/dist/bundle/{chunk-RJ5JAYNZ.js → chunk-TMYZKDQ7.js} +61 -61
- package/dist/bundle/{chunk-73L5R7AS.js → chunk-TNL3YQ33.js} +1 -1
- package/dist/bundle/{chunk-IIFRJV3A.js → chunk-U5N2PKKM.js} +2 -2
- package/dist/bundle/{chunk-AZB6QXZU.js → chunk-UX4JZMA4.js} +24 -2
- package/dist/bundle/{chunk-W53EJOFQ.js → chunk-VN7TKMOW.js} +1 -1
- package/dist/bundle/{chunk-FMT4CIGN.js → chunk-W2QDYMAM.js} +5 -5
- package/dist/bundle/{chunk-LITZ7KPO.js → chunk-W32HK7KG.js} +2 -2
- package/dist/bundle/{chunk-FKA7DOCK.js → chunk-W3GZ7JUO.js} +1 -1
- package/dist/bundle/{chunk-52ZQ72HL.js → chunk-W7M4JYEE.js} +1 -1
- package/dist/bundle/{chunk-DI5JX4SD.js → chunk-XKLU5KV2.js} +1 -1
- package/dist/bundle/{chunk-TLO62ROR.js → chunk-XL4ND7CZ.js} +23 -23
- package/dist/bundle/{chunk-D264RGZ4.js → chunk-XTCAWNBP.js} +4 -4
- package/dist/bundle/{chunk-OZQSTX4J.js → chunk-YAA2D6RP.js} +3 -3
- package/dist/bundle/{chunk-T6LA664Z.js → chunk-YR5TRWT2.js} +15 -15
- package/dist/bundle/{cli-AVQU63FT.js → cli-QNBYDOKV.js} +69 -67
- package/dist/bundle/command-contract-CT6MV6YG.js +45 -0
- package/dist/bundle/{command-server-entry-JZP7Y73G.js → command-server-entry-WMA4SWJ5.js} +28 -28
- package/dist/bundle/config-ZFQFDEVL.js +109 -0
- package/dist/bundle/{decode-JLAYH7GC.js → decode-7PXUXNIP.js} +2 -2
- package/dist/bundle/{dist-TBLTUL5M.js → dist-TSBH4FOU.js} +15 -15
- package/dist/bundle/{echarts-FVTUDXDU.js → echarts-WIDIUEO6.js} +2 -2
- package/dist/bundle/{embed-CJRENDF7.js → embed-EIRVQF5E.js} +3 -3
- package/dist/bundle/{embedder-RPE67QJD.js → embedder-MXPM6OXK.js} +6 -6
- package/dist/bundle/{first-run-QEASX5J5.js → first-run-K6EHRAIM.js} +6 -6
- package/dist/bundle/first-screen-C6AF4KT4.js +45 -0
- package/dist/bundle/{instructions-HET7BCYK.js → instructions-D5LNE6NJ.js} +1 -1
- package/dist/bundle/{main-QRJ6NRCD.js → main-OHW5Z56X.js} +15 -15
- package/dist/bundle/{meeting-combined-AZXCDXCV.js → meeting-combined-3OKFXZNA.js} +11 -11
- package/dist/bundle/{meeting-model-7HNQ4I3J.js → meeting-model-4XNF725D.js} +8 -8
- package/dist/bundle/{meeting-semantic-4MURLQCA.js → meeting-semantic-FYOVY4S2.js} +2 -2
- package/dist/bundle/{meetings-QFZWKHI4.js → meetings-WI4SXPBJ.js} +1 -1
- package/dist/bundle/{node-CXZIFHZC.js → node-UEWUFR7N.js} +2 -2
- package/dist/bundle/{node-sqlite-CZPYFROO.js → node-sqlite-FJWKJHYU.js} +4 -4
- package/dist/bundle/{oauth-T45MPIZF.js → oauth-KOONTGLW.js} +4 -4
- package/dist/bundle/{open-3AONZFET.js → open-EFYTWUGC.js} +2 -2
- package/dist/bundle/{openai-LHWUXEBO.js → openai-6Y2JRDNY.js} +10 -10
- package/dist/bundle/{process-5RUXWGYS.js → process-U5PLNIDC.js} +1 -1
- package/dist/bundle/{program-2O4YSRWY.js → program-3JICCSA6.js} +81 -80
- package/dist/bundle/{prompt-NDLUFCJV.js → prompt-YPDMSOKC.js} +2 -2
- package/dist/bundle/{recognize-CZOIAJQX.js → recognize-Z2SSWUKH.js} +1 -1
- package/dist/bundle/{remote-O3CE4Q3B.js → remote-R5HMDHOG.js} +6 -6
- package/dist/bundle/{rerank-MZOL746K.js → rerank-6NGBEMQ2.js} +4 -4
- package/dist/bundle/{run-log-GX6LNMWY.js → run-log-LG3TI3WI.js} +67 -67
- package/dist/bundle/{serve-43IBHMFM.js → serve-CU3RMWU7.js} +6 -6
- package/dist/bundle/{server-6LTMPPTO.js → server-SOQSVX2Q.js} +50 -50
- package/dist/bundle/server-X7JYRMKX.js +85 -0
- package/dist/bundle/{services-UIRD5PHE.js → services-LROZ3RDT.js} +42 -42
- package/dist/bundle/{speech-6QVKIJVR.js → speech-AS77HFIF.js} +19 -19
- package/dist/bundle/{sqlite-runtime-PKCIBVHZ.js → sqlite-runtime-U25NS6BK.js} +3 -3
- package/dist/bundle/{state-AC55V3IE.js → state-CPEVKK66.js} +3 -3
- package/dist/bundle/{store-OAGA2ZK3.js → store-6CHRMJM7.js} +20 -18
- package/dist/bundle/{store-QOCYJNKX.js → store-QKHCZOYR.js} +20 -20
- package/dist/bundle/store-connection-FCDVOPWB.js +102 -0
- package/dist/bundle/store-maintenance-command-6HVOAHOZ.js +77 -0
- package/dist/bundle/{tokens-LN442AO6.js → tokens-JBN2OHQB.js} +4 -4
- package/dist/bundle/zm.js +2 -2
- package/dist/bundle/{zoom-app-TOCQ7LB5.js → zoom-app-Q4IKYNG3.js} +2 -2
- package/dist/program-bindings.d.ts.map +1 -1
- package/dist/program-bindings.js +2 -2
- package/dist/program-bindings.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/answer-policy-VJK4ID2F.js +0 -122
- package/dist/bundle/command-contract-MCWBL5VS.js +0 -45
- package/dist/bundle/config-G3C54VH6.js +0 -109
- package/dist/bundle/first-screen-NGCQD3CU.js +0 -45
- package/dist/bundle/server-3E2PJGYK.js +0 -85
- package/dist/bundle/store-connection-PBZMFY56.js +0 -102
- package/dist/bundle/store-maintenance-command-VBCHEOGI.js +0 -77
|
@@ -7,24 +7,24 @@ 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.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
11
11
|
import { mkdir as mkdir2 } from "node:fs/promises";
|
|
12
12
|
import { basename, dirname } from "node:path";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
15
15
|
import { randomUUID } from "node:crypto";
|
|
16
16
|
import { lstat as lstat3, mkdir, open as open2, realpath as realpath2, rmdir as rmdir2, unlink as unlink3 } from "node:fs/promises";
|
|
17
17
|
import { hostname as hostname2 } from "node:os";
|
|
18
18
|
import { join as join2 } from "node:path";
|
|
19
19
|
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
21
21
|
import { lstat as lstat2, readdir, realpath, unlink } from "node:fs/promises";
|
|
22
22
|
import { join } from "node:path";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
|
|
25
25
|
import { hostname } from "node:os";
|
|
26
26
|
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
|
|
28
28
|
import { constants } from "node:fs";
|
|
29
29
|
import { lstat, open } from "node:fs/promises";
|
|
30
30
|
var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
|
|
@@ -90,7 +90,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
|
|
|
90
90
|
}
|
|
91
91
|
}, "syncDirectory");
|
|
92
92
|
|
|
93
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
93
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
|
|
94
94
|
var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
|
|
95
95
|
var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
|
|
96
96
|
signal?.throwIfAborted();
|
|
@@ -134,7 +134,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
|
|
|
134
134
|
}
|
|
135
135
|
}, "leaseOwnerStatus");
|
|
136
136
|
|
|
137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
138
138
|
var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
139
139
|
const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
|
|
140
140
|
options.signal?.throwIfAborted();
|
|
@@ -193,7 +193,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
|
193
193
|
return { inspect, recover };
|
|
194
194
|
}, "leaseInspection");
|
|
195
195
|
|
|
196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
|
|
197
197
|
import { rmdir, unlink as unlink2 } from "node:fs/promises";
|
|
198
198
|
var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
|
|
199
199
|
let releasing;
|
|
@@ -218,7 +218,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
|
|
|
218
218
|
};
|
|
219
219
|
}, "ownedNativeLease");
|
|
220
220
|
|
|
221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
221
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
222
222
|
var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
|
|
223
223
|
var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
224
224
|
const { markerDirectory, legacyMarker } = layout;
|
|
@@ -289,7 +289,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
|
289
289
|
};
|
|
290
290
|
}, "nativeWriterLeaseStore");
|
|
291
291
|
|
|
292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
292
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
293
293
|
var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
294
294
|
const folder = dirname(path);
|
|
295
295
|
await mkdir2(folder, { recursive: true, mode: 448 });
|
|
@@ -304,7 +304,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
|
304
304
|
});
|
|
305
305
|
}, "acquireLock");
|
|
306
306
|
|
|
307
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
307
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
|
|
308
308
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
309
309
|
import { constants as constants2 } from "node:fs";
|
|
310
310
|
import { link, open as open3, realpath as realpath3, rename, unlink as unlink4 } from "node:fs/promises";
|
|
@@ -342,7 +342,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
|
|
|
342
342
|
}
|
|
343
343
|
}, "writeFileAtomic");
|
|
344
344
|
|
|
345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
|
|
346
346
|
var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
347
347
|
if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
|
|
348
348
|
throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
|
|
@@ -371,8 +371,23 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
|
371
371
|
}
|
|
372
372
|
}, "readBoundedUtf8File");
|
|
373
373
|
|
|
374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
375
|
-
import { basename as basename3 } from "node:path";
|
|
374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/safe-name.js
|
|
375
|
+
import { basename as basename3, extname } from "node:path";
|
|
376
|
+
var MOST_NAME_BYTES = 200;
|
|
377
|
+
var bytesOf = /* @__PURE__ */ __name((text) => Buffer.byteLength(text, "utf8"), "bytesOf");
|
|
378
|
+
var shortened = /* @__PURE__ */ __name((name, most) => {
|
|
379
|
+
if (bytesOf(name) <= most)
|
|
380
|
+
return name;
|
|
381
|
+
const extension = extname(name);
|
|
382
|
+
const kept = bytesOf(extension) <= 32 ? extension : "";
|
|
383
|
+
let stem = "";
|
|
384
|
+
for (const character of name.slice(0, name.length - kept.length)) {
|
|
385
|
+
if (bytesOf(stem + character) + bytesOf(kept) > most)
|
|
386
|
+
break;
|
|
387
|
+
stem += character;
|
|
388
|
+
}
|
|
389
|
+
return stem + kept;
|
|
390
|
+
}, "shortened");
|
|
376
391
|
var safeName = /* @__PURE__ */ __name((name, platform = process.platform) => {
|
|
377
392
|
let plain = name === void 0 ? "" : basename3(name.replaceAll("\\", "/")).replace(/[\p{Cc}---]/gu, "").replace(/^\.+/, "");
|
|
378
393
|
if (platform === "win32") {
|
|
@@ -380,7 +395,7 @@ var safeName = /* @__PURE__ */ __name((name, platform = process.platform) => {
|
|
|
380
395
|
if (/^(con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\.|$)/i.test(plain))
|
|
381
396
|
return void 0;
|
|
382
397
|
}
|
|
383
|
-
return plain === "" ? void 0 : plain;
|
|
398
|
+
return plain === "" ? void 0 : shortened(plain, MOST_NAME_BYTES);
|
|
384
399
|
}, "safeName");
|
|
385
400
|
|
|
386
401
|
export {
|