@wirecat/zoom-cli 0.80.0 → 0.82.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 +71 -3
- package/dist/answers.d.ts +100 -0
- package/dist/answers.d.ts.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/agent-F4TRJWWS.js +46 -0
- package/dist/bundle/{all-profiles-5GOKWOT4.js → all-profiles-RULEKTDQ.js} +64 -22
- package/dist/bundle/answer-policy-6XC57AEZ.js +131 -0
- package/dist/bundle/{anthropic-NHXMOFYS.js → anthropic-4NAQBZFL.js} +6 -6
- package/dist/bundle/{app-server-HFW5Z5PI.js → app-server-VLR42U5L.js} +92 -80
- package/dist/bundle/{bun-M5IGY2TG.js → bun-OPDGMZZQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-MTP5JJQ2.js → bun-sqlite-HC6X4AOX.js} +7 -7
- package/dist/bundle/{chunk-TNL3YQ33.js → chunk-274SLQNW.js} +2 -2
- package/dist/bundle/{chunk-5CJ6AAUI.js → chunk-2CI2OEZQ.js} +4 -4
- package/dist/bundle/{chunk-GVKZZT7E.js → chunk-2DBF2IIC.js} +7 -78
- package/dist/bundle/{chunk-NRVMK5H3.js → chunk-2GP573Q4.js} +15748 -11939
- package/dist/bundle/{chunk-4OAR7BGU.js → chunk-2JHVQMVC.js} +1 -1
- package/dist/bundle/{chunk-XKLU5KV2.js → chunk-2SWKQ7C4.js} +1 -1
- package/dist/bundle/{chunk-W3GZ7JUO.js → chunk-2XBDILVW.js} +1 -1
- package/dist/bundle/{chunk-3UONR5HW.js → chunk-3HC5F3P7.js} +1 -1
- package/dist/bundle/{chunk-VN7TKMOW.js → chunk-3YM4B2GT.js} +1 -1
- package/dist/bundle/{chunk-PCPOO5FS.js → chunk-434YFJAE.js} +2 -2
- package/dist/bundle/{chunk-CW6CPQHI.js → chunk-4HLQ2JGK.js} +4 -4
- package/dist/bundle/{chunk-RT7C3SSJ.js → chunk-4N7PP76S.js} +1 -1
- package/dist/bundle/{chunk-JJX4HKDV.js → chunk-52Y4ETKU.js} +4 -4
- package/dist/bundle/{chunk-BIKHHFD2.js → chunk-5HAUK3I4.js} +2166 -2760
- package/dist/bundle/{chunk-W2QDYMAM.js → chunk-5KYQ53EF.js} +13 -9
- package/dist/bundle/{chunk-BW5JEOBE.js → chunk-5TU7Y5UW.js} +12 -12
- package/dist/bundle/{chunk-P2JTVRGU.js → chunk-66ALX4ZI.js} +168 -168
- package/dist/bundle/{chunk-EPIA2UUM.js → chunk-676C2LE6.js} +12 -12
- package/dist/bundle/{chunk-BNEJKGG7.js → chunk-6CWL5BKG.js} +78 -76
- package/dist/bundle/{chunk-TDBVM2SS.js → chunk-6QYZP4E2.js} +3 -3
- package/dist/bundle/{chunk-JXSEH64A.js → chunk-6VK332XS.js} +3 -3
- package/dist/bundle/{chunk-W7M4JYEE.js → chunk-73MOMNLL.js} +1 -1
- package/dist/bundle/{chunk-K672XJ2P.js → chunk-7QPIUMUG.js} +12 -12
- package/dist/bundle/{chunk-CWCDCNXA.js → chunk-7UVDPRFK.js} +6 -6
- package/dist/bundle/{chunk-RMX2WPWS.js → chunk-A6EZK5RG.js} +4 -4
- package/dist/bundle/{chunk-ONJPUFLX.js → chunk-AC6VJNMJ.js} +1 -1
- package/dist/bundle/{chunk-QIK2IBJ4.js → chunk-ACI4YIEH.js} +23 -7
- package/dist/bundle/{chunk-UX4JZMA4.js → chunk-AIKFOBDO.js} +278 -59
- package/dist/bundle/{chunk-GCPO7T2X.js → chunk-ASBDFXLS.js} +3 -3
- package/dist/bundle/{chunk-O4ZBFATF.js → chunk-B32KZRQM.js} +12 -12
- package/dist/bundle/{chunk-5RVXXDN7.js → chunk-BBGJQMRI.js} +1 -1
- package/dist/bundle/chunk-BDKVOU3I.js +52 -0
- package/dist/bundle/{chunk-GCUOZ2OA.js → chunk-BP4FYANF.js} +6 -6
- package/dist/bundle/{chunk-XTCAWNBP.js → chunk-DCYFT3FR.js} +4 -4
- package/dist/bundle/{chunk-FPUGMDJV.js → chunk-DNCLQPOM.js} +1 -1
- package/dist/bundle/{chunk-PKW3TPNP.js → chunk-DSZYABYL.js} +38 -19
- package/dist/bundle/{chunk-6MDL2LZA.js → chunk-E745WZKY.js} +8 -8
- package/dist/bundle/chunk-EGTCQKHV.js +340 -0
- package/dist/bundle/chunk-EQG3PIH2.js +108 -0
- package/dist/bundle/{chunk-ZPZT46O6.js → chunk-ESN3W2MZ.js} +48 -12
- package/dist/bundle/{chunk-7U5X37TE.js → chunk-G46WJ7YO.js} +6 -6
- package/dist/bundle/{chunk-L6FM5RQY.js → chunk-G6PETRMV.js} +3 -3
- package/dist/bundle/chunk-GBHMT2IU.js +755 -0
- package/dist/bundle/{chunk-6QCBTBDA.js → chunk-GGMAIIVE.js} +1 -1
- package/dist/bundle/{chunk-6I4C4ZFT.js → chunk-GTKPMYK7.js} +2 -2
- package/dist/bundle/{chunk-N5YUHN6S.js → chunk-GWGHH56B.js} +12 -12
- package/dist/bundle/{chunk-5XO2AY6D.js → chunk-HC6VN5CO.js} +10 -10
- package/dist/bundle/{chunk-ARL2TTPZ.js → chunk-HP7A2ZOP.js} +9 -9
- package/dist/bundle/chunk-HZENBDW2.js +209 -0
- package/dist/bundle/{chunk-ST3ZB7LS.js → chunk-IANKXHSE.js} +1 -1
- package/dist/bundle/{chunk-GGKEQQME.js → chunk-ICPJT672.js} +13 -9
- package/dist/bundle/chunk-JQ54DYAQ.js +80 -0
- package/dist/bundle/chunk-K5JGJIV2.js +640 -0
- package/dist/bundle/{chunk-DYRISFHZ.js → chunk-KJ6USQDZ.js} +19 -9
- package/dist/bundle/{chunk-TMYZKDQ7.js → chunk-KKFY23AK.js} +65 -65
- package/dist/bundle/chunk-KQPUVXKX.js +84 -0
- package/dist/bundle/{chunk-BPSURRAD.js → chunk-KVJ3I7UL.js} +43 -64
- package/dist/bundle/{chunk-NXFKZFTC.js → chunk-KWU46LNK.js} +3 -3
- package/dist/bundle/chunk-KXJ3JEDH.js +2 -0
- package/dist/bundle/{chunk-YAA2D6RP.js → chunk-L75SMSJR.js} +5 -5
- package/dist/bundle/{chunk-OXPHJEJ2.js → chunk-LAYYO4WD.js} +3 -3
- package/dist/bundle/{chunk-6PIXP5IH.js → chunk-LEKKTJKK.js} +40 -26
- package/dist/bundle/{chunk-3AOESMW6.js → chunk-M7H4MCAX.js} +18 -259
- package/dist/bundle/{chunk-DZ6H3YJH.js → chunk-MAJJ4PG3.js} +19 -16
- package/dist/bundle/{chunk-G5VH4WUF.js → chunk-MQLPZBMQ.js} +2 -2
- package/dist/bundle/{chunk-3Z7CFQTI.js → chunk-N3JLO63O.js} +1 -1
- package/dist/bundle/{chunk-NMETTKCV.js → chunk-N46F72AF.js} +14 -14
- package/dist/bundle/{chunk-A3TUG2DP.js → chunk-NB7EOAUZ.js} +36 -1
- package/dist/bundle/{chunk-BRMV33MO.js → chunk-NEMX3UNN.js} +4 -4
- package/dist/bundle/{chunk-6CDMGT6Q.js → chunk-OBXQLFT5.js} +2 -2
- package/dist/bundle/{chunk-HH7GR6TN.js → chunk-OGNO35A2.js} +6 -6
- package/dist/bundle/{chunk-Q6MISDKJ.js → chunk-OIPYBF43.js} +3 -3
- package/dist/bundle/{chunk-6LY4LBSD.js → chunk-OO4TRVPB.js} +7 -7
- package/dist/bundle/{chunk-CHEHK6IW.js → chunk-OQFQ77AY.js} +214 -118
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-Q5LUGY2V.js → chunk-PMUPN6JW.js} +9 -9
- package/dist/bundle/chunk-PSKTMMCO.js +561 -0
- package/dist/bundle/{chunk-U5N2PKKM.js → chunk-PWVJUIDQ.js} +2 -2
- package/dist/bundle/{chunk-475P3LWG.js → chunk-Q7ICVP25.js} +1 -1
- package/dist/bundle/{chunk-JGSVWLL2.js → chunk-QG6PILDO.js} +2 -2
- package/dist/bundle/{chunk-5K54M6RD.js → chunk-QPHBK63S.js} +1 -1
- package/dist/bundle/{chunk-RFXJLG5V.js → chunk-QVSL5WJ7.js} +5173 -3077
- package/dist/bundle/{chunk-IQWBGMCR.js → chunk-QVYAV7F2.js} +4 -4
- package/dist/bundle/{chunk-XIHENZW6.js → chunk-R2B6PUVI.js} +4 -4
- package/dist/bundle/{chunk-MH4L5LL6.js → chunk-RQOZBTNI.js} +16 -3
- package/dist/bundle/{chunk-FSLR2YGR.js → chunk-T7IAWEBU.js} +7 -7
- package/dist/bundle/{chunk-D4HKTC2T.js → chunk-TKNM22OH.js} +2 -2
- package/dist/bundle/{chunk-EI37UXDR.js → chunk-TKVBFJ5C.js} +1 -1
- package/dist/bundle/{chunk-O3DYRCIT.js → chunk-TXDR6YSF.js} +1 -1
- package/dist/bundle/{chunk-CWXOXIWS.js → chunk-TY7NDMFY.js} +1 -1
- package/dist/bundle/{chunk-Z3CPZ4I4.js → chunk-UAWSINMC.js} +306 -306
- package/dist/bundle/{chunk-4F7Q5CET.js → chunk-UKAAAOPC.js} +31 -180
- package/dist/bundle/{chunk-XL4ND7CZ.js → chunk-UL2PXLKT.js} +26 -26
- package/dist/bundle/{chunk-GRYXOSN6.js → chunk-UQCTXZEP.js} +10 -10
- package/dist/bundle/{chunk-E3JVLVVB.js → chunk-UR5DBODY.js} +37 -30
- package/dist/bundle/{chunk-SUG6YGAF.js → chunk-V5EJSF2B.js} +237 -167
- package/dist/bundle/{chunk-HGSBLY6M.js → chunk-VB72LTSZ.js} +12 -12
- package/dist/bundle/{chunk-2XZ2YKW4.js → chunk-VB7FZOYX.js} +2 -100
- package/dist/bundle/{chunk-PMO2Z6DQ.js → chunk-VS6WURLX.js} +3 -3
- package/dist/bundle/{chunk-5QXQIZJY.js → chunk-VZ5PPYDG.js} +3 -4
- package/dist/bundle/{chunk-YR5TRWT2.js → chunk-W5QHB53X.js} +287 -580
- package/dist/bundle/{chunk-2P6MQH4V.js → chunk-WMANRJR5.js} +6 -6
- package/dist/bundle/chunk-WOPVBRPV.js +29 -0
- package/dist/bundle/{chunk-W32HK7KG.js → chunk-XQ2WL3HB.js} +2 -2
- package/dist/bundle/{chunk-FIJREKLA.js → chunk-XQQVMECZ.js} +3 -3
- package/dist/bundle/{chunk-75JW7X2W.js → chunk-Y6PVS55U.js} +71 -61
- package/dist/bundle/{chunk-EMYRUJCV.js → chunk-YJXJJ2XP.js} +8 -8
- package/dist/bundle/{chunk-L2TURFT6.js → chunk-YY7XKHDY.js} +10 -3
- package/dist/bundle/chunk-ZED2CJW5.js +353 -0
- package/dist/bundle/chunk-ZOYOXWJB.js +746 -0
- package/dist/bundle/{cli-QNBYDOKV.js → cli-U4O5XB7J.js} +171 -124
- package/dist/bundle/command-contract-FBTK6GQX.js +45 -0
- package/dist/bundle/{command-server-entry-WMA4SWJ5.js → command-server-entry-KKH6ZWJV.js} +35 -35
- package/dist/bundle/config-FRJSIZNN.js +118 -0
- package/dist/bundle/{decode-7PXUXNIP.js → decode-TPCNXEK4.js} +6 -6
- package/dist/bundle/{dispatch-AWDROXWN.js → dispatch-FKMIPCPQ.js} +9 -9
- package/dist/bundle/{dist-TSBH4FOU.js → dist-7CLBCYZN.js} +23 -21
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/{echarts-WIDIUEO6.js → echarts-O3TNDAXJ.js} +2 -2
- package/dist/bundle/{embed-EIRVQF5E.js → embed-WCJSFVSK.js} +7 -7
- package/dist/bundle/{embedder-MXPM6OXK.js → embedder-TBBUPXBX.js} +10 -10
- package/dist/bundle/{failure-JZW73RP7.js → failure-XTWBYI2A.js} +3 -3
- package/dist/bundle/first-run-ELEMFW42.js +29 -0
- package/dist/bundle/first-screen-DIOBWMKP.js +46 -0
- package/dist/bundle/{folders-TGFOE7DY.js → folders-LXOL4N4S.js} +5 -5
- package/dist/bundle/{instructions-D5LNE6NJ.js → instructions-AMH5RWVJ.js} +1 -1
- package/dist/bundle/{main-OHW5Z56X.js → main-YAA7WQ23.js} +24 -24
- package/dist/bundle/{mcp-RGNRW77S.js → mcp-5HFPWC3W.js} +2 -2
- package/dist/bundle/meeting-combined-UXCF4SJ3.js +26 -0
- package/dist/bundle/meeting-model-3BZJ3EQP.js +26 -0
- package/dist/bundle/{meeting-semantic-FYOVY4S2.js → meeting-semantic-3HU7I2SJ.js} +8 -8
- package/dist/bundle/{meetings-WI4SXPBJ.js → meetings-XWMB6FOH.js} +7 -7
- package/dist/bundle/{node-UEWUFR7N.js → node-EGMCBAO7.js} +2 -2
- package/dist/bundle/{node-sqlite-FJWKJHYU.js → node-sqlite-IJBWENFX.js} +8 -8
- package/dist/bundle/oauth-SZDDAP7A.js +20 -0
- package/dist/bundle/{open-EFYTWUGC.js → open-NS3TMKZX.js} +6 -6
- package/dist/bundle/openai-4DN6WI3B.js +28 -0
- package/dist/bundle/{output-file-J4SU6X4I.js → output-file-2UB5JP3R.js} +6 -6
- package/dist/bundle/{process-U5PLNIDC.js → process-SGHEN6MQ.js} +1 -1
- package/dist/bundle/{program-3JICCSA6.js → program-GVCGZP27.js} +170 -160
- package/dist/bundle/{prompt-YPDMSOKC.js → prompt-HJFMPFVC.js} +6 -6
- package/dist/bundle/public-C2ZB2AGQ.js +198 -0
- package/dist/bundle/{recognize-Z2SSWUKH.js → recognize-2SEI5PPM.js} +5 -5
- package/dist/bundle/{remote-R5HMDHOG.js → remote-2DMS74XE.js} +11 -11
- package/dist/bundle/{rerank-6NGBEMQ2.js → rerank-H6GCYVIA.js} +8 -8
- package/dist/bundle/run-log-QU26SUZP.js +145 -0
- package/dist/bundle/{serve-CU3RMWU7.js → serve-ODVRPFJO.js} +11 -11
- package/dist/bundle/server-NBPF6IDZ.js +95 -0
- package/dist/bundle/{server-SOQSVX2Q.js → server-PCLIO24L.js} +82 -69
- package/dist/bundle/{services-LROZ3RDT.js → services-4QAPXBLO.js} +60 -54
- package/dist/bundle/{speech-AS77HFIF.js → speech-MA6ZT3WE.js} +28 -28
- package/dist/bundle/{sqlite-runtime-U25NS6BK.js → sqlite-runtime-PVMAUXRN.js} +7 -7
- package/dist/bundle/{state-CPEVKK66.js → state-QFMTYUME.js} +7 -7
- package/dist/bundle/{store-6CHRMJM7.js → store-25OTAQC3.js} +31 -24
- package/dist/bundle/{store-QKHCZOYR.js → store-F724QIKJ.js} +34 -26
- package/dist/bundle/store-connection-OGPXANGB.js +111 -0
- package/dist/bundle/store-maintenance-command-2CM7LLNQ.js +83 -0
- package/dist/bundle/{streaming-VDJOYGMO.js → streaming-S22C4DG5.js} +7 -7
- package/dist/bundle/surface-7PXHWCF6.js +81 -0
- package/dist/bundle/{tokens-JBN2OHQB.js → tokens-NLUHA2DW.js} +11 -10
- package/dist/bundle/zm.js +9 -9
- package/dist/bundle/{zoom-app-Q4IKYNG3.js → zoom-app-YWFB367P.js} +8 -8
- package/dist/commands.d.ts +1 -0
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +8 -2
- package/dist/commands.js.map +1 -1
- package/dist/setup-commands.d.ts +1 -1
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +31 -5
- package/dist/setup-commands.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/zoom-api/types.d.ts +5 -0
- package/dist/zoom-api/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/bundle/answer-policy-7PYXHK2I.js +0 -122
- package/dist/bundle/chunk-3BTRJYIT.js +0 -729
- package/dist/bundle/chunk-M4LAF627.js +0 -719
- package/dist/bundle/command-contract-CT6MV6YG.js +0 -45
- package/dist/bundle/config-ZFQFDEVL.js +0 -109
- package/dist/bundle/first-run-K6EHRAIM.js +0 -29
- package/dist/bundle/first-screen-C6AF4KT4.js +0 -45
- package/dist/bundle/meeting-combined-3OKFXZNA.js +0 -26
- package/dist/bundle/meeting-model-4XNF725D.js +0 -26
- package/dist/bundle/oauth-KOONTGLW.js +0 -20
- package/dist/bundle/openai-6Y2JRDNY.js +0 -28
- package/dist/bundle/run-log-LG3TI3WI.js +0 -136
- package/dist/bundle/server-X7JYRMKX.js +0 -85
- package/dist/bundle/store-connection-FCDVOPWB.js +0 -102
- package/dist/bundle/store-maintenance-command-6HVOAHOZ.js +0 -77
|
@@ -2,52 +2,60 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
sharedModel
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ICPJT672.js";
|
|
6
6
|
import {
|
|
7
|
-
answerOf,
|
|
8
7
|
messengerContext
|
|
9
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UKAAAOPC.js";
|
|
10
9
|
import {
|
|
11
10
|
chatEventAnswer,
|
|
12
11
|
memberAnswer,
|
|
13
|
-
pollVoteAnswer
|
|
12
|
+
pollVoteAnswer
|
|
13
|
+
} from "./chunk-ZED2CJW5.js";
|
|
14
|
+
import {
|
|
14
15
|
serveRelay
|
|
15
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-EGTCQKHV.js";
|
|
16
17
|
import {
|
|
17
18
|
holdLock,
|
|
18
19
|
lockPath,
|
|
20
|
+
markCurrent,
|
|
19
21
|
releaseLock,
|
|
20
22
|
servingProfiles,
|
|
21
23
|
takeLock
|
|
22
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-RQOZBTNI.js";
|
|
23
25
|
import {
|
|
24
26
|
FETCHING,
|
|
25
27
|
RULES_VERSION,
|
|
28
|
+
answerOf,
|
|
26
29
|
applyTaskRulesOnArrival,
|
|
27
|
-
|
|
30
|
+
inside,
|
|
28
31
|
newSendId,
|
|
29
32
|
onlineDeps,
|
|
30
33
|
openRequestTask,
|
|
31
34
|
patiently,
|
|
32
|
-
|
|
35
|
+
realPathOf,
|
|
33
36
|
refuseLockedOutput,
|
|
37
|
+
refusedPlace,
|
|
34
38
|
senderIsMe,
|
|
35
39
|
servicesFor,
|
|
36
|
-
syncsOneChat
|
|
37
|
-
|
|
38
|
-
withQuery
|
|
39
|
-
} from "./chunk-RFXJLG5V.js";
|
|
40
|
+
syncsOneChat
|
|
41
|
+
} from "./chunk-QVSL5WJ7.js";
|
|
40
42
|
import {
|
|
41
43
|
embeddingKeys,
|
|
42
44
|
endpointKeyName,
|
|
43
45
|
modelGateway
|
|
44
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-676C2LE6.js";
|
|
45
47
|
import {
|
|
46
48
|
withTimeLimit
|
|
47
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-QPHBK63S.js";
|
|
50
|
+
import {
|
|
51
|
+
capability,
|
|
52
|
+
queryTerms,
|
|
53
|
+
typedQuery,
|
|
54
|
+
withQuery
|
|
55
|
+
} from "./chunk-GBHMT2IU.js";
|
|
48
56
|
import {
|
|
49
57
|
renderMessages
|
|
50
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-QG6PILDO.js";
|
|
51
59
|
import {
|
|
52
60
|
QUICK_HEALTH_CHECKS,
|
|
53
61
|
fts5Tables,
|
|
@@ -55,7 +63,7 @@ import {
|
|
|
55
63
|
lossUnknown,
|
|
56
64
|
storeDamageReport,
|
|
57
65
|
storeHealth
|
|
58
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-66ALX4ZI.js";
|
|
59
67
|
import {
|
|
60
68
|
Command,
|
|
61
69
|
LOCAL_READ,
|
|
@@ -81,19 +89,19 @@ import {
|
|
|
81
89
|
snakeKeys,
|
|
82
90
|
storeTable,
|
|
83
91
|
withoutProviderRefs
|
|
84
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-V5EJSF2B.js";
|
|
85
93
|
import {
|
|
86
94
|
modelTarget
|
|
87
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-2CI2OEZQ.js";
|
|
88
96
|
import {
|
|
89
97
|
holdersOf
|
|
90
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-3YM4B2GT.js";
|
|
91
99
|
import {
|
|
92
100
|
levelFor
|
|
93
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-KJ6USQDZ.js";
|
|
94
102
|
import {
|
|
95
103
|
readSecret
|
|
96
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-OIPYBF43.js";
|
|
97
105
|
import {
|
|
98
106
|
CORPORA,
|
|
99
107
|
MIGRATIONS,
|
|
@@ -117,10 +125,12 @@ import {
|
|
|
117
125
|
readStoreTables,
|
|
118
126
|
rebuildMentions,
|
|
119
127
|
resetAttachmentWords,
|
|
128
|
+
resetContentPostWords,
|
|
120
129
|
resetCrmFileWords,
|
|
121
130
|
resetNoteIndex,
|
|
122
131
|
resetSearchIndex,
|
|
123
132
|
resetStems,
|
|
133
|
+
resetTrackerItemWords,
|
|
124
134
|
rollBack,
|
|
125
135
|
rowCounts,
|
|
126
136
|
searchIndexState,
|
|
@@ -129,37 +139,37 @@ import {
|
|
|
129
139
|
storeClients,
|
|
130
140
|
storeContents,
|
|
131
141
|
vectorIndexCounts
|
|
132
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-2GP573Q4.js";
|
|
133
143
|
import {
|
|
134
144
|
readDamageMark,
|
|
135
145
|
readHealthMark,
|
|
136
146
|
readJournalMark,
|
|
137
147
|
recordDeepCheck
|
|
138
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-ZOYOXWJB.js";
|
|
139
149
|
import {
|
|
140
150
|
currentRun
|
|
141
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-WMANRJR5.js";
|
|
142
152
|
import {
|
|
143
153
|
failureKey,
|
|
144
154
|
isStoreDamage
|
|
145
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-GTKPMYK7.js";
|
|
146
156
|
import {
|
|
147
157
|
formatLocator,
|
|
148
158
|
parseLocator
|
|
149
|
-
} from "./chunk-
|
|
159
|
+
} from "./chunk-DSZYABYL.js";
|
|
150
160
|
import {
|
|
151
161
|
storePath
|
|
152
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-274SLQNW.js";
|
|
153
163
|
import {
|
|
154
164
|
openCache
|
|
155
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-G46WJ7YO.js";
|
|
156
166
|
import {
|
|
157
167
|
queryFieldsOf
|
|
158
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-UAWSINMC.js";
|
|
159
169
|
import {
|
|
160
170
|
resolvePaths,
|
|
161
171
|
writeSecurely
|
|
162
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-6CWL5BKG.js";
|
|
163
173
|
import {
|
|
164
174
|
array,
|
|
165
175
|
boolean,
|
|
@@ -180,10 +190,10 @@ import {
|
|
|
180
190
|
string,
|
|
181
191
|
transform,
|
|
182
192
|
trim
|
|
183
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-ESN3W2MZ.js";
|
|
184
194
|
import {
|
|
185
195
|
CliError
|
|
186
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-IANKXHSE.js";
|
|
187
197
|
import {
|
|
188
198
|
__commonJS,
|
|
189
199
|
__name,
|
|
@@ -258,9 +268,9 @@ var require_liquid_node = __commonJS({
|
|
|
258
268
|
__name(isIterator, "isIterator");
|
|
259
269
|
function promisify(fn) {
|
|
260
270
|
return function(...args) {
|
|
261
|
-
return new Promise((
|
|
271
|
+
return new Promise((resolve4, reject2) => {
|
|
262
272
|
fn(...args, (err, result2) => {
|
|
263
|
-
err ? reject2(err) :
|
|
273
|
+
err ? reject2(err) : resolve4(result2);
|
|
264
274
|
});
|
|
265
275
|
});
|
|
266
276
|
};
|
|
@@ -1850,12 +1860,12 @@ var require_liquid_node = __commonJS({
|
|
|
1850
1860
|
return fs$1.readFileSync(filepath, "utf8");
|
|
1851
1861
|
}
|
|
1852
1862
|
__name(readFileSync6, "readFileSync");
|
|
1853
|
-
function
|
|
1863
|
+
function resolve3(root, file2, ext) {
|
|
1854
1864
|
if (!path.extname(file2))
|
|
1855
1865
|
file2 += ext;
|
|
1856
1866
|
return path.resolve(root, file2);
|
|
1857
1867
|
}
|
|
1858
|
-
__name(
|
|
1868
|
+
__name(resolve3, "resolve");
|
|
1859
1869
|
function fallback(file2) {
|
|
1860
1870
|
try {
|
|
1861
1871
|
return requireResolve(file2);
|
|
@@ -1863,10 +1873,10 @@ var require_liquid_node = __commonJS({
|
|
|
1863
1873
|
}
|
|
1864
1874
|
}
|
|
1865
1875
|
__name(fallback, "fallback");
|
|
1866
|
-
function
|
|
1876
|
+
function dirname5(filepath) {
|
|
1867
1877
|
return path.dirname(filepath);
|
|
1868
1878
|
}
|
|
1869
|
-
__name(
|
|
1879
|
+
__name(dirname5, "dirname");
|
|
1870
1880
|
var realpathAsync = promisify(fs$1.realpath);
|
|
1871
1881
|
async function contains(root, file2) {
|
|
1872
1882
|
try {
|
|
@@ -1896,9 +1906,9 @@ var require_liquid_node = __commonJS({
|
|
|
1896
1906
|
readFile,
|
|
1897
1907
|
existsSync: existsSync11,
|
|
1898
1908
|
readFileSync: readFileSync6,
|
|
1899
|
-
resolve:
|
|
1909
|
+
resolve: resolve3,
|
|
1900
1910
|
fallback,
|
|
1901
|
-
dirname:
|
|
1911
|
+
dirname: dirname5,
|
|
1902
1912
|
contains,
|
|
1903
1913
|
containsSync,
|
|
1904
1914
|
sep: path.sep
|
|
@@ -3623,7 +3633,7 @@ var require_liquid_node = __commonJS({
|
|
|
3623
3633
|
uri_escape,
|
|
3624
3634
|
slugify
|
|
3625
3635
|
});
|
|
3626
|
-
var
|
|
3636
|
+
var join7 = argumentsToValue(function(v, arg) {
|
|
3627
3637
|
const array2 = toArray(v);
|
|
3628
3638
|
const sep = isNil(arg) ? " " : stringify(arg);
|
|
3629
3639
|
let outputSize = sep.length * Math.max(array2.length - 1, 0);
|
|
@@ -3899,7 +3909,7 @@ var require_liquid_node = __commonJS({
|
|
|
3899
3909
|
__name(sample, "sample");
|
|
3900
3910
|
var arrayFilters = /* @__PURE__ */ Object.freeze({
|
|
3901
3911
|
__proto__: null,
|
|
3902
|
-
join:
|
|
3912
|
+
join: join7,
|
|
3903
3913
|
last,
|
|
3904
3914
|
first,
|
|
3905
3915
|
reverse,
|
|
@@ -5523,11 +5533,11 @@ var require_liquid_node = __commonJS({
|
|
|
5523
5533
|
}
|
|
5524
5534
|
});
|
|
5525
5535
|
|
|
5526
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5536
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5527
5537
|
import { chmodSync, constants, copyFileSync, existsSync as existsSync10, mkdirSync, realpathSync as realpathSync3, renameSync as renameSync3, rmSync as rmSync3, statfsSync as statfsSync2, statSync as statSync4, writeFileSync as writeFileSync2 } from "node:fs";
|
|
5528
|
-
import { dirname as
|
|
5538
|
+
import { dirname as dirname4, resolve as resolve2 } from "node:path";
|
|
5529
5539
|
|
|
5530
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5540
|
+
// 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/sealed.js
|
|
5531
5541
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5532
5542
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5533
5543
|
import { Transform } from "node:stream";
|
|
@@ -5539,7 +5549,7 @@ var NONCE = 12;
|
|
|
5539
5549
|
var TAG = 16;
|
|
5540
5550
|
var HEADER = MAGIC.length + 3 + SALT + NONCE;
|
|
5541
5551
|
var COST = { log2N: 17, r: 8, p: 1 };
|
|
5542
|
-
var keyOf = /* @__PURE__ */ __name((password, salt, { log2N, r, p }) => new Promise((
|
|
5552
|
+
var keyOf = /* @__PURE__ */ __name((password, salt, { log2N, r, p }) => new Promise((resolve3, reject) => scrypt(password, salt, 32, { N: 2 ** log2N, r, p, maxmem: 2 * 128 * r * 2 ** log2N }, (error, key) => error ? reject(error) : resolve3(key))), "keyOf");
|
|
5543
5553
|
var checkFor = /* @__PURE__ */ __name(async (password, cost = COST) => {
|
|
5544
5554
|
refuseEmpty(password);
|
|
5545
5555
|
const salt = randomBytes(SALT);
|
|
@@ -5634,7 +5644,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5634
5644
|
renameSync(pending, to);
|
|
5635
5645
|
}, "unsealFile");
|
|
5636
5646
|
|
|
5637
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5647
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5638
5648
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5639
5649
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5640
5650
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5658,7 +5668,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5658
5668
|
};
|
|
5659
5669
|
}, "compatibilityOf");
|
|
5660
5670
|
|
|
5661
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5671
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5662
5672
|
import { createHash as createHash2 } from "node:crypto";
|
|
5663
5673
|
var COPY_MARK = "__repair_";
|
|
5664
5674
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5912,19 +5922,79 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5912
5922
|
return found;
|
|
5913
5923
|
}, "deleteCopy");
|
|
5914
5924
|
|
|
5915
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5925
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/path-options.js
|
|
5926
|
+
import { dirname, isAbsolute, join, resolve } from "node:path";
|
|
5927
|
+
var PATH_NAME = /^([a-z]+-)*(file|path|dir|directory|folder)s?$/;
|
|
5928
|
+
var PATH_PLACEHOLDER = /[<[]([a-z]+-)*(file|path|dir|directory|folder)s?(\.\.\.)?[>\]]/;
|
|
5929
|
+
var NOT_LOCAL = /* @__PURE__ */ new WeakMap();
|
|
5930
|
+
var IN_BACKUPS = /* @__PURE__ */ new WeakMap();
|
|
5931
|
+
var mark = /* @__PURE__ */ __name((marks, command, names) => {
|
|
5932
|
+
marks.set(command, /* @__PURE__ */ new Set([...marks.get(command) ?? [], ...names]));
|
|
5933
|
+
return command;
|
|
5934
|
+
}, "mark");
|
|
5935
|
+
var notLocalPaths = /* @__PURE__ */ __name((command, ...names) => mark(NOT_LOCAL, command, names), "notLocalPaths");
|
|
5936
|
+
var inStoreBackups = /* @__PURE__ */ __name((command, ...names) => mark(IN_BACKUPS, command, names), "inStoreBackups");
|
|
5937
|
+
var marked = /* @__PURE__ */ __name((marks, command, name) => {
|
|
5938
|
+
for (let at = command; at; at = at.parent)
|
|
5939
|
+
if (marks.get(at)?.has(name))
|
|
5940
|
+
return true;
|
|
5941
|
+
return false;
|
|
5942
|
+
}, "marked");
|
|
5943
|
+
var isLocalPathOption = /* @__PURE__ */ __name((command, option) => PATH_PLACEHOLDER.test(option.flags) && !marked(NOT_LOCAL, command, option.attributeName()), "isLocalPathOption");
|
|
5944
|
+
var isLocalPathArgument = /* @__PURE__ */ __name((command, argument) => PATH_NAME.test(argument.name()) && !marked(NOT_LOCAL, command, argument.name()), "isLocalPathArgument");
|
|
5945
|
+
var isNamed = /* @__PURE__ */ __name((value) => value !== "" && value !== "-" && !value.includes("://"), "isNamed");
|
|
5946
|
+
var valuesOf = /* @__PURE__ */ __name((value) => (Array.isArray(value) ? value : [value]).filter((one) => typeof one === "string" && isNamed(one)), "valuesOf");
|
|
5947
|
+
var localPathsOf = /* @__PURE__ */ __name((action) => {
|
|
5948
|
+
const found = [];
|
|
5949
|
+
for (let at = action; at; at = at.parent) {
|
|
5950
|
+
for (const option of at.options) {
|
|
5951
|
+
const key = option.attributeName();
|
|
5952
|
+
if (!isLocalPathOption(at, option) || at.getOptionValueSource(key) !== "cli")
|
|
5953
|
+
continue;
|
|
5954
|
+
const flag = option.long ?? option.flags;
|
|
5955
|
+
for (const value of valuesOf(at.getOptionValue(key)))
|
|
5956
|
+
found.push({ flag, value, inBackups: marked(IN_BACKUPS, at, key) });
|
|
5957
|
+
}
|
|
5958
|
+
}
|
|
5959
|
+
action.registeredArguments.forEach((argument, index) => {
|
|
5960
|
+
const value = action.processedArgs[index];
|
|
5961
|
+
if (!isLocalPathArgument(action, argument) || value === argument.defaultValue)
|
|
5962
|
+
return;
|
|
5963
|
+
for (const one of valuesOf(value))
|
|
5964
|
+
found.push({ flag: `<${argument.name()}>`, value: one, inBackups: marked(IN_BACKUPS, action, argument.name()) });
|
|
5965
|
+
});
|
|
5966
|
+
return found;
|
|
5967
|
+
}, "localPathsOf");
|
|
5968
|
+
var refuseAgentPaths = /* @__PURE__ */ __name((action, app, env) => {
|
|
5969
|
+
const backups = join(dirname(resolve(storePath(env))), "backups");
|
|
5970
|
+
for (const { flag, value, inBackups } of localPathsOf(action)) {
|
|
5971
|
+
if (inBackups && inside(realPathOf(value), realPathOf(backups)))
|
|
5972
|
+
continue;
|
|
5973
|
+
if (refusedPlace(value, app, env))
|
|
5974
|
+
throw new CliError("permission_error", `${flag} ${value}: an agent's call reads and writes no credential folder, no folder of a WireCat tool and not the message store \u2014 the owner runs it in a terminal`, { param: flag, sent: false });
|
|
5975
|
+
}
|
|
5976
|
+
}, "refuseAgentPaths");
|
|
5977
|
+
var absoluteFrom = /* @__PURE__ */ __name((cwd, value) => {
|
|
5978
|
+
if (Array.isArray(value))
|
|
5979
|
+
return value.map((one) => absoluteFrom(cwd, one));
|
|
5980
|
+
if (typeof value !== "string" || !isNamed(value) || isAbsolute(value))
|
|
5981
|
+
return value;
|
|
5982
|
+
return resolve(cwd, value);
|
|
5983
|
+
}, "absoluteFrom");
|
|
5984
|
+
|
|
5985
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5916
5986
|
import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
|
|
5917
5987
|
|
|
5918
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5988
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
5919
5989
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5920
5990
|
|
|
5921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5991
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
5922
5992
|
import { execFileSync, spawn } from "node:child_process";
|
|
5923
5993
|
import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
|
|
5924
|
-
import { basename, dirname, join } from "node:path";
|
|
5994
|
+
import { basename, dirname as dirname2, join as join2 } from "node:path";
|
|
5925
5995
|
import { Transform as Transform2 } from "node:stream";
|
|
5926
5996
|
|
|
5927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5997
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/refill.js
|
|
5928
5998
|
var REFILL_MARGIN_MS = 864e5;
|
|
5929
5999
|
var TIME_KEYS = 1e12;
|
|
5930
6000
|
var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
|
|
@@ -6004,7 +6074,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
|
|
|
6004
6074
|
return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
|
|
6005
6075
|
}, "forgetMail");
|
|
6006
6076
|
|
|
6007
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6077
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
6008
6078
|
var SQLITE3_MINIMUM = [3, 43, 0];
|
|
6009
6079
|
var STORE_PARTS = ["", "-wal", "-shm"];
|
|
6010
6080
|
var RECOVER_LOCK = ".recover-lock";
|
|
@@ -6080,8 +6150,8 @@ var takeRecoverLock = /* @__PURE__ */ __name((path) => {
|
|
|
6080
6150
|
return () => rmSync2(lock, { force: true });
|
|
6081
6151
|
}, "takeRecoverLock");
|
|
6082
6152
|
var storeHolders = /* @__PURE__ */ __name((path) => {
|
|
6083
|
-
const folder = realpathSync(
|
|
6084
|
-
const files = STORE_PARTS.map((suffix) =>
|
|
6153
|
+
const folder = realpathSync(dirname2(path));
|
|
6154
|
+
const files = STORE_PARTS.map((suffix) => join2(folder, `${basename(path)}${suffix}`));
|
|
6085
6155
|
const wanted = process.platform === "linux" ? files.flatMap((file2) => [file2, `${file2} (deleted)`]) : files.filter(existsSync2);
|
|
6086
6156
|
const recovering = runningRecovery(path);
|
|
6087
6157
|
const pids = holdersOf(wanted);
|
|
@@ -6224,7 +6294,7 @@ var placeLostRows = /* @__PURE__ */ __name((database) => {
|
|
|
6224
6294
|
}
|
|
6225
6295
|
return Object.fromEntries(Object.entries(placed).filter(([, rows2]) => rows2 > 0));
|
|
6226
6296
|
}, "placeLostRows");
|
|
6227
|
-
var copyReadableRows = /* @__PURE__ */ __name((path, target, program = "sqlite3") => new Promise((
|
|
6297
|
+
var copyReadableRows = /* @__PURE__ */ __name((path, target, program = "sqlite3") => new Promise((resolve3, reject) => {
|
|
6228
6298
|
const reader = spawn(program, ["-readonly", path, `.recover --ignore-freelist --lost-and-found ${LOST_AND_FOUND}`], {
|
|
6229
6299
|
stdio: ["ignore", "pipe", "pipe"]
|
|
6230
6300
|
});
|
|
@@ -6261,7 +6331,7 @@ var copyReadableRows = /* @__PURE__ */ __name((path, target, program = "sqlite3"
|
|
|
6261
6331
|
if (readerCode !== 0)
|
|
6262
6332
|
reject(new CliError("validation_error", `sqlite3 could not read the store: ${errors.join("; ")}`));
|
|
6263
6333
|
else
|
|
6264
|
-
|
|
6334
|
+
resolve3({ errors, read });
|
|
6265
6335
|
}, "exited");
|
|
6266
6336
|
reader.on("error", reject);
|
|
6267
6337
|
writer.on("error", reject);
|
|
@@ -6282,6 +6352,8 @@ var FILLERS = {
|
|
|
6282
6352
|
}, "message_stems"),
|
|
6283
6353
|
attachment_words: /* @__PURE__ */ __name((database) => void resetAttachmentWords(database), "attachment_words"),
|
|
6284
6354
|
crm_file_words: /* @__PURE__ */ __name((database) => void resetCrmFileWords(database), "crm_file_words"),
|
|
6355
|
+
tracker_item_words: /* @__PURE__ */ __name((database) => void resetTrackerItemWords(database), "tracker_item_words"),
|
|
6356
|
+
content_post_words: /* @__PURE__ */ __name((database) => void resetContentPostWords(database), "content_post_words"),
|
|
6285
6357
|
attachment_name_words: /* @__PURE__ */ __name((database) => (
|
|
6286
6358
|
// As migration 20 filled it: й and ё fold as the triggers fold them.
|
|
6287
6359
|
database.exec("INSERT INTO attachment_name_words (rowid, name) SELECT id, replace(replace(replace(replace(name, '\u0439', '\u0438'), '\u0419', '\u0418'), '\u0451', '\u0435'), '\u0401', '\u0415') FROM attachments WHERE name IS NOT NULL")
|
|
@@ -6395,7 +6467,7 @@ var recoverStore = /* @__PURE__ */ __name(async ({ path, command, version, sqlit
|
|
|
6395
6467
|
try {
|
|
6396
6468
|
refuseInUse(path);
|
|
6397
6469
|
const bytes = STORE_PARTS.reduce((sum, suffix) => sum + (statSync2(`${path}${suffix}`, { throwIfNoEntry: false })?.size ?? 0), 0);
|
|
6398
|
-
const { bavail, bsize } = statfsSync(
|
|
6470
|
+
const { bavail, bsize } = statfsSync(dirname2(path));
|
|
6399
6471
|
if (Number(bavail) * Number(bsize) < bytes * 1.2)
|
|
6400
6472
|
throw new CliError("validation_error", `the recovery needs about ${Math.ceil(bytes * 1.2 / 1e9)} GB free beside the store`);
|
|
6401
6473
|
return await recoverLocked({ path, command, version, sqlite3, now, note, copy, started, program });
|
|
@@ -6533,7 +6605,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
|
|
|
6533
6605
|
}
|
|
6534
6606
|
}, "recoverLocked");
|
|
6535
6607
|
|
|
6536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6608
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
6537
6609
|
var COUNTED = [
|
|
6538
6610
|
"accounts",
|
|
6539
6611
|
"chats",
|
|
@@ -6568,7 +6640,7 @@ var storeRecoveryCheck = /* @__PURE__ */ __name(async (env, command, version) =>
|
|
|
6568
6640
|
}
|
|
6569
6641
|
const journal = readJournalMark(path);
|
|
6570
6642
|
recordDeepCheck(path, health, { cli: command, ...version ? { version } : {}, schema });
|
|
6571
|
-
const
|
|
6643
|
+
const mark2 = readDamageMark(path);
|
|
6572
6644
|
const lastKnownGood = readHealthMark(path)?.last_ok_at ?? null;
|
|
6573
6645
|
const inUse = storeHolders(path) ?? null;
|
|
6574
6646
|
const timers = activeTimers() ?? null;
|
|
@@ -6576,7 +6648,7 @@ var storeRecoveryCheck = /* @__PURE__ */ __name(async (env, command, version) =>
|
|
|
6576
6648
|
const report = storeDamageReport({
|
|
6577
6649
|
health,
|
|
6578
6650
|
command,
|
|
6579
|
-
mark,
|
|
6651
|
+
mark: mark2,
|
|
6580
6652
|
journal,
|
|
6581
6653
|
lastOkAt: lastKnownGood,
|
|
6582
6654
|
holders: inUse,
|
|
@@ -6594,7 +6666,7 @@ var storeRecoveryCheck = /* @__PURE__ */ __name(async (env, command, version) =>
|
|
|
6594
6666
|
invalidJson: health.invalidJson ?? [],
|
|
6595
6667
|
rows,
|
|
6596
6668
|
report,
|
|
6597
|
-
damageMark:
|
|
6669
|
+
damageMark: mark2 ? (({ inode: _, ...seen }) => seen)(mark2) : null,
|
|
6598
6670
|
lastKnownGood,
|
|
6599
6671
|
inUse,
|
|
6600
6672
|
timers,
|
|
@@ -6627,12 +6699,12 @@ var storeRecoveryRun = /* @__PURE__ */ __name(async (env, { command, version, no
|
|
|
6627
6699
|
}, "storeRecoveryRun");
|
|
6628
6700
|
var refetchNotes = /* @__PURE__ */ __name(({ since, chats, mail }) => {
|
|
6629
6701
|
const from = since === null ? "from the start" : `from ${since} on`;
|
|
6630
|
-
const
|
|
6702
|
+
const marked2 = [
|
|
6631
6703
|
...chats.map(({ provider, account, chats: chats2 }) => `${chats2} chats of ${provider} ${account}`),
|
|
6632
6704
|
...mail.map(({ account, folders }) => `${folders} mail folders of ${account}`)
|
|
6633
6705
|
];
|
|
6634
6706
|
return [
|
|
6635
|
-
|
|
6707
|
+
marked2.length > 0 ? `marked as not fetched ${from}, so the next sync or serve fetches it again: ${marked2.join(", ")}` : `nothing held ${from} was marked as fetched, so there is nothing to fetch again`,
|
|
6636
6708
|
...chats.filter(({ provider }) => provider === "whatsapp").map(({ account }) => `whatsapp ${account}: WhatsApp cannot be asked for its chats, so only what the phone pushes while serve runs comes back`),
|
|
6637
6709
|
"notes, memories, tags and whatever else only this store held cannot be fetched again"
|
|
6638
6710
|
];
|
|
@@ -6689,7 +6761,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
|
6689
6761
|
return recover;
|
|
6690
6762
|
}, "storeRecoverCommand");
|
|
6691
6763
|
|
|
6692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6764
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
6693
6765
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
6694
6766
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
|
|
6695
6767
|
var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
|
|
@@ -6739,7 +6811,7 @@ var sharedStoreCommand = /* @__PURE__ */ __name((app) => {
|
|
|
6739
6811
|
return app ? store.addCommand(storeRecoverCommand(app)) : store;
|
|
6740
6812
|
}, "sharedStoreCommand");
|
|
6741
6813
|
|
|
6742
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6814
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
6743
6815
|
var ENCRYPT_OPTION = [
|
|
6744
6816
|
"--encrypt",
|
|
6745
6817
|
"compress and encrypt with a password, typed at a hidden prompt or piped on stdin; it is never kept \u2014 lose it and the file cannot be opened"
|
|
@@ -6758,9 +6830,9 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
6758
6830
|
return password;
|
|
6759
6831
|
}, "passwordOf");
|
|
6760
6832
|
|
|
6761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6833
|
+
// 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/replies/rules.js
|
|
6762
6834
|
import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
|
|
6763
|
-
import { join as
|
|
6835
|
+
import { join as join3 } from "node:path";
|
|
6764
6836
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
6765
6837
|
var REPLY_MODELS = ["fill-only", "may-reword"];
|
|
6766
6838
|
var REPLY_KINDS = ["dialog", "group"];
|
|
@@ -6846,7 +6918,7 @@ var defaultRule = /* @__PURE__ */ __name((id) => ({
|
|
|
6846
6918
|
reply: { template: "", asReply: true },
|
|
6847
6919
|
limits: { perChat: "1/1d", perPerson: "1/1d" }
|
|
6848
6920
|
}), "defaultRule");
|
|
6849
|
-
var repliesPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) =>
|
|
6921
|
+
var repliesPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).config, `${profile}.replies.json`), "repliesPathFor");
|
|
6850
6922
|
var EVERYONE = { reply: "all", allow: { people: [], chats: [] }, deny: { people: [], chats: [] } };
|
|
6851
6923
|
var outsideAudience = /* @__PURE__ */ __name((audience, person, chat) => {
|
|
6852
6924
|
if (person !== null && audience.deny.people.includes(person))
|
|
@@ -6929,9 +7001,9 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6929
7001
|
}, "problem");
|
|
6930
7002
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6931
7003
|
|
|
6932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7004
|
+
// 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/replies/state.js
|
|
6933
7005
|
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
6934
|
-
import { join as
|
|
7006
|
+
import { join as join4 } from "node:path";
|
|
6935
7007
|
var ANSWERED_KEPT = 1e3;
|
|
6936
7008
|
var times = record(string(), array(string()));
|
|
6937
7009
|
var stateFile = object({
|
|
@@ -6943,7 +7015,7 @@ var stateFile = object({
|
|
|
6943
7015
|
});
|
|
6944
7016
|
var emptyState = /* @__PURE__ */ __name(() => ({ paused: false, answered: [], sent: {} }), "emptyState");
|
|
6945
7017
|
var answeredKey = /* @__PURE__ */ __name((message) => `${message.chatId}:${message.id}`, "answeredKey");
|
|
6946
|
-
var repliesStatePathFor = /* @__PURE__ */ __name((app, profile, env = process.env) =>
|
|
7018
|
+
var repliesStatePathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join4(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, `${profile}.replies-state.json`), "repliesStatePathFor");
|
|
6947
7019
|
var readRepliesState = /* @__PURE__ */ __name((path) => {
|
|
6948
7020
|
if (!existsSync6(path))
|
|
6949
7021
|
return emptyState();
|
|
@@ -6982,7 +7054,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6982
7054
|
}, "recordReply");
|
|
6983
7055
|
var broken2 = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply state ${path} cannot be read (${why}) \u2014 fix or move the file`), "broken");
|
|
6984
7056
|
|
|
6985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7057
|
+
// 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/replies/decide.js
|
|
6986
7058
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6987
7059
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6988
7060
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -7088,10 +7160,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
7088
7160
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
7089
7161
|
}, "filled");
|
|
7090
7162
|
|
|
7091
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7163
|
+
// 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/replies/template.js
|
|
7092
7164
|
var import_liquidjs2 = __toESM(require_liquid_node(), 1);
|
|
7093
7165
|
|
|
7094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7166
|
+
// 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/render/liquid.js
|
|
7095
7167
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
7096
7168
|
var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
7097
7169
|
const engine = new import_liquidjs.Liquid({
|
|
@@ -7118,7 +7190,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
|
7118
7190
|
return engine;
|
|
7119
7191
|
}, "safeLiquid");
|
|
7120
7192
|
|
|
7121
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7193
|
+
// 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/replies/template.js
|
|
7122
7194
|
var TEMPLATE_LIMITS = {
|
|
7123
7195
|
parse: 32768,
|
|
7124
7196
|
renders: 2e3,
|
|
@@ -7257,7 +7329,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
7257
7329
|
}
|
|
7258
7330
|
}, "renderReplyTemplate");
|
|
7259
7331
|
|
|
7260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7332
|
+
// 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/replies/dry-run.js
|
|
7261
7333
|
var DRY_RUN_DAYS = 7;
|
|
7262
7334
|
var PAGE = 500;
|
|
7263
7335
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -7371,7 +7443,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
7371
7443
|
}
|
|
7372
7444
|
}, "storedSince");
|
|
7373
7445
|
|
|
7374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7446
|
+
// 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/models/purpose.js
|
|
7375
7447
|
var HOSTED = {
|
|
7376
7448
|
openai: "https://api.openai.com/v1",
|
|
7377
7449
|
anthropic: "https://api.anthropic.com"
|
|
@@ -7392,14 +7464,14 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
|
|
|
7392
7464
|
return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
|
|
7393
7465
|
}, "purposeModel");
|
|
7394
7466
|
|
|
7395
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7467
|
+
// 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/replies/consents.js
|
|
7396
7468
|
import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
|
|
7397
|
-
import { join as
|
|
7469
|
+
import { join as join5 } from "node:path";
|
|
7398
7470
|
var shape = strictObject({
|
|
7399
7471
|
provider: nullable(pipe(string(), minLength(1))),
|
|
7400
7472
|
deniedChats: array(pipe(string(), minLength(1)))
|
|
7401
7473
|
});
|
|
7402
|
-
var replyConsentPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) =>
|
|
7474
|
+
var replyConsentPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join5(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).config, `${profile}.replies-consents.json`), "replyConsentPathFor");
|
|
7403
7475
|
var readReplyConsent = /* @__PURE__ */ __name((path) => {
|
|
7404
7476
|
if (!existsSync7(path))
|
|
7405
7477
|
return { provider: null, deniedChats: [] };
|
|
@@ -7417,7 +7489,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
7417
7489
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
7418
7490
|
}, "mayModelReply");
|
|
7419
7491
|
|
|
7420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7492
|
+
// 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/replies/rendering.js
|
|
7421
7493
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
|
|
7422
7494
|
ai: true
|
|
7423
7495
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -7465,7 +7537,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
7465
7537
|
return result2;
|
|
7466
7538
|
}, "replyRenderer");
|
|
7467
7539
|
|
|
7468
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7540
|
+
// 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/replies/serve.js
|
|
7469
7541
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
7470
7542
|
var NO_RULES = "no rules";
|
|
7471
7543
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -7558,7 +7630,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
7558
7630
|
return { skip: why };
|
|
7559
7631
|
}, "replyTo");
|
|
7560
7632
|
|
|
7561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7633
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
|
|
7562
7634
|
var START_SYNC_DELAY_MS = 3e4;
|
|
7563
7635
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
7564
7636
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -7635,7 +7707,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
|
|
|
7635
7707
|
};
|
|
7636
7708
|
}, "startSync");
|
|
7637
7709
|
|
|
7638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7710
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
7639
7711
|
var FIRST_FETCH_MS = 6e4;
|
|
7640
7712
|
var DAY_MS = 864e5;
|
|
7641
7713
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -7689,7 +7761,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
|
|
|
7689
7761
|
};
|
|
7690
7762
|
}, "memberFetches");
|
|
7691
7763
|
|
|
7692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7764
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
7693
7765
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
7694
7766
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
7695
7767
|
if (context.format === "pretty") {
|
|
@@ -7722,22 +7794,22 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7722
7794
|
return context;
|
|
7723
7795
|
}, "recordDiagnostics");
|
|
7724
7796
|
|
|
7725
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7797
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
|
|
7726
7798
|
import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
|
|
7727
|
-
import { dirname as
|
|
7799
|
+
import { dirname as dirname3, join as join6 } from "node:path";
|
|
7728
7800
|
var OUTDATED_CHECK_MS = 6e4;
|
|
7729
7801
|
var ownPackageRoot = /* @__PURE__ */ __name((running, script = process.argv[1]) => {
|
|
7730
7802
|
let dir;
|
|
7731
7803
|
try {
|
|
7732
|
-
dir =
|
|
7804
|
+
dir = dirname3(realpathSync2(script ?? ""));
|
|
7733
7805
|
} catch {
|
|
7734
7806
|
return void 0;
|
|
7735
7807
|
}
|
|
7736
7808
|
for (let up = 0; up < 8; up++) {
|
|
7737
|
-
const manifest =
|
|
7809
|
+
const manifest = join6(dir, "package.json");
|
|
7738
7810
|
if (existsSync8(manifest))
|
|
7739
7811
|
return installedVersion(dir) === running ? dir : void 0;
|
|
7740
|
-
const parent =
|
|
7812
|
+
const parent = dirname3(dir);
|
|
7741
7813
|
if (parent === dir)
|
|
7742
7814
|
return void 0;
|
|
7743
7815
|
dir = parent;
|
|
@@ -7746,7 +7818,7 @@ var ownPackageRoot = /* @__PURE__ */ __name((running, script = process.argv[1])
|
|
|
7746
7818
|
}, "ownPackageRoot");
|
|
7747
7819
|
var installedVersion = /* @__PURE__ */ __name((root) => {
|
|
7748
7820
|
try {
|
|
7749
|
-
const { version } = JSON.parse(readFileSync5(
|
|
7821
|
+
const { version } = JSON.parse(readFileSync5(join6(root, "package.json"), "utf8"));
|
|
7750
7822
|
return typeof version === "string" ? version : void 0;
|
|
7751
7823
|
} catch {
|
|
7752
7824
|
return void 0;
|
|
@@ -7808,7 +7880,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
|
|
|
7808
7880
|
};
|
|
7809
7881
|
}, "watchOutdated");
|
|
7810
7882
|
|
|
7811
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7883
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
7812
7884
|
var STEMS_EVERY_MS = 3e4;
|
|
7813
7885
|
var STEMS_SLICE_MS = 2e3;
|
|
7814
7886
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -7848,7 +7920,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
7848
7920
|
};
|
|
7849
7921
|
}, "stemFills");
|
|
7850
7922
|
|
|
7851
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7923
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
7852
7924
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
7853
7925
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
7854
7926
|
kind: attachment.kind,
|
|
@@ -7944,7 +8016,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
7944
8016
|
locale: messenger.app.locale
|
|
7945
8017
|
}), "viewOf");
|
|
7946
8018
|
|
|
7947
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8019
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
7948
8020
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
7949
8021
|
value: value.value,
|
|
7950
8022
|
observed_at: value.observedAt,
|
|
@@ -8011,7 +8083,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
8011
8083
|
}
|
|
8012
8084
|
}, "watchEventItem");
|
|
8013
8085
|
|
|
8014
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8086
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
8015
8087
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
8016
8088
|
output: { entity: "watch_item" },
|
|
8017
8089
|
effects: REMOTE_READ,
|
|
@@ -8166,7 +8238,8 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
8166
8238
|
}
|
|
8167
8239
|
}, "describe");
|
|
8168
8240
|
|
|
8169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8241
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
8242
|
+
var CURRENT_EVERY_MS = 6e4;
|
|
8170
8243
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
8171
8244
|
const command = annotate(new Command("serve"), {
|
|
8172
8245
|
output: { entity: "serve_summary" },
|
|
@@ -8189,9 +8262,18 @@ var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
|
8189
8262
|
throw new CliError("validation_error", `${messenger.app.command} serve is already running for profile ${context.profile} (PID ${held.pid}, since ${held.startedAt})`);
|
|
8190
8263
|
}
|
|
8191
8264
|
let relaying;
|
|
8265
|
+
let current;
|
|
8266
|
+
const stamp = /* @__PURE__ */ __name(() => {
|
|
8267
|
+
try {
|
|
8268
|
+
markCurrent(path);
|
|
8269
|
+
} catch {
|
|
8270
|
+
}
|
|
8271
|
+
}, "stamp");
|
|
8192
8272
|
const onReady = /* @__PURE__ */ __name(() => {
|
|
8193
8273
|
const listening2 = { pid: process.pid, startedAt, version, listeningAt: (/* @__PURE__ */ new Date()).toISOString() };
|
|
8194
8274
|
holdLock(path, listening2);
|
|
8275
|
+
stamp();
|
|
8276
|
+
current ??= setInterval(stamp, CURRENT_EVERY_MS).unref();
|
|
8195
8277
|
note({
|
|
8196
8278
|
code: "listening",
|
|
8197
8279
|
text: `listening for profile ${context.profile}, catching up on what arrived while it was down`
|
|
@@ -8312,6 +8394,10 @@ var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
|
8312
8394
|
}, "connected")
|
|
8313
8395
|
});
|
|
8314
8396
|
} finally {
|
|
8397
|
+
if (current) {
|
|
8398
|
+
clearInterval(current);
|
|
8399
|
+
stamp();
|
|
8400
|
+
}
|
|
8315
8401
|
watch.stop();
|
|
8316
8402
|
await relaying;
|
|
8317
8403
|
await relay?.close();
|
|
@@ -8452,7 +8538,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
8452
8538
|
};
|
|
8453
8539
|
}, "tasking");
|
|
8454
8540
|
|
|
8455
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8541
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
8456
8542
|
import { existsSync as existsSync9 } from "node:fs";
|
|
8457
8543
|
var PATH = "store tables list";
|
|
8458
8544
|
var STORE_TABLES_QUERY = {
|
|
@@ -8495,7 +8581,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
|
|
|
8495
8581
|
return tables;
|
|
8496
8582
|
}, "storeTablesCommand");
|
|
8497
8583
|
|
|
8498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8584
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
8499
8585
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
8500
8586
|
var WORD_INDEX = "message_words";
|
|
8501
8587
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -8521,7 +8607,7 @@ var readingOnly = /* @__PURE__ */ __name(async (path, read) => {
|
|
|
8521
8607
|
database.close();
|
|
8522
8608
|
}
|
|
8523
8609
|
}, "readingOnly");
|
|
8524
|
-
var withoutInode = /* @__PURE__ */ __name(({ inode: _, ...
|
|
8610
|
+
var withoutInode = /* @__PURE__ */ __name(({ inode: _, ...mark2 }) => mark2, "withoutInode");
|
|
8525
8611
|
var fileSchema = /* @__PURE__ */ __name(async (path) => {
|
|
8526
8612
|
try {
|
|
8527
8613
|
return await readingOnly(path, (database) => fileSchemaOf(database).version);
|
|
@@ -8540,7 +8626,7 @@ var storeSummary = /* @__PURE__ */ __name(async (env, { deep = false, command, v
|
|
|
8540
8626
|
...version ? { version } : {},
|
|
8541
8627
|
schema: await fileSchema(path)
|
|
8542
8628
|
}) : null;
|
|
8543
|
-
const
|
|
8629
|
+
const mark2 = readDamageMark(path);
|
|
8544
8630
|
const lastKnownGood = readHealthMark(path)?.last_ok_at ?? null;
|
|
8545
8631
|
const health = {
|
|
8546
8632
|
checked: checked.checked,
|
|
@@ -8552,11 +8638,11 @@ var storeSummary = /* @__PURE__ */ __name(async (env, { deep = false, command, v
|
|
|
8552
8638
|
...checked.invalidJson?.length ? { invalidJson: checked.invalidJson } : {},
|
|
8553
8639
|
...checked.searchIndexes?.some((index) => !index.ok) ? { damagedSearchIndexes: checked.searchIndexes.filter((index) => !index.ok).map((index) => index.name) } : {}
|
|
8554
8640
|
};
|
|
8555
|
-
const damage = command ? storeDamageReport({ health: checked, command, mark, journal, lastOkAt: lastKnownGood }) : null;
|
|
8641
|
+
const damage = command ? storeDamageReport({ health: checked, command, mark: mark2, journal, lastOkAt: lastKnownGood }) : null;
|
|
8556
8642
|
const healthOf = {
|
|
8557
8643
|
health,
|
|
8558
8644
|
lastKnownGood,
|
|
8559
|
-
...
|
|
8645
|
+
...mark2 ? { damageMark: withoutInode(mark2) } : {},
|
|
8560
8646
|
...journal ? { journalMark: journal } : {},
|
|
8561
8647
|
...recorded?.cleared ? { damageMarkCleared: withoutInode(recorded.cleared) } : {},
|
|
8562
8648
|
// `what` keeps memo's doctor, which reads it, compiling until it moves to `whatHappened`.
|
|
@@ -8738,10 +8824,12 @@ var inspect = /* @__PURE__ */ __name((path) => reading(path, (database) => {
|
|
|
8738
8824
|
...wordIndex ? [[WORD_INDEX, indexIntegrity(database, WORD_INDEX, 0)]] : [],
|
|
8739
8825
|
...stems ? [["message_stems", indexIntegrity(database, "message_stems", 0)]] : [],
|
|
8740
8826
|
...schema.version > 0 ? [["attachment_words", indexIntegrity(database, "attachment_words", 0)]] : [],
|
|
8741
|
-
...schema.version >= 68 ? [["crm_file_words", indexIntegrity(database, "crm_file_words", 0)]] : []
|
|
8827
|
+
...schema.version >= 68 ? [["crm_file_words", indexIntegrity(database, "crm_file_words", 0)]] : [],
|
|
8828
|
+
...schema.version >= 70 ? [["tracker_item_words", indexIntegrity(database, "tracker_item_words", 0)]] : [],
|
|
8829
|
+
...schema.version >= 71 ? [["content_post_words", indexIntegrity(database, "content_post_words", 0)]] : []
|
|
8742
8830
|
]);
|
|
8743
8831
|
const size = bytesOf2(path) + bytesOf2(`${path}-wal`);
|
|
8744
|
-
const { bavail, bsize } = statfsSync2(
|
|
8832
|
+
const { bavail, bsize } = statfsSync2(dirname4(path));
|
|
8745
8833
|
const free = Number(bavail) * Number(bsize);
|
|
8746
8834
|
const behind = schema.version > 0 ? chatsBehind(database) : [];
|
|
8747
8835
|
const vectorIndexes = schema.version >= 34 ? vectorIndexCounts(database) : [];
|
|
@@ -8826,8 +8914,9 @@ var chatsBehind = /* @__PURE__ */ __name((database) => database.prepare(`SELECT
|
|
|
8826
8914
|
held: row.held === null ? null : isoOf(row.held),
|
|
8827
8915
|
refreshed: isoOf(row.refreshed)
|
|
8828
8916
|
})), "chatsBehind");
|
|
8829
|
-
var migrateCommand = /* @__PURE__ */ __name((owner) => annotate(new Command("migrate"), { output: { entity: "store_migration" }, effects: LOCAL_WRITE }).summary(`migrate an older ${archive(owner)}`).description("bring the store up to this build's schema, then normalize, index and stem the messages and notes stored before it").action(async function() {
|
|
8917
|
+
var migrateCommand = /* @__PURE__ */ __name((owner) => annotate(new Command("migrate"), { output: { entity: "store_migration" }, effects: LOCAL_WRITE }).summary(`migrate an older ${archive(owner)}`).description("bring the store up to this build's schema, then normalize, index and stem the messages and notes stored before it").option("--no-backup", "migrate even when no rollback copy can be written; older tools then cannot open the store again").action(async function() {
|
|
8830
8918
|
const { renderer } = outputFor(this);
|
|
8919
|
+
const { backup = true } = this.opts();
|
|
8831
8920
|
const path = storePath(environmentOf(this).env ?? process.env);
|
|
8832
8921
|
if (!existsSync10(path)) {
|
|
8833
8922
|
result(this, { path, exists: false });
|
|
@@ -8836,11 +8925,13 @@ var migrateCommand = /* @__PURE__ */ __name((owner) => annotate(new Command("mig
|
|
|
8836
8925
|
}
|
|
8837
8926
|
const answer = await reading(path, (database) => {
|
|
8838
8927
|
const from = schemaOf(database).version;
|
|
8839
|
-
migrate(database, {
|
|
8928
|
+
const notice = migrate(database, {
|
|
8840
8929
|
command: owner.app.command,
|
|
8841
8930
|
version: owner.app.version,
|
|
8842
|
-
rollback: { store: path, warn: /* @__PURE__ */ __name((line) => renderer.warn(line), "warn") }
|
|
8931
|
+
rollback: { store: path, warn: /* @__PURE__ */ __name((line) => renderer.warn(line), "warn"), withoutCopy: !backup }
|
|
8843
8932
|
});
|
|
8933
|
+
if (notice)
|
|
8934
|
+
renderer.warn(notice);
|
|
8844
8935
|
const { normalized, indexed, terms } = buildWordIndex(database, (note) => renderer.note(note));
|
|
8845
8936
|
const stemmed = buildStems(database, (note) => renderer.note(note));
|
|
8846
8937
|
const notes = buildNoteIndex(database, (note) => renderer.note(note));
|
|
@@ -8906,7 +8997,7 @@ var reindexCommand = /* @__PURE__ */ __name((owner) => destroysNothing(annotate(
|
|
|
8906
8997
|
throw new CliError("validation_error", `the store is behind this build \u2014 \`${lineOf(this, "store migrate")}\` first`);
|
|
8907
8998
|
}
|
|
8908
8999
|
resetSearchIndex(database);
|
|
8909
|
-
const fileTexts = resetAttachmentWords(database) + resetCrmFileWords(database);
|
|
9000
|
+
const fileTexts = resetAttachmentWords(database) + resetCrmFileWords(database) + resetTrackerItemWords(database) + resetContentPostWords(database);
|
|
8910
9001
|
const words = buildWordIndex(database, (note) => renderer.note(note));
|
|
8911
9002
|
return {
|
|
8912
9003
|
path,
|
|
@@ -8931,10 +9022,10 @@ var vacuumInto = /* @__PURE__ */ __name(async (path, target) => {
|
|
|
8931
9022
|
}
|
|
8932
9023
|
}, "vacuumInto");
|
|
8933
9024
|
var stampNow = /* @__PURE__ */ __name(() => (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-"), "stampNow");
|
|
8934
|
-
var backupCommand = /* @__PURE__ */ __name(() => destroysNothing(annotate(new Command("backup"), { output: { entity: "store_backup" }, effects: LOCAL_WRITE })).description("copy the store into a new file, while it is in use; never overwrites a file").argument("<file>", "the new file").option(...ENCRYPT_OPTION).action(async function(file2) {
|
|
9025
|
+
var backupCommand = /* @__PURE__ */ __name(() => inStoreBackups(destroysNothing(annotate(new Command("backup"), { output: { entity: "store_backup" }, effects: LOCAL_WRITE })), "file").description("copy the store into a new file, while it is in use; never overwrites a file").argument("<file>", "the new file").option(...ENCRYPT_OPTION).action(async function(file2) {
|
|
8935
9026
|
const { encrypt } = this.opts();
|
|
8936
9027
|
const path = storePath(environmentOf(this).env ?? process.env);
|
|
8937
|
-
const target =
|
|
9028
|
+
const target = resolve2(file2);
|
|
8938
9029
|
const { app, env } = environmentOf(this);
|
|
8939
9030
|
if (app)
|
|
8940
9031
|
refuseLockedOutput(target, app, env ?? process.env, "<file>");
|
|
@@ -8971,8 +9062,8 @@ var backupCommand = /* @__PURE__ */ __name(() => destroysNothing(annotate(new Co
|
|
|
8971
9062
|
}), "backupCommand");
|
|
8972
9063
|
var decryptCommand = /* @__PURE__ */ __name(() => annotate(new Command("decrypt"), { output: { entity: "store_decrypt" }, effects: LOCAL_WRITE }).description("open a file written with --encrypt into a new file; asks for its password").argument("<file>", "a file `store backup --encrypt` or `store export --encrypt` wrote").requiredOption("--output <file>", "the new file, readable only by you").action(async function(file2) {
|
|
8973
9064
|
const { output } = this.opts();
|
|
8974
|
-
const from =
|
|
8975
|
-
const to =
|
|
9065
|
+
const from = resolve2(file2);
|
|
9066
|
+
const to = resolve2(output);
|
|
8976
9067
|
if (!existsSync10(from))
|
|
8977
9068
|
throw new CliError("not_found", `no file at ${from}`);
|
|
8978
9069
|
if (!isSealed(from))
|
|
@@ -8982,16 +9073,16 @@ var decryptCommand = /* @__PURE__ */ __name(() => annotate(new Command("decrypt"
|
|
|
8982
9073
|
await unsealFile(from, to, await passwordOf(this, { twice: false }));
|
|
8983
9074
|
result(this, { path: to, from, bytes: bytesOf2(to) });
|
|
8984
9075
|
}), "decryptCommand");
|
|
8985
|
-
var restoreCommand = /* @__PURE__ */ __name((owner) => grantsAuthority(annotate(new Command("restore"), { output: { entity: "store_restore" }, effects: LOCAL_WRITE })).summary("restore a backup and keep the current store, or roll back a breaking upgrade").description("put a backup in place of the store; the store it replaces is kept beside it, never deleted. Given a rollback copy (backups/<store>-rollback-schema-<version>-<time>.db, kept for a day before an upgrade older tools cannot open), put its tables back in the store and return it to that version instead").argument("<file>", "a file `store backup` wrote, or a rollback copy; one written with --encrypt asks for its password").action(async function(file2) {
|
|
9076
|
+
var restoreCommand = /* @__PURE__ */ __name((owner) => inStoreBackups(grantsAuthority(annotate(new Command("restore"), { output: { entity: "store_restore" }, effects: LOCAL_WRITE })), "file").summary("restore a backup and keep the current store, or roll back a breaking upgrade").description("put a backup in place of the store; the store it replaces is kept beside it, never deleted. Given a rollback copy (backups/<store>-rollback-schema-<version>-<time>.db, kept for a day before an upgrade older tools cannot open), put its tables back in the store and return it to that version instead").argument("<file>", "a file `store backup` wrote, or a rollback copy; one written with --encrypt asks for its password").action(async function(file2) {
|
|
8986
9077
|
const path = storePath(environmentOf(this).env ?? process.env);
|
|
8987
|
-
const given =
|
|
9078
|
+
const given = resolve2(file2);
|
|
8988
9079
|
if (!existsSync10(given))
|
|
8989
9080
|
throw new CliError("not_found", `no file at ${given}`);
|
|
8990
9081
|
refuseWhileServing(this, owner);
|
|
8991
9082
|
if (!isSealed(given))
|
|
8992
9083
|
return restoreFrom(this, owner, given, given);
|
|
8993
9084
|
const opened = `${path}.unsealing-${process.pid}`;
|
|
8994
|
-
mkdirSync(
|
|
9085
|
+
mkdirSync(dirname4(path), { recursive: true, mode: 448 });
|
|
8995
9086
|
try {
|
|
8996
9087
|
await unsealFile(given, opened, await passwordOf(this, { twice: false }));
|
|
8997
9088
|
await restoreFrom(this, owner, opened, given);
|
|
@@ -9014,7 +9105,7 @@ var restoreFrom = /* @__PURE__ */ __name(async (command, owner, backup, given) =
|
|
|
9014
9105
|
const waitMs = environmentOf(command).storeLockWaitMs;
|
|
9015
9106
|
await quiesce(path, owner, "restore", (message) => renderer.warn(message), waitMs);
|
|
9016
9107
|
} else
|
|
9017
|
-
mkdirSync(
|
|
9108
|
+
mkdirSync(dirname4(path), { recursive: true, mode: 448 });
|
|
9018
9109
|
const incoming = `${path}.restoring-${stamp}`;
|
|
9019
9110
|
copyFileSync(backup, incoming, constants.COPYFILE_EXCL);
|
|
9020
9111
|
chmodSync(incoming, 384);
|
|
@@ -9196,6 +9287,11 @@ export {
|
|
|
9196
9287
|
checkFor,
|
|
9197
9288
|
passes,
|
|
9198
9289
|
seal,
|
|
9290
|
+
notLocalPaths,
|
|
9291
|
+
isLocalPathOption,
|
|
9292
|
+
isLocalPathArgument,
|
|
9293
|
+
refuseAgentPaths,
|
|
9294
|
+
absoluteFrom,
|
|
9199
9295
|
storeRecoveryCheck,
|
|
9200
9296
|
storeRecoveryRun,
|
|
9201
9297
|
recoveryNotes,
|