@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
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
embeddingKeys,
|
|
5
5
|
endpointKeyName,
|
|
6
6
|
modelGateway
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6E4KLYNP.js";
|
|
8
8
|
import {
|
|
9
9
|
withTimeLimit
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5B2LV4MS.js";
|
|
11
11
|
import {
|
|
12
12
|
acquireLock,
|
|
13
13
|
openOrdinaryFile,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
sameOrdinaryFile,
|
|
17
17
|
syncDirectory,
|
|
18
18
|
writeFileAtomic
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-S4PXWIE4.js";
|
|
20
20
|
import {
|
|
21
21
|
LIST_QUERY_GUIDE,
|
|
22
22
|
capability,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
queryTerms,
|
|
26
26
|
termField,
|
|
27
27
|
withQuery
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-VRH5PBSL.js";
|
|
29
29
|
import {
|
|
30
30
|
anyOfTerms,
|
|
31
31
|
isFunctionWord,
|
|
@@ -37,14 +37,14 @@ import {
|
|
|
37
37
|
resolveMeetingSelection,
|
|
38
38
|
searchMeetingHits,
|
|
39
39
|
words
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-OQYZ3W4K.js";
|
|
41
41
|
import {
|
|
42
42
|
WIRECAT_TOOLS
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-ISQ23VKV.js";
|
|
44
44
|
import {
|
|
45
45
|
isNewer,
|
|
46
46
|
updateCommand
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-MYHPXJDG.js";
|
|
48
48
|
import {
|
|
49
49
|
MAX_ACTIONS,
|
|
50
50
|
ModerationRules,
|
|
@@ -59,14 +59,14 @@ import {
|
|
|
59
59
|
someUndone,
|
|
60
60
|
validateFormattedText,
|
|
61
61
|
visibleFormattedText
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-NGI37RFW.js";
|
|
63
63
|
import {
|
|
64
64
|
MAX_MODEL_IMAGE_BYTES
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-WY7XG6TE.js";
|
|
66
66
|
import {
|
|
67
67
|
localOnly,
|
|
68
68
|
remoteKey
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-D7RCUODT.js";
|
|
70
70
|
import {
|
|
71
71
|
Unzip,
|
|
72
72
|
UnzipInflate,
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
placedText,
|
|
78
78
|
runEmbedders,
|
|
79
79
|
textModelsDirectory
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-BTLZYRIW.js";
|
|
81
81
|
import {
|
|
82
82
|
ANSWER_RESERVE_MS,
|
|
83
83
|
API_UNTRUSTED,
|
|
@@ -120,20 +120,20 @@ import {
|
|
|
120
120
|
tagging,
|
|
121
121
|
task,
|
|
122
122
|
wasSettled
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-ASTLGFTR.js";
|
|
124
124
|
import {
|
|
125
125
|
MESSENGER_CHANGE_REFUSAL,
|
|
126
126
|
ancestorValue,
|
|
127
127
|
envName,
|
|
128
128
|
readOnlyLockOf,
|
|
129
129
|
readOnlyRefusal
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-ZJ63HDBT.js";
|
|
131
131
|
import {
|
|
132
132
|
keepsSuccess,
|
|
133
133
|
providerErrorKey,
|
|
134
134
|
runContextOf,
|
|
135
135
|
secretInput
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-RLOH7RDN.js";
|
|
137
137
|
import {
|
|
138
138
|
AUTHORITY_KEY,
|
|
139
139
|
CEILING_KEY,
|
|
@@ -146,7 +146,7 @@ import {
|
|
|
146
146
|
levelFor,
|
|
147
147
|
skipFlagFor,
|
|
148
148
|
stops
|
|
149
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-RQ4AXSCJ.js";
|
|
150
150
|
import {
|
|
151
151
|
CustomTextModelShape,
|
|
152
152
|
DEFAULT_RERANK_MODEL,
|
|
@@ -160,22 +160,22 @@ import {
|
|
|
160
160
|
textModels,
|
|
161
161
|
vectorModelKey,
|
|
162
162
|
writeTextModelsSection
|
|
163
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-2IBKKVVZ.js";
|
|
164
164
|
import {
|
|
165
165
|
endpoint,
|
|
166
166
|
modelAddressAllowed,
|
|
167
167
|
onThisComputer
|
|
168
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-3KUEZK5Z.js";
|
|
169
169
|
import {
|
|
170
170
|
hostFetch,
|
|
171
171
|
providerWaitMs,
|
|
172
172
|
readJsonResponse,
|
|
173
173
|
statusToCode
|
|
174
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-VTYNLTDW.js";
|
|
175
175
|
import {
|
|
176
176
|
installFiles,
|
|
177
177
|
megabytes
|
|
178
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-BAFC7WNI.js";
|
|
179
179
|
import {
|
|
180
180
|
AGENDA_COLUMNS,
|
|
181
181
|
BUSINESS_FIND_MAX,
|
|
@@ -189,16 +189,14 @@ import {
|
|
|
189
189
|
IDENTITY_SPLIT_KIND,
|
|
190
190
|
MAIL_AGENDA_COLUMNS,
|
|
191
191
|
MAIL_FINDINGS_KIND,
|
|
192
|
-
MAX_FILE_BYTES,
|
|
193
192
|
MAX_TEXT_CHARS,
|
|
194
193
|
MENTION_QUERY,
|
|
195
194
|
NOT_FILES,
|
|
196
195
|
PRESET_VERSION,
|
|
197
|
-
STOP_WORDS,
|
|
198
196
|
TASK_CLOSE_KIND,
|
|
199
197
|
TASK_RELATION_KINDS,
|
|
200
198
|
TRACKED_CHAT_COLUMNS,
|
|
201
|
-
|
|
199
|
+
asBytes,
|
|
202
200
|
assertGenericAction,
|
|
203
201
|
assertMayDecide,
|
|
204
202
|
attachmentColumns,
|
|
@@ -215,7 +213,6 @@ import {
|
|
|
215
213
|
cutChunks,
|
|
216
214
|
deciderAuthor,
|
|
217
215
|
delayStats,
|
|
218
|
-
dueDayOf,
|
|
219
216
|
fetchedKey,
|
|
220
217
|
findMentions,
|
|
221
218
|
foldedWords,
|
|
@@ -225,7 +222,6 @@ import {
|
|
|
225
222
|
hasText,
|
|
226
223
|
historyStartKey,
|
|
227
224
|
hitFiles,
|
|
228
|
-
inboxKey,
|
|
229
225
|
isOwnerOnlyKind,
|
|
230
226
|
isStemmed,
|
|
231
227
|
matchDownloads,
|
|
@@ -238,33 +234,39 @@ import {
|
|
|
238
234
|
proposerOfAction,
|
|
239
235
|
queryFilter,
|
|
240
236
|
rankingContextRange,
|
|
237
|
+
readWhole,
|
|
241
238
|
respelled,
|
|
242
239
|
seenBy,
|
|
240
|
+
sizeText,
|
|
243
241
|
threadConversation,
|
|
244
242
|
trackerBodyOf,
|
|
245
243
|
trackerTitleOf,
|
|
246
|
-
waitingPointer
|
|
247
|
-
|
|
248
|
-
} from "./chunk-2GP573Q4.js";
|
|
244
|
+
waitingPointer
|
|
245
|
+
} from "./chunk-NZMWD7Y3.js";
|
|
249
246
|
import {
|
|
250
247
|
MINUTE,
|
|
251
248
|
YEAR,
|
|
252
249
|
aheadOf
|
|
253
|
-
} from "./chunk-
|
|
250
|
+
} from "./chunk-LN7HRYTH.js";
|
|
254
251
|
import {
|
|
255
252
|
FIELD_VERSION,
|
|
256
253
|
RRF_K,
|
|
254
|
+
STOP_WORDS,
|
|
255
|
+
amountsOf,
|
|
256
|
+
dueDayOf,
|
|
257
257
|
fuseRanked,
|
|
258
|
+
inboxKey,
|
|
258
259
|
isPresence,
|
|
259
260
|
plainQuery,
|
|
260
261
|
validateAst,
|
|
261
|
-
validateFields
|
|
262
|
-
|
|
262
|
+
validateFields,
|
|
263
|
+
withoutField
|
|
264
|
+
} from "./chunk-VTLQTQKY.js";
|
|
263
265
|
import {
|
|
264
266
|
DEFAULT_STEMMERS,
|
|
265
267
|
createStemmer,
|
|
266
268
|
cutsDeep
|
|
267
|
-
} from "./chunk-
|
|
269
|
+
} from "./chunk-3PXUQFHX.js";
|
|
268
270
|
import {
|
|
269
271
|
COUNTER_FIELDS,
|
|
270
272
|
RANKING_TOKENIZER_VERSION,
|
|
@@ -286,7 +288,7 @@ import {
|
|
|
286
288
|
rankingOptions,
|
|
287
289
|
rankingQuestion,
|
|
288
290
|
recordErrors
|
|
289
|
-
} from "./chunk-
|
|
291
|
+
} from "./chunk-DQJECJUE.js";
|
|
290
292
|
import {
|
|
291
293
|
MESSAGE_PARSING,
|
|
292
294
|
QUERY_LIMITS,
|
|
@@ -296,32 +298,27 @@ import {
|
|
|
296
298
|
isQueryLimit,
|
|
297
299
|
outOfTime,
|
|
298
300
|
searchError
|
|
299
|
-
} from "./chunk-
|
|
301
|
+
} from "./chunk-FWACRG4X.js";
|
|
300
302
|
import {
|
|
301
303
|
fold,
|
|
302
304
|
normalize
|
|
303
|
-
} from "./chunk-
|
|
305
|
+
} from "./chunk-HO4JGD4Q.js";
|
|
304
306
|
import {
|
|
305
307
|
CATEGORIES,
|
|
306
308
|
SOURCE_REVIEW_KIND,
|
|
307
|
-
TASK_KINDS,
|
|
308
|
-
TASK_ORIGINS,
|
|
309
|
-
TASK_STATES,
|
|
310
309
|
accountsOfList,
|
|
311
|
-
createTaskService,
|
|
312
310
|
entriesOfList,
|
|
313
311
|
fitting,
|
|
314
312
|
groupName,
|
|
315
313
|
inSource,
|
|
316
314
|
isAccountList,
|
|
317
|
-
isClosedState,
|
|
318
315
|
isGroupName,
|
|
319
316
|
keyOf,
|
|
320
317
|
listedHolds,
|
|
321
318
|
sameAs,
|
|
322
319
|
sourceOf2 as sourceOf,
|
|
323
320
|
sourceOf3 as sourceOf2
|
|
324
|
-
} from "./chunk-
|
|
321
|
+
} from "./chunk-URP6BTHN.js";
|
|
325
322
|
import {
|
|
326
323
|
KEEP_RUNS_FOR_DAYS,
|
|
327
324
|
KEEP_STORE_RUNS_FOR_DAYS,
|
|
@@ -335,19 +332,32 @@ import {
|
|
|
335
332
|
runEvent,
|
|
336
333
|
typedCommand,
|
|
337
334
|
withAttempt
|
|
338
|
-
} from "./chunk-
|
|
335
|
+
} from "./chunk-HKLRI2LB.js";
|
|
339
336
|
import {
|
|
340
337
|
isCliFailure,
|
|
341
338
|
sqliteCode
|
|
342
|
-
} from "./chunk-
|
|
339
|
+
} from "./chunk-B2NM65RD.js";
|
|
340
|
+
import {
|
|
341
|
+
TASK_KINDS,
|
|
342
|
+
TASK_ORIGINS,
|
|
343
|
+
TASK_STATES,
|
|
344
|
+
createTaskService,
|
|
345
|
+
isClosedState
|
|
346
|
+
} from "./chunk-G5SZL7G2.js";
|
|
343
347
|
import {
|
|
344
348
|
CRM_KINDS,
|
|
345
349
|
DEAL_KINDS,
|
|
346
|
-
INTERNAL_NOTES,
|
|
347
350
|
STAGE_OUTCOMES,
|
|
351
|
+
formatDecimal,
|
|
352
|
+
isUsable,
|
|
353
|
+
minorUnits,
|
|
354
|
+
normalCrmUserId,
|
|
355
|
+
scaleOf
|
|
356
|
+
} from "./chunk-LBGT6W4R.js";
|
|
357
|
+
import {
|
|
358
|
+
INTERNAL_NOTES,
|
|
348
359
|
UNKNOWN_PROVIDER,
|
|
349
360
|
alsoListedByKey,
|
|
350
|
-
formatDecimal,
|
|
351
361
|
formatLocator,
|
|
352
362
|
formatReference,
|
|
353
363
|
hasGlobalItemIds,
|
|
@@ -358,30 +368,24 @@ import {
|
|
|
358
368
|
isImportedProvider,
|
|
359
369
|
isKind,
|
|
360
370
|
isLocator,
|
|
361
|
-
isUsable,
|
|
362
371
|
kindIn,
|
|
363
|
-
|
|
364
|
-
normalCrmUserId,
|
|
372
|
+
normalizeTag,
|
|
365
373
|
parseLocator,
|
|
366
374
|
parseReference,
|
|
367
375
|
providerLabel,
|
|
368
|
-
providerNamed
|
|
369
|
-
|
|
370
|
-
} from "./chunk-DSZYABYL.js";
|
|
371
|
-
import {
|
|
372
|
-
normalizeTag
|
|
373
|
-
} from "./chunk-LAYYO4WD.js";
|
|
376
|
+
providerNamed
|
|
377
|
+
} from "./chunk-7JDXR75Q.js";
|
|
374
378
|
import {
|
|
375
379
|
DEFAULT_TASK_CATEGORIES,
|
|
376
380
|
FALLBACK_CATEGORY,
|
|
377
381
|
readSharedSection,
|
|
378
382
|
sharedConfigPath,
|
|
379
383
|
writeSharedSection
|
|
380
|
-
} from "./chunk-
|
|
384
|
+
} from "./chunk-SHQAYUK6.js";
|
|
381
385
|
import {
|
|
382
386
|
storePath,
|
|
383
387
|
wirecatDirectory
|
|
384
|
-
} from "./chunk-
|
|
388
|
+
} from "./chunk-FH2UFNH6.js";
|
|
385
389
|
import {
|
|
386
390
|
CALLBACK_WITHIN_MS,
|
|
387
391
|
MEETING_FINDINGS_KIND,
|
|
@@ -410,7 +414,7 @@ import {
|
|
|
410
414
|
validateMeetingPassage,
|
|
411
415
|
validateMeetingSeriesHistory,
|
|
412
416
|
windowOf
|
|
413
|
-
} from "./chunk-
|
|
417
|
+
} from "./chunk-BZDS2X6Y.js";
|
|
414
418
|
import {
|
|
415
419
|
OPERATORS_BY_TYPE,
|
|
416
420
|
dateRange,
|
|
@@ -429,7 +433,7 @@ import {
|
|
|
429
433
|
resolvePaths,
|
|
430
434
|
wallClock,
|
|
431
435
|
writeSecurely
|
|
432
|
-
} from "./chunk-
|
|
436
|
+
} from "./chunk-3QN5KDFZ.js";
|
|
433
437
|
import {
|
|
434
438
|
array,
|
|
435
439
|
boolean,
|
|
@@ -17087,7 +17091,7 @@ var require_lib3 = __commonJS({
|
|
|
17087
17091
|
}
|
|
17088
17092
|
});
|
|
17089
17093
|
|
|
17090
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17094
|
+
// 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/services/deps.js
|
|
17091
17095
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17092
17096
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17093
17097
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -17162,7 +17166,7 @@ var storeOnlyDeps = /* @__PURE__ */ __name((store, account, { app, env }) => {
|
|
|
17162
17166
|
return { ...storedDeps(messenger, store, account, guard), ...env === void 0 ? {} : { env } };
|
|
17163
17167
|
}, "storeOnlyDeps");
|
|
17164
17168
|
|
|
17165
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17169
|
+
// 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/botcheck/check.js
|
|
17166
17170
|
var DAY_MS = 864e5;
|
|
17167
17171
|
var NEW_DAYS = 30;
|
|
17168
17172
|
var SAME_TEXT_MIN = 20;
|
|
@@ -17239,7 +17243,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
17239
17243
|
};
|
|
17240
17244
|
}, "scorePerson");
|
|
17241
17245
|
|
|
17242
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17246
|
+
// 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/botcheck/registries.js
|
|
17243
17247
|
var REGISTRIES = {
|
|
17244
17248
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
17245
17249
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -17326,7 +17330,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
17326
17330
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
17327
17331
|
})), "notCovered");
|
|
17328
17332
|
|
|
17329
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17333
|
+
// 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/botcheck/service.js
|
|
17330
17334
|
var ACTIVITY_MESSAGES = 1e3;
|
|
17331
17335
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
17332
17336
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -17414,16 +17418,16 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
17414
17418
|
};
|
|
17415
17419
|
}, "botCheckService");
|
|
17416
17420
|
|
|
17417
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17418
|
-
var mailTurn = /* @__PURE__ */ __name((
|
|
17419
|
-
if (
|
|
17421
|
+
// 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/mail/owed.js
|
|
17422
|
+
var mailTurn = /* @__PURE__ */ __name((newest2) => {
|
|
17423
|
+
if (newest2 === null)
|
|
17420
17424
|
return null;
|
|
17421
|
-
if (
|
|
17425
|
+
if (newest2.outgoing)
|
|
17422
17426
|
return "waiting";
|
|
17423
|
-
return
|
|
17427
|
+
return newest2.addressed ? "owed" : null;
|
|
17424
17428
|
}, "mailTurn");
|
|
17425
17429
|
|
|
17426
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17430
|
+
// 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/services/agenda-mail.js
|
|
17427
17431
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
17428
17432
|
if (error instanceof CliError && error.code === "not_found")
|
|
17429
17433
|
return void 0;
|
|
@@ -17457,7 +17461,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
17457
17461
|
storedAt: synced?.at ?? null,
|
|
17458
17462
|
coverage: /* @__PURE__ */ __name((ids) => ids.map((chatId) => {
|
|
17459
17463
|
const thread = byId2.get(chatId);
|
|
17460
|
-
const
|
|
17464
|
+
const newest2 = thread?.newest?.at ?? thread?.lastEmailAt;
|
|
17461
17465
|
const until = window2.until === void 0 ? Number.NaN : Date.parse(window2.until);
|
|
17462
17466
|
return {
|
|
17463
17467
|
chatId,
|
|
@@ -17466,7 +17470,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
17466
17470
|
chatId,
|
|
17467
17471
|
// Sync holds a window of the mailbox, never a thread's whole history.
|
|
17468
17472
|
state: synced ? "partial" : "unknown",
|
|
17469
|
-
upToDate: window2.state === "window" &&
|
|
17473
|
+
upToDate: window2.state === "window" && newest2 !== void 0 && !Number.isNaN(until) ? newest2 <= until : null,
|
|
17470
17474
|
gaps: false,
|
|
17471
17475
|
reachesStart: false,
|
|
17472
17476
|
fetchedAt: synced?.at ?? null
|
|
@@ -17474,14 +17478,14 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
17474
17478
|
held: {
|
|
17475
17479
|
messages: thread?.emails ?? 0,
|
|
17476
17480
|
oldestAt: null,
|
|
17477
|
-
newestAt:
|
|
17481
|
+
newestAt: newest2 === void 0 ? null : new Date(newest2).toISOString()
|
|
17478
17482
|
}
|
|
17479
17483
|
};
|
|
17480
17484
|
}), "coverage")
|
|
17481
17485
|
};
|
|
17482
17486
|
}, "mailActivity");
|
|
17483
17487
|
|
|
17484
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17488
|
+
// 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/services/chat-coverage.js
|
|
17485
17489
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
17486
17490
|
const ids = [...new Set(chatIds)];
|
|
17487
17491
|
if (ids.length === 0)
|
|
@@ -17507,7 +17511,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
17507
17511
|
}));
|
|
17508
17512
|
}, "chatCoverage");
|
|
17509
17513
|
|
|
17510
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17514
|
+
// 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/thread.js
|
|
17511
17515
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
17512
17516
|
if (value === void 0)
|
|
17513
17517
|
return void 0;
|
|
@@ -17517,15 +17521,15 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
17517
17521
|
return id3;
|
|
17518
17522
|
}, "threadIdOf");
|
|
17519
17523
|
|
|
17520
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17524
|
+
// 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/ports/traits.js
|
|
17521
17525
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
17522
17526
|
|
|
17523
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17527
|
+
// 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/sends/send-id.js
|
|
17524
17528
|
import { randomBytes } from "node:crypto";
|
|
17525
17529
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17526
17530
|
var newOperationId = newSendId;
|
|
17527
17531
|
|
|
17528
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17532
|
+
// 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/services/questions.js
|
|
17529
17533
|
var LINKS = /https?:\/\/\S+/g;
|
|
17530
17534
|
var unanswered = /* @__PURE__ */ __name((messages, { answerers: answerers2, before }) => questions(messages, { answerers: answerers2 }).filter(({ question, answer }) => answer === void 0 && Date.parse(question.timestamp) < before).map(({ question }) => question), "unanswered");
|
|
17531
17535
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -17555,7 +17559,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
17555
17559
|
});
|
|
17556
17560
|
}, "questions");
|
|
17557
17561
|
|
|
17558
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17562
|
+
// 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/services/chat-stats.js
|
|
17559
17563
|
var TOP_POSTS = 5;
|
|
17560
17564
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
17561
17565
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -17672,7 +17676,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
17672
17676
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
17673
17677
|
}, "median");
|
|
17674
17678
|
|
|
17675
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17679
|
+
// 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/services/member-history.js
|
|
17676
17680
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
17677
17681
|
const events = [];
|
|
17678
17682
|
for (const stay of stays) {
|
|
@@ -17704,7 +17708,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
17704
17708
|
return events.filter(({ at: at2 }) => Date.parse(at2) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
17705
17709
|
}, "memberEvents");
|
|
17706
17710
|
|
|
17707
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17711
|
+
// 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/services/members-audit.js
|
|
17708
17712
|
var AUDIT_PAGE = 200;
|
|
17709
17713
|
var AUDIT_BUDGET = 10;
|
|
17710
17714
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17784,7 +17788,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17784
17788
|
return found;
|
|
17785
17789
|
}, "burstJoins");
|
|
17786
17790
|
|
|
17787
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17791
|
+
// 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/search/groups.js
|
|
17788
17792
|
var ALL = "all";
|
|
17789
17793
|
var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
|
|
17790
17794
|
var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
|
|
@@ -17919,7 +17923,7 @@ var scopeToGroup = /* @__PURE__ */ __name((run2, request, context2) => {
|
|
|
17919
17923
|
return scoped;
|
|
17920
17924
|
}, "scopeToGroup");
|
|
17921
17925
|
|
|
17922
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17926
|
+
// 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/services/search-kind.js
|
|
17923
17927
|
var NO_MAIL = "no_mail";
|
|
17924
17928
|
var MAIL = "email";
|
|
17925
17929
|
var groupLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -17993,7 +17997,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind2, chosen, held, explicit, comm
|
|
|
17993
17997
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
17994
17998
|
}, "accountsOfKind");
|
|
17995
17999
|
|
|
17996
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
18000
|
+
// 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/services/message-resolution.js
|
|
17997
18001
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
17998
18002
|
if (deps.reads !== "store")
|
|
17999
18003
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18194,7 +18198,7 @@ var chatsMatchingIn = /* @__PURE__ */ __name(async (store, accounts, pattern) =>
|
|
|
18194
18198
|
}, "chatsMatchingIn");
|
|
18195
18199
|
var isText = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "", "isText");
|
|
18196
18200
|
|
|
18197
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
18201
|
+
// 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/services/chats.js
|
|
18198
18202
|
var EVENTS_DAYS = 7;
|
|
18199
18203
|
var TRACKED_DAYS = 30;
|
|
18200
18204
|
var STATS_PAGE = 1e3;
|
|
@@ -18430,8 +18434,8 @@ var readInStore = /* @__PURE__ */ __name(async (deps, chatId, kind2, until) => {
|
|
|
18430
18434
|
const store = await accountStoreIfOpen(deps);
|
|
18431
18435
|
if (!store)
|
|
18432
18436
|
return;
|
|
18433
|
-
const [
|
|
18434
|
-
if (
|
|
18437
|
+
const [newest2] = (await store.messages.messages(chatId, { limit: 1, outgoing: false })).items;
|
|
18438
|
+
if (newest2 !== void 0 && (until === void 0 || newest2.id === until))
|
|
18435
18439
|
await unlessBusy(() => store.chats.saveChats([{ id: chatId, kind: kind2, unreadCount: 0, markedUnread: false }]));
|
|
18436
18440
|
}, "readInStore");
|
|
18437
18441
|
var storedFacts = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
@@ -18489,7 +18493,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
18489
18493
|
return members.length === 0 ? null : members;
|
|
18490
18494
|
}, "storedMembers");
|
|
18491
18495
|
|
|
18492
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
18496
|
+
// 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/services/task-categories.js
|
|
18493
18497
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
18494
18498
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
18495
18499
|
const name = typed.trim().toLowerCase();
|
|
@@ -18546,7 +18550,7 @@ var categorize = /* @__PURE__ */ __name((text3, categories = DEFAULT_TASK_CATEGO
|
|
|
18546
18550
|
return best.name;
|
|
18547
18551
|
}, "categorize");
|
|
18548
18552
|
|
|
18549
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
18553
|
+
// 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/services/task-rules.js
|
|
18550
18554
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
18551
18555
|
var RULES_IN = {
|
|
18552
18556
|
dialog: "all",
|
|
@@ -18752,7 +18756,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
18752
18756
|
return passes;
|
|
18753
18757
|
}, "applyTaskRulesToChats");
|
|
18754
18758
|
|
|
18755
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
18759
|
+
// 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/services/task-tag-filters.js
|
|
18756
18760
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
18757
18761
|
const tags = /* @__PURE__ */ new Map();
|
|
18758
18762
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -18761,7 +18765,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
18761
18765
|
return tags;
|
|
18762
18766
|
}, "taskTagFilters");
|
|
18763
18767
|
|
|
18764
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
18768
|
+
// 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/services/agenda.js
|
|
18765
18769
|
var DAY = 864e5;
|
|
18766
18770
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
18767
18771
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -19015,7 +19019,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
19015
19019
|
};
|
|
19016
19020
|
}, "agendaItem");
|
|
19017
19021
|
|
|
19018
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
19022
|
+
// 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/context/evidence-response.js
|
|
19019
19023
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
19020
19024
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
19021
19025
|
const fail5 = /* @__PURE__ */ __name(() => {
|
|
@@ -19079,7 +19083,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
19079
19083
|
}
|
|
19080
19084
|
}, "validateContextEvidencePage");
|
|
19081
19085
|
|
|
19082
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
19086
|
+
// 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/context/read-budget.js
|
|
19083
19087
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
19084
19088
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
19085
19089
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -19132,7 +19136,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
19132
19136
|
};
|
|
19133
19137
|
}, "contextReadBudget");
|
|
19134
19138
|
|
|
19135
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
19139
|
+
// 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/services/context-evidence.js
|
|
19136
19140
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
19137
19141
|
if (!port || typeof port.read !== "function")
|
|
19138
19142
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -19176,7 +19180,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
19176
19180
|
};
|
|
19177
19181
|
}, "createContextEvidenceReader");
|
|
19178
19182
|
|
|
19179
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
19183
|
+
// 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/services/excerpt.js
|
|
19180
19184
|
var queryWords = /* @__PURE__ */ __name((query) => query.toLowerCase().split(/\s+/).map((word) => word.replace(/^[\p{L}_]+:/u, "").replace(/~\d+$/u, "").replace(/^[^\p{L}\p{N}]+|[^\p{L}\p{N}]+$/gu, "")).filter((word) => word.length > 2 && !["and", "or", "not"].includes(word)), "queryWords");
|
|
19181
19185
|
var excerpt = /* @__PURE__ */ __name((text3, query, size4 = 240, options = {}) => {
|
|
19182
19186
|
const flat = text3.replace(/\s+/g, " ").trim();
|
|
@@ -19192,7 +19196,7 @@ var excerpt = /* @__PURE__ */ __name((text3, query, size4 = 240, options = {}) =
|
|
|
19192
19196
|
}, "excerpt");
|
|
19193
19197
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
19194
19198
|
|
|
19195
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
19199
|
+
// 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/services/ingest.js
|
|
19196
19200
|
import { createInterface } from "node:readline";
|
|
19197
19201
|
var emptyReceipt = /* @__PURE__ */ __name((dryRun, errors) => ({
|
|
19198
19202
|
dryRun,
|
|
@@ -19293,7 +19297,7 @@ var ingestVcard = /* @__PURE__ */ __name(async (store, text3, { provider, batchI
|
|
|
19293
19297
|
return { ...await ingest(store, envelope, options), vcard: issues };
|
|
19294
19298
|
}, "ingestVcard");
|
|
19295
19299
|
|
|
19296
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
19300
|
+
// 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/services/link-scorers/shared.js
|
|
19297
19301
|
var escaped = /* @__PURE__ */ __name((text3) => text3.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
19298
19302
|
var folded = /* @__PURE__ */ __name((text3) => text3.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "folded");
|
|
19299
19303
|
var wholeWords = /* @__PURE__ */ __name((term) => new RegExp(`(?<![\\p{L}\\p{N}\\p{M}_])${escaped(normalizeVocabularyName(term))}(?![\\p{L}\\p{N}\\p{M}_])`, "u"), "wholeWords");
|
|
@@ -19337,7 +19341,7 @@ var identitiesIn = /* @__PURE__ */ __name(async (store, people, provider) => {
|
|
|
19337
19341
|
var remembered = /* @__PURE__ */ __name((input, key, read) => input.remember ? input.remember(key, read) : read(), "remembered");
|
|
19338
19342
|
var chatsWithOf = /* @__PURE__ */ __name((input, key, id3) => remembered(input, `chats-with\0${key.provider}\0${key.account}\0${id3}`, () => input.store.chats.chatsWith(key, id3)), "chatsWithOf");
|
|
19339
19343
|
|
|
19340
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
19344
|
+
// 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/services/link-scorers/alias-hits.js
|
|
19341
19345
|
var SEARCH_LIMIT = 500;
|
|
19342
19346
|
var aliasWeight = /* @__PURE__ */ __name((hits) => hits >= 10 ? 0.55 : hits >= 3 ? 0.35 : 0, "aliasWeight");
|
|
19343
19347
|
var aliasHits = {
|
|
@@ -19386,7 +19390,7 @@ var aliasHits = {
|
|
|
19386
19390
|
}, "candidates")
|
|
19387
19391
|
};
|
|
19388
19392
|
|
|
19389
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
19393
|
+
// 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/services/link-scorers/chat-senders.js
|
|
19390
19394
|
var WEIGHT = 0.5;
|
|
19391
19395
|
var LARGE_GROUP_WEIGHT = 0.2;
|
|
19392
19396
|
var LARGE_GROUP = 30;
|
|
@@ -19458,7 +19462,7 @@ var sendersOf2 = /* @__PURE__ */ __name(async (input, chat, reference, key) => {
|
|
|
19458
19462
|
return found;
|
|
19459
19463
|
}, "sendersOf");
|
|
19460
19464
|
|
|
19461
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
19465
|
+
// 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/services/link-scorers/chat-title.js
|
|
19462
19466
|
var WEIGHT2 = 0.7;
|
|
19463
19467
|
var chatTitle = {
|
|
19464
19468
|
id: "chat-title",
|
|
@@ -19497,7 +19501,7 @@ var chatTitle = {
|
|
|
19497
19501
|
}, "candidates")
|
|
19498
19502
|
};
|
|
19499
19503
|
|
|
19500
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
19504
|
+
// 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/services/link-scorers/email-domain.js
|
|
19501
19505
|
var WEIGHT3 = 0.3;
|
|
19502
19506
|
var CONTACTS = 500;
|
|
19503
19507
|
var MOST_PAIRS = 200;
|
|
@@ -19558,7 +19562,7 @@ var emailDomain = {
|
|
|
19558
19562
|
}, "candidates")
|
|
19559
19563
|
};
|
|
19560
19564
|
|
|
19561
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
19565
|
+
// 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/services/link-scorers/mail-thread.js
|
|
19562
19566
|
var NAMED = 0.7;
|
|
19563
19567
|
var MEMBER_ONLY = 0.3;
|
|
19564
19568
|
var READ_LIMIT2 = 500;
|
|
@@ -19632,7 +19636,7 @@ var mailThread = {
|
|
|
19632
19636
|
}, "candidates")
|
|
19633
19637
|
};
|
|
19634
19638
|
|
|
19635
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
19639
|
+
// 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/services/link-scorers/member-chats.js
|
|
19636
19640
|
var WEIGHT4 = 0.5;
|
|
19637
19641
|
var memberChats = {
|
|
19638
19642
|
id: "member-chats",
|
|
@@ -19674,7 +19678,7 @@ var memberChats = {
|
|
|
19674
19678
|
}, "candidates")
|
|
19675
19679
|
};
|
|
19676
19680
|
|
|
19677
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
19681
|
+
// 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/services/link-scorers/member-dialog.js
|
|
19678
19682
|
var WEIGHT5 = 0.6;
|
|
19679
19683
|
var memberDialog = {
|
|
19680
19684
|
id: "member-dialog",
|
|
@@ -19707,7 +19711,7 @@ var memberDialog = {
|
|
|
19707
19711
|
}, "candidates")
|
|
19708
19712
|
};
|
|
19709
19713
|
|
|
19710
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
19714
|
+
// 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/services/project-purposes.js
|
|
19711
19715
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
19712
19716
|
var DEFAULT_PURPOSES = ["work"];
|
|
19713
19717
|
var LINK_PURPOSE = "work";
|
|
@@ -19737,7 +19741,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
19737
19741
|
...value.split(",").map((one2) => one2.trim()).filter(Boolean)
|
|
19738
19742
|
], "purposeList");
|
|
19739
19743
|
|
|
19740
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
19744
|
+
// 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/services/project-gathering-around.js
|
|
19741
19745
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
19742
19746
|
async around(ref2, window2) {
|
|
19743
19747
|
const at2 = parseLocator(ref2);
|
|
@@ -19833,7 +19837,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
19833
19837
|
};
|
|
19834
19838
|
}, "storedNeighbours");
|
|
19835
19839
|
|
|
19836
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
19840
|
+
// 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/services/project-gathering-request.js
|
|
19837
19841
|
import { createHash } from "node:crypto";
|
|
19838
19842
|
var DAY2 = 864e5;
|
|
19839
19843
|
var MAX_TIME = 864e13;
|
|
@@ -20149,7 +20153,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text3, plan) => {
|
|
|
20149
20153
|
return value;
|
|
20150
20154
|
}, "decodeCheckpoint");
|
|
20151
20155
|
|
|
20152
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
20156
|
+
// 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/services/project-gathering.js
|
|
20153
20157
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
20154
20158
|
var PAGE = 20;
|
|
20155
20159
|
var PEOPLE = 20;
|
|
@@ -20553,7 +20557,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
20553
20557
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
20554
20558
|
}, "peopleOf");
|
|
20555
20559
|
|
|
20556
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
20560
|
+
// 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/services/meeting-project-candidate-matching.js
|
|
20557
20561
|
var normalizedText = /* @__PURE__ */ __name((text3) => text3.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
20558
20562
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
20559
20563
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -20618,7 +20622,7 @@ var matchProjectCandidates = /* @__PURE__ */ __name((catalog, input) => matchVoc
|
|
|
20618
20622
|
omittedMatches: omitted
|
|
20619
20623
|
})), "matchProjectCandidates");
|
|
20620
20624
|
|
|
20621
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
20625
|
+
// 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/services/project-gathering-mentions.js
|
|
20622
20626
|
var KINDS = ["project", "tag", "topic"];
|
|
20623
20627
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
20624
20628
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -20673,10 +20677,10 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
20673
20677
|
};
|
|
20674
20678
|
}, "findEvidenceMentions");
|
|
20675
20679
|
|
|
20676
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
20680
|
+
// 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/services/stored-project-gathering.js
|
|
20677
20681
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
20678
20682
|
const window2 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
20679
|
-
const [messages,
|
|
20683
|
+
const [messages, newest2, oldest] = await Promise.all([
|
|
20680
20684
|
store.messages.countMessages(account, chatId, window2),
|
|
20681
20685
|
store.messages.messages(account, chatId, { limit: 1, since: window2.since, until: until - 1 }),
|
|
20682
20686
|
store.messages.messages(account, chatId, { limit: 1, after: { time: since - 1 }, until: until - 1 })
|
|
@@ -20684,7 +20688,7 @@ var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId,
|
|
|
20684
20688
|
return {
|
|
20685
20689
|
messages,
|
|
20686
20690
|
firstAt: oldest.items[0]?.timestamp ?? null,
|
|
20687
|
-
lastAt:
|
|
20691
|
+
lastAt: newest2.items.at(-1)?.timestamp ?? null
|
|
20688
20692
|
};
|
|
20689
20693
|
}, "storedChatCount");
|
|
20690
20694
|
var PROJECT_ID = /^project:[1-9]\d*$/;
|
|
@@ -20984,7 +20988,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
20984
20988
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
20985
20989
|
}, "purposeHintOf");
|
|
20986
20990
|
|
|
20987
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
20991
|
+
// 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/services/link-scorers/scan.js
|
|
20988
20992
|
var SCORERS = [chatTitle, aliasHits, memberChats, memberDialog, chatSenders, mailThread];
|
|
20989
20993
|
var PERSON_SCORERS = [emailDomain];
|
|
20990
20994
|
var SCAN_BOT = { bot: "memo-scan", kind: "rule" };
|
|
@@ -21240,18 +21244,18 @@ var referenceOf = /* @__PURE__ */ __name((text3) => {
|
|
|
21240
21244
|
}, "referenceOf");
|
|
21241
21245
|
var rejectedReversed = /* @__PURE__ */ __name(async (store, candidate) => candidate.kind === "related-to" && candidate.to.startsWith("person:") && ((await store.knowledge.relationState(null, { from: candidate.to, to: candidate.from, kind: candidate.kind }))?.rejected ?? false), "rejectedReversed");
|
|
21242
21246
|
|
|
21243
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
21247
|
+
// 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/services/media-archive.js
|
|
21244
21248
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
21245
21249
|
|
|
21246
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
21250
|
+
// 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/services/media-archive-files.js
|
|
21247
21251
|
import { lstat } from "node:fs/promises";
|
|
21248
21252
|
|
|
21249
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
21253
|
+
// 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/persistence/native/recording-partial-store.js
|
|
21250
21254
|
import { createHash as createHash3, randomUUID as randomUUID2 } from "node:crypto";
|
|
21251
21255
|
import { open as open2, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
21252
21256
|
import { join as join2 } from "node:path";
|
|
21253
21257
|
|
|
21254
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
21258
|
+
// 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/persistence/native/recording-partial-metadata.js
|
|
21255
21259
|
import { createHash as createHash2 } from "node:crypto";
|
|
21256
21260
|
var metadataLimit = 16384;
|
|
21257
21261
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -21311,7 +21315,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path2, locator, maxBytes
|
|
|
21311
21315
|
}
|
|
21312
21316
|
}, "readPartialMetadata");
|
|
21313
21317
|
|
|
21314
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
21318
|
+
// 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/persistence/native/recording-partial-writer.js
|
|
21315
21319
|
import { randomUUID } from "node:crypto";
|
|
21316
21320
|
import { open, rename, unlink } from "node:fs/promises";
|
|
21317
21321
|
import { join } from "node:path";
|
|
@@ -21403,7 +21407,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
21403
21407
|
};
|
|
21404
21408
|
}, "partialWriter");
|
|
21405
21409
|
|
|
21406
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
21410
|
+
// 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/persistence/native/recording-partial-store.js
|
|
21407
21411
|
var NativeRecordingPartialStore = class {
|
|
21408
21412
|
static {
|
|
21409
21413
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -21510,12 +21514,12 @@ var NativeRecordingPartialStore = class {
|
|
|
21510
21514
|
}
|
|
21511
21515
|
};
|
|
21512
21516
|
|
|
21513
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
21517
|
+
// 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/persistence/native/recording-publication.js
|
|
21514
21518
|
import { createHash as createHash4 } from "node:crypto";
|
|
21515
21519
|
import { link } from "node:fs/promises";
|
|
21516
21520
|
import { basename, dirname, join as join4, resolve } from "node:path";
|
|
21517
21521
|
|
|
21518
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
21522
|
+
// 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/persistence/native/recording-publication-files.js
|
|
21519
21523
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
21520
21524
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path2, expected2, signal, writable = false) => {
|
|
21521
21525
|
signal?.throwIfAborted();
|
|
@@ -21550,7 +21554,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
21550
21554
|
signal?.throwIfAborted();
|
|
21551
21555
|
}, "commitPublication");
|
|
21552
21556
|
|
|
21553
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
21557
|
+
// 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/persistence/native/recording-publication-journal.js
|
|
21554
21558
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
21555
21559
|
import { open as open3, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
21556
21560
|
import { join as join3 } from "node:path";
|
|
@@ -21623,7 +21627,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path2, prefix,
|
|
|
21623
21627
|
}
|
|
21624
21628
|
}, "writePublicationJournal");
|
|
21625
21629
|
|
|
21626
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
21630
|
+
// 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/persistence/native/recording-publication.js
|
|
21627
21631
|
var NativeRecordingPublication = class {
|
|
21628
21632
|
static {
|
|
21629
21633
|
__name(this, "NativeRecordingPublication");
|
|
@@ -21696,7 +21700,7 @@ var NativeRecordingPublication = class {
|
|
|
21696
21700
|
}
|
|
21697
21701
|
};
|
|
21698
21702
|
|
|
21699
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
21703
|
+
// 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/services/media-archive-manifest.js
|
|
21700
21704
|
import { createHash as createHash5 } from "node:crypto";
|
|
21701
21705
|
import { readdir } from "node:fs/promises";
|
|
21702
21706
|
import { isAbsolute, join as join5, resolve as resolve2 } from "node:path";
|
|
@@ -21783,7 +21787,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one2, beforePublish) => wri
|
|
|
21783
21787
|
beforePublish
|
|
21784
21788
|
}), "commitMediaEntry");
|
|
21785
21789
|
|
|
21786
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
21790
|
+
// 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/services/media-archive-files.js
|
|
21787
21791
|
var validator = '"media-completed-v1"';
|
|
21788
21792
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
21789
21793
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind2, file, beforeWrite, signal, metadata = {}) => {
|
|
@@ -21884,7 +21888,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind2, file
|
|
|
21884
21888
|
return entry;
|
|
21885
21889
|
}, "archiveMediaFile");
|
|
21886
21890
|
|
|
21887
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
21891
|
+
// 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/services/media-archive-locks.js
|
|
21888
21892
|
import { mkdir, realpath } from "node:fs/promises";
|
|
21889
21893
|
import { join as join6, resolve as resolve3 } from "node:path";
|
|
21890
21894
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -21951,7 +21955,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
21951
21955
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
21952
21956
|
}, "withMediaArchiveLocks");
|
|
21953
21957
|
|
|
21954
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
21958
|
+
// 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/services/media-archive.js
|
|
21955
21959
|
var checkMediaArchive = /* @__PURE__ */ __name((directory2, signal) => withMediaArchiveLocks(directory2, signal, async (root) => {
|
|
21956
21960
|
const entries = await readMediaManifests(root, signal);
|
|
21957
21961
|
if (!entries.length)
|
|
@@ -22094,7 +22098,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
22094
22098
|
}, { create: true });
|
|
22095
22099
|
}, "archiveMedia");
|
|
22096
22100
|
|
|
22097
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
22101
|
+
// 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/services/media-archive-move.js
|
|
22098
22102
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
22099
22103
|
import { basename as basename2, dirname as dirname2, join as join7, resolve as resolve4 } from "node:path";
|
|
22100
22104
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -22245,7 +22249,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
22245
22249
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
22246
22250
|
}, "moveMediaArchive");
|
|
22247
22251
|
|
|
22248
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
22252
|
+
// 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/services/model-downloads.js
|
|
22249
22253
|
import { writeFileSync } from "node:fs";
|
|
22250
22254
|
import { join as join8 } from "node:path";
|
|
22251
22255
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file) => sum2 + file.bytes, 0), "bytesOf");
|
|
@@ -22270,7 +22274,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
22270
22274
|
`);
|
|
22271
22275
|
await nativeRuntime({ env, progress });
|
|
22272
22276
|
progress(`${model.id}: loading it once to check it works`);
|
|
22273
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
22277
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-T64EUKUI.js");
|
|
22274
22278
|
const embedder = await openEmbedder2(model, directory2);
|
|
22275
22279
|
try {
|
|
22276
22280
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -22291,7 +22295,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id3, { env, progress = /
|
|
|
22291
22295
|
}
|
|
22292
22296
|
await nativeRuntime({ env, progress });
|
|
22293
22297
|
progress(`${model.id}: loading it once to check it works`);
|
|
22294
|
-
const { openReranker } = await import("./rerank-
|
|
22298
|
+
const { openReranker } = await import("./rerank-2HGWWORY.js");
|
|
22295
22299
|
const reranker = await openReranker(model, directory2);
|
|
22296
22300
|
try {
|
|
22297
22301
|
await reranker.score("check", ["check"]);
|
|
@@ -22309,7 +22313,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
22309
22313
|
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
22310
22314
|
}
|
|
22311
22315
|
progress(`${model.id}: loading it once to check it works`);
|
|
22312
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
22316
|
+
const { openPictureEmbedder } = await import("./embedder-ZEKISZXI.js");
|
|
22313
22317
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
22314
22318
|
try {
|
|
22315
22319
|
const vector = await embedder.embedQuery("check");
|
|
@@ -22321,7 +22325,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
22321
22325
|
return { model, directory: directory2 };
|
|
22322
22326
|
}, "downloadImageModel");
|
|
22323
22327
|
|
|
22324
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
22328
|
+
// 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/money-words.js
|
|
22325
22329
|
var MONEY_REQUEST = "money-request";
|
|
22326
22330
|
var MONEY_DONE = "money-done";
|
|
22327
22331
|
var PROMISE = "promise";
|
|
@@ -22355,10 +22359,10 @@ var MONEY_WORDS = [
|
|
|
22355
22359
|
}
|
|
22356
22360
|
];
|
|
22357
22361
|
|
|
22358
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
22362
|
+
// 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/services/money-words.js
|
|
22359
22363
|
var moneyClassesOf = /* @__PURE__ */ __name((text3) => listsHit(text3, MONEY_WORDS), "moneyClassesOf");
|
|
22360
22364
|
|
|
22361
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
22365
|
+
// 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/status-words.js
|
|
22362
22366
|
var words2 = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
22363
22367
|
var MONEY_DONE_FORMS = words2([
|
|
22364
22368
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -22398,7 +22402,7 @@ var PROMISE_FORMS = words2([
|
|
|
22398
22402
|
"estar\xE1 listo"
|
|
22399
22403
|
]);
|
|
22400
22404
|
|
|
22401
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
22405
|
+
// 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/services/project-status/items.js
|
|
22402
22406
|
var EXCERPT_CHARS = 80;
|
|
22403
22407
|
var excerpt2 = /* @__PURE__ */ __name((text3) => {
|
|
22404
22408
|
const flat = text3.replace(/\s+/g, " ").trim();
|
|
@@ -22420,7 +22424,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
22420
22424
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
22421
22425
|
var day = /* @__PURE__ */ __name((at2) => new Date(at2).toISOString().slice(0, 10), "day");
|
|
22422
22426
|
|
|
22423
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
22427
|
+
// 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/services/project-status/signals/amounts.js
|
|
22424
22428
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
22425
22429
|
var verbOf = /* @__PURE__ */ __name((text3) => {
|
|
22426
22430
|
if (MONEY_DONE_FORMS.test(text3))
|
|
@@ -22501,7 +22505,7 @@ var amounts = {
|
|
|
22501
22505
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
22502
22506
|
};
|
|
22503
22507
|
|
|
22504
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
22508
|
+
// 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/services/project-status/signals/children.js
|
|
22505
22509
|
var children = {
|
|
22506
22510
|
id: "children",
|
|
22507
22511
|
version: 1,
|
|
@@ -22530,7 +22534,7 @@ var children = {
|
|
|
22530
22534
|
}, "read")
|
|
22531
22535
|
};
|
|
22532
22536
|
|
|
22533
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
22537
|
+
// 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/services/project-status/signals/coverage.js
|
|
22534
22538
|
var coverage = {
|
|
22535
22539
|
id: "coverage",
|
|
22536
22540
|
version: 1,
|
|
@@ -22559,7 +22563,7 @@ var coverage = {
|
|
|
22559
22563
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state !== "complete" && item2.data.beforeHeld ? [{ chat: item2.chat, weight: 3, why: "held in part" }] : []), "attention")
|
|
22560
22564
|
};
|
|
22561
22565
|
|
|
22562
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
22566
|
+
// 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/services/project-status/signals/payments.js
|
|
22563
22567
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
22564
22568
|
var item = /* @__PURE__ */ __name((row, at2, data) => ({
|
|
22565
22569
|
signal: "payments",
|
|
@@ -22609,7 +22613,7 @@ var payments = {
|
|
|
22609
22613
|
}, "read")
|
|
22610
22614
|
};
|
|
22611
22615
|
|
|
22612
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
22616
|
+
// 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/services/project-status/signals/promises.js
|
|
22613
22617
|
var PATTERNS_PER_CHAT = 3;
|
|
22614
22618
|
var DAY3 = 864e5;
|
|
22615
22619
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -22698,7 +22702,7 @@ var promises = {
|
|
|
22698
22702
|
}, "read")
|
|
22699
22703
|
};
|
|
22700
22704
|
|
|
22701
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
22705
|
+
// 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/services/project-status/signals/questions.js
|
|
22702
22706
|
var PER_SIDE = 5;
|
|
22703
22707
|
var WEEK = 7 * 864e5;
|
|
22704
22708
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -22729,7 +22733,7 @@ var questions2 = {
|
|
|
22729
22733
|
}, "attention")
|
|
22730
22734
|
};
|
|
22731
22735
|
|
|
22732
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
22736
|
+
// 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/services/project-status/signals/reply-next.js
|
|
22733
22737
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
22734
22738
|
const byId2 = /* @__PURE__ */ __name((id3) => chat.messages.find((one2) => one2.id === id3), "byId");
|
|
22735
22739
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -22797,7 +22801,7 @@ var replyNext = {
|
|
|
22797
22801
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
22798
22802
|
};
|
|
22799
22803
|
|
|
22800
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
22804
|
+
// 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/services/project-status/signals/topics.js
|
|
22801
22805
|
var escaped2 = /* @__PURE__ */ __name((text3) => text3.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
22802
22806
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped2(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
22803
22807
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -22822,14 +22826,14 @@ var topics = {
|
|
|
22822
22826
|
if (!yours && !theirs)
|
|
22823
22827
|
return [];
|
|
22824
22828
|
const silent = theirs && yours && Date.parse(yours.timestamp) > Date.parse(theirs.timestamp);
|
|
22825
|
-
const
|
|
22829
|
+
const newest2 = [yours, theirs].filter((one2) => one2 !== void 0).sort((a, b) => Date.parse(b.timestamp) - Date.parse(a.timestamp));
|
|
22826
22830
|
return [
|
|
22827
22831
|
{
|
|
22828
22832
|
signal: "topics",
|
|
22829
22833
|
chat: chat.ref,
|
|
22830
|
-
at:
|
|
22834
|
+
at: newest2[0]?.timestamp ?? null,
|
|
22831
22835
|
who: null,
|
|
22832
|
-
evidence: evidenceOf(chat, ...
|
|
22836
|
+
evidence: evidenceOf(chat, ...newest2),
|
|
22833
22837
|
basis: "store",
|
|
22834
22838
|
data: {
|
|
22835
22839
|
query,
|
|
@@ -22843,7 +22847,7 @@ var topics = {
|
|
|
22843
22847
|
}, "read")
|
|
22844
22848
|
};
|
|
22845
22849
|
|
|
22846
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
22850
|
+
// 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/services/project-status/signals/index.js
|
|
22847
22851
|
var STATUS_SIGNALS = [
|
|
22848
22852
|
replyNext,
|
|
22849
22853
|
questions2,
|
|
@@ -22855,7 +22859,7 @@ var STATUS_SIGNALS = [
|
|
|
22855
22859
|
children
|
|
22856
22860
|
];
|
|
22857
22861
|
|
|
22858
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
22862
|
+
// 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/services/project-status/index.js
|
|
22859
22863
|
var DAY4 = 864e5;
|
|
22860
22864
|
var STATUS_WINDOW = 300;
|
|
22861
22865
|
var STATUS_CHATS = 16;
|
|
@@ -23044,7 +23048,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
23044
23048
|
};
|
|
23045
23049
|
}, "projectStatus");
|
|
23046
23050
|
|
|
23047
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
23051
|
+
// 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/services/project-activity.js
|
|
23048
23052
|
var TOP = 3;
|
|
23049
23053
|
var projectActivity = /* @__PURE__ */ __name(async (store, input) => {
|
|
23050
23054
|
const until = input.until ?? Date.now();
|
|
@@ -23106,7 +23110,7 @@ var projectActivity = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
23106
23110
|
}, "projectActivity");
|
|
23107
23111
|
var refOf = /* @__PURE__ */ __name((chat) => formatReference({ type: "chat", provider: chat.provider, account: chat.account, chat: chat.chat }), "refOf");
|
|
23108
23112
|
|
|
23109
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
23113
|
+
// 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/services/account.js
|
|
23110
23114
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
23111
23115
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
23112
23116
|
if (deps.offline)
|
|
@@ -23178,7 +23182,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
23178
23182
|
};
|
|
23179
23183
|
}, "accountService");
|
|
23180
23184
|
|
|
23181
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
23185
|
+
// 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/send-time.js
|
|
23182
23186
|
var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-time", zone) => {
|
|
23183
23187
|
const at2 = aheadOf(value, flag, now, {
|
|
23184
23188
|
...zone === void 0 ? {} : { zone },
|
|
@@ -23189,7 +23193,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
23189
23193
|
return new Date(at2 - at2 % MINUTE).toISOString();
|
|
23190
23194
|
}, "sendTime");
|
|
23191
23195
|
|
|
23192
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
23196
|
+
// 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/services/admin.js
|
|
23193
23197
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
|
|
23194
23198
|
try {
|
|
23195
23199
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -23436,7 +23440,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
23436
23440
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
23437
23441
|
}, "linkLimits");
|
|
23438
23442
|
|
|
23439
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
23443
|
+
// 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/services/mail-search.js
|
|
23440
23444
|
var THREADS_PAGE = 500;
|
|
23441
23445
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
23442
23446
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -23473,10 +23477,10 @@ var withMailThreads = /* @__PURE__ */ __name((store) => {
|
|
|
23473
23477
|
get: /* @__PURE__ */ __name((target2, key, receiver) => key === "chats" ? chats : Reflect.get(target2, key, receiver), "get")
|
|
23474
23478
|
});
|
|
23475
23479
|
}, "withMailThreads");
|
|
23476
|
-
var mergeMail = /* @__PURE__ */ __name((messages, mail, limit,
|
|
23480
|
+
var mergeMail = /* @__PURE__ */ __name((messages, mail, limit, newest2 = false) => {
|
|
23477
23481
|
const moved = new Set(mail.items.map(({ locator }) => locator));
|
|
23478
23482
|
const kept2 = messages.items.filter(({ locator }) => !moved.has(locator));
|
|
23479
|
-
const items =
|
|
23483
|
+
const items = newest2 ? [...kept2, ...mail.items].sort((a, b) => b.timestamp.localeCompare(a.timestamp)) : fuseRanked([kept2, mail.items], (hit) => ({
|
|
23480
23484
|
exact: hit.exact,
|
|
23481
23485
|
ranked: hit.score !== null,
|
|
23482
23486
|
at: Date.parse(hit.timestamp)
|
|
@@ -23511,9 +23515,9 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before = 0, after
|
|
|
23511
23515
|
return thread.slice(Math.max(0, at2 - before), at2 + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
23512
23516
|
}, "readMail");
|
|
23513
23517
|
|
|
23514
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
23518
|
+
// 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/services/messages-search.js
|
|
23515
23519
|
var PERSON_FIELDS = /* @__PURE__ */ new Set(["from", "to", "cc", "bcc"]);
|
|
23516
|
-
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list"]);
|
|
23520
|
+
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list", "type", "reach"]);
|
|
23517
23521
|
var positiveSources = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? node.field === "in" ? [node.value.toLowerCase()] : [] : node.clauses.filter(({ occur }) => occur !== "must_not").flatMap(({ node: node2 }) => positiveSources(node2)), "positiveSources");
|
|
23518
23522
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
23519
23523
|
if (!Number.isInteger(request.limit) || request.limit < 1 || request.limit > QUERY_PAGE_LIMIT)
|
|
@@ -23759,13 +23763,13 @@ var coverageOf = /* @__PURE__ */ __name(async (store, { scopeAccounts, selectedC
|
|
|
23759
23763
|
};
|
|
23760
23764
|
}, "coverageOf");
|
|
23761
23765
|
var statKey = /* @__PURE__ */ __name((account, chatId) => JSON.stringify([account.provider, account.account, chatId]), "statKey");
|
|
23762
|
-
var queryOf = /* @__PURE__ */ __name((timezone,
|
|
23766
|
+
var queryOf = /* @__PURE__ */ __name((timezone, newest2, stemming) => ({
|
|
23763
23767
|
language: "lucene-v1",
|
|
23764
23768
|
version: 1,
|
|
23765
23769
|
fieldsVersion: FIELD_VERSION,
|
|
23766
23770
|
presetVersion: PRESET_VERSION,
|
|
23767
23771
|
timezone,
|
|
23768
|
-
order:
|
|
23772
|
+
order: newest2 ? "newest" : "relevance",
|
|
23769
23773
|
...stemming ? { stemming } : {}
|
|
23770
23774
|
}), "queryOf");
|
|
23771
23775
|
var searchLucene = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
@@ -23884,7 +23888,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
23884
23888
|
};
|
|
23885
23889
|
}, "statsLucene");
|
|
23886
23890
|
|
|
23887
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
23891
|
+
// 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/services/rankings-selection.js
|
|
23888
23892
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
23889
23893
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
23890
23894
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -24053,7 +24057,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
24053
24057
|
};
|
|
24054
24058
|
}, "readRankingSelection");
|
|
24055
24059
|
|
|
24056
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
24060
|
+
// 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/services/search-record.js
|
|
24057
24061
|
var canonical = /* @__PURE__ */ __name((value, nested = false) => Array.isArray(value) ? value.map((one2) => canonical(one2, true)) : value !== null && typeof value === "object" ? Object.fromEntries(Object.entries(value).filter(([, one2]) => one2 !== void 0 && (nested || one2 !== false)).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([key, one2]) => [key, canonical(one2, true)])) : value, "canonical");
|
|
24058
24062
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
24059
24063
|
command,
|
|
@@ -24063,7 +24067,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
24063
24067
|
fieldsVersion: FIELD_VERSION
|
|
24064
24068
|
}), "searchRecordOf");
|
|
24065
24069
|
|
|
24066
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
24070
|
+
// 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/services/admin-statistics.js
|
|
24067
24071
|
function invalid2(message) {
|
|
24068
24072
|
throw new CliError("validation_error", message);
|
|
24069
24073
|
}
|
|
@@ -24357,19 +24361,19 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
24357
24361
|
}, "evidence")
|
|
24358
24362
|
}), "adminStatisticsService");
|
|
24359
24363
|
|
|
24360
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
24364
|
+
// 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/services/archive.js
|
|
24361
24365
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
24362
24366
|
|
|
24363
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
24367
|
+
// 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/services/backfill-estimate.js
|
|
24364
24368
|
var REQUEST_MS = 400;
|
|
24365
|
-
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
24369
|
+
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest: newest2, page, maxPages, pauseMs }) => {
|
|
24366
24370
|
const lowest = ranges[0];
|
|
24367
24371
|
const top = ranges.at(-1);
|
|
24368
24372
|
if (!lowest || !top)
|
|
24369
24373
|
return { held, ranges, missing: null, requests: null, runs: null, seconds: null };
|
|
24370
24374
|
const covered = ranges.reduce((sum2, range2) => sum2 + range2.to - range2.from + 1, 0);
|
|
24371
24375
|
const between = ranges.slice(1).reduce((sum2, range2, index) => sum2 + range2.from - (ranges[index]?.to ?? 0) - 1, 0);
|
|
24372
|
-
const gapIds = lowest.from - 1 + between + Math.max(0, (
|
|
24376
|
+
const gapIds = lowest.from - 1 + between + Math.max(0, (newest2 ?? top.to) - top.to);
|
|
24373
24377
|
const inRanges = Math.min(held, covered);
|
|
24374
24378
|
const missing4 = gapIds === 0 ? 0 : Math.round(inRanges / covered * gapIds);
|
|
24375
24379
|
const requests = missing4 === 0 ? 0 : Math.ceil(missing4 / page) + ranges.length;
|
|
@@ -24383,13 +24387,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
24383
24387
|
};
|
|
24384
24388
|
}, "estimateBackfill");
|
|
24385
24389
|
|
|
24386
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
24390
|
+
// 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/recovery.js
|
|
24387
24391
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
24388
24392
|
...error,
|
|
24389
24393
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
24390
24394
|
}), "withRecovery");
|
|
24391
24395
|
|
|
24392
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
24396
|
+
// 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/services/batch.js
|
|
24393
24397
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
24394
24398
|
if (isCliFailure(error))
|
|
24395
24399
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -24472,7 +24476,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
24472
24476
|
};
|
|
24473
24477
|
}, "mergeBatches");
|
|
24474
24478
|
|
|
24475
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
24479
|
+
// 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/services/patience.js
|
|
24476
24480
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
24477
24481
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
24478
24482
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -24495,7 +24499,7 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
24495
24499
|
}
|
|
24496
24500
|
}, "patiently");
|
|
24497
24501
|
|
|
24498
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
24502
|
+
// 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/conversations/link.js
|
|
24499
24503
|
var RULES_VERSION = 6;
|
|
24500
24504
|
var LOOK_BACK = 50;
|
|
24501
24505
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -24593,7 +24597,7 @@ var latest = /* @__PURE__ */ __name((window2, matches) => {
|
|
|
24593
24597
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
24594
24598
|
var link2 = /* @__PURE__ */ __name((message, parentId, source, kind2, confidence, method) => ({ messageId: message.id, parentId, source, kind: kind2, confidence, method }), "link");
|
|
24595
24599
|
|
|
24596
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
24600
|
+
// 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/images/context/index.js
|
|
24597
24601
|
var CONTEXT_MESSAGES = 3;
|
|
24598
24602
|
var CONTEXT_MINUTES = 10;
|
|
24599
24603
|
var MAX_CHARS = 1200;
|
|
@@ -24617,12 +24621,12 @@ var context = {
|
|
|
24617
24621
|
}, "describe")
|
|
24618
24622
|
};
|
|
24619
24623
|
|
|
24620
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
24624
|
+
// 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/images/registry.js
|
|
24621
24625
|
var BUILT_INS = [context];
|
|
24622
24626
|
var providers = [...BUILT_INS];
|
|
24623
24627
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
24624
24628
|
|
|
24625
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
24629
|
+
// 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/services/conversations.js
|
|
24626
24630
|
var READ_PAGE = 5e3;
|
|
24627
24631
|
var CHAIN = 50;
|
|
24628
24632
|
var CONVERSATION_QUERY = {
|
|
@@ -24774,7 +24778,7 @@ var sized = /* @__PURE__ */ __name((size4) => {
|
|
|
24774
24778
|
return size4;
|
|
24775
24779
|
}, "sized");
|
|
24776
24780
|
|
|
24777
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
24781
|
+
// 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/services/embeddings-maintenance.js
|
|
24778
24782
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
24779
24783
|
var MESSAGE_PAGE = 5e3;
|
|
24780
24784
|
var PER_SESSION = 8;
|
|
@@ -24793,7 +24797,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
24793
24797
|
price: remote.price,
|
|
24794
24798
|
installed: true,
|
|
24795
24799
|
perBatch: PER_REQUEST * concurrency,
|
|
24796
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
24800
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-5FBAJX7O.js")).openRemote(remote, apiKey, {
|
|
24797
24801
|
concurrency,
|
|
24798
24802
|
env: deps.env ?? process.env
|
|
24799
24803
|
}), "open")
|
|
@@ -24813,7 +24817,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
24813
24817
|
if (!isTextModelInstalled(model, directory2))
|
|
24814
24818
|
throw notDownloaded(model.id);
|
|
24815
24819
|
if (apart) {
|
|
24816
|
-
const { openProcess } = await import("./process-
|
|
24820
|
+
const { openProcess } = await import("./process-AFIXYXWL.js");
|
|
24817
24821
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
24818
24822
|
}
|
|
24819
24823
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -25102,7 +25106,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
25102
25106
|
return { ...one2, state };
|
|
25103
25107
|
}, "shaped");
|
|
25104
25108
|
|
|
25105
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
25109
|
+
// 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/services/search-catchup.js
|
|
25106
25110
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
25107
25111
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
25108
25112
|
for (const [key, value, maximum] of [
|
|
@@ -25155,7 +25159,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
25155
25159
|
}
|
|
25156
25160
|
}, "catchUpSearch");
|
|
25157
25161
|
|
|
25158
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
25162
|
+
// 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/services/archive.js
|
|
25159
25163
|
var pushed = /* @__PURE__ */ __name((deps, what2) => {
|
|
25160
25164
|
if (deps.reads === "store") {
|
|
25161
25165
|
throw new CliError("validation_error", `${what2} asks for older history, and this messenger pushes its history instead \u2014 keep \`${typedCommand(deps.messenger.app.command, "serve")}\` running`);
|
|
@@ -25220,13 +25224,13 @@ var archiveService = /* @__PURE__ */ __name((deps) => {
|
|
|
25220
25224
|
throw new CliError("validation_error", "--dry-run counts the message ids missing between what is held; this messenger's ids do not count messages");
|
|
25221
25225
|
}
|
|
25222
25226
|
const { store, account, chatId } = await found(chat);
|
|
25223
|
-
const
|
|
25227
|
+
const newest2 = Number((await store.messages.messages(account, chatId, { limit: 1 })).items[0]?.id);
|
|
25224
25228
|
return {
|
|
25225
25229
|
chat: chatId,
|
|
25226
25230
|
...estimateBackfill({
|
|
25227
25231
|
ranges: await store.sync.ranges(account, chatId),
|
|
25228
25232
|
held: (await store.chats.chatStats(account, chatId))[0]?.messages ?? 0,
|
|
25229
|
-
newest: Number.isSafeInteger(
|
|
25233
|
+
newest: Number.isSafeInteger(newest2) ? newest2 : void 0,
|
|
25230
25234
|
page: pageSize,
|
|
25231
25235
|
maxPages: Math.ceil(limit / pageSize),
|
|
25232
25236
|
pauseMs
|
|
@@ -25260,15 +25264,22 @@ var archiveService = /* @__PURE__ */ __name((deps) => {
|
|
|
25260
25264
|
return { chat: limit.chatId ?? null, fetched: 0, complete: false, ranges: [], limited: "group_too_large" };
|
|
25261
25265
|
}
|
|
25262
25266
|
const windowed = limit?.keepFrom !== void 0 && !(limit.keepFrom <= (options.sinceMs ?? Number.NEGATIVE_INFINITY));
|
|
25267
|
+
const roots = /* @__PURE__ */ new Map();
|
|
25268
|
+
const startedAt = Date.now();
|
|
25263
25269
|
const fetched = await fetchInto({
|
|
25264
|
-
history: /* @__PURE__ */ __name((window2) =>
|
|
25270
|
+
history: /* @__PURE__ */ __name(async (window2) => {
|
|
25271
|
+
const page = await history(chat, { ...window2, reactions: false });
|
|
25272
|
+
if (refreshes(connection) && !options.window && page.items[0])
|
|
25273
|
+
pagedRoots(roots, await connection.threadRootsIn(page.items[0].chatId, page.items), window2.before);
|
|
25274
|
+
return page;
|
|
25275
|
+
}, "history"),
|
|
25265
25276
|
store,
|
|
25266
25277
|
account,
|
|
25267
25278
|
fetching: deps.messenger.fetching ?? FETCHING,
|
|
25268
25279
|
...options,
|
|
25269
25280
|
...windowed ? { sinceMs: limit.keepFrom } : {}
|
|
25270
25281
|
});
|
|
25271
|
-
const replies = fetched.chat && !options.window ? await savedReplies(connection, store, account, fetched.chat, options.stop) : 0;
|
|
25282
|
+
const replies = fetched.chat && !options.window ? await savedReplies(connection, store, account, fetched.chat, { roots, startedAt }, options.stop) : 0;
|
|
25272
25283
|
const read = replies > 0 ? { ...fetched, fetched: fetched.fetched + replies } : fetched;
|
|
25273
25284
|
const result = windowed && read.reachedSince ? { ...read, limited: "older_than_window" } : read;
|
|
25274
25285
|
if (result.limited && limit?.keepFrom !== void 0)
|
|
@@ -25304,7 +25315,7 @@ var archiveService = /* @__PURE__ */ __name((deps) => {
|
|
|
25304
25315
|
const upToDate = heldToNewest(await deps.store(), await deps.account(), deps.messenger.fetching ?? FETCHING, {
|
|
25305
25316
|
...options,
|
|
25306
25317
|
catchUp: catchingUp ? options.catchUp ?? {} : false,
|
|
25307
|
-
threads: connection.threadReplies !== void 0
|
|
25318
|
+
threads: connection.threadReplies !== void 0 || refreshes(connection)
|
|
25308
25319
|
});
|
|
25309
25320
|
const finished = /* @__PURE__ */ __name(() => options.onChat?.({ chats: chats.length, done: answer.items.length, fetched: answer.fetched }), "finished");
|
|
25310
25321
|
finished();
|
|
@@ -25517,12 +25528,12 @@ var heldToNewest = /* @__PURE__ */ __name((store, account, fetching, options) =>
|
|
|
25517
25528
|
const lastAt = Date.parse(chat.lastMessageAt ?? "");
|
|
25518
25529
|
if (Number.isNaN(lastAt))
|
|
25519
25530
|
return false;
|
|
25520
|
-
const [
|
|
25521
|
-
if (!
|
|
25531
|
+
const [newest2] = (await store.messages.messages(account, chat.id, { limit: 1 }).catch(() => ({ items: [] }))).items;
|
|
25532
|
+
if (!newest2 || Date.parse(newest2.timestamp) < lastAt)
|
|
25522
25533
|
return false;
|
|
25523
25534
|
const ranges = await store.sync.ranges(account, chat.id);
|
|
25524
25535
|
const top = ranges.reduce((best, range2) => best && best.to >= range2.to ? best : range2, void 0);
|
|
25525
|
-
const key = keyOf2(fetching)(
|
|
25536
|
+
const key = keyOf2(fetching)(newest2);
|
|
25526
25537
|
if (!top || key > top.to || key < top.from)
|
|
25527
25538
|
return false;
|
|
25528
25539
|
if (ranges.length === 1 && await store.sync.syncState(account, historyStartKey(chat.id)) !== void 0)
|
|
@@ -25533,13 +25544,20 @@ var heldToNewest = /* @__PURE__ */ __name((store, account, fetching, options) =>
|
|
|
25533
25544
|
return !Number.isNaN(startedAt) && startedAt < options.sinceMs;
|
|
25534
25545
|
}, "heldToNewest");
|
|
25535
25546
|
var threadsKey = /* @__PURE__ */ __name((chatId) => `threads:${chatId}`, "threadsKey");
|
|
25536
|
-
var
|
|
25537
|
-
|
|
25547
|
+
var refreshes = /* @__PURE__ */ __name((connection) => connection.threadRootsIn !== void 0 && connection.recentThreadRoots !== void 0 && connection.rootReplies !== void 0, "refreshes");
|
|
25548
|
+
var pagedRoots = /* @__PURE__ */ __name((into, roots, before) => {
|
|
25549
|
+
for (const root of roots)
|
|
25550
|
+
into.set(root.id, { ...root, whole: before !== void 0 || into.get(root.id)?.whole === true });
|
|
25551
|
+
}, "pagedRoots");
|
|
25552
|
+
var THREAD_CLOCK_SKEW_MS = 6e4;
|
|
25553
|
+
var savedReplies = /* @__PURE__ */ __name(async (connection, store, account, chatId, { roots, startedAt }, stop) => {
|
|
25554
|
+
if (stop.aborted)
|
|
25555
|
+
return 0;
|
|
25556
|
+
const stored = Number((await store.sync.syncState(account, threadsKey(chatId)))?.value);
|
|
25557
|
+
const point = Number.isFinite(stored) ? stored : void 0;
|
|
25558
|
+
const batches = refreshes(connection) ? refreshedThreads(connection, chatId, roots, point, stop) : connection.threadReplies ? await readyBatches(connection.threadReplies(chatId, point === void 0 ? {} : { since: point })) : void 0;
|
|
25559
|
+
if (!batches)
|
|
25538
25560
|
return 0;
|
|
25539
|
-
const startedAt = Date.now();
|
|
25540
|
-
const point = Number((await store.sync.syncState(account, threadsKey(chatId)))?.value);
|
|
25541
|
-
const answer = await connection.threadReplies(chatId, Number.isFinite(point) ? { since: point } : {});
|
|
25542
|
-
const batches = Symbol.asyncIterator in answer ? answer : [answer];
|
|
25543
25561
|
let saved = 0;
|
|
25544
25562
|
for await (const replies of batches) {
|
|
25545
25563
|
if (replies.length > 0)
|
|
@@ -25551,6 +25569,32 @@ var savedReplies = /* @__PURE__ */ __name(async (connection, store, account, cha
|
|
|
25551
25569
|
await store.sync.setSyncState(account, threadsKey(chatId), String(startedAt));
|
|
25552
25570
|
return saved;
|
|
25553
25571
|
}, "savedReplies");
|
|
25572
|
+
var readyBatches = /* @__PURE__ */ __name(async (answer) => {
|
|
25573
|
+
const ready = await answer;
|
|
25574
|
+
return Symbol.asyncIterator in ready ? ready : [ready];
|
|
25575
|
+
}, "readyBatches");
|
|
25576
|
+
async function* refreshedThreads(connection, chatId, roots, point, stop) {
|
|
25577
|
+
const after = point === void 0 ? void 0 : point - THREAD_CLOCK_SKEW_MS;
|
|
25578
|
+
const all = new Map(roots);
|
|
25579
|
+
for (const root of await connection.recentThreadRoots(chatId)) {
|
|
25580
|
+
const paged = all.get(root.id);
|
|
25581
|
+
all.set(root.id, {
|
|
25582
|
+
...root,
|
|
25583
|
+
lastReplyAt: newest(paged?.lastReplyAt, root.lastReplyAt),
|
|
25584
|
+
whole: paged?.whole ?? false
|
|
25585
|
+
});
|
|
25586
|
+
}
|
|
25587
|
+
for (const root of all.values()) {
|
|
25588
|
+
if (stop.aborted)
|
|
25589
|
+
return;
|
|
25590
|
+
const replied = Date.parse(root.lastReplyAt ?? "");
|
|
25591
|
+
if (after !== void 0 && !root.whole && !(replied > after))
|
|
25592
|
+
continue;
|
|
25593
|
+
yield* await readyBatches(connection.rootReplies(chatId, root.id, after === void 0 || root.whole ? {} : { after }));
|
|
25594
|
+
}
|
|
25595
|
+
}
|
|
25596
|
+
__name(refreshedThreads, "refreshedThreads");
|
|
25597
|
+
var newest = /* @__PURE__ */ __name((one2, other) => one2 === void 0 || other !== void 0 && Date.parse(other) > Date.parse(one2) ? other : one2, "newest");
|
|
25554
25598
|
var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTime, fallback) => {
|
|
25555
25599
|
if (byTime)
|
|
25556
25600
|
return new Date(key).toISOString();
|
|
@@ -25558,7 +25602,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
25558
25602
|
return message?.timestamp ?? fallback;
|
|
25559
25603
|
}, "timeOfKey");
|
|
25560
25604
|
|
|
25561
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
25605
|
+
// 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/services/archive-gaps.js
|
|
25562
25606
|
import { createHash as createHash6, randomUUID as randomUUID4 } from "node:crypto";
|
|
25563
25607
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
25564
25608
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -25695,16 +25739,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
25695
25739
|
return { plan, repair };
|
|
25696
25740
|
}, "gapsService");
|
|
25697
25741
|
|
|
25698
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
25742
|
+
// 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/services/attachments.js
|
|
25699
25743
|
import { createHash as createHash9 } from "node:crypto";
|
|
25700
25744
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
25701
|
-
import { lstat as lstat5, open as open6,
|
|
25745
|
+
import { lstat as lstat5, open as open6, stat as stat2 } from "node:fs/promises";
|
|
25702
25746
|
|
|
25703
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
25747
|
+
// 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/attachments/directory.js
|
|
25704
25748
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
25705
25749
|
import { basename as basename4, join as join9, relative as relative2, sep as sep2 } from "node:path";
|
|
25706
25750
|
|
|
25707
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
25751
|
+
// 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/sends/upload.js
|
|
25708
25752
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
25709
25753
|
import { open as open4, stat } from "node:fs/promises";
|
|
25710
25754
|
import { basename as basename3, dirname as dirname3, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -25920,7 +25964,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path2, maxBytes, read) => {
|
|
|
25920
25964
|
return { name, source };
|
|
25921
25965
|
}, "readStickerFile");
|
|
25922
25966
|
|
|
25923
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
25967
|
+
// 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/attachments/directory.js
|
|
25924
25968
|
var MAX_FILES = 1e4;
|
|
25925
25969
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app, env) => {
|
|
25926
25970
|
if (refusedPlace(directory2, app, env))
|
|
@@ -25989,15 +26033,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
25989
26033
|
return choices;
|
|
25990
26034
|
}, "directoryPaths");
|
|
25991
26035
|
|
|
25992
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
26036
|
+
// 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/attachments/documents.js
|
|
25993
26037
|
import { posix } from "node:path";
|
|
25994
26038
|
|
|
25995
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
26039
|
+
// 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/attachments/container.js
|
|
25996
26040
|
import { setImmediate as tick } from "node:timers/promises";
|
|
25997
26041
|
import { crc32 } from "node:zlib";
|
|
25998
26042
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
25999
26043
|
|
|
26000
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
26044
|
+
// 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/attachments/encoding.js
|
|
26001
26045
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
26002
26046
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
26003
26047
|
var SAMPLE = 65536;
|
|
@@ -26099,7 +26143,8 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
26099
26143
|
return result.text;
|
|
26100
26144
|
}, "decodeXml");
|
|
26101
26145
|
|
|
26102
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
26146
|
+
// 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/attachments/container.js
|
|
26147
|
+
var MAX_KEPT = 50 * 1024 * 1024;
|
|
26103
26148
|
var MAX_PART = 10 * 1024 * 1024;
|
|
26104
26149
|
var MAX_ENTRIES = 1e3;
|
|
26105
26150
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -26113,7 +26158,8 @@ var cancelled = /* @__PURE__ */ __name((signal) => {
|
|
|
26113
26158
|
throw new CliError("cancelled", "document extraction cancelled");
|
|
26114
26159
|
}, "cancelled");
|
|
26115
26160
|
var safeName2 = /* @__PURE__ */ __name((name) => name.length > 0 && name.length <= 512 && !/^[\\/]|\\/.test(name) && ![...name].some((character2) => character2.charCodeAt(0) < 32) && !name.split("/").includes(".."), "safeName");
|
|
26116
|
-
var
|
|
26161
|
+
var KEPT = /* @__PURE__ */ __name((name) => /\.(xml|rels|opf|xhtml|html)$/i.test(name) || name === "mimetype", "KEPT");
|
|
26162
|
+
var directory = /* @__PURE__ */ __name((bytes2, maxExpanded) => {
|
|
26117
26163
|
const view = new DataView(bytes2.buffer, bytes2.byteOffset, bytes2.byteLength);
|
|
26118
26164
|
let end = -1;
|
|
26119
26165
|
for (let index = bytes2.length - 22; index >= Math.max(0, bytes2.length - 65557); index--) {
|
|
@@ -26134,6 +26180,7 @@ var directory = /* @__PURE__ */ __name((bytes2) => {
|
|
|
26134
26180
|
throw new Error("invalid_zip");
|
|
26135
26181
|
let offset = view.getUint32(end + 16, true);
|
|
26136
26182
|
let expanded = 0;
|
|
26183
|
+
let kept2 = 0;
|
|
26137
26184
|
const entries = /* @__PURE__ */ new Map();
|
|
26138
26185
|
for (let index = 0; index < count3; index++) {
|
|
26139
26186
|
if (offset + 46 > stop || view.getUint32(offset, true) !== 33639248)
|
|
@@ -26152,7 +26199,9 @@ var directory = /* @__PURE__ */ __name((bytes2) => {
|
|
|
26152
26199
|
if ((view.getUint32(offset + 38, true) >>> 16 & 61440) === 40960)
|
|
26153
26200
|
throw new Error("invalid_zip");
|
|
26154
26201
|
expanded += size4;
|
|
26155
|
-
if (
|
|
26202
|
+
if (KEPT(name))
|
|
26203
|
+
kept2 += size4;
|
|
26204
|
+
if (expanded > maxExpanded || kept2 > MAX_KEPT)
|
|
26156
26205
|
throw new ReaderLimit();
|
|
26157
26206
|
const local = view.getUint32(offset + 42, true);
|
|
26158
26207
|
if (local + 30 > offset || view.getUint32(local, true) !== 67324752)
|
|
@@ -26170,19 +26219,20 @@ var directory = /* @__PURE__ */ __name((bytes2) => {
|
|
|
26170
26219
|
throw new Error("invalid_zip");
|
|
26171
26220
|
return entries;
|
|
26172
26221
|
}, "directory");
|
|
26173
|
-
var readContainer = /* @__PURE__ */ __name(async (bytes2, signal) => {
|
|
26222
|
+
var readContainer = /* @__PURE__ */ __name(async (bytes2, signal, maxExpanded = attachmentMaxBytes()) => {
|
|
26174
26223
|
cancelled(signal);
|
|
26175
|
-
const entries = directory(bytes2);
|
|
26224
|
+
const entries = directory(bytes2, maxExpanded);
|
|
26176
26225
|
const result = /* @__PURE__ */ new Map();
|
|
26177
26226
|
const seen = /* @__PURE__ */ new Set();
|
|
26178
26227
|
const done2 = /* @__PURE__ */ new Set();
|
|
26179
26228
|
let expanded = 0;
|
|
26229
|
+
let kept2 = 0;
|
|
26180
26230
|
const archive = new Unzip((file) => {
|
|
26181
26231
|
const expected2 = entries.get(file.name);
|
|
26182
26232
|
if (!expected2 || seen.has(file.name))
|
|
26183
26233
|
throw new Error("invalid_zip");
|
|
26184
26234
|
seen.add(file.name);
|
|
26185
|
-
const keep2 =
|
|
26235
|
+
const keep2 = KEPT(file.name);
|
|
26186
26236
|
let size4 = 0;
|
|
26187
26237
|
let checksum = 0;
|
|
26188
26238
|
const parts = [];
|
|
@@ -26191,7 +26241,9 @@ var readContainer = /* @__PURE__ */ __name(async (bytes2, signal) => {
|
|
|
26191
26241
|
throw error;
|
|
26192
26242
|
size4 += data.length;
|
|
26193
26243
|
expanded += data.length;
|
|
26194
|
-
if (
|
|
26244
|
+
if (keep2)
|
|
26245
|
+
kept2 += data.length;
|
|
26246
|
+
if (expanded > maxExpanded || kept2 > MAX_KEPT || keep2 && size4 > MAX_PART)
|
|
26195
26247
|
throw new ReaderLimit();
|
|
26196
26248
|
checksum = crc32(data, checksum);
|
|
26197
26249
|
if (keep2)
|
|
@@ -26314,7 +26366,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
26314
26366
|
return found;
|
|
26315
26367
|
}, "elements");
|
|
26316
26368
|
|
|
26317
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
26369
|
+
// 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/attachments/sheets.js
|
|
26318
26370
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
26319
26371
|
let name = "";
|
|
26320
26372
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -26369,7 +26421,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
26369
26421
|
return { text: parts.join("").trim(), truncated: false };
|
|
26370
26422
|
}, "sheetText");
|
|
26371
26423
|
|
|
26372
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
26424
|
+
// 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/attachments/documents.js
|
|
26373
26425
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
26374
26426
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
26375
26427
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -26769,10 +26821,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind2, signal) => {
|
|
|
26769
26821
|
}
|
|
26770
26822
|
}, "readDocument");
|
|
26771
26823
|
|
|
26772
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
26824
|
+
// 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/attachments/extract.js
|
|
26773
26825
|
import { extname as extname3 } from "node:path";
|
|
26774
26826
|
|
|
26775
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
26827
|
+
// 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/readers/engine.js
|
|
26776
26828
|
import { readFileSync } from "node:fs";
|
|
26777
26829
|
import { dirname as dirname4, extname as extname2, join as join10 } from "node:path";
|
|
26778
26830
|
import { fileURLToPath } from "node:url";
|
|
@@ -26833,7 +26885,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
|
|
|
26833
26885
|
}
|
|
26834
26886
|
}, "derived");
|
|
26835
26887
|
|
|
26836
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
26888
|
+
// 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/readers/image/index.js
|
|
26837
26889
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
26838
26890
|
var image2 = {
|
|
26839
26891
|
id: "image",
|
|
@@ -26842,7 +26894,7 @@ var image2 = {
|
|
|
26842
26894
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
26843
26895
|
};
|
|
26844
26896
|
|
|
26845
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
26897
|
+
// 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/readers/doc/index.js
|
|
26846
26898
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
26847
26899
|
var doc = {
|
|
26848
26900
|
id: "doc",
|
|
@@ -26854,7 +26906,7 @@ var doc = {
|
|
|
26854
26906
|
}), "read")
|
|
26855
26907
|
};
|
|
26856
26908
|
|
|
26857
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
26909
|
+
// 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/readers/docx/index.js
|
|
26858
26910
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
26859
26911
|
var docx = {
|
|
26860
26912
|
id: "docx",
|
|
@@ -26867,10 +26919,10 @@ var docx = {
|
|
|
26867
26919
|
}), "read")
|
|
26868
26920
|
};
|
|
26869
26921
|
|
|
26870
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
26922
|
+
// 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/attachments/markup.js
|
|
26871
26923
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
26872
26924
|
|
|
26873
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
26925
|
+
// 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/html-entities.js
|
|
26874
26926
|
var NAMED2 = {
|
|
26875
26927
|
amp: "&",
|
|
26876
26928
|
lt: "<",
|
|
@@ -26922,7 +26974,7 @@ var decodeEntities = /* @__PURE__ */ __name((text3) => text3.replace(/&(#x[0-9a-
|
|
|
26922
26974
|
return body[1] === "x" || body[1] === "X" ? character(Number.parseInt(body.slice(2), 16), entity2) : character(Number(body.slice(1)), entity2);
|
|
26923
26975
|
}), "decodeEntities");
|
|
26924
26976
|
|
|
26925
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
26977
|
+
// 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/attachments/markup.js
|
|
26926
26978
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
26927
26979
|
"fonttbl",
|
|
26928
26980
|
"colortbl",
|
|
@@ -27088,7 +27140,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
27088
27140
|
return decodeEntities(replaceTags(blocks, /<[^>]*>/g, "")).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
27089
27141
|
}, "htmlText");
|
|
27090
27142
|
|
|
27091
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
27143
|
+
// 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/readers/html/page.js
|
|
27092
27144
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
27093
27145
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
27094
27146
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -27144,7 +27196,7 @@ var markdownSections = /* @__PURE__ */ __name((text3) => {
|
|
|
27144
27196
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text3.length }));
|
|
27145
27197
|
}, "markdownSections");
|
|
27146
27198
|
|
|
27147
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
27199
|
+
// 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/readers/html/index.js
|
|
27148
27200
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
27149
27201
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
27150
27202
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -27215,7 +27267,7 @@ var html = {
|
|
|
27215
27267
|
}, "read")
|
|
27216
27268
|
};
|
|
27217
27269
|
|
|
27218
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
27270
|
+
// 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/readers/office/index.js
|
|
27219
27271
|
var office = {
|
|
27220
27272
|
id: "office",
|
|
27221
27273
|
version: documentExtractor("odt"),
|
|
@@ -27226,7 +27278,7 @@ var office = {
|
|
|
27226
27278
|
}, "read")
|
|
27227
27279
|
};
|
|
27228
27280
|
|
|
27229
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
27281
|
+
// 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/readers/pdf/index.js
|
|
27230
27282
|
var pdf = {
|
|
27231
27283
|
id: "pdf",
|
|
27232
27284
|
version: "unpdf",
|
|
@@ -27293,7 +27345,7 @@ var pdf = {
|
|
|
27293
27345
|
}), "read")
|
|
27294
27346
|
};
|
|
27295
27347
|
|
|
27296
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
27348
|
+
// 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/readers/plain/index.js
|
|
27297
27349
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
27298
27350
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
27299
27351
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -27313,7 +27365,7 @@ var plain = {
|
|
|
27313
27365
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
27314
27366
|
};
|
|
27315
27367
|
|
|
27316
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
27368
|
+
// 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/readers/rtf/index.js
|
|
27317
27369
|
var rtf = {
|
|
27318
27370
|
id: "rtf",
|
|
27319
27371
|
version: "v1",
|
|
@@ -27321,10 +27373,10 @@ var rtf = {
|
|
|
27321
27373
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
27322
27374
|
};
|
|
27323
27375
|
|
|
27324
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
27376
|
+
// 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/readers/sheets/index.js
|
|
27325
27377
|
import { basename as basename5 } from "node:path";
|
|
27326
27378
|
|
|
27327
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
27379
|
+
// 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/attachments/csv-spans.js
|
|
27328
27380
|
var delimitedSpans = /* @__PURE__ */ __name((text3, delimiter, maxCells = 1e4) => {
|
|
27329
27381
|
const cells = [];
|
|
27330
27382
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -27362,7 +27414,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text3, delimiter, maxCells = 1e4) =
|
|
|
27362
27414
|
return { cells, truncated };
|
|
27363
27415
|
}, "delimitedSpans");
|
|
27364
27416
|
|
|
27365
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
27417
|
+
// 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/readers/sheets/index.js
|
|
27366
27418
|
var DELIMITED = {
|
|
27367
27419
|
".csv": ",",
|
|
27368
27420
|
".tsv": " ",
|
|
@@ -27401,7 +27453,7 @@ var sheets = {
|
|
|
27401
27453
|
}, "read")
|
|
27402
27454
|
};
|
|
27403
27455
|
|
|
27404
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
27456
|
+
// 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/readers/registry.js
|
|
27405
27457
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
27406
27458
|
var HEAD_BYTES = 1024;
|
|
27407
27459
|
var readers = [...BUILT_INS2];
|
|
@@ -27411,7 +27463,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
27411
27463
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
27412
27464
|
}, "readWithRegistry");
|
|
27413
27465
|
|
|
27414
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
27466
|
+
// 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/attachments/extract.js
|
|
27415
27467
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
27416
27468
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path: path2 }) => extname3(name ?? path2).toLowerCase(), "extensionOf");
|
|
27417
27469
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -28490,7 +28542,7 @@ function imageSize(input) {
|
|
|
28490
28542
|
}
|
|
28491
28543
|
__name(imageSize, "imageSize");
|
|
28492
28544
|
|
|
28493
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
28545
|
+
// 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/attachments/ocr.js
|
|
28494
28546
|
var MAX_PAGES = 20;
|
|
28495
28547
|
var MAX_PIXELS = 2e7;
|
|
28496
28548
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -28650,7 +28702,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
28650
28702
|
}
|
|
28651
28703
|
}, "ocrPdf");
|
|
28652
28704
|
|
|
28653
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
28705
|
+
// 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/attachments/pdf-preview.js
|
|
28654
28706
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
28655
28707
|
const limits = pdfPreviewLimits(env);
|
|
28656
28708
|
const cancelled3 = /* @__PURE__ */ __name(() => {
|
|
@@ -28727,7 +28779,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
28727
28779
|
}
|
|
28728
28780
|
}, "pdfPreview");
|
|
28729
28781
|
|
|
28730
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
28782
|
+
// 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/attachments/picture-reading.js
|
|
28731
28783
|
import { spawn } from "node:child_process";
|
|
28732
28784
|
import { mkdtempSync, readFileSync as readFileSync2, rmSync, writeFileSync as writeFileSync2 } from "node:fs";
|
|
28733
28785
|
import { tmpdir } from "node:os";
|
|
@@ -28890,7 +28942,7 @@ Read the attached picture.`,
|
|
|
28890
28942
|
}
|
|
28891
28943
|
}, "readPictureWithAgent");
|
|
28892
28944
|
|
|
28893
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
28945
|
+
// 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/attachments/transfer.js
|
|
28894
28946
|
import { createHash as createHash7 } from "node:crypto";
|
|
28895
28947
|
import { constants } from "node:fs";
|
|
28896
28948
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -28913,7 +28965,7 @@ var retainedBytes = /* @__PURE__ */ __name(async (path2, options, captureFile =
|
|
|
28913
28965
|
if (!before.isFile() || before.isSymbolicLink())
|
|
28914
28966
|
throw new CliError("validation_error", "the retained attachment must be a regular file");
|
|
28915
28967
|
if (before.size > maxBytes)
|
|
28916
|
-
throw new CliError("validation_error", `the retained attachment exceeds ${maxBytes
|
|
28968
|
+
throw new CliError("validation_error", `the retained attachment exceeds ${sizeText(maxBytes)}; configure MESSAGING_ATTACHMENT_MAX_MIB`);
|
|
28917
28969
|
if (offsetBytes > before.size)
|
|
28918
28970
|
throw new CliError("validation_error", "the byte offset is past the end of this attachment");
|
|
28919
28971
|
const handle = await open5(path2, constants.O_RDONLY | (constants.O_NOFOLLOW ?? 0) | (constants.O_NONBLOCK ?? 0));
|
|
@@ -28998,7 +29050,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
28998
29050
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
28999
29051
|
}, "transferMime");
|
|
29000
29052
|
|
|
29001
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
29053
|
+
// 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/services/file-download.js
|
|
29002
29054
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
29003
29055
|
import { link as link3, rm } from "node:fs/promises";
|
|
29004
29056
|
import { join as join12, resolve as resolve6 } from "node:path";
|
|
@@ -29113,12 +29165,12 @@ var save = /* @__PURE__ */ __name(async (file, directory2, fallbackName, { uniqu
|
|
|
29113
29165
|
}
|
|
29114
29166
|
}, "save");
|
|
29115
29167
|
|
|
29116
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
29168
|
+
// 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/services/pictures.js
|
|
29117
29169
|
import { createHash as createHash8 } from "node:crypto";
|
|
29118
29170
|
import { lstat as lstat4, readFile } from "node:fs/promises";
|
|
29119
29171
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
29120
29172
|
|
|
29121
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
29173
|
+
// 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/models.js
|
|
29122
29174
|
var GROUP_SETTINGS = [
|
|
29123
29175
|
"allCanPin",
|
|
29124
29176
|
"onlyAdminsAdd",
|
|
@@ -29132,7 +29184,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
29132
29184
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
29133
29185
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
29134
29186
|
|
|
29135
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
29187
|
+
// 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/services/pictures.js
|
|
29136
29188
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
29137
29189
|
var PICTURE_FLOOR = 0.25;
|
|
29138
29190
|
var PAGE3 = 50;
|
|
@@ -29173,7 +29225,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
29173
29225
|
const directory2 = imageModelsDirectory(deps.env);
|
|
29174
29226
|
if (!isImageModelInstalled(model2, directory2))
|
|
29175
29227
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
29176
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
29228
|
+
const { openPictureEmbedder } = await import("./embedder-ZEKISZXI.js");
|
|
29177
29229
|
return openPictureEmbedder(model2, directory2);
|
|
29178
29230
|
}, "open");
|
|
29179
29231
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -29347,7 +29399,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
29347
29399
|
}, "search")
|
|
29348
29400
|
}), "withPictures");
|
|
29349
29401
|
|
|
29350
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
29402
|
+
// 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/services/attachments.js
|
|
29351
29403
|
var ATTACHMENT_QUERY = {
|
|
29352
29404
|
entity: "attachment",
|
|
29353
29405
|
backend: "sql",
|
|
@@ -29372,7 +29424,7 @@ var outcome = /* @__PURE__ */ __name(async (file, path2, load, signal, noFollow
|
|
|
29372
29424
|
status: "too-large",
|
|
29373
29425
|
issue: withRecovery({
|
|
29374
29426
|
code: "validation_error",
|
|
29375
|
-
message: `attachment exceeds ${maxBytes
|
|
29427
|
+
message: `attachment exceeds ${sizeText(maxBytes)}; configure MESSAGING_ATTACHMENT_MAX_MIB`,
|
|
29376
29428
|
setting: "MESSAGING_ATTACHMENT_MAX_MIB"
|
|
29377
29429
|
})
|
|
29378
29430
|
}), "tooLarge");
|
|
@@ -29393,7 +29445,7 @@ var outcome = /* @__PURE__ */ __name(async (file, path2, load, signal, noFollow
|
|
|
29393
29445
|
return { status: "missing" };
|
|
29394
29446
|
if (opened.size > maxBytes)
|
|
29395
29447
|
return tooLarge();
|
|
29396
|
-
bytes2 =
|
|
29448
|
+
bytes2 = asBytes(await readWhole(handle, signal));
|
|
29397
29449
|
} finally {
|
|
29398
29450
|
await handle.close();
|
|
29399
29451
|
}
|
|
@@ -29818,7 +29870,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
29818
29870
|
}, "readPicture")
|
|
29819
29871
|
}), "attachmentsService");
|
|
29820
29872
|
|
|
29821
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
29873
|
+
// 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/services/chat-documents.js
|
|
29822
29874
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
29823
29875
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref: ref2 }) => {
|
|
29824
29876
|
const store = await accountStore(deps);
|
|
@@ -29848,7 +29900,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
29848
29900
|
}, "list")
|
|
29849
29901
|
}), "chatDocumentsService");
|
|
29850
29902
|
|
|
29851
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
29903
|
+
// 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/services/retention.js
|
|
29852
29904
|
var observationDuration = /* @__PURE__ */ __name((text3, flag) => {
|
|
29853
29905
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text3);
|
|
29854
29906
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -29935,7 +29987,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
29935
29987
|
}
|
|
29936
29988
|
}, "isRetentionSelection");
|
|
29937
29989
|
|
|
29938
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
29990
|
+
// 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/services/counters.js
|
|
29939
29991
|
var counterFields = /* @__PURE__ */ __name((text3 = "views,reactions,comments") => {
|
|
29940
29992
|
const fields2 = text3.split(",").map((one2) => one2.trim());
|
|
29941
29993
|
if (!fields2.length || fields2.some((one2) => !COUNTER_FIELDS.includes(one2)) || new Set(fields2).size !== fields2.length)
|
|
@@ -30142,7 +30194,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
30142
30194
|
};
|
|
30143
30195
|
}, "countersService");
|
|
30144
30196
|
|
|
30145
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
30197
|
+
// 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/services/named-chat.js
|
|
30146
30198
|
var LEAST_USES = 3;
|
|
30147
30199
|
var SAMPLE2 = 50;
|
|
30148
30200
|
var CAPITALISED = 0.8;
|
|
@@ -30196,7 +30248,7 @@ var queryWords2 = /* @__PURE__ */ __name((query) => {
|
|
|
30196
30248
|
}, "queryWords");
|
|
30197
30249
|
var without = /* @__PURE__ */ __name((query, word) => query.replace(new RegExp(`(?<![\\p{L}\\p{N}])${word}(?![\\p{L}\\p{N}])`, "giu"), " ").replace(/\s+/gu, " ").trim(), "without");
|
|
30198
30250
|
|
|
30199
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
30251
|
+
// 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/services/search-refresh.js
|
|
30200
30252
|
var SYNC_KEY = "messages.sync-first";
|
|
30201
30253
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
30202
30254
|
var keyOf3 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -30287,13 +30339,13 @@ var refreshSearch = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
30287
30339
|
continue;
|
|
30288
30340
|
}
|
|
30289
30341
|
try {
|
|
30290
|
-
const
|
|
30342
|
+
const newest2 = (await store.messages.messages(account, chatId, { limit: 1 })).items[0];
|
|
30291
30343
|
let counted2 = 0;
|
|
30292
30344
|
const fetched = await archiveService(deps).fetch(chatId, {
|
|
30293
30345
|
limit: options.maxMessages - result.messages,
|
|
30294
30346
|
pageSize: Math.min(100, deps.messenger.fetching?.maxPageSize ?? 100),
|
|
30295
30347
|
pauseMs: parseDuration(deps.messenger.fetching?.pause ?? "1s", "fetch pause"),
|
|
30296
|
-
...
|
|
30348
|
+
...newest2 ? { sinceMs: Date.parse(newest2.timestamp) + 1 } : {},
|
|
30297
30349
|
stop,
|
|
30298
30350
|
note,
|
|
30299
30351
|
onPage: /* @__PURE__ */ __name(({ fetched: fetched2 }) => {
|
|
@@ -30328,7 +30380,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
30328
30380
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
30329
30381
|
}), "withRefresh");
|
|
30330
30382
|
|
|
30331
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
30383
|
+
// 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/services/embeddings-search.js
|
|
30332
30384
|
var CANDIDATES = 50;
|
|
30333
30385
|
var ACROSS_CHATS = 500;
|
|
30334
30386
|
var OWN_BLOCK = 5;
|
|
@@ -30789,13 +30841,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
30789
30841
|
return mean2.map((value) => value / length);
|
|
30790
30842
|
}, "meanOf");
|
|
30791
30843
|
|
|
30792
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
30844
|
+
// 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/services/embeddings.js
|
|
30793
30845
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
30794
30846
|
...embeddingsMaintenance(deps),
|
|
30795
30847
|
...embeddingsSearch(deps)
|
|
30796
30848
|
}), "embeddingsService");
|
|
30797
30849
|
|
|
30798
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
30850
|
+
// 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/services/folders.js
|
|
30799
30851
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
30800
30852
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
30801
30853
|
if (deps.offline)
|
|
@@ -30936,7 +30988,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
30936
30988
|
};
|
|
30937
30989
|
}, "foldersService");
|
|
30938
30990
|
|
|
30939
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
30991
|
+
// 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/services/inbox.js
|
|
30940
30992
|
var INBOX_CHATS = 20;
|
|
30941
30993
|
var REVIEW_DAYS = 3;
|
|
30942
30994
|
var UNANSWERED_HOURS = 24;
|
|
@@ -30948,9 +31000,9 @@ var everyChat = /* @__PURE__ */ __name((adapter) => adapter.unreadChats ? adapte
|
|
|
30948
31000
|
var leftOf = /* @__PURE__ */ __name((page) => page.left?.length ? { left: page.left } : {}, "leftOf");
|
|
30949
31001
|
var storeReader = /* @__PURE__ */ __name((deps, store, account) => ({
|
|
30950
31002
|
chats: /* @__PURE__ */ __name(async ({ limit, offset }) => {
|
|
30951
|
-
const
|
|
31003
|
+
const newest2 = new Map((await store.chats.chatStats(account)).map((one2) => [one2.chatId, one2.newestAt]));
|
|
30952
31004
|
const all = byRecency((await store.chats.chats(account, {})).items.map((chat) => {
|
|
30953
|
-
const at2 =
|
|
31005
|
+
const at2 = newest2.get(chat.id) ?? null;
|
|
30954
31006
|
const later = at2 !== null && (chat.lastMessageAt === null || Date.parse(at2) > Date.parse(chat.lastMessageAt));
|
|
30955
31007
|
return later ? { ...chat, lastMessageAt: at2 } : chat;
|
|
30956
31008
|
}));
|
|
@@ -30987,9 +31039,9 @@ var unreadIn = /* @__PURE__ */ __name(async (adapter, { limit, all = false, kind
|
|
|
30987
31039
|
for (const { id: id3, title, kind: kind2, unreadCount } of read) {
|
|
30988
31040
|
const count3 = unreadCount ?? 0;
|
|
30989
31041
|
if (count3 === 0) {
|
|
30990
|
-
const
|
|
30991
|
-
if (
|
|
30992
|
-
chats.push({ id: id3, title, kind: kind2, unreadCount, messages: [
|
|
31042
|
+
const newest2 = (await adapter.history(id3, { limit })).items.findLast((message) => !message.outgoing);
|
|
31043
|
+
if (newest2)
|
|
31044
|
+
chats.push({ id: id3, title, kind: kind2, unreadCount, messages: [newest2], more: false });
|
|
30993
31045
|
continue;
|
|
30994
31046
|
}
|
|
30995
31047
|
const wanted = Math.min(count3, limit);
|
|
@@ -31148,7 +31200,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
31148
31200
|
};
|
|
31149
31201
|
}, "inboxService");
|
|
31150
31202
|
|
|
31151
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
31203
|
+
// 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/services/mentions.js
|
|
31152
31204
|
var REVIEW_COUNT = 500;
|
|
31153
31205
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
31154
31206
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -31227,7 +31279,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
31227
31279
|
};
|
|
31228
31280
|
}, "mentionsService");
|
|
31229
31281
|
|
|
31230
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
31282
|
+
// 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/message-link.js
|
|
31231
31283
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind: kind2, name }) => ({
|
|
31232
31284
|
position,
|
|
31233
31285
|
kind: kind2,
|
|
@@ -31276,7 +31328,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
31276
31328
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
31277
31329
|
}, "validatePermalink");
|
|
31278
31330
|
|
|
31279
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
31331
|
+
// 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/pin-duration.js
|
|
31280
31332
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
31281
31333
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
31282
31334
|
return `${seconds / 86400}d`;
|
|
@@ -31308,7 +31360,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
31308
31360
|
return seconds;
|
|
31309
31361
|
}, "pinDurationOf");
|
|
31310
31362
|
|
|
31311
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
31363
|
+
// 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/sends/send-as.js
|
|
31312
31364
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
31313
31365
|
if (sendAs === void 0) {
|
|
31314
31366
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -31333,7 +31385,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
31333
31385
|
return sendAs;
|
|
31334
31386
|
}, "typedSendAs");
|
|
31335
31387
|
|
|
31336
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
31388
|
+
// 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/search/total.js
|
|
31337
31389
|
var TOTAL_CAP = 1e4;
|
|
31338
31390
|
var totalOf = /* @__PURE__ */ __name((count3, shown, hasMore, exact = true) => {
|
|
31339
31391
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -31344,7 +31396,7 @@ var totalOf = /* @__PURE__ */ __name((count3, shown, hasMore, exact = true) => {
|
|
|
31344
31396
|
return { value: count3, relation: exact ? "eq" : "gte" };
|
|
31345
31397
|
}, "totalOf");
|
|
31346
31398
|
|
|
31347
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
31399
|
+
// 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/search/lucene/meaning-parts.js
|
|
31348
31400
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
31349
31401
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
31350
31402
|
let narrows = false;
|
|
@@ -31373,7 +31425,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
31373
31425
|
return wanted(root).join(" ").trim();
|
|
31374
31426
|
}, "meaningWords");
|
|
31375
31427
|
|
|
31376
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
31428
|
+
// 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/services/messages-combined.js
|
|
31377
31429
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
31378
31430
|
var tokensOf = /* @__PURE__ */ __name((text3) => normalize(text3).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
31379
31431
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -31574,7 +31626,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
31574
31626
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
|
|
31575
31627
|
}, "signals");
|
|
31576
31628
|
|
|
31577
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
31629
|
+
// 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/services/messages-discovery.js
|
|
31578
31630
|
var MEANING_DEPTH = 100;
|
|
31579
31631
|
var RRF_K3 = 60;
|
|
31580
31632
|
var RERANK_DEPTH = 50;
|
|
@@ -31900,7 +31952,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
31900
31952
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
31901
31953
|
}, "mixedWithReranker");
|
|
31902
31954
|
|
|
31903
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
31955
|
+
// 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/services/thread-context.js
|
|
31904
31956
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
31905
31957
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
31906
31958
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -32099,7 +32151,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
32099
32151
|
return result;
|
|
32100
32152
|
}, "readThreadContext");
|
|
32101
32153
|
|
|
32102
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
32154
|
+
// 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/services/messages-archive-search.js
|
|
32103
32155
|
var SEARCH_FILL_MS = 200;
|
|
32104
32156
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
32105
32157
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -32207,7 +32259,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
32207
32259
|
}, "accountOf");
|
|
32208
32260
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
32209
32261
|
|
|
32210
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
32262
|
+
// 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/services/meaning-model.js
|
|
32211
32263
|
var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
32212
32264
|
const chosen = chosenTextModel(env);
|
|
32213
32265
|
if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
|
|
@@ -32222,7 +32274,7 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
|
32222
32274
|
return (counts.get(before) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
|
|
32223
32275
|
}, "meaningModel");
|
|
32224
32276
|
|
|
32225
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
32277
|
+
// 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/services/messages-meaning.js
|
|
32226
32278
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
32227
32279
|
try {
|
|
32228
32280
|
const text3 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -32301,7 +32353,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
32301
32353
|
}
|
|
32302
32354
|
}, "meaningLane");
|
|
32303
32355
|
|
|
32304
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
32356
|
+
// 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/services/messages-rerank.js
|
|
32305
32357
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
32306
32358
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
32307
32359
|
if (choice === "off")
|
|
@@ -32313,9 +32365,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32313
32365
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
32314
32366
|
try {
|
|
32315
32367
|
const warm = deps.embedders;
|
|
32316
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
32368
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-AFIXYXWL.js")).openRerankerProcess(model, directory2, {
|
|
32317
32369
|
threads: defaultThreads()
|
|
32318
|
-
})) : await (await import("./rerank-
|
|
32370
|
+
})) : await (await import("./rerank-2HGWWORY.js")).openReranker(model, directory2);
|
|
32319
32371
|
return {
|
|
32320
32372
|
model: model.id,
|
|
32321
32373
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -32335,14 +32387,14 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32335
32387
|
};
|
|
32336
32388
|
}, "rerankLane");
|
|
32337
32389
|
|
|
32338
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
32390
|
+
// 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/crm/file-fetch.js
|
|
32339
32391
|
var EXCHANGE_MS = 60 * 60 * 1e3;
|
|
32340
32392
|
|
|
32341
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
32393
|
+
// 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/crm/files.js
|
|
32342
32394
|
var foldKey = /* @__PURE__ */ __name((key) => key.replaceAll("_", "").toLowerCase(), "foldKey");
|
|
32343
32395
|
var DOWNLOAD_KEYS = new Set(["DOWNLOAD_URL", "downloadUrl", "fileUrl", "CALL_RECORD_URL", "archiveLink", "publicUrl"].map(foldKey));
|
|
32344
32396
|
|
|
32345
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
32397
|
+
// 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/sends/file-lock.js
|
|
32346
32398
|
import { closeSync, mkdirSync as mkdirSync3, openSync, statSync, unlinkSync } from "node:fs";
|
|
32347
32399
|
import { dirname as dirname5 } from "node:path";
|
|
32348
32400
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -32409,10 +32461,10 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
32409
32461
|
}
|
|
32410
32462
|
}, "lockTime");
|
|
32411
32463
|
|
|
32412
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
32464
|
+
// 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/crm/values.js
|
|
32413
32465
|
var isRaw = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isRaw");
|
|
32414
32466
|
|
|
32415
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
32467
|
+
// 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/crm/manifest/map.js
|
|
32416
32468
|
var at = /* @__PURE__ */ __name((value, path2) => path2 === "." ? value : path2.split(".").reduce((inner, key) => inner === null ? null : Array.isArray(inner) && /^\d+$/.test(key) ? inner[Number(key)] ?? null : isRaw(inner) ? inner[key] : void 0, value), "at");
|
|
32417
32469
|
var TIMES = { createdAt: "epoch", updatedAt: "epoch" };
|
|
32418
32470
|
var ITEM = {
|
|
@@ -32465,7 +32517,7 @@ var FIELDS = {
|
|
|
32465
32517
|
lead: ITEM
|
|
32466
32518
|
};
|
|
32467
32519
|
|
|
32468
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
32520
|
+
// 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/crm/manifest/manifest.js
|
|
32469
32521
|
var path = pipe(string(), regex(/^[^.\s]+(\.[^.\s]+)*$/, "a dotted path such as properties.name"));
|
|
32470
32522
|
var paths = pipe(array(path), minLength(1));
|
|
32471
32523
|
var crmRuleSchema = union([
|
|
@@ -32673,7 +32725,7 @@ var integer2 = /* @__PURE__ */ __name((range2 = {}) => pipe(custom((input) => {
|
|
|
32673
32725
|
return digits !== void 0 && Number.isSafeInteger(Number(digits));
|
|
32674
32726
|
}, "expected an integer within \xB12^53"), transform((input) => Number(digitsOf(input))), check((value) => inRange(value, range2), "integer out of range")), "integer");
|
|
32675
32727
|
|
|
32676
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
32728
|
+
// 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/bot/api-input.js
|
|
32677
32729
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
32678
32730
|
|
|
32679
32731
|
// node_modules/.pnpm/lossless-json@4.3.3/node_modules/lossless-json/lib/esm/utils.js
|
|
@@ -33360,7 +33412,7 @@ function resolveSpace(space) {
|
|
|
33360
33412
|
}
|
|
33361
33413
|
__name(resolveSpace, "resolveSpace");
|
|
33362
33414
|
|
|
33363
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
33415
|
+
// 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/bot/api-input.js
|
|
33364
33416
|
var RENAMED = { timeout: "poll-timeout" };
|
|
33365
33417
|
var apiFlagOf = /* @__PURE__ */ __name((name) => RENAMED[name] ?? name.replace(/_/g, "-").replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), "apiFlagOf");
|
|
33366
33418
|
var apiOptionKey = /* @__PURE__ */ __name((name) => apiFlagOf(name).replace(/-([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "apiOptionKey");
|
|
@@ -33500,7 +33552,7 @@ var flagValue = /* @__PURE__ */ __name((operation, name, raw, type) => {
|
|
|
33500
33552
|
return raw;
|
|
33501
33553
|
}, "flagValue");
|
|
33502
33554
|
|
|
33503
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
33555
|
+
// 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/service-api-manifest.js
|
|
33504
33556
|
var manifestBaseUrl = /* @__PURE__ */ __name((manifest, given, variables = {}) => {
|
|
33505
33557
|
const server = manifest.servers?.[0];
|
|
33506
33558
|
if (given === void 0 && !server)
|
|
@@ -33628,13 +33680,13 @@ var nextPage = /* @__PURE__ */ __name((pagination, input, answer, headers) => {
|
|
|
33628
33680
|
}
|
|
33629
33681
|
}, "nextPage");
|
|
33630
33682
|
|
|
33631
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
33683
|
+
// 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/crm/manifest/source.js
|
|
33632
33684
|
var OVERLAP_MS = 10 * 6e4;
|
|
33633
33685
|
|
|
33634
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
33686
|
+
// 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/sends/guard.js
|
|
33635
33687
|
import { randomUUID as randomUUID5 } from "node:crypto";
|
|
33636
33688
|
|
|
33637
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
33689
|
+
// 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/sends/flood.js
|
|
33638
33690
|
import { mkdirSync as mkdirSync4, readFileSync as readFileSync4, renameSync, writeFileSync as writeFileSync3 } from "node:fs";
|
|
33639
33691
|
import { dirname as dirname6, join as join13 } from "node:path";
|
|
33640
33692
|
var MOST_DEADLINES = 50;
|
|
@@ -33718,7 +33770,7 @@ var FloodMemory = class {
|
|
|
33718
33770
|
}
|
|
33719
33771
|
};
|
|
33720
33772
|
|
|
33721
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
33773
|
+
// 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/sends/journal.js
|
|
33722
33774
|
import { appendFileSync, mkdirSync as mkdirSync5, readFileSync as readFileSync5 } from "node:fs";
|
|
33723
33775
|
import { dirname as dirname7, join as join14 } from "node:path";
|
|
33724
33776
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join14(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
@@ -33797,7 +33849,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
33797
33849
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
33798
33850
|
}, "withSendId");
|
|
33799
33851
|
|
|
33800
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
33852
|
+
// 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/sends/recipients.js
|
|
33801
33853
|
import { existsSync, readFileSync as readFileSync6, rmSync as rmSync2 } from "node:fs";
|
|
33802
33854
|
import { join as join15 } from "node:path";
|
|
33803
33855
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join15(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -33909,7 +33961,7 @@ var RecipientList = class {
|
|
|
33909
33961
|
}
|
|
33910
33962
|
};
|
|
33911
33963
|
|
|
33912
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
33964
|
+
// 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/sends/guard.js
|
|
33913
33965
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
33914
33966
|
var countsTowardLimit = /* @__PURE__ */ __name(({ kind: kind2 = "message", action, notify }) => kind2 === "message" || kind2 === "forward" || kind2 === "edit" || kind2 === "delete" || kind2 === "pin" && notify === true || action === "create" || action === "members.add" || action === "requests.accept" || action === "join" || action === "contact-import", "countsTowardLimit");
|
|
33915
33967
|
var weightOf = /* @__PURE__ */ __name(({ kind: kind2 = "message", action, count: count3, people }) => kind2 === "delete" || kind2 === "message" && action === void 0 ? Math.max(1, count3 ?? 1) : action === "create" || action === "members.add" || action === "requests.accept" || action === "contact-import" ? Math.max(1, people ?? count3 ?? 1) : 1, "weightOf");
|
|
@@ -34097,7 +34149,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
34097
34149
|
}), "guardFor");
|
|
34098
34150
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
34099
34151
|
|
|
34100
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
34152
|
+
// 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/sends/keyed-guard.js
|
|
34101
34153
|
var keyedGuard = /* @__PURE__ */ __name((build, ask2, levelOf, extra) => {
|
|
34102
34154
|
let question;
|
|
34103
34155
|
let answered = false;
|
|
@@ -34140,7 +34192,7 @@ var keyedGuard = /* @__PURE__ */ __name((build, ask2, levelOf, extra) => {
|
|
|
34140
34192
|
};
|
|
34141
34193
|
}, "keyedGuard");
|
|
34142
34194
|
|
|
34143
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
34195
|
+
// 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/bot/api.js
|
|
34144
34196
|
var apiPathOf = /* @__PURE__ */ __name((operation) => {
|
|
34145
34197
|
const { command, group } = operation;
|
|
34146
34198
|
if (!group)
|
|
@@ -34258,7 +34310,7 @@ var generatedApiCommand = /* @__PURE__ */ __name((api) => {
|
|
|
34258
34310
|
return group;
|
|
34259
34311
|
}, "generatedApiCommand");
|
|
34260
34312
|
|
|
34261
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
34313
|
+
// 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/command-runs.js
|
|
34262
34314
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
34263
34315
|
var runSettings = /* @__PURE__ */ __name((flag, saved = {}) => {
|
|
34264
34316
|
const record2 = flag ?? saved.record ?? true;
|
|
@@ -34447,7 +34499,7 @@ var recordRuns = /* @__PURE__ */ __name((program, options) => {
|
|
|
34447
34499
|
};
|
|
34448
34500
|
}, "recordRuns");
|
|
34449
34501
|
|
|
34450
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
34502
|
+
// 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/bot/api-http.js
|
|
34451
34503
|
var LARGEST_ANSWER = 16 * 1024 * 1024;
|
|
34452
34504
|
var segment = /* @__PURE__ */ __name((name, value) => {
|
|
34453
34505
|
if (value === void 0 || value === "" || value === "." || value === "..")
|
|
@@ -34677,7 +34729,7 @@ var refusal = /* @__PURE__ */ __name((service, operation, response, writes, inne
|
|
|
34677
34729
|
});
|
|
34678
34730
|
}, "refusal");
|
|
34679
34731
|
|
|
34680
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
34732
|
+
// 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/ask.js
|
|
34681
34733
|
import { openSync as openSync2 } from "node:fs";
|
|
34682
34734
|
import { createInterface as createInterface2 } from "node:readline";
|
|
34683
34735
|
import { ReadStream } from "node:tty";
|
|
@@ -34732,7 +34784,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
34732
34784
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
34733
34785
|
}, "terminalAsker");
|
|
34734
34786
|
|
|
34735
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
34787
|
+
// 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/permission-keys.js
|
|
34736
34788
|
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
34737
34789
|
"help",
|
|
34738
34790
|
"guide",
|
|
@@ -34820,7 +34872,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
34820
34872
|
throw new CliError("validation_error", `--permission ${key} names no command${now === void 0 ? "" : `: its command moved, so use ${now}`}`, { permission: key });
|
|
34821
34873
|
}, "refuseUnknownPermissionKeys");
|
|
34822
34874
|
|
|
34823
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
34875
|
+
// 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/service-api.js
|
|
34824
34876
|
var serviceApiOperations = /* @__PURE__ */ __name((manifest) => {
|
|
34825
34877
|
const reasonOf2 = /* @__PURE__ */ __name((operation) => operation.response?.sensitive ? "it returns a credential, which is never printed" : unsendableBody(operation), "reasonOf");
|
|
34826
34878
|
return {
|
|
@@ -35157,7 +35209,7 @@ var serviceApiWriter = /* @__PURE__ */ __name((options) => {
|
|
|
35157
35209
|
};
|
|
35158
35210
|
}, "serviceApiWriter");
|
|
35159
35211
|
|
|
35160
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
35212
|
+
// 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/service-api-call.js
|
|
35161
35213
|
var hostsFetch = /* @__PURE__ */ __name((hosts, fetch2, credentialScope) => hostFetch({ hosts, ...fetch2 ? { fetch: fetch2 } : {}, ...credentialScope ? { credentialScope } : {} }), "hostsFetch");
|
|
35162
35214
|
var NO_COMMAND = new Command("source");
|
|
35163
35215
|
var sender = /* @__PURE__ */ __name((options, writes) => {
|
|
@@ -35195,7 +35247,7 @@ var serviceApiCall = /* @__PURE__ */ __name((options) => {
|
|
|
35195
35247
|
});
|
|
35196
35248
|
}, "serviceApiCall");
|
|
35197
35249
|
|
|
35198
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
35250
|
+
// 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/crm/writer.js
|
|
35199
35251
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
35200
35252
|
var CRM_WRITE_DEFAULTS = {
|
|
35201
35253
|
"deals.delete": "ask",
|
|
@@ -35203,7 +35255,7 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
35203
35255
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
35204
35256
|
};
|
|
35205
35257
|
|
|
35206
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
35258
|
+
// 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/sends/pace.js
|
|
35207
35259
|
import { readFileSync as readFileSync7, renameSync as renameSync2, writeFileSync as writeFileSync4 } from "node:fs";
|
|
35208
35260
|
import { join as join16 } from "node:path";
|
|
35209
35261
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -35298,7 +35350,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
|
|
|
35298
35350
|
await (options.sleep ?? ((ms) => new Promise((resolve7) => setTimeout(resolve7, ms))))(waitMs);
|
|
35299
35351
|
}, "waitForTurn");
|
|
35300
35352
|
|
|
35301
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
35353
|
+
// 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/crm/viewer.js
|
|
35302
35354
|
var VIEWERS = "crm:viewers";
|
|
35303
35355
|
var viewersOf = /* @__PURE__ */ __name(async (store, account) => {
|
|
35304
35356
|
try {
|
|
@@ -35341,7 +35393,7 @@ var withReadableDeal = /* @__PURE__ */ __name(async (store, viewers, row) => {
|
|
|
35341
35393
|
return seen ? row : { ...row, deal: null };
|
|
35342
35394
|
}, "withReadableDeal");
|
|
35343
35395
|
|
|
35344
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
35396
|
+
// 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/crm/sync.js
|
|
35345
35397
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
35346
35398
|
var GAPS = "crm:gaps";
|
|
35347
35399
|
var crmGapsOf = /* @__PURE__ */ __name(async (store, account) => {
|
|
@@ -35353,7 +35405,7 @@ var crmGapsOf = /* @__PURE__ */ __name(async (store, account) => {
|
|
|
35353
35405
|
}
|
|
35354
35406
|
}, "crmGapsOf");
|
|
35355
35407
|
|
|
35356
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
35408
|
+
// 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/search/question-period.js
|
|
35357
35409
|
var DAY5 = 864e5;
|
|
35358
35410
|
var SPAN = { start: 0, end: 0 };
|
|
35359
35411
|
var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
|
|
@@ -35478,7 +35530,7 @@ var questionPeriod = /* @__PURE__ */ __name((text3, now, zone) => {
|
|
|
35478
35530
|
};
|
|
35479
35531
|
}, "questionPeriod");
|
|
35480
35532
|
|
|
35481
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
35533
|
+
// 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/services/document-pictures.js
|
|
35482
35534
|
import { createHash as createHash10 } from "node:crypto";
|
|
35483
35535
|
var refOf2 = /* @__PURE__ */ __name((target2) => target2.ref ?? `document:${target2.documentId}`, "refOf");
|
|
35484
35536
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
@@ -35486,7 +35538,7 @@ var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}
|
|
|
35486
35538
|
const directory2 = imageModelsDirectory(env);
|
|
35487
35539
|
if (!isImageModelInstalled(model, directory2))
|
|
35488
35540
|
throw new CliError("not_found", `the picture model is not downloaded \u2014 ${command === void 0 ? "install it with a WireCat CLI that has `images models download` (tg, max or wa); they share the model folder" : `\`${command} images models download ${model.id}\` fetches it`}`, { reason: "model.not-downloaded", model: model.id });
|
|
35489
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
35541
|
+
const { openPictureEmbedder } = await import("./embedder-ZEKISZXI.js");
|
|
35490
35542
|
return openPictureEmbedder(model, directory2);
|
|
35491
35543
|
}, "openPictureEmbedderFor");
|
|
35492
35544
|
var savePicture = /* @__PURE__ */ __name(async (store, target2, bytes2, options = {}) => {
|
|
@@ -35507,7 +35559,7 @@ var savePicture = /* @__PURE__ */ __name(async (store, target2, bytes2, options
|
|
|
35507
35559
|
}, "savePicture");
|
|
35508
35560
|
var removePicture = /* @__PURE__ */ __name((store, target2) => store.notes.removePicture(refOf2(target2)), "removePicture");
|
|
35509
35561
|
|
|
35510
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
35562
|
+
// 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/services/document-source.js
|
|
35511
35563
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) => {
|
|
35512
35564
|
const metadata = note.frontMatter;
|
|
35513
35565
|
const account = accounts.find(({ id: id3 }) => String(id3) === note.folderId);
|
|
@@ -35529,7 +35581,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) =>
|
|
|
35529
35581
|
};
|
|
35530
35582
|
}, "documentSource");
|
|
35531
35583
|
|
|
35532
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
35584
|
+
// 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/services/enrichment-setting.js
|
|
35533
35585
|
var SECTION2 = "enrichment";
|
|
35534
35586
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
35535
35587
|
var DEFAULT_BASE_URLS = {
|
|
@@ -35604,7 +35656,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
|
|
|
35604
35656
|
return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
|
|
35605
35657
|
}, "costOf");
|
|
35606
35658
|
|
|
35607
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
35659
|
+
// 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/services/enrichment.js
|
|
35608
35660
|
var ENRICH_PER_RUN = 600;
|
|
35609
35661
|
var BATCH = 20;
|
|
35610
35662
|
var CONCURRENCY = 4;
|
|
@@ -35889,7 +35941,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
35889
35941
|
};
|
|
35890
35942
|
}, "enrichmentState");
|
|
35891
35943
|
|
|
35892
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
35944
|
+
// 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/services/notes-title-tier.js
|
|
35893
35945
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
35894
35946
|
let root;
|
|
35895
35947
|
try {
|
|
@@ -35916,7 +35968,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words4) => {
|
|
|
35916
35968
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
35917
35969
|
}, "titleTiers");
|
|
35918
35970
|
|
|
35919
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
35971
|
+
// 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/services/notes-search.js
|
|
35920
35972
|
var storeQuery = /* @__PURE__ */ __name(async (store, text3, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text3, exact), timezone), "storeQuery");
|
|
35921
35973
|
var parsedQuery = /* @__PURE__ */ __name((text3, exact) => validateFields(parseLucene(text3, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
35922
35974
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -36421,7 +36473,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text3, { accou
|
|
|
36421
36473
|
};
|
|
36422
36474
|
}, "searchNotesOf");
|
|
36423
36475
|
|
|
36424
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
36476
|
+
// 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/services/crm-meaning.js
|
|
36425
36477
|
var nearestCrmActivities = /* @__PURE__ */ __name(async (store, words4, { limit, accounts, kinds, viewers, env, command, embedders }) => {
|
|
36426
36478
|
const { model, directory: directory2, key } = localModel(await meaningModel(store, env), env, command);
|
|
36427
36479
|
if (!await store.crm.activityChunks.embedded(key, accounts))
|
|
@@ -36436,7 +36488,7 @@ var nearestCrmActivities = /* @__PURE__ */ __name(async (store, words4, { limit,
|
|
|
36436
36488
|
})).filter(({ score }) => score > floor);
|
|
36437
36489
|
}, "nearestCrmActivities");
|
|
36438
36490
|
|
|
36439
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
36491
|
+
// 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/services/events-search.js
|
|
36440
36492
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
36441
36493
|
var iso = /* @__PURE__ */ __name((at2) => at2 === null ? null : new Date(at2).toISOString(), "iso");
|
|
36442
36494
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -36470,11 +36522,11 @@ var nearestEvents = /* @__PURE__ */ __name(async (store, words4, { limit, accoun
|
|
|
36470
36522
|
return (await store.calendar.nearest(key, vector, { limit, ...accountIds ? { accountIds } : {} })).filter(({ score }) => score > floor);
|
|
36471
36523
|
}, "nearestEvents");
|
|
36472
36524
|
var keyOf6 = /* @__PURE__ */ __name(({ event: event2 }) => event2.eventSeriesId === null ? `e${event2.id}` : `s${event2.eventSeriesId}`, "keyOf");
|
|
36473
|
-
var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, offset = 0, accounts, exact, discover, newest, timezone, signal, candidates, env, command, embedders } = {}) => {
|
|
36525
|
+
var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, offset = 0, accounts, exact, discover, newest: newest2, timezone, signal, candidates, env, command, embedders } = {}) => {
|
|
36474
36526
|
if (!query.trim())
|
|
36475
36527
|
throw new CliError("validation_error", "say what to find in the events");
|
|
36476
36528
|
query = plainQuery(query);
|
|
36477
|
-
const asked = discover && !exact && !
|
|
36529
|
+
const asked = discover && !exact && !newest2 ? questionLookup(query) : void 0;
|
|
36478
36530
|
const { root, stemmer } = await storeQuery(store, asked ?? query, {
|
|
36479
36531
|
...exact ? { exact: true } : {},
|
|
36480
36532
|
...timezone === void 0 ? {} : { timezone }
|
|
@@ -36488,7 +36540,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
36488
36540
|
let meaning;
|
|
36489
36541
|
if (exact)
|
|
36490
36542
|
meaningSkipped = "--exact searches words as written";
|
|
36491
|
-
else if (
|
|
36543
|
+
else if (newest2)
|
|
36492
36544
|
meaningSkipped = "newest first orders by time";
|
|
36493
36545
|
else if (words4 === void 0)
|
|
36494
36546
|
meaningSkipped = "the query has fields or operators, which meaning cannot follow";
|
|
@@ -36511,7 +36563,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
36511
36563
|
limit: meaning === void 0 ? limit : Math.max(window2, CANDIDATES3),
|
|
36512
36564
|
offset: meaning === void 0 ? offset : 0,
|
|
36513
36565
|
...accountIds === void 0 ? {} : { accountIds },
|
|
36514
|
-
...
|
|
36566
|
+
...newest2 ? { newest: true } : {},
|
|
36515
36567
|
...stemmer ? { stemmer } : {},
|
|
36516
36568
|
...signal ? { signal } : {},
|
|
36517
36569
|
...candidates === void 0 ? {} : { candidates }
|
|
@@ -36554,7 +36606,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
36554
36606
|
};
|
|
36555
36607
|
}, "searchEvents");
|
|
36556
36608
|
|
|
36557
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
36609
|
+
// 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/services/search-all-business.js
|
|
36558
36610
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
36559
36611
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
36560
36612
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -36584,7 +36636,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words4, anyWo
|
|
|
36584
36636
|
};
|
|
36585
36637
|
}, "searchBusiness");
|
|
36586
36638
|
|
|
36587
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
36639
|
+
// 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/services/search-all-meetings.js
|
|
36588
36640
|
var MOST_HITS_PER_MEETING = 3;
|
|
36589
36641
|
var PAGE_ROWS = 200;
|
|
36590
36642
|
var MOST_PAGES2 = 25;
|
|
@@ -36812,7 +36864,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
|
|
|
36812
36864
|
foundBy: ["title"]
|
|
36813
36865
|
}), "titleItem");
|
|
36814
36866
|
|
|
36815
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
36867
|
+
// 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/services/search-all-rank.js
|
|
36816
36868
|
var titleWords2 = /* @__PURE__ */ __name((text3, refused = "deals and leads are found by the words of their title, company, contacts and activities only") => {
|
|
36817
36869
|
const { root } = parseLucene(text3, SEARCH_QUERY);
|
|
36818
36870
|
const clauses = root.kind === "boolean" ? root.clauses : [{ node: root, occur: "must" }];
|
|
@@ -36887,7 +36939,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
36887
36939
|
return ordered.map((item2, rank) => ({ item: item2, score: 1 - rank / PERIOD_DEPTH + (inside2(item2) ? PERIOD_BOOST : 0) })).sort((a, b) => b.score - a.score).map(({ item: item2 }) => item2);
|
|
36888
36940
|
}, "insidePeriodFirst");
|
|
36889
36941
|
|
|
36890
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
36942
|
+
// 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/services/tracker-meaning.js
|
|
36891
36943
|
var embedTracker = /* @__PURE__ */ __name(async (store, options = {}) => {
|
|
36892
36944
|
localModel(options.model, options.env, options.command);
|
|
36893
36945
|
const until = stopsAt(options.deadline);
|
|
@@ -36903,7 +36955,7 @@ var nearestTracker = /* @__PURE__ */ __name(async (store, words4, { limit, accou
|
|
|
36903
36955
|
return (await store.tracker.nearest(key, vector, { limit, accounts })).filter(({ score }) => score > floor);
|
|
36904
36956
|
}, "nearestTracker");
|
|
36905
36957
|
|
|
36906
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
36958
|
+
// 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/services/search-all-tracker.js
|
|
36907
36959
|
var TRACKER_HIT_KINDS = { issue: "issue", project: "project", comment: "issue_comment" };
|
|
36908
36960
|
var trackerTitle = /* @__PURE__ */ __name(({ kind: kind2, record: record2 }) => {
|
|
36909
36961
|
const title = trackerTitleOf(kind2, record2);
|
|
@@ -36997,7 +37049,7 @@ var trackerLane = /* @__PURE__ */ __name(async (store, { text: text3, accounts:
|
|
|
36997
37049
|
return { hits, records, hasMore: found.hasMore, tracker: tracker2, ...meaningReason ? { meaningReason } : {} };
|
|
36998
37050
|
}, "trackerLane");
|
|
36999
37051
|
|
|
37000
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
37052
|
+
// 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/services/search-harder.js
|
|
37001
37053
|
var SECTION3 = "search_harder";
|
|
37002
37054
|
var HARDER_MODELS = {
|
|
37003
37055
|
anthropic: "claude-haiku-5-5",
|
|
@@ -37259,7 +37311,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
|
|
|
37259
37311
|
};
|
|
37260
37312
|
}, "reorderHarder");
|
|
37261
37313
|
|
|
37262
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
37314
|
+
// 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/services/search-all.js
|
|
37263
37315
|
var RESOURCES_SEARCHED = [
|
|
37264
37316
|
"messages",
|
|
37265
37317
|
"mail",
|
|
@@ -37756,7 +37808,7 @@ var withMeetingDocuments = /* @__PURE__ */ __name(async (store, lists, read) =>
|
|
|
37756
37808
|
}));
|
|
37757
37809
|
}, "withMeetingDocuments");
|
|
37758
37810
|
|
|
37759
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
37811
|
+
// 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/services/server-search.js
|
|
37760
37812
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
37761
37813
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
37762
37814
|
var DEFAULT_BACKEND = "both";
|
|
@@ -37955,7 +38007,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
37955
38007
|
return { report, sources };
|
|
37956
38008
|
}, "searchServer");
|
|
37957
38009
|
|
|
37958
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
38010
|
+
// 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/services/messages.js
|
|
37959
38011
|
var DELETE_AT_ONCE = 10;
|
|
37960
38012
|
var atOnce = /* @__PURE__ */ __name((ids) => {
|
|
37961
38013
|
if (ids.length > DELETE_AT_ONCE)
|
|
@@ -38455,7 +38507,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
38455
38507
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
38456
38508
|
}, "checkMediaOptions");
|
|
38457
38509
|
|
|
38458
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
38510
|
+
// 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/channel-tags.js
|
|
38459
38511
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
38460
38512
|
var RULES2 = {
|
|
38461
38513
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -38470,7 +38522,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
38470
38522
|
return fields2.length ? [{ tag, score: fields2.length / 3, fields: fields2 }] : [];
|
|
38471
38523
|
}), "classifyChannel");
|
|
38472
38524
|
|
|
38473
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
38525
|
+
// 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/services/metadata.js
|
|
38474
38526
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
38475
38527
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
38476
38528
|
const store = await deps.store();
|
|
@@ -38556,7 +38608,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
38556
38608
|
};
|
|
38557
38609
|
}, "metadataService");
|
|
38558
38610
|
|
|
38559
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
38611
|
+
// 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/moderation/run.js
|
|
38560
38612
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
38561
38613
|
var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
38562
38614
|
const { chatId, title, rules, point, since, dryRun } = run2;
|
|
@@ -38593,7 +38645,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
|
38593
38645
|
return { chatId, rows, notes };
|
|
38594
38646
|
}, "moderateWith");
|
|
38595
38647
|
|
|
38596
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
38648
|
+
// 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/services/moderation.js
|
|
38597
38649
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
38598
38650
|
const file = /* @__PURE__ */ __name(() => {
|
|
38599
38651
|
const env = deps.env ?? process.env;
|
|
@@ -38678,7 +38730,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
38678
38730
|
}, "removePerson")
|
|
38679
38731
|
}), "moderatorOf");
|
|
38680
38732
|
|
|
38681
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
38733
|
+
// 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/services/person-meetings.js
|
|
38682
38734
|
var SCAN = 1e3;
|
|
38683
38735
|
var SNIPPET = 200;
|
|
38684
38736
|
var SNIPPET_ROWS = 6;
|
|
@@ -38709,9 +38761,9 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
38709
38761
|
found.set(key, held);
|
|
38710
38762
|
}
|
|
38711
38763
|
}
|
|
38712
|
-
const
|
|
38764
|
+
const newest2 = [...found.values()].sort((a, b) => b.at - a.at || b.meetingId - a.meetingId);
|
|
38713
38765
|
const items = [];
|
|
38714
|
-
for (const { accountId, meetingId, people: who } of
|
|
38766
|
+
for (const { accountId, meetingId, people: who } of newest2.slice(0, limit)) {
|
|
38715
38767
|
const meeting = await store.meetings.meetingMetadata({ accountId, meetingId }).catch(() => void 0);
|
|
38716
38768
|
if (meeting === void 0 || meeting.deletedAt !== null)
|
|
38717
38769
|
continue;
|
|
@@ -38740,10 +38792,10 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
38740
38792
|
...call2 ? { call: call2 } : {}
|
|
38741
38793
|
});
|
|
38742
38794
|
}
|
|
38743
|
-
return { items, total:
|
|
38795
|
+
return { items, total: newest2.length, hasMore: cut || newest2.length > limit };
|
|
38744
38796
|
}, "personMeetings");
|
|
38745
38797
|
|
|
38746
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
38798
|
+
// 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/services/person-context.js
|
|
38747
38799
|
var CONTEXT_MESSAGES2 = 10;
|
|
38748
38800
|
var CONTEXT_BYTES = 64 * 1024;
|
|
38749
38801
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -38890,13 +38942,13 @@ var recordContext = /* @__PURE__ */ __name(async (store, record2, reads, readabl
|
|
|
38890
38942
|
cut ||= page.hasMore;
|
|
38891
38943
|
if (page.hasMore)
|
|
38892
38944
|
for (const outgoing of [true, false]) {
|
|
38893
|
-
const [
|
|
38945
|
+
const [newest2] = (await store.messages.messages(key, dialog.id, {
|
|
38894
38946
|
limit: 1,
|
|
38895
38947
|
outgoing,
|
|
38896
38948
|
...since === void 0 ? {} : { since: new Date(since).toISOString() }
|
|
38897
38949
|
})).items;
|
|
38898
|
-
if (
|
|
38899
|
-
beyond.push(toContext(key,
|
|
38950
|
+
if (newest2)
|
|
38951
|
+
beyond.push(toContext(key, newest2, dialog.title));
|
|
38900
38952
|
}
|
|
38901
38953
|
}
|
|
38902
38954
|
if (key.provider === "email") {
|
|
@@ -39049,10 +39101,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
39049
39101
|
};
|
|
39050
39102
|
}, "personMessages");
|
|
39051
39103
|
|
|
39052
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
39104
|
+
// 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/services/meeting-evidence.js
|
|
39053
39105
|
import { createHash as createHash11 } from "node:crypto";
|
|
39054
39106
|
|
|
39055
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
39107
|
+
// 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/services/meeting-reference.js
|
|
39056
39108
|
var missing3 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
39057
39109
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
39058
39110
|
const parsed = parseMeetingReference(reference);
|
|
@@ -39100,7 +39152,7 @@ var resolveMeetingReference = /* @__PURE__ */ __name(async (store, accountId, re
|
|
|
39100
39152
|
};
|
|
39101
39153
|
}, "resolveMeetingReference");
|
|
39102
39154
|
|
|
39103
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
39155
|
+
// 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/services/meeting-evidence.js
|
|
39104
39156
|
var hash = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
39105
39157
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
39106
39158
|
if (signal?.aborted)
|
|
@@ -39299,7 +39351,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
39299
39351
|
return { ...packet, fingerprint: hash(packet) };
|
|
39300
39352
|
}, "readMeetingEvidence");
|
|
39301
39353
|
|
|
39302
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
39354
|
+
// 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/services/person-meeting-context.js
|
|
39303
39355
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
39304
39356
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
39305
39357
|
const requestedAccounts = options.accountIds;
|
|
@@ -39398,7 +39450,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
39398
39450
|
};
|
|
39399
39451
|
}, "personMeetingContext");
|
|
39400
39452
|
|
|
39401
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
39453
|
+
// 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/services/person-preparation.js
|
|
39402
39454
|
var PREPARE_BYTES = 96 * 1024;
|
|
39403
39455
|
var MEETINGS = 5;
|
|
39404
39456
|
var CUES = 3;
|
|
@@ -39430,14 +39482,14 @@ var personPreparation = /* @__PURE__ */ __name(async (store, asked, reference, o
|
|
|
39430
39482
|
const waiting = [];
|
|
39431
39483
|
for (const chat of context2.shared.filter((one2) => one2.kind === "dialog")) {
|
|
39432
39484
|
const key = { provider: chat.provider, account: chat.account };
|
|
39433
|
-
const [
|
|
39434
|
-
if (
|
|
39485
|
+
const [newest2] = (await store.messages.messages(key, chat.chatId, { limit: 1 })).items;
|
|
39486
|
+
if (newest2?.outgoing !== false)
|
|
39435
39487
|
continue;
|
|
39436
39488
|
waiting.push({
|
|
39437
39489
|
...key,
|
|
39438
39490
|
chatId: chat.chatId,
|
|
39439
39491
|
title: chat.title,
|
|
39440
|
-
message: toContext(key,
|
|
39492
|
+
message: toContext(key, newest2, chat.title),
|
|
39441
39493
|
partial: partial.has(`${chat.provider}/${chat.account}/${chat.chatId}`)
|
|
39442
39494
|
});
|
|
39443
39495
|
}
|
|
@@ -39521,7 +39573,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
39521
39573
|
}
|
|
39522
39574
|
}, "meetingsOf");
|
|
39523
39575
|
|
|
39524
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
39576
|
+
// 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/services/person-profile.js
|
|
39525
39577
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
39526
39578
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
39527
39579
|
const held = await storeIfOpen(deps);
|
|
@@ -39591,7 +39643,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id3, title,
|
|
|
39591
39643
|
complete: false
|
|
39592
39644
|
})), "quiet");
|
|
39593
39645
|
|
|
39594
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
39646
|
+
// 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/services/person-timeline.js
|
|
39595
39647
|
var TIMELINE_ITEMS = 50;
|
|
39596
39648
|
var TIMELINE_MAX = 500;
|
|
39597
39649
|
var SCOPES = ["personal", "work"];
|
|
@@ -39653,7 +39705,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
39653
39705
|
};
|
|
39654
39706
|
}, "personTimeline");
|
|
39655
39707
|
|
|
39656
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
39708
|
+
// 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/services/people.js
|
|
39657
39709
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
39658
39710
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
39659
39711
|
const held = await storeIfOpen(deps);
|
|
@@ -39918,7 +39970,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
39918
39970
|
return rest;
|
|
39919
39971
|
}, "withoutPhone");
|
|
39920
39972
|
|
|
39921
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
39973
|
+
// 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/services/private-people.js
|
|
39922
39974
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
39923
39975
|
id: note.id,
|
|
39924
39976
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -39962,7 +40014,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
39962
40014
|
};
|
|
39963
40015
|
}, "privatePeopleService");
|
|
39964
40016
|
|
|
39965
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
40017
|
+
// 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/services/rankings.js
|
|
39966
40018
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
39967
40019
|
total: 0,
|
|
39968
40020
|
population: 0,
|
|
@@ -40218,7 +40270,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
40218
40270
|
}, "evidence")
|
|
40219
40271
|
}), "rankingsService");
|
|
40220
40272
|
|
|
40221
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
40273
|
+
// 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/services/reply-stats.js
|
|
40222
40274
|
var FIELDS2 = ["date", "chat", "kind", "muted"];
|
|
40223
40275
|
var WAITING_TAIL = 100;
|
|
40224
40276
|
var plainOnly = /* @__PURE__ */ __name((text3, command) => {
|
|
@@ -40283,12 +40335,12 @@ var figuresOf = /* @__PURE__ */ __name((delays) => {
|
|
|
40283
40335
|
};
|
|
40284
40336
|
}, "figuresOf");
|
|
40285
40337
|
var MINUTE2 = 6e4;
|
|
40286
|
-
var waitsOnOwner = /* @__PURE__ */ __name((
|
|
40287
|
-
if (
|
|
40338
|
+
var waitsOnOwner = /* @__PURE__ */ __name((newest2) => {
|
|
40339
|
+
if (newest2.mine)
|
|
40288
40340
|
return false;
|
|
40289
|
-
if (
|
|
40290
|
-
return !
|
|
40291
|
-
return
|
|
40341
|
+
if (newest2.kind === "private")
|
|
40342
|
+
return !newest2.quiet && rankingQuestion(newest2.text);
|
|
40343
|
+
return newest2.addressed || newest2.ownerUsername !== null && new RegExp(`(^|[^\\w@])@${newest2.ownerUsername.replace(/[^\w]/g, "\\$&")}(?!\\w)`, "i").test(newest2.text);
|
|
40292
40344
|
}, "waitsOnOwner");
|
|
40293
40345
|
var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
40294
40346
|
const prepared = /* @__PURE__ */ __name(async (query, command) => {
|
|
@@ -40352,7 +40404,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
40352
40404
|
};
|
|
40353
40405
|
}, "replyStatsService");
|
|
40354
40406
|
|
|
40355
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
40407
|
+
// 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/services/searches.js
|
|
40356
40408
|
var savedSearchItem = /* @__PURE__ */ __name((one2) => ({
|
|
40357
40409
|
id: one2.id,
|
|
40358
40410
|
name: one2.name,
|
|
@@ -40478,7 +40530,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
40478
40530
|
};
|
|
40479
40531
|
}, "searchesService");
|
|
40480
40532
|
|
|
40481
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
40533
|
+
// 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/services/tags.js
|
|
40482
40534
|
var TAGGING_QUERY = {
|
|
40483
40535
|
entity: "tagging",
|
|
40484
40536
|
backend: "sql",
|
|
@@ -40562,7 +40614,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
40562
40614
|
};
|
|
40563
40615
|
}, "tagsService");
|
|
40564
40616
|
|
|
40565
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
40617
|
+
// 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/services/task-stats.js
|
|
40566
40618
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
40567
40619
|
var PERIOD_FIELD = "created";
|
|
40568
40620
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -40693,7 +40745,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
40693
40745
|
}));
|
|
40694
40746
|
}, "meetingNames");
|
|
40695
40747
|
|
|
40696
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
40748
|
+
// 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/services/tasks.js
|
|
40697
40749
|
var TASK_QUERY = {
|
|
40698
40750
|
entity: "task",
|
|
40699
40751
|
backend: "sql",
|
|
@@ -41193,7 +41245,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
41193
41245
|
};
|
|
41194
41246
|
}, "taskView");
|
|
41195
41247
|
|
|
41196
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
41248
|
+
// 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/services/topics.js
|
|
41197
41249
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
41198
41250
|
const set2 = [closed, pinned, hidden].filter((one2) => one2 !== void 0).length;
|
|
41199
41251
|
if (title !== void 0 || icon !== void 0 || set2 !== 1)
|
|
@@ -41392,13 +41444,13 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
41392
41444
|
};
|
|
41393
41445
|
}, "topicsService");
|
|
41394
41446
|
|
|
41395
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
41447
|
+
// 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/services/business-context.js
|
|
41396
41448
|
var SECTION_LIMIT = 20;
|
|
41397
41449
|
var STORE_PAGE = 500;
|
|
41398
|
-
var sectionOf = /* @__PURE__ */ __name((all, limit, next, { more = false, total = all.length, newest = false } = {}) => {
|
|
41450
|
+
var sectionOf = /* @__PURE__ */ __name((all, limit, next, { more = false, total = all.length, newest: newest2 = false } = {}) => {
|
|
41399
41451
|
const cut = more || total > limit || all.length > limit;
|
|
41400
41452
|
return {
|
|
41401
|
-
items:
|
|
41453
|
+
items: newest2 ? all.slice(Math.max(0, all.length - limit)) : all.slice(0, limit),
|
|
41402
41454
|
total,
|
|
41403
41455
|
hasMore: cut,
|
|
41404
41456
|
next: cut ? next : null
|
|
@@ -41523,7 +41575,7 @@ var coverageFor = /* @__PURE__ */ __name(async (store, base, scope) => {
|
|
|
41523
41575
|
}, "coverageFor");
|
|
41524
41576
|
var newestFirst2 = /* @__PURE__ */ __name((a, b) => (b.at ?? "").localeCompare(a.at ?? "") || a.ref.localeCompare(b.ref), "newestFirst");
|
|
41525
41577
|
|
|
41526
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
41578
|
+
// 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/services/call-stats.js
|
|
41527
41579
|
var callsOf = /* @__PURE__ */ __name((stored) => stored.map(callOf).filter((one2) => one2 !== null), "callsOf");
|
|
41528
41580
|
var readCallStats = /* @__PURE__ */ __name(async (store, request) => {
|
|
41529
41581
|
const { timeZone, callbackWithinMs, missedLimit, ...selection } = request;
|
|
@@ -41554,7 +41606,7 @@ var readCallStats = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
41554
41606
|
};
|
|
41555
41607
|
}, "readCallStats");
|
|
41556
41608
|
|
|
41557
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
41609
|
+
// 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/services/communications.js
|
|
41558
41610
|
var MAIL_ROWS = 500;
|
|
41559
41611
|
var EVENT_ROWS2 = 1e3;
|
|
41560
41612
|
var RECORDED_ROWS = 100;
|
|
@@ -41740,7 +41792,7 @@ var personHistory = /* @__PURE__ */ __name(async (store, reference, { accounts,
|
|
|
41740
41792
|
};
|
|
41741
41793
|
}, "personHistory");
|
|
41742
41794
|
|
|
41743
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
41795
|
+
// 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/services/money-context.js
|
|
41744
41796
|
var invoiceLine = /* @__PURE__ */ __name((invoice, linkedBy) => ({
|
|
41745
41797
|
ref: invoice.ref,
|
|
41746
41798
|
title: invoice.title,
|
|
@@ -41812,7 +41864,7 @@ var moneyOf = /* @__PURE__ */ __name((rows, limit, next, complete) => {
|
|
|
41812
41864
|
};
|
|
41813
41865
|
}, "moneyOf");
|
|
41814
41866
|
|
|
41815
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
41867
|
+
// 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/services/organization-context.js
|
|
41816
41868
|
var dealLine = /* @__PURE__ */ __name((deal) => ({
|
|
41817
41869
|
ref: deal.ref,
|
|
41818
41870
|
kind: deal.kind,
|
|
@@ -41964,7 +42016,7 @@ var organizationContext = /* @__PURE__ */ __name(async (store, reference, { acco
|
|
|
41964
42016
|
};
|
|
41965
42017
|
}, "organizationContext");
|
|
41966
42018
|
|
|
41967
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
42019
|
+
// 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/services/deal-context.js
|
|
41968
42020
|
var DAY6 = 864e5;
|
|
41969
42021
|
var dealContext = /* @__PURE__ */ __name(async (store, reference, { accounts, limit = SECTION_LIMIT, now = Date.now(), deniedKinds = [], viewing = [] } = {}) => {
|
|
41970
42022
|
const scope = scopeOf4(accounts, deniedKinds, viewing);
|
|
@@ -42093,7 +42145,7 @@ var dealBrief = /* @__PURE__ */ __name((context2) => ({
|
|
|
42093
42145
|
notRead: context2.coverage.notRead
|
|
42094
42146
|
}), "dealBrief");
|
|
42095
42147
|
|
|
42096
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
42148
|
+
// 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/services/evidence.js
|
|
42097
42149
|
import { createHash as createHash12, randomUUID as randomUUID6 } from "node:crypto";
|
|
42098
42150
|
var hash2 = /* @__PURE__ */ __name((value) => createHash12("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
42099
42151
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -42167,7 +42219,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind: kind2, source, page,
|
|
|
42167
42219
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
42168
42220
|
}, "prepareEvidencePacket");
|
|
42169
42221
|
|
|
42170
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
42222
|
+
// 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/services/evidence-read.js
|
|
42171
42223
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before }, messenger = {}) => {
|
|
42172
42224
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
42173
42225
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -42187,7 +42239,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
42187
42239
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
42188
42240
|
}, "readEvidencePacket");
|
|
42189
42241
|
|
|
42190
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
42242
|
+
// 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/services/meeting-links.js
|
|
42191
42243
|
var readMeetingLinks = /* @__PURE__ */ __name(async (store, request) => {
|
|
42192
42244
|
const { maxMessages, url, ...selecting } = request;
|
|
42193
42245
|
const { input, selection } = await resolveMeetingSelection(store, selecting);
|
|
@@ -42226,7 +42278,7 @@ var readMeetingLinks = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
42226
42278
|
};
|
|
42227
42279
|
}, "readMeetingLinks");
|
|
42228
42280
|
|
|
42229
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
42281
|
+
// 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/services/meeting-meaning.js
|
|
42230
42282
|
var bounded = /* @__PURE__ */ __name((value, maximum) => value === void 0 || Number.isSafeInteger(value) && value > 0 && value <= maximum, "bounded");
|
|
42231
42283
|
var validateMeetingModel = /* @__PURE__ */ __name((options) => {
|
|
42232
42284
|
if (typeof options.model !== "string" || !options.model.trim() || options.model.length > 1e3)
|
|
@@ -42257,9 +42309,9 @@ var validateMeetingEmbeddings = /* @__PURE__ */ __name((options) => {
|
|
|
42257
42309
|
}, "validateMeetingEmbeddings");
|
|
42258
42310
|
var loadApi = /* @__PURE__ */ __name(async () => {
|
|
42259
42311
|
const [model, combined, semantic] = await Promise.all([
|
|
42260
|
-
import("./meeting-model-
|
|
42261
|
-
import("./meeting-combined-
|
|
42262
|
-
import("./meeting-semantic-
|
|
42312
|
+
import("./meeting-model-MVUW7UPQ.js"),
|
|
42313
|
+
import("./meeting-combined-7HDPOUPB.js"),
|
|
42314
|
+
import("./meeting-semantic-IF633WGX.js")
|
|
42263
42315
|
]);
|
|
42264
42316
|
return { ...model, ...combined, ...semantic };
|
|
42265
42317
|
}, "loadApi");
|
|
@@ -42357,10 +42409,10 @@ var meetingMeaning = /* @__PURE__ */ __name((store, accountId, options = {}) =>
|
|
|
42357
42409
|
};
|
|
42358
42410
|
}, "meetingMeaning");
|
|
42359
42411
|
|
|
42360
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
42412
|
+
// 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/services/meeting-project-candidates.js
|
|
42361
42413
|
import { createHash as createHash13 } from "node:crypto";
|
|
42362
42414
|
|
|
42363
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
42415
|
+
// 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/services/meeting-project-candidate-validation.js
|
|
42364
42416
|
function invalid3(field, response = false) {
|
|
42365
42417
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid project candidate ${field}`);
|
|
42366
42418
|
}
|
|
@@ -42479,7 +42531,7 @@ var candidateCatalog = /* @__PURE__ */ __name((catalog, limits) => {
|
|
|
42479
42531
|
}
|
|
42480
42532
|
}, "candidateCatalog");
|
|
42481
42533
|
|
|
42482
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
42534
|
+
// 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/services/meeting-project-candidates.js
|
|
42483
42535
|
var createMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
42484
42536
|
const fixed = snapshotMeetingScope(scope);
|
|
42485
42537
|
if (!Number.isSafeInteger(accountId) || accountId < 1 || typeof ports?.vocabulary?.vocabulary !== "function")
|
|
@@ -42532,7 +42584,7 @@ var createMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, account
|
|
|
42532
42584
|
};
|
|
42533
42585
|
}, "createMeetingProjectCandidateReader");
|
|
42534
42586
|
|
|
42535
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
42587
|
+
// 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/services/meeting-project-discovery.js
|
|
42536
42588
|
import { createHash as createHash14 } from "node:crypto";
|
|
42537
42589
|
var scopeKeys = [
|
|
42538
42590
|
"accountId",
|
|
@@ -42667,7 +42719,7 @@ var readMeetingProjectDiscovery = /* @__PURE__ */ __name(async (ports, projectNa
|
|
|
42667
42719
|
};
|
|
42668
42720
|
}, "readMeetingProjectDiscovery");
|
|
42669
42721
|
|
|
42670
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
42722
|
+
// 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/services/meeting-review.js
|
|
42671
42723
|
var readMeetingReview = /* @__PURE__ */ __name(async (store, request) => {
|
|
42672
42724
|
const { limit, ...selecting } = request;
|
|
42673
42725
|
const { input, selection } = await resolveMeetingSelection(store, selecting);
|
|
@@ -42675,7 +42727,7 @@ var readMeetingReview = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
42675
42727
|
return { ...review, selection };
|
|
42676
42728
|
}, "readMeetingReview");
|
|
42677
42729
|
|
|
42678
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
42730
|
+
// 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/services/meeting-searches.js
|
|
42679
42731
|
var KIND = ["meetings-search"];
|
|
42680
42732
|
var meetingSearchesService = /* @__PURE__ */ __name((searches) => {
|
|
42681
42733
|
const found = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -42705,7 +42757,7 @@ var meetingSearchesService = /* @__PURE__ */ __name((searches) => {
|
|
|
42705
42757
|
};
|
|
42706
42758
|
}, "meetingSearchesService");
|
|
42707
42759
|
|
|
42708
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
42760
|
+
// 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/services/meeting-stats.js
|
|
42709
42761
|
var readMeetingStats = /* @__PURE__ */ __name(async (store, request) => {
|
|
42710
42762
|
const { timeZone, maxRows, ...selecting } = request;
|
|
42711
42763
|
const { input, selection } = await resolveMeetingSelection(store, selecting);
|
|
@@ -42728,7 +42780,7 @@ var readMeetingCounts = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
42728
42780
|
return { ...counts, selection };
|
|
42729
42781
|
}, "readMeetingCounts");
|
|
42730
42782
|
|
|
42731
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
42783
|
+
// 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/services/meeting-tags.js
|
|
42732
42784
|
var keyOf8 = /* @__PURE__ */ __name(async (store, accountId) => {
|
|
42733
42785
|
const owner = await store.meetings.account(accountId);
|
|
42734
42786
|
if (!owner)
|
|
@@ -42802,7 +42854,7 @@ var meetingTags = /* @__PURE__ */ __name((store, accountId) => {
|
|
|
42802
42854
|
};
|
|
42803
42855
|
}, "meetingTags");
|
|
42804
42856
|
|
|
42805
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
42857
|
+
// 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/services/person-business.js
|
|
42806
42858
|
var personBusiness = /* @__PURE__ */ __name(async (store, uid, { limit = SECTION_LIMIT, scope = scopeOf4(void 0) } = {}) => {
|
|
42807
42859
|
const ref2 = `person:${uid}`;
|
|
42808
42860
|
const { edges, full } = await edgesOf(store, ref2, scope);
|
|
@@ -42860,7 +42912,7 @@ var canonicalPersonContext = /* @__PURE__ */ __name(async (store, reference, { a
|
|
|
42860
42912
|
};
|
|
42861
42913
|
}, "canonicalPersonContext");
|
|
42862
42914
|
|
|
42863
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
42915
|
+
// 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/services/text-model-choice.js
|
|
42864
42916
|
import { createHash as createHash15 } from "node:crypto";
|
|
42865
42917
|
import { existsSync as existsSync2 } from "node:fs";
|
|
42866
42918
|
var useTextModel = /* @__PURE__ */ __name(async (id3, { env, command }) => {
|
|
@@ -42991,7 +43043,7 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id3, payload, { env, fetc
|
|
|
42991
43043
|
return { ...checked2.output, custom: true };
|
|
42992
43044
|
}, "addCustomTextModel");
|
|
42993
43045
|
|
|
42994
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
43046
|
+
// 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/services/account-groups.js
|
|
42995
43047
|
var SCOPES2 = ["personal", "work"];
|
|
42996
43048
|
var scopeOf5 = /* @__PURE__ */ __name((scope) => {
|
|
42997
43049
|
if (!SCOPES2.includes(scope))
|
|
@@ -43113,7 +43165,7 @@ var setChatScope = /* @__PURE__ */ __name(async (at2, change) => {
|
|
|
43113
43165
|
return { ...key, chat: change.chat, own: scope, scope: effective };
|
|
43114
43166
|
}, "setChatScope");
|
|
43115
43167
|
|
|
43116
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
43168
|
+
// 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/services/group-guard.js
|
|
43117
43169
|
var refOf3 = /* @__PURE__ */ __name((item2) => typeof item2 === "string" ? item2 : typeof item2 === "object" && item2 !== null && "ref" in item2 ? item2.ref : void 0, "refOf");
|
|
43118
43170
|
var groupGuardOf = /* @__PURE__ */ __name(async (store, app, env) => {
|
|
43119
43171
|
const group = groupLockOf(app, env);
|
|
@@ -43224,14 +43276,14 @@ var lockedRegistry = /* @__PURE__ */ __name((registry, guard) => {
|
|
|
43224
43276
|
};
|
|
43225
43277
|
}, "lockedRegistry");
|
|
43226
43278
|
|
|
43227
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
43279
|
+
// 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/calendar/sync.js
|
|
43228
43280
|
var DAY7 = 864e5;
|
|
43229
43281
|
var SLOTS_EVERY = 7 * DAY7;
|
|
43230
43282
|
|
|
43231
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
43283
|
+
// 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/calendar/feeds.js
|
|
43232
43284
|
var FEED_LIMITS = { maxBytes: 10 * 1024 * 1024, timeoutMs: 3e4, redirects: 5 };
|
|
43233
43285
|
|
|
43234
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
43286
|
+
// 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/calendar/reads.js
|
|
43235
43287
|
var eventIdOf = /* @__PURE__ */ __name((reference) => {
|
|
43236
43288
|
const text3 = String(reference).replace(/^event:/u, "");
|
|
43237
43289
|
if (!/^[1-9]\d*$/u.test(text3) || !Number.isSafeInteger(Number(text3)))
|
|
@@ -43301,11 +43353,11 @@ var EVENTS_QUERY = {
|
|
|
43301
43353
|
} : field)
|
|
43302
43354
|
};
|
|
43303
43355
|
|
|
43304
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
43356
|
+
// 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/calendar/recurrence.js
|
|
43305
43357
|
var RULE_LINE = /^RRULE:/iu;
|
|
43306
43358
|
var ruleLine = /* @__PURE__ */ __name((lines) => lines.find((line3) => RULE_LINE.test(line3)), "ruleLine");
|
|
43307
43359
|
|
|
43308
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
43360
|
+
// 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/calendar/writer.js
|
|
43309
43361
|
var EVENTS_NOTIFY_KEY = "events.notify";
|
|
43310
43362
|
var EVENTS_DELETE_SERIES_KEY = "events.delete.series";
|
|
43311
43363
|
var EVENTS_REMIND_HOOK_KEY = "events.remind.hook";
|
|
@@ -43323,7 +43375,7 @@ var CALENDAR_WRITE_DEFAULTS = {
|
|
|
43323
43375
|
[EVENTS_REMIND_HOOK_KEY]: "deny"
|
|
43324
43376
|
};
|
|
43325
43377
|
|
|
43326
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
43378
|
+
// 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/services/listings.js
|
|
43327
43379
|
var DOCUMENT_TEXT_CANDIDATES = 2e3;
|
|
43328
43380
|
var webUrl = /* @__PURE__ */ __name((url) => url !== null && /^https:\/\//iu.test(url) ? url : null, "webUrl");
|
|
43329
43381
|
var iso4 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
@@ -43596,7 +43648,7 @@ var showMeetingEntry = /* @__PURE__ */ __name(async (store, reference, lines) =>
|
|
|
43596
43648
|
};
|
|
43597
43649
|
}, "showMeetingEntry");
|
|
43598
43650
|
|
|
43599
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
43651
|
+
// 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/services/meeting-hit-context.js
|
|
43600
43652
|
import { createHash as createHash16 } from "node:crypto";
|
|
43601
43653
|
var contextCue = /* @__PURE__ */ __name((cue) => ({
|
|
43602
43654
|
ref: cue.reference,
|
|
@@ -43714,7 +43766,7 @@ var readMeetingHitContext = /* @__PURE__ */ __name(async (store, accountId, refe
|
|
|
43714
43766
|
return { ...packet, fingerprint: createHash16("sha256").update(JSON.stringify(packet)).digest("hex") };
|
|
43715
43767
|
}, "readMeetingHitContext");
|
|
43716
43768
|
|
|
43717
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
43769
|
+
// 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/services/meeting-passage-format.js
|
|
43718
43770
|
var visible = /* @__PURE__ */ __name((text3) => text3.replace(/[\p{Cc}\p{Cf}]/gu, (value) => value === "\n" || value === " " ? value : `\\u{${value.codePointAt(0)?.toString(16)}}`), "visible");
|
|
43719
43771
|
var markdown = /* @__PURE__ */ __name((text3) => visible(text3).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replace(/[\\`*_[\]#|~]/g, "\\$&"), "markdown");
|
|
43720
43772
|
var timestamp = /* @__PURE__ */ __name((ms) => {
|
|
@@ -43791,7 +43843,7 @@ var readMeetingPassage = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
43791
43843
|
return { packet, content };
|
|
43792
43844
|
}, "readMeetingPassage");
|
|
43793
43845
|
|
|
43794
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
43846
|
+
// 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/services/meeting-batch.js
|
|
43795
43847
|
var createMeetingBatchReader = /* @__PURE__ */ __name((store, accountId) => {
|
|
43796
43848
|
if (!Number.isSafeInteger(accountId) || accountId < 1)
|
|
43797
43849
|
throw new CliError("validation_error", "choose a positive meeting account");
|
|
@@ -43805,7 +43857,7 @@ var createMeetingBatchReader = /* @__PURE__ */ __name((store, accountId) => {
|
|
|
43805
43857
|
};
|
|
43806
43858
|
}, "createMeetingBatchReader");
|
|
43807
43859
|
|
|
43808
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
43860
|
+
// 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/services/meeting-context.js
|
|
43809
43861
|
var meetingReferences = /* @__PURE__ */ __name((values) => values.map((value) => formatMeetingReference(parseMeetingReference(value))), "meetingReferences");
|
|
43810
43862
|
var checkCancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
43811
43863
|
if (!signal?.aborted)
|
|
@@ -43912,7 +43964,7 @@ var createMeetingContextService = /* @__PURE__ */ __name(async (store, input, op
|
|
|
43912
43964
|
};
|
|
43913
43965
|
}, "createMeetingContextService");
|
|
43914
43966
|
|
|
43915
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
43967
|
+
// 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/context/communication-selection.js
|
|
43916
43968
|
var communicationFields = {
|
|
43917
43969
|
sources: pipe(array(strictObject({
|
|
43918
43970
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -43944,7 +43996,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
43944
43996
|
return { ...input, after, before };
|
|
43945
43997
|
}, "communicationRequest");
|
|
43946
43998
|
|
|
43947
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
43999
|
+
// 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/services/meeting-preparation-validation.js
|
|
43948
44000
|
var MEETING_PREPARATION_LIMITS = {
|
|
43949
44001
|
meetings: { min: 1, max: 20, default: 5 },
|
|
43950
44002
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -44030,7 +44082,7 @@ var preparationRequest = /* @__PURE__ */ __name((accountId, externalId, original
|
|
|
44030
44082
|
return { ...input, history };
|
|
44031
44083
|
}, "preparationRequest");
|
|
44032
44084
|
|
|
44033
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
44085
|
+
// 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/services/meeting-communications-preparation.js
|
|
44034
44086
|
var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal) => {
|
|
44035
44087
|
const section = {
|
|
44036
44088
|
readUsage: plan.reader.usage(),
|
|
@@ -44135,7 +44187,7 @@ var appendPreparationCommunications = /* @__PURE__ */ __name((result, read) => {
|
|
|
44135
44187
|
result.knowledge.coverage.otherSources = "see-communications";
|
|
44136
44188
|
}, "appendPreparationCommunications");
|
|
44137
44189
|
|
|
44138
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
44190
|
+
// 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/services/meeting-communications-selection.js
|
|
44139
44191
|
var captureCommunicationSelections = /* @__PURE__ */ __name((port) => {
|
|
44140
44192
|
if (port === void 0)
|
|
44141
44193
|
return void 0;
|
|
@@ -44240,7 +44292,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
44240
44292
|
}
|
|
44241
44293
|
}, "validatePreparationCommunications");
|
|
44242
44294
|
|
|
44243
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
44295
|
+
// 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/services/meeting-knowledge-preparation.js
|
|
44244
44296
|
var invalid5 = /* @__PURE__ */ __name(() => {
|
|
44245
44297
|
throw new CliError("invalid_response", "Preparation knowledge returned an invalid selection");
|
|
44246
44298
|
}, "invalid");
|
|
@@ -44309,7 +44361,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
44309
44361
|
}
|
|
44310
44362
|
}, "appendKnowledgePreparation");
|
|
44311
44363
|
|
|
44312
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
44364
|
+
// 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/services/meeting-notes-preparation.js
|
|
44313
44365
|
var invalid6 = /* @__PURE__ */ __name(() => {
|
|
44314
44366
|
throw new CliError("invalid_response", "Preparation notes returned an invalid selection");
|
|
44315
44367
|
}, "invalid");
|
|
@@ -44383,7 +44435,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
44383
44435
|
}
|
|
44384
44436
|
}, "appendNotesPreparation");
|
|
44385
44437
|
|
|
44386
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
44438
|
+
// 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/services/meeting-project-preparation.js
|
|
44387
44439
|
var PAGE_LIMIT = 4;
|
|
44388
44440
|
var size2 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
44389
44441
|
var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, input) => {
|
|
@@ -44433,7 +44485,7 @@ var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, inpu
|
|
|
44433
44485
|
}
|
|
44434
44486
|
}, "appendProjectPreparation");
|
|
44435
44487
|
|
|
44436
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
44488
|
+
// 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/services/meeting-related-preparation.js
|
|
44437
44489
|
var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, input) => {
|
|
44438
44490
|
if (!result.series || !result.items.length || result.coverage.outputLimited)
|
|
44439
44491
|
return;
|
|
@@ -44505,7 +44557,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
44505
44557
|
}
|
|
44506
44558
|
}, "appendRelatedPreparation");
|
|
44507
44559
|
|
|
44508
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
44560
|
+
// 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/services/meeting-preparation.js
|
|
44509
44561
|
var size3 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
44510
44562
|
var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
44511
44563
|
const fixed = snapshotMeetingScope(scope);
|
|
@@ -44643,7 +44695,7 @@ var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId,
|
|
|
44643
44695
|
};
|
|
44644
44696
|
}, "createMeetingPreparationService");
|
|
44645
44697
|
|
|
44646
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
44698
|
+
// 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/services/meeting-task-proposal.js
|
|
44647
44699
|
import { createHash as createHash17 } from "node:crypto";
|
|
44648
44700
|
var proposeMeetingTask = /* @__PURE__ */ __name(async (store, accountId, reference, kind2) => {
|
|
44649
44701
|
if (!TASK_KINDS.includes(kind2))
|
|
@@ -44663,7 +44715,7 @@ var proposeMeetingTask = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
44663
44715
|
};
|
|
44664
44716
|
}, "proposeMeetingTask");
|
|
44665
44717
|
|
|
44666
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
44718
|
+
// 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/services/meeting-tasks.js
|
|
44667
44719
|
var accountSnapshot = /* @__PURE__ */ __name((key) => {
|
|
44668
44720
|
const { provider, account, scope } = key;
|
|
44669
44721
|
if (!provider.trim() || provider.includes(":") || !account.trim())
|
|
@@ -44726,7 +44778,7 @@ var readMeetingTask = /* @__PURE__ */ __name(async (store, account, id3) => {
|
|
|
44726
44778
|
}
|
|
44727
44779
|
}, "readMeetingTask");
|
|
44728
44780
|
|
|
44729
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
44781
|
+
// 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/services/package-upgrade.js
|
|
44730
44782
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
44731
44783
|
const installer = ports.installer();
|
|
44732
44784
|
const argv = updateCommand(installer, packageName);
|
|
@@ -44791,7 +44843,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
44791
44843
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
44792
44844
|
}, "dayAfter");
|
|
44793
44845
|
|
|
44794
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
44846
|
+
// 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/services/proposal-tasks.js
|
|
44795
44847
|
var proposalSource = /* @__PURE__ */ __name((id3) => `proposed-action:${id3}`, "proposalSource");
|
|
44796
44848
|
var approveAsTask = /* @__PURE__ */ __name(async (store, id3, by) => {
|
|
44797
44849
|
const proposal = await store.proposedActions.get(id3);
|
|
@@ -44814,7 +44866,7 @@ var approveAsTask = /* @__PURE__ */ __name(async (store, id3, by) => {
|
|
|
44814
44866
|
return { proposal: await store.proposedActions.approve(proposal.id, by, { task: task2.id }), task: task2 };
|
|
44815
44867
|
}, "approveAsTask");
|
|
44816
44868
|
|
|
44817
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
44869
|
+
// 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/services/proposals/ids.js
|
|
44818
44870
|
var MAX_IDS = 500;
|
|
44819
44871
|
var refuse = /* @__PURE__ */ __name((message) => {
|
|
44820
44872
|
throw new CliError("validation_error", message, { reason: "proposal.ids" });
|
|
@@ -44856,19 +44908,19 @@ var parseProposalIds = /* @__PURE__ */ __name((text3) => {
|
|
|
44856
44908
|
return ids;
|
|
44857
44909
|
}, "parseProposalIds");
|
|
44858
44910
|
|
|
44859
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
44911
|
+
// 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/services/proposals/kinds/shared.js
|
|
44860
44912
|
var proposerOfAuthor = /* @__PURE__ */ __name((author) => {
|
|
44861
44913
|
if (author.type === "person")
|
|
44862
44914
|
return { type: "person", id: author.id };
|
|
44863
44915
|
if (author.name === null)
|
|
44864
44916
|
return { type: "unknown" };
|
|
44865
|
-
return { type: "
|
|
44917
|
+
return { type: "agent", id: author.id, name: author.name, kind: author.kind ?? "agent" };
|
|
44866
44918
|
}, "proposerOfAuthor");
|
|
44867
44919
|
var byMatches = /* @__PURE__ */ __name((row, by) => {
|
|
44868
44920
|
if (by === void 0)
|
|
44869
44921
|
return true;
|
|
44870
44922
|
const proposer = row.proposedBy;
|
|
44871
|
-
if (proposer.type !== "
|
|
44923
|
+
if (proposer.type !== "agent")
|
|
44872
44924
|
return false;
|
|
44873
44925
|
if (by === "agent" || by === "rule")
|
|
44874
44926
|
return proposer.kind === by;
|
|
@@ -44929,7 +44981,7 @@ var reviewedKind = /* @__PURE__ */ __name((spec) => ({
|
|
|
44929
44981
|
}, "decide")
|
|
44930
44982
|
}), "reviewedKind");
|
|
44931
44983
|
|
|
44932
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
44984
|
+
// 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/services/proposals/kinds/findings.js
|
|
44933
44985
|
var FACT_SUMMARIES = {
|
|
44934
44986
|
fact: /* @__PURE__ */ __name((finding) => finding.statement, "fact"),
|
|
44935
44987
|
task: /* @__PURE__ */ __name((finding) => finding.title, "task"),
|
|
@@ -45004,7 +45056,7 @@ var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
45004
45056
|
};
|
|
45005
45057
|
}, "findingsKind");
|
|
45006
45058
|
|
|
45007
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
45059
|
+
// 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/services/proposals/kinds/organization.js
|
|
45008
45060
|
var ORGANIZATION_ADD_KIND = "organization_add";
|
|
45009
45061
|
var ORGANIZATION_RENAME_KIND = "organization_rename";
|
|
45010
45062
|
var rowOf3 = /* @__PURE__ */ __name((action) => {
|
|
@@ -45060,7 +45112,7 @@ var organizationKind = /* @__PURE__ */ __name((store) => ({
|
|
|
45060
45112
|
}, "decide")
|
|
45061
45113
|
}), "organizationKind");
|
|
45062
45114
|
|
|
45063
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
45115
|
+
// 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/services/proposals/kinds/action.js
|
|
45064
45116
|
var rowOf4 = /* @__PURE__ */ __name((action) => ({
|
|
45065
45117
|
id: action.id,
|
|
45066
45118
|
kind: "action",
|
|
@@ -45100,7 +45152,7 @@ var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
|
45100
45152
|
}, "decide")
|
|
45101
45153
|
}), "actionKind");
|
|
45102
45154
|
|
|
45103
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
45155
|
+
// 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/services/proposals/kinds/contracts.js
|
|
45104
45156
|
var contractKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
45105
45157
|
type: "contract",
|
|
45106
45158
|
list: /* @__PURE__ */ __name((options) => store.contracts.list(options), "list"),
|
|
@@ -45109,7 +45161,7 @@ var contractKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
45109
45161
|
decide: /* @__PURE__ */ __name(async (id3, confirm, { by, reason }) => (confirm ? await store.contracts.confirm(id3, by, reason) : await store.contracts.reject(id3, by, reason)).ref, "decide")
|
|
45110
45162
|
}), "contractKind");
|
|
45111
45163
|
|
|
45112
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
45164
|
+
// 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/services/proposals/kinds/fact.js
|
|
45113
45165
|
var STATUS = {
|
|
45114
45166
|
proposed: "proposed",
|
|
45115
45167
|
accepted: "confirmed",
|
|
@@ -45152,7 +45204,7 @@ var factKind = /* @__PURE__ */ __name((store) => ({
|
|
|
45152
45204
|
}, "decide")
|
|
45153
45205
|
}), "factKind");
|
|
45154
45206
|
|
|
45155
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
45207
|
+
// 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/services/proposals/kinds/finance.js
|
|
45156
45208
|
var invoiceKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
45157
45209
|
type: "invoice",
|
|
45158
45210
|
list: /* @__PURE__ */ __name((options) => store.finance.invoices(options), "list"),
|
|
@@ -45168,7 +45220,7 @@ var paymentKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
45168
45220
|
decide: /* @__PURE__ */ __name(async (id3, confirm, { by, reason }) => (confirm ? await store.finance.confirm(id3, by, reason) : await store.finance.reject(id3, by, reason)).ref, "decide")
|
|
45169
45221
|
}), "paymentKind");
|
|
45170
45222
|
|
|
45171
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
45223
|
+
// 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/services/proposals/kinds/identity-link.js
|
|
45172
45224
|
var rowOf6 = /* @__PURE__ */ __name((action) => {
|
|
45173
45225
|
const payload = action.payload;
|
|
45174
45226
|
const [from, to] = payload.persons;
|
|
@@ -45215,7 +45267,7 @@ var identityLinkKind = /* @__PURE__ */ __name((store) => ({
|
|
|
45215
45267
|
}, "decide")
|
|
45216
45268
|
}), "identityLinkKind");
|
|
45217
45269
|
|
|
45218
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
45270
|
+
// 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/services/proposals/kinds/identity-split.js
|
|
45219
45271
|
var summaryOf = /* @__PURE__ */ __name((payload, person) => payload.split === "unmerge" ? `undo ${payload.merge}: ${payload.identities.join(", ")} go back to their own person` : `${payload.identities.join(", ")} may not be ${person}: they would move to a person of their own`, "summaryOf");
|
|
45220
45272
|
var dropped = /* @__PURE__ */ __name((action) => action.status !== "proposed" && action.status !== "rejected" && typeof action.result?.person !== "string", "dropped");
|
|
45221
45273
|
var rowOf7 = /* @__PURE__ */ __name((store) => async (action) => {
|
|
@@ -45270,7 +45322,7 @@ var identitySplitKind = /* @__PURE__ */ __name((store) => ({
|
|
|
45270
45322
|
}, "decide")
|
|
45271
45323
|
}), "identitySplitKind");
|
|
45272
45324
|
|
|
45273
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
45325
|
+
// 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/services/proposals/kinds/key-document.js
|
|
45274
45326
|
var linkRow = /* @__PURE__ */ __name((link4) => ({
|
|
45275
45327
|
id: `key:${link4.id}`,
|
|
45276
45328
|
kind: "key_document",
|
|
@@ -45338,7 +45390,7 @@ var keyDocumentKind = /* @__PURE__ */ __name((store) => {
|
|
|
45338
45390
|
};
|
|
45339
45391
|
}, "keyDocumentKind");
|
|
45340
45392
|
|
|
45341
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
45393
|
+
// 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/services/proposals/kinds/mail-findings.js
|
|
45342
45394
|
var words3 = /* @__PURE__ */ __name((...parts) => parts.filter(Boolean).join(" "), "words");
|
|
45343
45395
|
var summaryOf2 = /* @__PURE__ */ __name((finding) => {
|
|
45344
45396
|
switch (finding.kind) {
|
|
@@ -45429,7 +45481,7 @@ var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
45429
45481
|
};
|
|
45430
45482
|
}, "mailFindingsKind");
|
|
45431
45483
|
|
|
45432
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
45484
|
+
// 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/services/proposals/kinds/meeting-findings.js
|
|
45433
45485
|
var rowOf9 = /* @__PURE__ */ __name((action, batch) => {
|
|
45434
45486
|
const findings = batch.input.findings;
|
|
45435
45487
|
const projects = [...new Set(findings.map((one2) => "project" in one2 ? one2.project : void 0))];
|
|
@@ -45496,7 +45548,7 @@ var meetingFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
45496
45548
|
};
|
|
45497
45549
|
}, "meetingFindingsKind");
|
|
45498
45550
|
|
|
45499
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
45551
|
+
// 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/services/proposals/kinds/memory.js
|
|
45500
45552
|
var STATUS2 = {
|
|
45501
45553
|
proposed: "proposed",
|
|
45502
45554
|
confirmed: "confirmed",
|
|
@@ -45537,7 +45589,7 @@ var memoryKind = /* @__PURE__ */ __name((store) => ({
|
|
|
45537
45589
|
}, "decide")
|
|
45538
45590
|
}), "memoryKind");
|
|
45539
45591
|
|
|
45540
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
45592
|
+
// 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/services/proposals/kinds/orders.js
|
|
45541
45593
|
var orderKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
45542
45594
|
type: "order",
|
|
45543
45595
|
list: /* @__PURE__ */ __name((options) => store.orders.list(options), "list"),
|
|
@@ -45546,7 +45598,7 @@ var orderKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
45546
45598
|
decide: /* @__PURE__ */ __name(async (id3, confirm, { by, reason }) => (confirm ? await store.orders.confirm(id3, by, reason) : await store.orders.reject(id3, by, reason)).ref, "decide")
|
|
45547
45599
|
}), "orderKind");
|
|
45548
45600
|
|
|
45549
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
45601
|
+
// 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/services/proposals/kinds/relationship.js
|
|
45550
45602
|
var linkRow2 = /* @__PURE__ */ __name((link4) => ({
|
|
45551
45603
|
id: `link:${link4.id}`,
|
|
45552
45604
|
kind: "relationship",
|
|
@@ -45621,7 +45673,7 @@ var relationshipKind = /* @__PURE__ */ __name((store) => {
|
|
|
45621
45673
|
};
|
|
45622
45674
|
}, "relationshipKind");
|
|
45623
45675
|
|
|
45624
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
45676
|
+
// 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/services/proposals/kinds/relationship-update.js
|
|
45625
45677
|
var KIND2 = "relationship_update";
|
|
45626
45678
|
var summaryOf3 = /* @__PURE__ */ __name(({ changes }) => Object.entries(changes).map(([field, value]) => `${field} ${value ?? "cleared"}`).join(", "), "summaryOf");
|
|
45627
45679
|
var rowOf11 = /* @__PURE__ */ __name((action) => {
|
|
@@ -45671,7 +45723,7 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
45671
45723
|
}, "decide")
|
|
45672
45724
|
}), "relationshipUpdateKind");
|
|
45673
45725
|
|
|
45674
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
45726
|
+
// 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/services/proposals/kinds/source-review.js
|
|
45675
45727
|
var rowOf12 = /* @__PURE__ */ __name((action) => {
|
|
45676
45728
|
const payload = action.payload;
|
|
45677
45729
|
const sources = payload.sources.flatMap((source) => source.ref ?? []);
|
|
@@ -45714,7 +45766,7 @@ var sourceReviewKind = /* @__PURE__ */ __name((store) => ({
|
|
|
45714
45766
|
}, "decide")
|
|
45715
45767
|
}), "sourceReviewKind");
|
|
45716
45768
|
|
|
45717
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
45769
|
+
// 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/services/proposals/kinds/subscriptions.js
|
|
45718
45770
|
var subscriptionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
45719
45771
|
type: "subscription",
|
|
45720
45772
|
list: /* @__PURE__ */ __name((options) => store.subscriptions.list(options), "list"),
|
|
@@ -45733,7 +45785,7 @@ var subscriptionPriceKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
45733
45785
|
}, "decide")
|
|
45734
45786
|
}), "subscriptionPriceKind");
|
|
45735
45787
|
|
|
45736
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
45788
|
+
// 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/services/proposals/kinds/task-close.js
|
|
45737
45789
|
var rowOf13 = /* @__PURE__ */ __name((task2) => {
|
|
45738
45790
|
const suggestion = task2.closeSuggestion;
|
|
45739
45791
|
if (suggestion === null)
|
|
@@ -45746,7 +45798,7 @@ var rowOf13 = /* @__PURE__ */ __name((task2) => {
|
|
|
45746
45798
|
subject: task2.ref,
|
|
45747
45799
|
object: null,
|
|
45748
45800
|
summary: `close as ${suggestion.as}: ${task2.title}`,
|
|
45749
|
-
proposedBy: { type: "
|
|
45801
|
+
proposedBy: { type: "agent", id: suggestion.by, name: suggestion.by, kind: "agent" },
|
|
45750
45802
|
reason: suggestion.reason,
|
|
45751
45803
|
evidence: task2.source === null ? [] : [task2.source],
|
|
45752
45804
|
score: suggestion.certainty,
|
|
@@ -45801,7 +45853,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
45801
45853
|
};
|
|
45802
45854
|
}, "taskCloseKind");
|
|
45803
45855
|
|
|
45804
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
45856
|
+
// 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/services/proposals/kinds/transactions.js
|
|
45805
45857
|
var transactionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
45806
45858
|
type: "transaction",
|
|
45807
45859
|
list: /* @__PURE__ */ __name((options) => store.transactions.list(options), "list"),
|
|
@@ -45810,7 +45862,7 @@ var transactionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
45810
45862
|
decide: /* @__PURE__ */ __name(async (id3, confirm, { by, reason }) => (confirm ? await store.transactions.confirm(id3, by, reason) : await store.transactions.reject(id3, by, reason)).ref, "decide")
|
|
45811
45863
|
}), "transactionKind");
|
|
45812
45864
|
|
|
45813
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
45865
|
+
// 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/services/proposals/registry.js
|
|
45814
45866
|
var PREFIX = /^([a-z][a-z_]*):/;
|
|
45815
45867
|
var marked = /* @__PURE__ */ __name((kind2, row) => kind2.ownerOnly ? { ...row, ownerOnly: true } : row, "marked");
|
|
45816
45868
|
var refusalOf = /* @__PURE__ */ __name((id3, error) => {
|
|
@@ -45945,7 +45997,7 @@ var proposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
45945
45997
|
return registry;
|
|
45946
45998
|
}, "proposalRegistry");
|
|
45947
45999
|
|
|
45948
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
46000
|
+
// 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/services/stored-meeting-project-candidate-validation.js
|
|
45949
46001
|
var storedCandidateRequest = /* @__PURE__ */ __name((reference, accountId, options) => {
|
|
45950
46002
|
const invalid7 = /* @__PURE__ */ __name((field) => {
|
|
45951
46003
|
throw new CliError("validation_error", `invalid stored project candidate ${field}`);
|
|
@@ -45987,7 +46039,7 @@ var storedCandidateRequest = /* @__PURE__ */ __name((reference, accountId, optio
|
|
|
45987
46039
|
return { reference, limits, after, afterTranscriptId, signal };
|
|
45988
46040
|
}, "storedCandidateRequest");
|
|
45989
46041
|
|
|
45990
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
46042
|
+
// 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/services/stored-meeting-project-candidates.js
|
|
45991
46043
|
var createStoredMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
45992
46044
|
const fixed = snapshotMeetingScope(scope);
|
|
45993
46045
|
const store = ports?.meetings;
|
|
@@ -46079,7 +46131,7 @@ var createStoredMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, a
|
|
|
46079
46131
|
};
|
|
46080
46132
|
}, "createStoredMeetingProjectCandidateReader");
|
|
46081
46133
|
|
|
46082
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
46134
|
+
// 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/services/index.js
|
|
46083
46135
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
46084
46136
|
const pictures = picturesService(deps);
|
|
46085
46137
|
const base = {
|