@wirecat/zoom-cli 0.82.0 → 0.83.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 +2 -2
- package/contracts/wirecat.json +54 -54
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +1 -1
- package/dist/api.js.map +1 -1
- package/dist/bin/main.js +2 -15
- package/dist/bin/main.js.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/agent-3HDWEZ5M.js +47 -0
- package/dist/bundle/{all-profiles-RULEKTDQ.js → all-profiles-RY2OMSDL.js} +8 -8
- package/dist/bundle/answer-policy-IFVXPPGW.js +131 -0
- package/dist/bundle/{anthropic-4NAQBZFL.js → anthropic-36VPSF7B.js} +3 -3
- package/dist/bundle/{app-server-VLR42U5L.js → app-server-ZVJVUGB7.js} +72 -71
- package/dist/bundle/{bun-OPDGMZZQ.js → bun-F4M4KCNA.js} +2 -2
- package/dist/bundle/{bun-sqlite-HC6X4AOX.js → bun-sqlite-IOPYIUA7.js} +4 -4
- package/dist/bundle/{chunk-MAJJ4PG3.js → chunk-26TW5RZ6.js} +31 -315
- package/dist/bundle/{chunk-XQQVMECZ.js → chunk-2DK5BBFF.js} +1 -1
- package/dist/bundle/{chunk-BP4FYANF.js → chunk-2IBKKVVZ.js} +4 -4
- package/dist/bundle/{chunk-52Y4ETKU.js → chunk-2S54TM4N.js} +3 -3
- package/dist/bundle/{chunk-DCYFT3FR.js → chunk-3AQHKXVR.js} +4 -4
- package/dist/bundle/{chunk-VS6WURLX.js → chunk-3CW2C7ZA.js} +2 -2
- package/dist/bundle/{chunk-6QYZP4E2.js → chunk-3KUEZK5Z.js} +2 -2
- package/dist/bundle/{chunk-YJXJJ2XP.js → chunk-3PXUQFHX.js} +7 -7
- package/dist/bundle/{chunk-PSKTMMCO.js → chunk-575JMTDR.js} +17 -16
- package/dist/bundle/{chunk-QPHBK63S.js → chunk-5B2LV4MS.js} +2 -1
- package/dist/bundle/{chunk-OGNO35A2.js → chunk-5WL5RHOO.js} +5 -100
- package/dist/bundle/{chunk-ASBDFXLS.js → chunk-6C7ESL5N.js} +2 -2
- package/dist/bundle/{chunk-676C2LE6.js → chunk-6E4KLYNP.js} +10 -10
- package/dist/bundle/chunk-7JDXR75Q.js +465 -0
- package/dist/bundle/{chunk-UR5DBODY.js → chunk-AK3H2C65.js} +30 -26
- package/dist/bundle/{chunk-VB7FZOYX.js → chunk-AQ5RIOUE.js} +1 -1
- package/dist/bundle/{chunk-UKAAAOPC.js → chunk-AQLUAQXJ.js} +23 -15
- package/dist/bundle/{chunk-V5EJSF2B.js → chunk-ASTLGFTR.js} +205 -170
- package/dist/bundle/{chunk-PWVJUIDQ.js → chunk-ATHBB7OU.js} +2 -2
- package/dist/bundle/{chunk-GTKPMYK7.js → chunk-B2NM65RD.js} +13 -5
- package/dist/bundle/{chunk-G6PETRMV.js → chunk-B4KHDXJE.js} +2 -2
- package/dist/bundle/{chunk-4HLQ2JGK.js → chunk-BAFC7WNI.js} +3 -3
- package/dist/bundle/{chunk-KVJ3I7UL.js → chunk-BTLZYRIW.js} +5 -5
- package/dist/bundle/{chunk-KKFY23AK.js → chunk-BZDS2X6Y.js} +61 -61
- package/dist/bundle/{chunk-VZ5PPYDG.js → chunk-C7JPYWYQ.js} +1 -1
- package/dist/bundle/{chunk-W5QHB53X.js → chunk-CDQUW25G.js} +10 -10
- package/dist/bundle/{chunk-AIKFOBDO.js → chunk-CJWGJBHW.js} +28 -8
- package/dist/bundle/{chunk-HP7A2ZOP.js → chunk-D7RCUODT.js} +7 -7
- package/dist/bundle/{chunk-LEKKTJKK.js → chunk-DQJECJUE.js} +23 -102
- package/dist/bundle/{chunk-B32KZRQM.js → chunk-E4JQ3MCW.js} +11 -11
- package/dist/bundle/{chunk-HZENBDW2.js → chunk-E4ODYLEK.js} +6 -6
- package/dist/bundle/{chunk-RQOZBTNI.js → chunk-EE45N67Q.js} +3 -3
- package/dist/bundle/{chunk-VB72LTSZ.js → chunk-EEEU4MKK.js} +11 -11
- package/dist/bundle/{chunk-EGTCQKHV.js → chunk-ETIZGA4P.js} +5 -5
- package/dist/bundle/{chunk-BDKVOU3I.js → chunk-F44QK6CK.js} +3 -3
- package/dist/bundle/{chunk-274SLQNW.js → chunk-FH2UFNH6.js} +2 -2
- package/dist/bundle/{chunk-3HC5F3P7.js → chunk-FTH6WGYO.js} +1 -1
- package/dist/bundle/chunk-FWACRG4X.js +160 -0
- package/dist/bundle/chunk-G5SZL7G2.js +150 -0
- package/dist/bundle/{chunk-EQG3PIH2.js → chunk-G6CHEFAG.js} +2 -2
- package/dist/bundle/{chunk-66ALX4ZI.js → chunk-GHJD7PE6.js} +18 -18
- package/dist/bundle/{chunk-Q7ICVP25.js → chunk-GZ7WBU5Y.js} +1 -1
- package/dist/bundle/{chunk-UL2PXLKT.js → chunk-H6A4NWYJ.js} +320 -43
- package/dist/bundle/{chunk-WMANRJR5.js → chunk-HKLRI2LB.js} +6 -6
- package/dist/bundle/{chunk-L75SMSJR.js → chunk-HMD4FZYY.js} +3 -3
- package/dist/bundle/{chunk-2JHVQMVC.js → chunk-HO4JGD4Q.js} +1 -1
- package/dist/bundle/{chunk-WOPVBRPV.js → chunk-HUAHLO6N.js} +1 -1
- package/dist/bundle/{chunk-6VK332XS.js → chunk-IQZXFWFI.js} +2 -2
- package/dist/bundle/{chunk-NB7EOAUZ.js → chunk-ISQ23VKV.js} +1 -1
- package/dist/bundle/{chunk-QVYAV7F2.js → chunk-JEH33ZCD.js} +3 -3
- package/dist/bundle/{chunk-ICPJT672.js → chunk-JUNQYWQ2.js} +6 -6
- package/dist/bundle/{chunk-K5JGJIV2.js → chunk-JUXMVQWJ.js} +311 -152
- package/dist/bundle/{chunk-OBXQLFT5.js → chunk-KHQDWYCG.js} +1 -1
- package/dist/bundle/{chunk-GGMAIIVE.js → chunk-KYRYD4CR.js} +1 -1
- package/dist/bundle/chunk-LBGT6W4R.js +377 -0
- package/dist/bundle/{chunk-JQ54DYAQ.js → chunk-LN7HRYTH.js} +1 -1
- package/dist/bundle/{chunk-G46WJ7YO.js → chunk-MEB7HBTM.js} +5 -5
- package/dist/bundle/{chunk-M7H4MCAX.js → chunk-MEEFWYX3.js} +3 -3
- package/dist/bundle/{chunk-73MOMNLL.js → chunk-MNOAMJ6H.js} +1 -1
- package/dist/bundle/{chunk-A6EZK5RG.js → chunk-MYHPXJDG.js} +1 -1
- package/dist/bundle/{chunk-HC6VN5CO.js → chunk-NGI37RFW.js} +7 -7
- package/dist/bundle/{chunk-2GP573Q4.js → chunk-NZMWD7Y3.js} +3656 -2697
- package/dist/bundle/chunk-O6IECJRM.js +54 -0
- package/dist/bundle/{chunk-Y6PVS55U.js → chunk-OBWL3BUV.js} +35 -35
- package/dist/bundle/{chunk-2XBDILVW.js → chunk-OEEWVKJX.js} +1 -1
- package/dist/bundle/chunk-OGTN2KVG.js +147 -0
- package/dist/bundle/{chunk-GWGHH56B.js → chunk-OQYZ3W4K.js} +10 -10
- package/dist/bundle/{chunk-2CI2OEZQ.js → chunk-P3ZCTYGW.js} +2 -2
- package/dist/bundle/{chunk-OIPYBF43.js → chunk-PVEBAHFU.js} +2 -2
- package/dist/bundle/{chunk-2SWKQ7C4.js → chunk-R6IA5UQB.js} +1 -1
- package/dist/bundle/{chunk-T7IAWEBU.js → chunk-RLOH7RDN.js} +7 -7
- package/dist/bundle/{chunk-KJ6USQDZ.js → chunk-RQ4AXSCJ.js} +5 -5
- package/dist/bundle/{chunk-XQ2WL3HB.js → chunk-RYGTCRFZ.js} +2 -2
- package/dist/bundle/{chunk-N46F72AF.js → chunk-S4PXWIE4.js} +84 -86
- package/dist/bundle/{chunk-MQLPZBMQ.js → chunk-SDZZYZLL.js} +1 -1
- package/dist/bundle/{chunk-E745WZKY.js → chunk-SHQAYUK6.js} +6 -6
- package/dist/bundle/{chunk-3YM4B2GT.js → chunk-T3W4V4A6.js} +1 -1
- package/dist/bundle/{chunk-4N7PP76S.js → chunk-TCT5D2X2.js} +1 -1
- package/dist/bundle/{chunk-7QPIUMUG.js → chunk-TDWPOSPR.js} +10 -10
- package/dist/bundle/{chunk-ZED2CJW5.js → chunk-TER3N27H.js} +6 -6
- package/dist/bundle/{chunk-UQCTXZEP.js → chunk-TMTNP7QN.js} +9 -9
- package/dist/bundle/{chunk-KWU46LNK.js → chunk-TO5UEWXR.js} +2 -2
- package/dist/bundle/{chunk-OQFQ77AY.js → chunk-UBH7YF3C.js} +61 -59
- package/dist/bundle/{chunk-QVSL5WJ7.js → chunk-UEAE3JUU.js} +488 -436
- package/dist/bundle/{chunk-5KYQ53EF.js → chunk-UHR363OD.js} +7 -7
- package/dist/bundle/{chunk-7UVDPRFK.js → chunk-UM52A76S.js} +5 -5
- package/dist/bundle/{chunk-ZOYOXWJB.js → chunk-URP6BTHN.js} +34 -156
- package/dist/bundle/{chunk-N3JLO63O.js → chunk-UWQEAA6S.js} +1 -1
- package/dist/bundle/{chunk-OO4TRVPB.js → chunk-VR7QZGRU.js} +5 -5
- package/dist/bundle/{chunk-GBHMT2IU.js → chunk-VRH5PBSL.js} +13 -13
- package/dist/bundle/chunk-VTLQTQKY.js +1756 -0
- package/dist/bundle/{chunk-ACI4YIEH.js → chunk-VTYNLTDW.js} +1 -1
- package/dist/bundle/{chunk-NEMX3UNN.js → chunk-WY7XG6TE.js} +2 -2
- package/dist/bundle/{chunk-AC6VJNMJ.js → chunk-XEOZTA3H.js} +1 -1
- package/dist/bundle/{chunk-QG6PILDO.js → chunk-XH23ML2V.js} +1 -1
- package/dist/bundle/{chunk-5HAUK3I4.js → chunk-XYF76A26.js} +1179 -783
- package/dist/bundle/{chunk-KQPUVXKX.js → chunk-ZDYJAEVB.js} +2 -2
- package/dist/bundle/{chunk-TKNM22OH.js → chunk-ZJ63HDBT.js} +1 -1
- package/dist/bundle/{chunk-5TU7Y5UW.js → chunk-ZT4ZPUIO.js} +11 -11
- package/dist/bundle/{cli-U4O5XB7J.js → cli-JK6PQSSN.js} +94 -79
- package/dist/bundle/command-contract-F3QNBKPX.js +46 -0
- package/dist/bundle/{command-server-entry-KKH6ZWJV.js → command-server-entry-DJLGN62J.js} +31 -30
- package/dist/bundle/config-TYYMV3HV.js +118 -0
- package/dist/bundle/{decode-TPCNXEK4.js → decode-ZZICNNFF.js} +3 -3
- package/dist/bundle/{dist-7CLBCYZN.js → dist-NQPF25XI.js} +47 -46
- package/dist/bundle/{echarts-O3TNDAXJ.js → echarts-QMAA7HH5.js} +2 -2
- package/dist/bundle/{embed-WCJSFVSK.js → embed-T64EUKUI.js} +4 -4
- package/dist/bundle/{embedder-TBBUPXBX.js → embedder-ZEKISZXI.js} +7 -7
- package/dist/bundle/{first-run-ELEMFW42.js → first-run-ZFNY4RRH.js} +8 -8
- package/dist/bundle/first-screen-LPGCHRHZ.js +47 -0
- package/dist/bundle/{folders-LXOL4N4S.js → folders-ROKVKSCT.js} +2 -2
- package/dist/bundle/{instructions-AMH5RWVJ.js → instructions-4H7UREH2.js} +1 -1
- package/dist/bundle/{main-YAA7WQ23.js → main-GCK3VYAA.js} +24 -34
- package/dist/bundle/meeting-combined-7HDPOUPB.js +28 -0
- package/dist/bundle/{meeting-model-3BZJ3EQP.js → meeting-model-MVUW7UPQ.js} +10 -10
- package/dist/bundle/{meeting-semantic-3HU7I2SJ.js → meeting-semantic-IF633WGX.js} +3 -3
- package/dist/bundle/{meetings-XWMB6FOH.js → meetings-RY2AAPHV.js} +2 -2
- package/dist/bundle/{node-EGMCBAO7.js → node-P3PUHKYH.js} +2 -2
- package/dist/bundle/{node-sqlite-IJBWENFX.js → node-sqlite-ASAZJNHE.js} +5 -5
- package/dist/bundle/{oauth-SZDDAP7A.js → oauth-4U3OCK3W.js} +5 -5
- package/dist/bundle/oauth-AJARLPSY.js +46 -0
- package/dist/bundle/{open-NS3TMKZX.js → open-SEJRY2ZI.js} +3 -3
- package/dist/bundle/{openai-4DN6WI3B.js → openai-FZDSC2AA.js} +12 -12
- package/dist/bundle/{output-file-2UB5JP3R.js → output-file-RYIOIXMD.js} +1 -1
- package/dist/bundle/{process-SGHEN6MQ.js → process-AFIXYXWL.js} +1 -1
- package/dist/bundle/{program-GVCGZP27.js → program-OYLVYA4Z.js} +174 -236
- package/dist/bundle/{prompt-HJFMPFVC.js → prompt-BCRD64F4.js} +3 -3
- package/dist/bundle/{public-C2ZB2AGQ.js → public-SVJILCNI.js} +43 -35
- package/dist/bundle/{recognize-2SEI5PPM.js → recognize-25ITJWGX.js} +2 -2
- package/dist/bundle/{remote-2DMS74XE.js → remote-5FBAJX7O.js} +8 -8
- package/dist/bundle/{rerank-H6GCYVIA.js → rerank-2HGWWORY.js} +5 -5
- package/dist/bundle/run-log-7HRF4Y47.js +145 -0
- package/dist/bundle/{serve-ODVRPFJO.js → serve-RL35MSJD.js} +7 -7
- package/dist/bundle/{server-PCLIO24L.js → server-QUSBWACP.js} +64 -63
- package/dist/bundle/server-SCK2SRDK.js +96 -0
- package/dist/bundle/{services-4QAPXBLO.js → services-BGRIQNDC.js} +55 -53
- package/dist/bundle/{speech-MA6ZT3WE.js → speech-4W3ZMTFK.js} +21 -21
- package/dist/bundle/{sqlite-runtime-PVMAUXRN.js → sqlite-runtime-K3KLRZCV.js} +4 -4
- package/dist/bundle/{state-QFMTYUME.js → state-GYL4C74G.js} +4 -4
- package/dist/bundle/{store-25OTAQC3.js → store-27UQMNEO.js} +23 -21
- package/dist/bundle/{store-F724QIKJ.js → store-NLYH5SQX.js} +54 -43
- package/dist/bundle/store-connection-CZILWRSR.js +112 -0
- package/dist/bundle/store-maintenance-command-Z3QLNSXJ.js +84 -0
- package/dist/bundle/{streaming-S22C4DG5.js → streaming-73EKEGPF.js} +2 -2
- package/dist/bundle/surface-CV3C4RV2.js +82 -0
- package/dist/bundle/tokens-PY3S22LY.js +27 -0
- package/dist/bundle/zm.js +2 -2
- package/dist/bundle/{zoom-app-YWFB367P.js → zoom-app-4F4YY4OI.js} +8 -6
- package/dist/commands.d.ts +1 -8
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +3 -33
- package/dist/commands.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/program-bindings.d.ts.map +1 -1
- package/dist/program-bindings.js +2 -12
- package/dist/program-bindings.js.map +1 -1
- package/dist/program.d.ts +3 -5
- package/dist/program.d.ts.map +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +6 -1
- package/dist/run.js.map +1 -1
- package/dist/setup-commands.d.ts +5 -14
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +7 -142
- package/dist/setup-commands.js.map +1 -1
- package/dist/tokens.d.ts +20 -44
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +95 -308
- package/dist/tokens.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/zoom-app.js +1 -1
- package/dist/zoom-app.js.map +1 -1
- package/dist/zoom-session.d.ts +6 -0
- package/dist/zoom-session.d.ts.map +1 -0
- package/dist/zoom-session.js +72 -0
- package/dist/zoom-session.js.map +1 -0
- package/package.json +2 -2
- package/skills/zoom-cli/references/setup.md +2 -2
- package/dist/bundle/agent-F4TRJWWS.js +0 -46
- package/dist/bundle/answer-policy-6XC57AEZ.js +0 -131
- package/dist/bundle/chunk-2DBF2IIC.js +0 -330
- package/dist/bundle/chunk-DSZYABYL.js +0 -808
- package/dist/bundle/chunk-KXJ3JEDH.js +0 -2
- package/dist/bundle/chunk-LAYYO4WD.js +0 -31
- package/dist/bundle/chunk-PMUPN6JW.js +0 -773
- package/dist/bundle/chunk-TKVBFJ5C.js +0 -37
- package/dist/bundle/chunk-YY7XKHDY.js +0 -79
- package/dist/bundle/command-contract-FBTK6GQX.js +0 -45
- package/dist/bundle/config-FRJSIZNN.js +0 -118
- package/dist/bundle/first-screen-DIOBWMKP.js +0 -46
- package/dist/bundle/meeting-combined-UXCF4SJ3.js +0 -26
- package/dist/bundle/run-log-QU26SUZP.js +0 -145
- package/dist/bundle/server-NBPF6IDZ.js +0 -95
- package/dist/bundle/store-connection-OGPXANGB.js +0 -111
- package/dist/bundle/store-maintenance-command-2CM7LLNQ.js +0 -83
- package/dist/bundle/surface-7PXHWCF6.js +0 -81
- package/dist/bundle/tokens-NLUHA2DW.js +0 -25
- package/dist/login.d.ts +0 -16
- package/dist/login.d.ts.map +0 -1
- package/dist/login.js +0 -98
- package/dist/login.js.map +0 -1
- package/dist/bundle/{chunk-6CWL5BKG.js → chunk-3QN5KDFZ.js} +147 -147
- /package/dist/bundle/{chunk-7O7XM37N.js → chunk-7ECP5ZQR.js} +0 -0
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
parseReference
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7JDXR75Q.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/links.js
|
|
11
11
|
var LINK_VERSION = "v1";
|
|
12
12
|
var DEFAULT_LINK_CONFIG = { base: "https://wirecat.dev/o", enabled: true };
|
|
13
13
|
var APP_PREFIX = "wirecat://open";
|
|
@@ -7,26 +7,47 @@ import {
|
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
11
|
-
import { mkdir as mkdir2 } from "node:fs/promises";
|
|
12
|
-
import { basename, dirname } from "node:path";
|
|
13
|
-
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
|
|
15
11
|
import { randomUUID } from "node:crypto";
|
|
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";
|
|
19
|
-
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/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@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
|
|
25
|
-
import { hostname } from "node:os";
|
|
26
|
-
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
|
|
28
12
|
import { constants } from "node:fs";
|
|
29
|
-
import {
|
|
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");
|
|
47
|
+
|
|
48
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/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";
|
|
30
51
|
var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
|
|
31
52
|
var sameIdentity = /* @__PURE__ */ __name((left, right) => left.ino === right.ino && deviceOf(left.dev) === deviceOf(right.dev), "sameIdentity");
|
|
32
53
|
var openOrdinaryFile = /* @__PURE__ */ __name(async (path, options = {}) => {
|
|
@@ -35,16 +56,16 @@ var openOrdinaryFile = /* @__PURE__ */ __name(async (path, options = {}) => {
|
|
|
35
56
|
throw new CliError("validation_error", "archive path must be an ordinary file without a symlink");
|
|
36
57
|
if (!before.isFile())
|
|
37
58
|
throw new CliError("validation_error", "archive path must be an ordinary file");
|
|
38
|
-
const access = options.writable ?
|
|
39
|
-
const flags = process.platform === "win32" ? access : access | (
|
|
40
|
-
const file = await
|
|
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);
|
|
41
62
|
try {
|
|
42
63
|
const opened = await file.stat({ bigint: true });
|
|
43
64
|
const after = await lstat(path, { bigint: true });
|
|
44
65
|
if (!opened.isFile() || !after.isFile() || before.ino !== opened.ino || before.ino !== after.ino)
|
|
45
66
|
throw new CliError("validation_error", "archive file changed while opening");
|
|
46
67
|
if (process.platform === "win32" && before.dev === 0n && after.dev === 0n) {
|
|
47
|
-
const witness = await
|
|
68
|
+
const witness = await open2(path, flags);
|
|
48
69
|
try {
|
|
49
70
|
const identified = await witness.stat({ bigint: true });
|
|
50
71
|
const final = await lstat(path, { bigint: true });
|
|
@@ -80,7 +101,7 @@ var sameOrdinaryFile = /* @__PURE__ */ __name(async (path, created) => {
|
|
|
80
101
|
var syncDirectory = /* @__PURE__ */ __name(async (path) => {
|
|
81
102
|
if (process.platform === "win32")
|
|
82
103
|
return;
|
|
83
|
-
const directory = await
|
|
104
|
+
const directory = await open2(path, constants2.O_RDONLY | (constants2.O_DIRECTORY ?? 0) | (constants2.O_NOFOLLOW ?? 0));
|
|
84
105
|
try {
|
|
85
106
|
if (!(await directory.stat()).isDirectory())
|
|
86
107
|
throw new CliError("validation_error", "archive publication directory must be ordinary");
|
|
@@ -90,7 +111,22 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
|
|
|
90
111
|
}
|
|
91
112
|
}, "syncDirectory");
|
|
92
113
|
|
|
93
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
114
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
115
|
+
import { mkdir as mkdir2 } from "node:fs/promises";
|
|
116
|
+
import { basename as basename2, dirname as dirname2 } from "node:path";
|
|
117
|
+
|
|
118
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
119
|
+
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
120
|
+
import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
|
|
121
|
+
import { hostname as hostname2 } from "node:os";
|
|
122
|
+
import { join as join3 } from "node:path";
|
|
123
|
+
|
|
124
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
125
|
+
import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
|
|
126
|
+
import { join as join2 } from "node:path";
|
|
127
|
+
|
|
128
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
|
|
129
|
+
import { hostname } from "node:os";
|
|
94
130
|
var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
|
|
95
131
|
var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
|
|
96
132
|
signal?.throwIfAborted();
|
|
@@ -134,13 +170,13 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
|
|
|
134
170
|
}
|
|
135
171
|
}, "leaseOwnerStatus");
|
|
136
172
|
|
|
137
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
173
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
138
174
|
var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
139
175
|
const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
|
|
140
176
|
options.signal?.throwIfAborted();
|
|
141
|
-
const root = await
|
|
177
|
+
const root = await realpath2(destination);
|
|
142
178
|
options.signal?.throwIfAborted();
|
|
143
|
-
const folder =
|
|
179
|
+
const folder = join2(root, markerDirectory);
|
|
144
180
|
let names;
|
|
145
181
|
try {
|
|
146
182
|
if ((await lstat2(folder)).isSymbolicLink())
|
|
@@ -156,7 +192,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
|
156
192
|
const result = [];
|
|
157
193
|
for (const name of names.sort()) {
|
|
158
194
|
options.signal?.throwIfAborted();
|
|
159
|
-
const owner = await readLeaseOwner(
|
|
195
|
+
const owner = await readLeaseOwner(join2(folder, name), name, options.signal);
|
|
160
196
|
result.push({
|
|
161
197
|
name,
|
|
162
198
|
status: owner ? leaseOwnerStatus(owner) : "unrecognized",
|
|
@@ -168,7 +204,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
|
168
204
|
}, "inspect");
|
|
169
205
|
const recover = /* @__PURE__ */ __name(async (destination, options = {}) => {
|
|
170
206
|
options.signal?.throwIfAborted();
|
|
171
|
-
const root = await
|
|
207
|
+
const root = await realpath2(destination);
|
|
172
208
|
const locks = await inspect(root, options);
|
|
173
209
|
const removed = [];
|
|
174
210
|
if (options.apply)
|
|
@@ -176,12 +212,12 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
|
176
212
|
options.signal?.throwIfAborted();
|
|
177
213
|
if (lock.status !== "stale")
|
|
178
214
|
continue;
|
|
179
|
-
const path =
|
|
215
|
+
const path = join2(root, markerDirectory, lock.name);
|
|
180
216
|
const owner = await readLeaseOwner(path, lock.name, options.signal);
|
|
181
217
|
if (!owner || leaseOwnerStatus(owner) !== "stale")
|
|
182
218
|
continue;
|
|
183
219
|
try {
|
|
184
|
-
await
|
|
220
|
+
await unlink2(path);
|
|
185
221
|
removed.push(lock.name);
|
|
186
222
|
} catch (error) {
|
|
187
223
|
if (!missingLeaseFile(error))
|
|
@@ -193,8 +229,8 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
|
193
229
|
return { inspect, recover };
|
|
194
230
|
}, "leaseInspection");
|
|
195
231
|
|
|
196
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
197
|
-
import { rmdir, unlink as
|
|
232
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
|
|
233
|
+
import { rmdir, unlink as unlink3 } from "node:fs/promises";
|
|
198
234
|
var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
|
|
199
235
|
let releasing;
|
|
200
236
|
const held = /* @__PURE__ */ __name(async () => {
|
|
@@ -206,7 +242,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
|
|
|
206
242
|
const release = /* @__PURE__ */ __name(async () => {
|
|
207
243
|
if (!await held())
|
|
208
244
|
throw new CliError("configuration_error", "owned archive lock changed before release");
|
|
209
|
-
await
|
|
245
|
+
await unlink3(path);
|
|
210
246
|
await rmdir(folder).catch(() => void 0);
|
|
211
247
|
}, "release");
|
|
212
248
|
return {
|
|
@@ -218,7 +254,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
|
|
|
218
254
|
};
|
|
219
255
|
}, "ownedNativeLease");
|
|
220
256
|
|
|
221
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
257
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
222
258
|
var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
|
|
223
259
|
var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
224
260
|
const { markerDirectory, legacyMarker } = layout;
|
|
@@ -229,12 +265,12 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
|
229
265
|
...inspection,
|
|
230
266
|
acquire: /* @__PURE__ */ __name(async (destination, { signal } = {}) => {
|
|
231
267
|
signal?.throwIfAborted();
|
|
232
|
-
const root = await
|
|
268
|
+
const root = await realpath3(destination);
|
|
233
269
|
signal?.throwIfAborted();
|
|
234
|
-
const folder =
|
|
235
|
-
const owner = { version: 1, pid: process.pid, host: hostname2(), nonce:
|
|
270
|
+
const folder = join3(root, markerDirectory);
|
|
271
|
+
const owner = { version: 1, pid: process.pid, host: hostname2(), nonce: randomUUID2() };
|
|
236
272
|
const name = `${owner.pid}-${owner.nonce}.json`;
|
|
237
|
-
const path =
|
|
273
|
+
const path = join3(folder, name);
|
|
238
274
|
const marker = /* @__PURE__ */ __name(async (attempt = 1) => {
|
|
239
275
|
await mkdir(folder, { recursive: true });
|
|
240
276
|
try {
|
|
@@ -242,7 +278,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
|
242
278
|
throw new CliError("validation_error", "archive lock directory must not be a symlink");
|
|
243
279
|
await inspection.recover(root, { apply: true, signal });
|
|
244
280
|
signal?.throwIfAborted();
|
|
245
|
-
return await
|
|
281
|
+
return await open3(path, "wx", 384);
|
|
246
282
|
} catch (error) {
|
|
247
283
|
if (attempt < 5 && missingLeaseFile(error))
|
|
248
284
|
return marker(attempt + 1);
|
|
@@ -267,7 +303,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
|
267
303
|
return { status: "busy", locks };
|
|
268
304
|
if (legacyMarker) {
|
|
269
305
|
try {
|
|
270
|
-
await lstat3(
|
|
306
|
+
await lstat3(join3(root, legacyMarker));
|
|
271
307
|
return { status: "legacy" };
|
|
272
308
|
} catch (error) {
|
|
273
309
|
if (!missingLeaseFile(error))
|
|
@@ -281,7 +317,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
|
281
317
|
await file.close().catch(() => void 0);
|
|
282
318
|
if (!retained) {
|
|
283
319
|
if (identity && await sameOrdinaryFile(path, identity))
|
|
284
|
-
await
|
|
320
|
+
await unlink4(path).catch(() => void 0);
|
|
285
321
|
await rmdir2(folder).catch(() => void 0);
|
|
286
322
|
}
|
|
287
323
|
}
|
|
@@ -289,60 +325,22 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
|
289
325
|
};
|
|
290
326
|
}, "nativeWriterLeaseStore");
|
|
291
327
|
|
|
292
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
328
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
293
329
|
var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
294
|
-
const folder =
|
|
330
|
+
const folder = dirname2(path);
|
|
295
331
|
await mkdir2(folder, { recursive: true, mode: 448 });
|
|
296
|
-
const acquired = await nativeWriterLeaseStore({ markerDirectory:
|
|
332
|
+
const acquired = await nativeWriterLeaseStore({ markerDirectory: basename2(path) }).acquire(folder, {
|
|
297
333
|
...signal ? { signal } : {}
|
|
298
334
|
});
|
|
299
335
|
if (acquired.status === "acquired")
|
|
300
336
|
return acquired.lease;
|
|
301
|
-
throw new CliError("validation_error", `${
|
|
337
|
+
throw new CliError("validation_error", `${basename2(path)} is locked by another process`, {
|
|
302
338
|
reason: "file.locked",
|
|
303
339
|
...acquired.status === "busy" ? { holders: acquired.locks } : {}
|
|
304
340
|
});
|
|
305
341
|
}, "acquireLock");
|
|
306
342
|
|
|
307
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
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@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
|
|
343
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
|
|
346
344
|
var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
347
345
|
if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
|
|
348
346
|
throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
|
|
@@ -371,7 +369,7 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
|
371
369
|
}
|
|
372
370
|
}, "readBoundedUtf8File");
|
|
373
371
|
|
|
374
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
372
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/files/safe-name.js
|
|
375
373
|
import { basename as basename3, extname } from "node:path";
|
|
376
374
|
var MOST_NAME_BYTES = 200;
|
|
377
375
|
var bytesOf = /* @__PURE__ */ __name((text) => Buffer.byteLength(text, "utf8"), "bytesOf");
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
|
|
14
14
|
import { readFileSync } from "node:fs";
|
|
15
15
|
var musl = /* @__PURE__ */ __name(() => {
|
|
16
16
|
if (process.platform !== "linux")
|
|
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
storePath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FH2UFNH6.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3QN5KDFZ.js";
|
|
10
10
|
import {
|
|
11
11
|
CliError
|
|
12
12
|
} from "./chunk-IANKXHSE.js";
|
|
@@ -17,11 +17,11 @@ import {
|
|
|
17
17
|
__name
|
|
18
18
|
} from "./chunk-ZVVMGPBJ.js";
|
|
19
19
|
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
20
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
21
21
|
import { existsSync, mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
22
22
|
import { dirname, join, resolve } from "node:path";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/config-repair.js
|
|
25
25
|
var REPAIR_WORDS = {
|
|
26
26
|
byte_order_mark: "an invisible byte-order mark at the start",
|
|
27
27
|
comment: "a comment, which JSON does not allow",
|
|
@@ -305,7 +305,7 @@ var explainBrokenJson = /* @__PURE__ */ __name((text, result) => {
|
|
|
305
305
|
return `line ${line}, column ${column}: ${why}${around(line)}; likely fix: ${fix ?? "correct that part by hand"}`;
|
|
306
306
|
}, "explainBrokenJson");
|
|
307
307
|
|
|
308
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
308
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
309
309
|
var DEFAULT_TASK_CATEGORIES = [
|
|
310
310
|
{
|
|
311
311
|
name: "taxes",
|
|
@@ -1060,7 +1060,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
1060
1060
|
}
|
|
1061
1061
|
}, "storedTaskCategories");
|
|
1062
1062
|
|
|
1063
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
1063
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
1064
1064
|
var SECTION = "task_categories";
|
|
1065
1065
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
1066
1066
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/background/processes.js
|
|
8
8
|
import { execFileSync } from "node:child_process";
|
|
9
9
|
import { readdirSync, readFileSync, readlinkSync } from "node:fs";
|
|
10
10
|
var alive = /* @__PURE__ */ __name((pid) => {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-5XR7K42U.js
|
|
8
8
|
var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
|
|
9
9
|
var kindsByConstructor = /* @__PURE__ */ new WeakMap();
|
|
10
10
|
function collectKinds(ctor) {
|
|
@@ -2,14 +2,14 @@ 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-UWQEAA6S.js";
|
|
6
6
|
import {
|
|
7
7
|
envName,
|
|
8
8
|
readOnlyLockOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZJ63HDBT.js";
|
|
10
10
|
import {
|
|
11
11
|
ensureSqlite
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ATHBB7OU.js";
|
|
13
13
|
import {
|
|
14
14
|
catchCrashes
|
|
15
15
|
} from "./chunk-ESN3W2MZ.js";
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
__name
|
|
21
21
|
} from "./chunk-ZVVMGPBJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
24
24
|
import { spawn } from "node:child_process";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
|
|
27
27
|
import { appendFileSync } from "node:fs";
|
|
28
28
|
var logParsedArgv = /* @__PURE__ */ __name((file, action) => {
|
|
29
29
|
const words = [];
|
|
@@ -47,7 +47,7 @@ var logVersion = /* @__PURE__ */ __name((file) => {
|
|
|
47
47
|
`);
|
|
48
48
|
}, "logVersion");
|
|
49
49
|
|
|
50
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
50
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
51
51
|
var processIo = /* @__PURE__ */ __name(() => ({
|
|
52
52
|
argv: process.argv,
|
|
53
53
|
env: process.env,
|
|
@@ -67,7 +67,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
67
67
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-V"))
|
|
68
68
|
return printVersion(entry.app, io);
|
|
69
69
|
if (isCommandServer(args)) {
|
|
70
|
-
const { serveEntry } = await import("./command-server-entry-
|
|
70
|
+
const { serveEntry } = await import("./command-server-entry-DJLGN62J.js");
|
|
71
71
|
return serveEntry(entry, io, { firstRunAt, commanderExit });
|
|
72
72
|
}
|
|
73
73
|
const tty = io.stdout.isTTY === true;
|
|
@@ -105,7 +105,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
105
105
|
ask: /* @__PURE__ */ __name(async (question, command) => {
|
|
106
106
|
if (headless(command) || io.stdin.isTTY !== true)
|
|
107
107
|
return false;
|
|
108
|
-
const { readSecret } = await import("./prompt-
|
|
108
|
+
const { readSecret } = await import("./prompt-BCRD64F4.js");
|
|
109
109
|
const answer = await readSecret(`${question} [y/N] `, {
|
|
110
110
|
input: io.stdin,
|
|
111
111
|
output: io.stderr,
|
|
@@ -148,8 +148,8 @@ var firstRunAt = /* @__PURE__ */ __name((entry, io, headless) => async (command)
|
|
|
148
148
|
if (command.optsWithGlobals().dryRun === true)
|
|
149
149
|
return;
|
|
150
150
|
const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
|
|
151
|
-
import("./first-run-
|
|
152
|
-
import("./command-contract-
|
|
151
|
+
import("./first-run-ZFNY4RRH.js"),
|
|
152
|
+
import("./command-contract-F3QNBKPX.js")
|
|
153
153
|
]);
|
|
154
154
|
await setupAtStart({
|
|
155
155
|
command: entry.app.command,
|
|
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
AUDIT_MIN_SCORE
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UEAE3JUU.js";
|
|
6
6
|
import {
|
|
7
7
|
LIST_QUERY_GUIDE,
|
|
8
8
|
nativeTerms
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VRH5PBSL.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_CONFIG,
|
|
12
12
|
environmentOf,
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
renderAnswer,
|
|
17
17
|
snakeKeys,
|
|
18
18
|
withAgentLevels
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ASTLGFTR.js";
|
|
20
20
|
import {
|
|
21
21
|
formatReference
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-7JDXR75Q.js";
|
|
23
23
|
import {
|
|
24
24
|
queryError
|
|
25
25
|
} from "./chunk-UAWSINMC.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
__name
|
|
31
31
|
} from "./chunk-ZVVMGPBJ.js";
|
|
32
32
|
|
|
33
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
33
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
34
34
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
35
35
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
36
36
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -57,7 +57,7 @@ var pagingOf = /* @__PURE__ */ __name((command) => {
|
|
|
57
57
|
return { limit: limit ?? DEFAULT_CONFIG.defaults.limit, page: page ?? 1 };
|
|
58
58
|
}, "pagingOf");
|
|
59
59
|
|
|
60
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
60
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
61
61
|
var defined = /* @__PURE__ */ __name((record) => Object.fromEntries(Object.entries(record).filter(([, value]) => value !== void 0)), "defined");
|
|
62
62
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
63
63
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -2,33 +2,33 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
encodeWav
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3CW2C7ZA.js";
|
|
6
6
|
import {
|
|
7
7
|
SAMPLE_RATE,
|
|
8
8
|
toModelRate
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2S54TM4N.js";
|
|
10
10
|
import {
|
|
11
11
|
OPENAI_URL,
|
|
12
12
|
refuseModelAddress
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-D7RCUODT.js";
|
|
14
14
|
import {
|
|
15
15
|
endpointFetch,
|
|
16
16
|
onThisComputer
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-3KUEZK5Z.js";
|
|
18
18
|
import {
|
|
19
19
|
providerWaitMs
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VTYNLTDW.js";
|
|
21
21
|
import {
|
|
22
22
|
OPENAI_TRANSCRIBE_MODEL,
|
|
23
23
|
VAD,
|
|
24
24
|
filesPresent,
|
|
25
25
|
modelsDirectory,
|
|
26
26
|
vadPath
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-BAFC7WNI.js";
|
|
28
28
|
import {
|
|
29
29
|
DEFAULT_RETRY,
|
|
30
30
|
backoffMs
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-3QN5KDFZ.js";
|
|
32
32
|
import {
|
|
33
33
|
CliError
|
|
34
34
|
} from "./chunk-IANKXHSE.js";
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
__name
|
|
37
37
|
} from "./chunk-ZVVMGPBJ.js";
|
|
38
38
|
|
|
39
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
39
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
40
40
|
import { setTimeout as wait } from "node:timers/promises";
|
|
41
41
|
var LONGEST_REQUEST_SECONDS = 600;
|
|
42
42
|
var JOINED_SECONDS = 0.2;
|
|
@@ -161,7 +161,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
|
|
|
161
161
|
return pieces;
|
|
162
162
|
}, "piecesOf");
|
|
163
163
|
var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
|
|
164
|
-
const { openSpeechCutter } = await import("./recognize-
|
|
164
|
+
const { openSpeechCutter } = await import("./recognize-25ITJWGX.js");
|
|
165
165
|
return openSpeechCutter(vadModel);
|
|
166
166
|
}, "openCutter");
|
|
167
167
|
var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
ACCESS_SECONDS,
|
|
5
5
|
REFRESH_SECONDS,
|
|
6
6
|
readStored
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3AQHKXVR.js";
|
|
8
8
|
import {
|
|
9
9
|
OAuthError,
|
|
10
10
|
OAuthErrorCode
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__name
|
|
14
14
|
} from "./chunk-ZVVMGPBJ.js";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
|
|
17
17
|
import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
|
|
18
18
|
import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|