@wirecat/drive-cli 0.72.1 → 0.73.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/contracts/wirecat.json +82 -18
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/agent-ZOHMLVWI.js +46 -0
- package/dist/bundle/{all-profiles-PZVP3G73.js → all-profiles-HGQGKCKQ.js} +14 -14
- package/dist/bundle/{anthropic-PUOTKSYV.js → anthropic-2L5DN3HF.js} +8 -8
- package/dist/bundle/{app-server-MKDCXRZM.js → app-server-TRSOKYYF.js} +79 -79
- package/dist/bundle/{bun-NS5YLOQT.js → bun-AFA5HULK.js} +2 -2
- package/dist/bundle/{bun-sqlite-KSKWRLLO.js → bun-sqlite-5MW2BWV4.js} +9 -9
- package/dist/bundle/{chunk-JHAACT4I.js → chunk-2G24DYSZ.js} +2 -2
- package/dist/bundle/{chunk-MDJUYCHT.js → chunk-2MCMUZCE.js} +1 -1
- package/dist/bundle/{chunk-FKP4T7A4.js → chunk-2NAMKBBV.js} +31 -23
- package/dist/bundle/{chunk-3YCUYFTD.js → chunk-2WAGRBQT.js} +50 -47
- package/dist/bundle/{chunk-S3SLDYTU.js → chunk-33RQ3YVC.js} +1 -1
- package/dist/bundle/{chunk-54O5NJRC.js → chunk-36256UTA.js} +12 -12
- package/dist/bundle/{chunk-ZNFXKFGF.js → chunk-4FTGSEBR.js} +6 -6
- package/dist/bundle/{chunk-YRCGFSRR.js → chunk-4KOMZRN6.js} +2 -2
- package/dist/bundle/{chunk-HPS2YGSZ.js → chunk-4LLO4USI.js} +1 -1
- package/dist/bundle/{chunk-HDGJ7IDE.js → chunk-4VTAPSZE.js} +4 -4
- package/dist/bundle/{chunk-QB7K6PIP.js → chunk-4ZP3IK5I.js} +6 -6
- package/dist/bundle/{chunk-KVBGIZ2C.js → chunk-5CYWWYIG.js} +6 -1
- package/dist/bundle/{chunk-FJQO5OHR.js → chunk-5EZCDENA.js} +61 -35
- package/dist/bundle/{chunk-RM4DO2WZ.js → chunk-5R2VPXVT.js} +1 -1
- package/dist/bundle/{chunk-2CG3LUQS.js → chunk-5SQHQRNO.js} +4 -4
- package/dist/bundle/{chunk-3VIEGRBA.js → chunk-6AVHD6WB.js} +6 -6
- package/dist/bundle/{chunk-JSYUB4SM.js → chunk-6EC3LAVC.js} +2 -2
- package/dist/bundle/{chunk-SWQDKO6D.js → chunk-6HZKX65K.js} +3 -3
- package/dist/bundle/{chunk-YE7DJB3F.js → chunk-6TGZCOYR.js} +3 -3
- package/dist/bundle/{chunk-SUQT4KI2.js → chunk-6V5556NF.js} +7 -7
- package/dist/bundle/{chunk-R3EDZWXF.js → chunk-6WZLP4CI.js} +5 -5
- package/dist/bundle/{chunk-UT64BBEP.js → chunk-77SAHCDZ.js} +4 -4
- package/dist/bundle/{chunk-FTL3WXZB.js → chunk-AGATODLO.js} +12 -12
- package/dist/bundle/{chunk-IBQZT2YD.js → chunk-B6YBN6VK.js} +1 -1
- package/dist/bundle/{chunk-AG34MPVN.js → chunk-BAG4KIN5.js} +1 -1
- package/dist/bundle/{chunk-MA7ETVTZ.js → chunk-BAHWXDWN.js} +16 -16
- package/dist/bundle/{chunk-2TVHFJKV.js → chunk-BFESDJPU.js} +1 -1
- package/dist/bundle/{chunk-SODB63MR.js → chunk-BOHC2GPY.js} +36 -36
- package/dist/bundle/{chunk-VHTELRUA.js → chunk-BY5D2LXE.js} +3 -3
- package/dist/bundle/{chunk-G7SKXAVZ.js → chunk-CMB6URN7.js} +5 -5
- package/dist/bundle/{chunk-HOICQNJX.js → chunk-CY2MNN3I.js} +5 -5
- package/dist/bundle/{chunk-G2KKMQRN.js → chunk-DAYHLKTM.js} +2 -2
- package/dist/bundle/{chunk-JVM75M4H.js → chunk-DOUFW7RK.js} +3 -3
- package/dist/bundle/{chunk-S27UKJVL.js → chunk-DZG5SAO6.js} +14 -14
- package/dist/bundle/{chunk-X6HPQKAI.js → chunk-E3UFICXC.js} +33 -29
- package/dist/bundle/{chunk-MA6U4XH2.js → chunk-EBGI3Z6U.js} +1 -1
- package/dist/bundle/{chunk-DOEP4EPW.js → chunk-EQGVNLUN.js} +42 -42
- package/dist/bundle/{chunk-HMN26CVU.js → chunk-F5XMZDR5.js} +2 -2
- package/dist/bundle/{chunk-VBIZD5V5.js → chunk-FITKBN46.js} +2 -2
- package/dist/bundle/{chunk-6KND2DYT.js → chunk-FRQBKAPV.js} +6 -6
- package/dist/bundle/{chunk-IE3R46YN.js → chunk-GW7L2G4I.js} +57 -57
- package/dist/bundle/{chunk-MGC2BAD2.js → chunk-HGXFOXSA.js} +1 -1
- package/dist/bundle/{chunk-SSFGSY77.js → chunk-HYJEBBFK.js} +489 -317
- package/dist/bundle/{chunk-KOI5G7NM.js → chunk-I2KGZ6XQ.js} +6 -6
- package/dist/bundle/{chunk-PMAV3RNP.js → chunk-I3DZHZHM.js} +7 -7
- package/dist/bundle/{chunk-HSASPXRW.js → chunk-I3MLLVPE.js} +3 -3
- package/dist/bundle/{chunk-PUVQOZ2N.js → chunk-IDJKYHVG.js} +2246 -2047
- package/dist/bundle/{chunk-EXHTGQR2.js → chunk-IEGU6GG7.js} +1 -1
- package/dist/bundle/{chunk-QURQ2OU2.js → chunk-IKW3PRNG.js} +13 -13
- package/dist/bundle/{chunk-XZEVHUKI.js → chunk-J3I4WOBI.js} +3 -3
- package/dist/bundle/{chunk-B6JC5RS3.js → chunk-JA37PJL4.js} +11 -11
- package/dist/bundle/{chunk-3QBRS3JT.js → chunk-JJGKHGBX.js} +8 -8
- package/dist/bundle/{chunk-7YPZPJTB.js → chunk-JWNM6FCC.js} +1 -1
- package/dist/bundle/{chunk-IPBYU43F.js → chunk-JZYNXTMH.js} +46 -15
- package/dist/bundle/{chunk-KPBUJQKT.js → chunk-K34B37AP.js} +1 -1
- package/dist/bundle/{chunk-QK7GKFKB.js → chunk-KERX3BQL.js} +4 -4
- package/dist/bundle/{chunk-IE6O7463.js → chunk-KV232TIK.js} +4 -4
- package/dist/bundle/{chunk-HCMEU7AF.js → chunk-KXETGAU4.js} +8 -8
- package/dist/bundle/{chunk-IV77ZFF4.js → chunk-L5ZZ6RLL.js} +2 -2
- package/dist/bundle/{chunk-CP2TZXAG.js → chunk-LGRZNEMA.js} +8 -8
- package/dist/bundle/{chunk-QMUWHKP5.js → chunk-M3VJTLFM.js} +6 -6
- package/dist/bundle/{chunk-JDGF3YYS.js → chunk-MTH76YSQ.js} +418 -404
- package/dist/bundle/{chunk-XKWQDQ4B.js → chunk-NA4HEM4Z.js} +3 -3
- package/dist/bundle/{chunk-5BHP4FVM.js → chunk-OCZWU2H4.js} +2 -2
- package/dist/bundle/{chunk-6JU4KLAZ.js → chunk-OHKAL25R.js} +62 -62
- package/dist/bundle/{chunk-BDZXGDGI.js → chunk-P2FOF6RR.js} +3 -3
- package/dist/bundle/{chunk-KI6OOW6D.js → chunk-PMYTDTT4.js} +1 -1
- package/dist/bundle/{chunk-4DK55MLP.js → chunk-PQSCABAC.js} +10 -10
- package/dist/bundle/{chunk-A5XNUMW7.js → chunk-PSFACXOC.js} +2 -2
- package/dist/bundle/{chunk-BMTMGMGE.js → chunk-PSWVHX53.js} +1 -1
- package/dist/bundle/{chunk-PB6ACIME.js → chunk-Q2L3W7PS.js} +2 -2
- package/dist/bundle/{chunk-GTROGY74.js → chunk-QMDVQ4AN.js} +12 -12
- package/dist/bundle/{chunk-OBDPKDGB.js → chunk-QZXFWDTX.js} +6 -6
- package/dist/bundle/{chunk-GYAPDUF5.js → chunk-R2GLRHNK.js} +5 -5
- package/dist/bundle/{chunk-PSY67L73.js → chunk-R6K36FZ7.js} +23 -23
- package/dist/bundle/{chunk-SAEBHENE.js → chunk-RHS3OBO5.js} +4 -4
- package/dist/bundle/{chunk-LKUWH6KU.js → chunk-RNLLWYPV.js} +1 -1
- package/dist/bundle/{chunk-3ZGWJYSG.js → chunk-RX6D64YA.js} +20 -20
- package/dist/bundle/{chunk-YJVQ5GST.js → chunk-S7EQIYNF.js} +1 -1
- package/dist/bundle/{chunk-UL5HSHFU.js → chunk-SIC2CGYE.js} +4 -4
- package/dist/bundle/{chunk-T3OK6AYZ.js → chunk-SNY4WYPH.js} +5 -5
- package/dist/bundle/{chunk-TUL6MCTY.js → chunk-SQODI3DH.js} +2 -2
- package/dist/bundle/{chunk-IABPGOMT.js → chunk-SRRNRQSQ.js} +2 -2
- package/dist/bundle/{chunk-TFIAD57H.js → chunk-SYQKLEP3.js} +4 -4
- package/dist/bundle/{chunk-WDJRUNQN.js → chunk-TAQUEQ5B.js} +8 -8
- package/dist/bundle/{chunk-GFI3UUIU.js → chunk-TPIGO4JJ.js} +1 -1
- package/dist/bundle/{chunk-4P6D6CUS.js → chunk-U5SB2WDG.js} +10 -10
- package/dist/bundle/{chunk-G2CH4FRW.js → chunk-UDP7EQNY.js} +4 -4
- package/dist/bundle/{chunk-E2TMWONO.js → chunk-UZAOKKGK.js} +753 -494
- package/dist/bundle/{chunk-SM7Z2BQF.js → chunk-V5GIK53Z.js} +17 -17
- package/dist/bundle/{chunk-3T7JIHSO.js → chunk-VENGEFU4.js} +8 -8
- package/dist/bundle/{chunk-E5EYJU5R.js → chunk-VHPNTMJJ.js} +1 -1
- package/dist/bundle/{chunk-3CH7I452.js → chunk-VM3IERRK.js} +7 -7
- package/dist/bundle/{chunk-B5V2U7IS.js → chunk-VQ7K2EAW.js} +9 -9
- package/dist/bundle/{chunk-IS7STZEB.js → chunk-VQC4GYIQ.js} +3 -3
- package/dist/bundle/{chunk-X5CXANSA.js → chunk-VZTDELYM.js} +3 -3
- package/dist/bundle/{chunk-35GROSBS.js → chunk-W3OKRT6L.js} +179 -135
- package/dist/bundle/{chunk-KBR7OC5S.js → chunk-WB46DJSK.js} +2 -2
- package/dist/bundle/{chunk-43PCMVTZ.js → chunk-WITO2RZO.js} +1 -1
- package/dist/bundle/{chunk-ODTBJGWQ.js → chunk-WJ7E6TPR.js} +17 -17
- package/dist/bundle/{chunk-JRED7BNX.js → chunk-WUVNBZWC.js} +191 -160
- package/dist/bundle/{chunk-VOQICE3G.js → chunk-ZDYWRT3X.js} +7 -7
- package/dist/bundle/{chunk-JZ65CQWK.js → chunk-ZQMURHTL.js} +6 -6
- package/dist/bundle/{cli-KXRWXGTS.js → cli-A7MMBLGR.js} +83 -83
- package/dist/bundle/command-contract-WCGIIXYM.js +45 -0
- package/dist/bundle/{command-server-entry-7FZX74T6.js → command-server-entry-557ZCX63.js} +35 -35
- package/dist/bundle/{decode-SZ6W34U3.js → decode-3IPZIY2P.js} +8 -8
- package/dist/bundle/{dispatch-4KNSZ3PI.js → dispatch-UWS7A35Q.js} +9 -9
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-ISH62J4E.js → echarts-JLCV6NKC.js} +2 -2
- package/dist/bundle/{embed-6ODGTZPK.js → embed-Q6H3QSMC.js} +9 -9
- package/dist/bundle/{embedder-6FY67FTQ.js → embedder-536EI65E.js} +12 -12
- package/dist/bundle/entry-3PKJTP5E.js +25 -0
- package/dist/bundle/{failure-V3ILKUTX.js → failure-W3VT5D3H.js} +4 -4
- package/dist/bundle/first-run-XTLP6VXF.js +31 -0
- package/dist/bundle/first-screen-3GQGULPE.js +45 -0
- package/dist/bundle/google-MEPVU4EP.js +46 -0
- package/dist/bundle/{google-api-ZTI3NKZX.js → google-api-SY25TRXJ.js} +85 -85
- package/dist/bundle/grants-77W5MSWQ.js +133 -0
- package/dist/bundle/{identity-YX4IPGOO.js → identity-ZBMVHXUY.js} +6 -6
- package/dist/bundle/{instructions-G5ZGHVFB.js → instructions-XQOWVU6J.js} +1 -1
- package/dist/bundle/{login-CVX5VJX6.js → login-LXXYFMD3.js} +91 -91
- package/dist/bundle/{mcp-MQ2L5IIM.js → mcp-VNOYBWW2.js} +2 -2
- package/dist/bundle/meeting-combined-NWWZCYN4.js +28 -0
- package/dist/bundle/meeting-model-K7UQ7TO5.js +29 -0
- package/dist/bundle/{meeting-semantic-OHG2QN2G.js → meeting-semantic-Z7FAOSLQ.js} +10 -10
- package/dist/bundle/{node-NLJINXVQ.js → node-MPZ3SVB4.js} +2 -2
- package/dist/bundle/{node-sqlite-KDFQDYVZ.js → node-sqlite-VL5BMY34.js} +10 -10
- package/dist/bundle/notes-search-MF7QKFQD.js +74 -0
- package/dist/bundle/oauth-EYJXUTXZ.js +22 -0
- package/dist/bundle/{open-WVRUVBIZ.js → open-SERV3YXC.js} +8 -8
- package/dist/bundle/{openai-JJWOSJMV.js → openai-HUXETQVC.js} +20 -20
- package/dist/bundle/{process-LPVAYRO7.js → process-RFIII6TW.js} +1 -1
- package/dist/bundle/{program-ZJRIP25J.js → program-VQ6IKDBJ.js} +352 -130
- package/dist/bundle/{prompt-XCDHTEAO.js → prompt-LCD5ZR7Q.js} +8 -8
- package/dist/bundle/{reasons-REEEQDAZ.js → reasons-GDQIXGWT.js} +5 -5
- package/dist/bundle/{recognize-OZLFDJAT.js → recognize-GWKRFWHF.js} +7 -7
- package/dist/bundle/{remote-MDPYVCZB.js → remote-XM2CRZJY.js} +13 -13
- package/dist/bundle/{rerank-FLZWJNHA.js → rerank-HR5J35V6.js} +10 -10
- package/dist/bundle/{serve-5UV5VLRV.js → serve-PP3XR3GA.js} +12 -12
- package/dist/bundle/{server-53A2X2MK.js → server-DD3DE536.js} +71 -71
- package/dist/bundle/server-NB4RGNYM.js +97 -0
- package/dist/bundle/{services-XSMH7BXB.js → services-4Y7R425J.js} +62 -58
- package/dist/bundle/{sqlite-runtime-E3L7ENFU.js → sqlite-runtime-CVYBPVKO.js} +9 -9
- package/dist/bundle/{start-4S2VNR4J.js → start-2KFZDMWM.js} +7 -7
- package/dist/bundle/{state-TQI4JSH7.js → state-AUXW4REW.js} +9 -9
- package/dist/bundle/{store-VYJPL7MW.js → store-B7X6UN75.js} +28 -28
- package/dist/bundle/{store-GS7PU6PJ.js → store-RADARFIH.js} +26 -26
- package/dist/bundle/store-maintenance-command-UTZWPNUF.js +85 -0
- package/dist/bundle/surface-4MUNDC3D.js +83 -0
- package/dist/bundle/tokens-AIKNGAOI.js +133 -0
- package/dist/commands/file-edit.d.ts +18 -0
- package/dist/commands/file-edit.d.ts.map +1 -0
- package/dist/commands/file-edit.js +39 -0
- package/dist/commands/file-edit.js.map +1 -0
- package/dist/commands/remote.d.ts +4 -0
- package/dist/commands/remote.d.ts.map +1 -1
- package/dist/commands/remote.js +59 -17
- package/dist/commands/remote.js.map +1 -1
- package/dist/config.d.ts +2 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +17 -1
- package/dist/config.js.map +1 -1
- package/dist/drive-files.d.ts +26 -0
- package/dist/drive-files.d.ts.map +1 -0
- package/dist/drive-files.js +127 -0
- package/dist/drive-files.js.map +1 -0
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +52 -1
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +5 -0
- package/dist/reasons.js.map +1 -1
- package/dist/upload.d.ts +3 -1
- package/dist/upload.d.ts.map +1 -1
- package/dist/upload.js +5 -4
- package/dist/upload.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/drive-cli/SKILL.md +4 -0
- package/dist/bundle/agent-GOCD4ZW2.js +0 -46
- package/dist/bundle/command-contract-BGNT7MTQ.js +0 -45
- package/dist/bundle/entry-2SA6ZX7E.js +0 -25
- package/dist/bundle/first-run-ZNKPPD6M.js +0 -31
- package/dist/bundle/first-screen-WF6GYLPN.js +0 -45
- package/dist/bundle/google-QCADNPCQ.js +0 -46
- package/dist/bundle/grants-BPN5AGDK.js +0 -133
- package/dist/bundle/meeting-combined-HKZJMJ6Q.js +0 -28
- package/dist/bundle/meeting-model-DSE4GRVE.js +0 -29
- package/dist/bundle/notes-search-3VBVSQ3R.js +0 -70
- package/dist/bundle/oauth-M3E62ZHC.js +0 -22
- package/dist/bundle/server-5GMURMDE.js +0 -97
- package/dist/bundle/store-maintenance-command-JJVYUZMG.js +0 -85
- package/dist/bundle/surface-JC4XVMZR.js +0 -83
- package/dist/bundle/tokens-KJQ5EAPW.js +0 -133
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
pictureReaderOf,
|
|
15
15
|
readPictureReading,
|
|
16
16
|
readPictureWithAgent
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-BOHC2GPY.js";
|
|
18
18
|
import {
|
|
19
19
|
acquireLock,
|
|
20
20
|
openOrdinaryFile,
|
|
@@ -22,11 +22,11 @@ import {
|
|
|
22
22
|
sameOrdinaryFile,
|
|
23
23
|
syncDirectory,
|
|
24
24
|
writeFileAtomic
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-AGATODLO.js";
|
|
26
26
|
import {
|
|
27
27
|
isNewer,
|
|
28
28
|
updateCommand
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-UDP7EQNY.js";
|
|
30
30
|
import {
|
|
31
31
|
LIST_QUERY_GUIDE,
|
|
32
32
|
dateWindow,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
queryTerms,
|
|
35
35
|
termField,
|
|
36
36
|
withQuery
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-DZG5SAO6.js";
|
|
38
38
|
import {
|
|
39
39
|
ALL,
|
|
40
40
|
MAIL,
|
|
@@ -52,6 +52,7 @@ import {
|
|
|
52
52
|
chatsMatchingIn,
|
|
53
53
|
costOf,
|
|
54
54
|
crossAccount,
|
|
55
|
+
embedChunks,
|
|
55
56
|
enrichmentEndpoint,
|
|
56
57
|
enrichmentSettingPath,
|
|
57
58
|
fieldsOfQuery,
|
|
@@ -80,6 +81,7 @@ import {
|
|
|
80
81
|
senderAmong,
|
|
81
82
|
senderIsMe,
|
|
82
83
|
sendersMatching,
|
|
84
|
+
stopsAt,
|
|
83
85
|
storeIfOpen,
|
|
84
86
|
storeQuery,
|
|
85
87
|
storedChatId,
|
|
@@ -87,19 +89,19 @@ import {
|
|
|
87
89
|
unlessBusy,
|
|
88
90
|
withLocal,
|
|
89
91
|
withPictures
|
|
90
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-2WAGRBQT.js";
|
|
91
93
|
import {
|
|
92
94
|
modelGateway,
|
|
93
95
|
withRecovery,
|
|
94
96
|
withTimeLimit
|
|
95
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-IKW3PRNG.js";
|
|
96
98
|
import {
|
|
97
99
|
capability
|
|
98
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-DAYHLKTM.js";
|
|
99
101
|
import {
|
|
100
102
|
resolveMeetingSelection,
|
|
101
103
|
searchMeetingHits
|
|
102
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-VQ7K2EAW.js";
|
|
103
105
|
import {
|
|
104
106
|
anyOfTerms,
|
|
105
107
|
isFunctionWord,
|
|
@@ -109,16 +111,16 @@ import {
|
|
|
109
111
|
questionLookup,
|
|
110
112
|
questionText,
|
|
111
113
|
words
|
|
112
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-6WZLP4CI.js";
|
|
113
115
|
import {
|
|
114
116
|
WIRECAT_TOOLS
|
|
115
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-PMYTDTT4.js";
|
|
116
118
|
import {
|
|
117
119
|
remoteKey
|
|
118
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-CMB6URN7.js";
|
|
119
121
|
import {
|
|
120
122
|
localOnly
|
|
121
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-4ZP3IK5I.js";
|
|
122
124
|
import {
|
|
123
125
|
defaultThreads,
|
|
124
126
|
installNativeRuntime,
|
|
@@ -127,7 +129,7 @@ import {
|
|
|
127
129
|
placedText,
|
|
128
130
|
runEmbedders,
|
|
129
131
|
textModelsDirectory
|
|
130
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-R2GLRHNK.js";
|
|
131
133
|
import {
|
|
132
134
|
AUTHORITY_KEY,
|
|
133
135
|
CEILING_KEY,
|
|
@@ -170,13 +172,13 @@ import {
|
|
|
170
172
|
tagging,
|
|
171
173
|
task,
|
|
172
174
|
wasSettled
|
|
173
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-WUVNBZWC.js";
|
|
174
176
|
import {
|
|
175
177
|
keepsSuccess,
|
|
176
178
|
providerErrorKey,
|
|
177
179
|
runContextOf,
|
|
178
180
|
secretInput
|
|
179
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-I3DZHZHM.js";
|
|
180
182
|
import {
|
|
181
183
|
codeOf,
|
|
182
184
|
guardedWrite,
|
|
@@ -185,14 +187,14 @@ import {
|
|
|
185
187
|
isImageModelInstalled,
|
|
186
188
|
placedImage,
|
|
187
189
|
sentIds
|
|
188
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-KERX3BQL.js";
|
|
189
191
|
import {
|
|
190
192
|
MESSENGER_CHANGE_REFUSAL,
|
|
191
193
|
ancestorValue,
|
|
192
194
|
envName,
|
|
193
195
|
readOnlyLockOf,
|
|
194
196
|
readOnlyRefusal
|
|
195
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-OCZWU2H4.js";
|
|
196
198
|
import {
|
|
197
199
|
CustomTextModelShape,
|
|
198
200
|
DEFAULT_RERANK_MODEL,
|
|
@@ -204,7 +206,7 @@ import {
|
|
|
204
206
|
textModels,
|
|
205
207
|
vectorModelKey,
|
|
206
208
|
writeTextModelsSection
|
|
207
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-ZQMURHTL.js";
|
|
208
210
|
import {
|
|
209
211
|
hostFetch,
|
|
210
212
|
modelAddressAllowed,
|
|
@@ -212,11 +214,11 @@ import {
|
|
|
212
214
|
providerWaitMs,
|
|
213
215
|
readJsonResponse,
|
|
214
216
|
statusToCode
|
|
215
|
-
} from "./chunk-
|
|
217
|
+
} from "./chunk-FRQBKAPV.js";
|
|
216
218
|
import {
|
|
217
219
|
installFiles,
|
|
218
220
|
megabytes
|
|
219
|
-
} from "./chunk-
|
|
221
|
+
} from "./chunk-5SQHQRNO.js";
|
|
220
222
|
import {
|
|
221
223
|
AGENDA_COLUMNS,
|
|
222
224
|
BUSINESS_FIND_MAX,
|
|
@@ -285,21 +287,23 @@ import {
|
|
|
285
287
|
recordErrors,
|
|
286
288
|
seenBy,
|
|
287
289
|
threadConversation,
|
|
290
|
+
trackerBodyOf,
|
|
291
|
+
trackerTitleOf,
|
|
288
292
|
waitingPointer,
|
|
289
293
|
withoutField
|
|
290
|
-
} from "./chunk-
|
|
294
|
+
} from "./chunk-UZAOKKGK.js";
|
|
291
295
|
import {
|
|
292
296
|
MAX_TEXT_CHARS,
|
|
293
297
|
attachmentMaxBytes,
|
|
294
298
|
googleDocumentId,
|
|
295
299
|
googleDocumentLinks,
|
|
296
300
|
pdfPreviewLimits
|
|
297
|
-
} from "./chunk-
|
|
301
|
+
} from "./chunk-6TGZCOYR.js";
|
|
298
302
|
import {
|
|
299
303
|
MINUTE,
|
|
300
304
|
YEAR,
|
|
301
305
|
aheadOf
|
|
302
|
-
} from "./chunk-
|
|
306
|
+
} from "./chunk-P2FOF6RR.js";
|
|
303
307
|
import {
|
|
304
308
|
chatReferenceOf,
|
|
305
309
|
ensureAccount,
|
|
@@ -308,12 +312,12 @@ import {
|
|
|
308
312
|
isId,
|
|
309
313
|
isStemmed,
|
|
310
314
|
pickPerson
|
|
311
|
-
} from "./chunk-
|
|
315
|
+
} from "./chunk-JA37PJL4.js";
|
|
312
316
|
import {
|
|
313
317
|
DEFAULT_STEMMERS,
|
|
314
318
|
createStemmer,
|
|
315
319
|
cutsDeep
|
|
316
|
-
} from "./chunk-
|
|
320
|
+
} from "./chunk-TAQUEQ5B.js";
|
|
317
321
|
import {
|
|
318
322
|
FIELD_VERSION,
|
|
319
323
|
MESSAGE_PARSING,
|
|
@@ -330,11 +334,11 @@ import {
|
|
|
330
334
|
searchError,
|
|
331
335
|
validateAst,
|
|
332
336
|
validateFields
|
|
333
|
-
} from "./chunk-
|
|
337
|
+
} from "./chunk-LGRZNEMA.js";
|
|
334
338
|
import {
|
|
335
339
|
fold,
|
|
336
340
|
normalize
|
|
337
|
-
} from "./chunk-
|
|
341
|
+
} from "./chunk-BAG4KIN5.js";
|
|
338
342
|
import {
|
|
339
343
|
CATEGORIES,
|
|
340
344
|
CRM_KINDS,
|
|
@@ -351,7 +355,7 @@ import {
|
|
|
351
355
|
minorUnits,
|
|
352
356
|
normalCrmUserId,
|
|
353
357
|
scaleOf
|
|
354
|
-
} from "./chunk-
|
|
358
|
+
} from "./chunk-R6K36FZ7.js";
|
|
355
359
|
import {
|
|
356
360
|
INTERNAL_NOTES,
|
|
357
361
|
KEEP_RUNS_FOR_DAYS,
|
|
@@ -371,6 +375,7 @@ import {
|
|
|
371
375
|
groupName,
|
|
372
376
|
holdsKind,
|
|
373
377
|
inSource,
|
|
378
|
+
isDocumentAccountProvider,
|
|
374
379
|
isImportedProvider,
|
|
375
380
|
isLocator,
|
|
376
381
|
kindIn,
|
|
@@ -385,13 +390,13 @@ import {
|
|
|
385
390
|
sourceOf2,
|
|
386
391
|
typedCommand,
|
|
387
392
|
withAttempt
|
|
388
|
-
} from "./chunk-
|
|
393
|
+
} from "./chunk-2NAMKBBV.js";
|
|
389
394
|
import {
|
|
390
395
|
isCliFailure
|
|
391
|
-
} from "./chunk-
|
|
396
|
+
} from "./chunk-FITKBN46.js";
|
|
392
397
|
import {
|
|
393
398
|
normalizeTag
|
|
394
|
-
} from "./chunk-
|
|
399
|
+
} from "./chunk-VZTDELYM.js";
|
|
395
400
|
import {
|
|
396
401
|
CALLBACK_WITHIN_MS,
|
|
397
402
|
MEETING_FINDINGS_KIND,
|
|
@@ -420,7 +425,7 @@ import {
|
|
|
420
425
|
validateMeetingPassage,
|
|
421
426
|
validateMeetingSeriesHistory,
|
|
422
427
|
windowOf
|
|
423
|
-
} from "./chunk-
|
|
428
|
+
} from "./chunk-GW7L2G4I.js";
|
|
424
429
|
import {
|
|
425
430
|
OPERATORS_BY_TYPE,
|
|
426
431
|
dayBoundary,
|
|
@@ -431,28 +436,28 @@ import {
|
|
|
431
436
|
timezoneOf,
|
|
432
437
|
validateQuery,
|
|
433
438
|
walkQuery
|
|
434
|
-
} from "./chunk-
|
|
439
|
+
} from "./chunk-PQSCABAC.js";
|
|
435
440
|
import {
|
|
436
441
|
DEFAULT_TASK_CATEGORIES,
|
|
437
442
|
FALLBACK_CATEGORY,
|
|
438
443
|
readSharedSection,
|
|
439
444
|
writeSharedSection
|
|
440
|
-
} from "./chunk-
|
|
445
|
+
} from "./chunk-KXETGAU4.js";
|
|
441
446
|
import {
|
|
442
447
|
storePath,
|
|
443
448
|
wirecatDirectory
|
|
444
|
-
} from "./chunk-
|
|
449
|
+
} from "./chunk-F5XMZDR5.js";
|
|
445
450
|
import {
|
|
446
451
|
logRecordOf,
|
|
447
452
|
realSleep,
|
|
448
453
|
resolvePaths,
|
|
449
454
|
wallClock,
|
|
450
455
|
writeSecurely
|
|
451
|
-
} from "./chunk-
|
|
456
|
+
} from "./chunk-RX6D64YA.js";
|
|
452
457
|
import {
|
|
453
458
|
singleLine,
|
|
454
459
|
visibleControls
|
|
455
|
-
} from "./chunk-
|
|
460
|
+
} from "./chunk-2MCMUZCE.js";
|
|
456
461
|
import {
|
|
457
462
|
array,
|
|
458
463
|
boolean,
|
|
@@ -483,16 +488,16 @@ import {
|
|
|
483
488
|
transform,
|
|
484
489
|
union,
|
|
485
490
|
unknown
|
|
486
|
-
} from "./chunk-
|
|
491
|
+
} from "./chunk-QZXFWDTX.js";
|
|
487
492
|
import {
|
|
488
493
|
CliError,
|
|
489
494
|
isCliError
|
|
490
|
-
} from "./chunk-
|
|
495
|
+
} from "./chunk-B6YBN6VK.js";
|
|
491
496
|
import {
|
|
492
497
|
__name
|
|
493
498
|
} from "./chunk-ZVVMGPBJ.js";
|
|
494
499
|
|
|
495
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
500
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
496
501
|
var DAY_MS = 864e5;
|
|
497
502
|
var NEW_DAYS = 30;
|
|
498
503
|
var SAME_TEXT_MIN = 20;
|
|
@@ -569,7 +574,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
569
574
|
};
|
|
570
575
|
}, "scorePerson");
|
|
571
576
|
|
|
572
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
577
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
573
578
|
var REGISTRIES = {
|
|
574
579
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
575
580
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -656,7 +661,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
656
661
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
657
662
|
})), "notCovered");
|
|
658
663
|
|
|
659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
660
665
|
var ACTIVITY_MESSAGES = 1e3;
|
|
661
666
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
662
667
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -744,7 +749,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
744
749
|
};
|
|
745
750
|
}, "botCheckService");
|
|
746
751
|
|
|
747
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
748
753
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
749
754
|
if (newest === null)
|
|
750
755
|
return null;
|
|
@@ -753,7 +758,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
753
758
|
return newest.addressed ? "owed" : null;
|
|
754
759
|
}, "mailTurn");
|
|
755
760
|
|
|
756
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
761
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
757
762
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
758
763
|
if (error instanceof CliError && error.code === "not_found")
|
|
759
764
|
return void 0;
|
|
@@ -811,7 +816,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
811
816
|
};
|
|
812
817
|
}, "mailActivity");
|
|
813
818
|
|
|
814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
819
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
815
820
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
816
821
|
const ids = [...new Set(chatIds)];
|
|
817
822
|
if (ids.length === 0)
|
|
@@ -837,7 +842,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
837
842
|
}));
|
|
838
843
|
}, "chatCoverage");
|
|
839
844
|
|
|
840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
841
846
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
842
847
|
if (value === void 0)
|
|
843
848
|
return void 0;
|
|
@@ -847,15 +852,15 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
847
852
|
return id3;
|
|
848
853
|
}, "threadIdOf");
|
|
849
854
|
|
|
850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
855
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
851
856
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
852
857
|
|
|
853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
854
859
|
import { randomBytes } from "node:crypto";
|
|
855
860
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
856
861
|
var newOperationId = newSendId;
|
|
857
862
|
|
|
858
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
863
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
859
864
|
var LINKS = /https?:\/\/\S+/g;
|
|
860
865
|
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");
|
|
861
866
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -885,7 +890,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
885
890
|
});
|
|
886
891
|
}, "questions");
|
|
887
892
|
|
|
888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
889
894
|
var TOP_POSTS = 5;
|
|
890
895
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
891
896
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -1002,7 +1007,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
1002
1007
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
1003
1008
|
}, "median");
|
|
1004
1009
|
|
|
1005
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
1006
1011
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
1007
1012
|
const events = [];
|
|
1008
1013
|
for (const stay of stays) {
|
|
@@ -1034,7 +1039,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
1034
1039
|
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));
|
|
1035
1040
|
}, "memberEvents");
|
|
1036
1041
|
|
|
1037
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1042
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
1038
1043
|
var AUDIT_PAGE = 200;
|
|
1039
1044
|
var AUDIT_BUDGET = 10;
|
|
1040
1045
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -1114,7 +1119,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
1114
1119
|
return found;
|
|
1115
1120
|
}, "burstJoins");
|
|
1116
1121
|
|
|
1117
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
1118
1123
|
var EVENTS_DAYS = 7;
|
|
1119
1124
|
var TRACKED_DAYS = 30;
|
|
1120
1125
|
var STATS_PAGE = 1e3;
|
|
@@ -1409,7 +1414,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
1409
1414
|
return members.length === 0 ? null : members;
|
|
1410
1415
|
}, "storedMembers");
|
|
1411
1416
|
|
|
1412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
1413
1418
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
1414
1419
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
1415
1420
|
const name = typed.trim().toLowerCase();
|
|
@@ -1466,7 +1471,7 @@ var categorize = /* @__PURE__ */ __name((text3, categories = DEFAULT_TASK_CATEGO
|
|
|
1466
1471
|
return best.name;
|
|
1467
1472
|
}, "categorize");
|
|
1468
1473
|
|
|
1469
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1474
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
1470
1475
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
1471
1476
|
var RULES_IN = {
|
|
1472
1477
|
dialog: "all",
|
|
@@ -1672,7 +1677,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
1672
1677
|
return passes;
|
|
1673
1678
|
}, "applyTaskRulesToChats");
|
|
1674
1679
|
|
|
1675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1680
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
1676
1681
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
1677
1682
|
const tags = /* @__PURE__ */ new Map();
|
|
1678
1683
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -1681,7 +1686,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
1681
1686
|
return tags;
|
|
1682
1687
|
}, "taskTagFilters");
|
|
1683
1688
|
|
|
1684
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
1685
1690
|
var DAY = 864e5;
|
|
1686
1691
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
1687
1692
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -1935,7 +1940,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
1935
1940
|
};
|
|
1936
1941
|
}, "agendaItem");
|
|
1937
1942
|
|
|
1938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1943
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
1939
1944
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
1940
1945
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
1941
1946
|
const fail4 = /* @__PURE__ */ __name(() => {
|
|
@@ -1999,7 +2004,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
1999
2004
|
}
|
|
2000
2005
|
}, "validateContextEvidencePage");
|
|
2001
2006
|
|
|
2002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2007
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
2003
2008
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
2004
2009
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
2005
2010
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -2052,7 +2057,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
2052
2057
|
};
|
|
2053
2058
|
}, "contextReadBudget");
|
|
2054
2059
|
|
|
2055
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2060
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
2056
2061
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
2057
2062
|
if (!port || typeof port.read !== "function")
|
|
2058
2063
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -2096,7 +2101,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
2096
2101
|
};
|
|
2097
2102
|
}, "createContextEvidenceReader");
|
|
2098
2103
|
|
|
2099
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
2100
2105
|
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");
|
|
2101
2106
|
var excerpt = /* @__PURE__ */ __name((text3, query, size4 = 240, options = {}) => {
|
|
2102
2107
|
const flat = text3.replace(/\s+/g, " ").trim();
|
|
@@ -2112,10 +2117,10 @@ var excerpt = /* @__PURE__ */ __name((text3, query, size4 = 240, options = {}) =
|
|
|
2112
2117
|
}, "excerpt");
|
|
2113
2118
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
2114
2119
|
|
|
2115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/ingest.js
|
|
2116
2121
|
import { createInterface } from "node:readline";
|
|
2117
2122
|
|
|
2118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2123
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/domain/vcard.js
|
|
2119
2124
|
import { createHash } from "node:crypto";
|
|
2120
2125
|
var MAX_ID = 512;
|
|
2121
2126
|
var AS_WORD = new RegExp(`^${WORD_BODY}$`);
|
|
@@ -2345,7 +2350,7 @@ var envelopeOfVcard = /* @__PURE__ */ __name((text3, { provider, account, batchI
|
|
|
2345
2350
|
};
|
|
2346
2351
|
}, "envelopeOfVcard");
|
|
2347
2352
|
|
|
2348
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2353
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/ingest.js
|
|
2349
2354
|
var emptyReceipt = /* @__PURE__ */ __name((dryRun, errors) => ({
|
|
2350
2355
|
dryRun,
|
|
2351
2356
|
source: null,
|
|
@@ -2445,7 +2450,7 @@ var ingestVcard = /* @__PURE__ */ __name(async (store, text3, { provider, batchI
|
|
|
2445
2450
|
return { ...await ingest(store, envelope, options), vcard: issues };
|
|
2446
2451
|
}, "ingestVcard");
|
|
2447
2452
|
|
|
2448
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2453
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/link-scorers/shared.js
|
|
2449
2454
|
var escaped = /* @__PURE__ */ __name((text3) => text3.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
2450
2455
|
var folded = /* @__PURE__ */ __name((text3) => text3.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "folded");
|
|
2451
2456
|
var wholeWords = /* @__PURE__ */ __name((term) => new RegExp(`(?<![\\p{L}\\p{N}\\p{M}_])${escaped(normalizeVocabularyName(term))}(?![\\p{L}\\p{N}\\p{M}_])`, "u"), "wholeWords");
|
|
@@ -2489,7 +2494,7 @@ var identitiesIn = /* @__PURE__ */ __name(async (store, people, provider) => {
|
|
|
2489
2494
|
var remembered = /* @__PURE__ */ __name((input, key, read) => input.remember ? input.remember(key, read) : read(), "remembered");
|
|
2490
2495
|
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");
|
|
2491
2496
|
|
|
2492
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2497
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/link-scorers/alias-hits.js
|
|
2493
2498
|
var SEARCH_LIMIT = 500;
|
|
2494
2499
|
var aliasWeight = /* @__PURE__ */ __name((hits) => hits >= 10 ? 0.55 : hits >= 3 ? 0.35 : 0, "aliasWeight");
|
|
2495
2500
|
var aliasHits = {
|
|
@@ -2538,7 +2543,7 @@ var aliasHits = {
|
|
|
2538
2543
|
}, "candidates")
|
|
2539
2544
|
};
|
|
2540
2545
|
|
|
2541
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2546
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-senders.js
|
|
2542
2547
|
var WEIGHT = 0.5;
|
|
2543
2548
|
var LARGE_GROUP_WEIGHT = 0.2;
|
|
2544
2549
|
var LARGE_GROUP = 30;
|
|
@@ -2610,7 +2615,7 @@ var sendersOf2 = /* @__PURE__ */ __name(async (input, chat, reference, key) => {
|
|
|
2610
2615
|
return found;
|
|
2611
2616
|
}, "sendersOf");
|
|
2612
2617
|
|
|
2613
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2618
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-title.js
|
|
2614
2619
|
var WEIGHT2 = 0.7;
|
|
2615
2620
|
var chatTitle = {
|
|
2616
2621
|
id: "chat-title",
|
|
@@ -2649,7 +2654,7 @@ var chatTitle = {
|
|
|
2649
2654
|
}, "candidates")
|
|
2650
2655
|
};
|
|
2651
2656
|
|
|
2652
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/link-scorers/email-domain.js
|
|
2653
2658
|
var WEIGHT3 = 0.3;
|
|
2654
2659
|
var CONTACTS = 500;
|
|
2655
2660
|
var MOST_PAIRS = 200;
|
|
@@ -2710,7 +2715,7 @@ var emailDomain = {
|
|
|
2710
2715
|
}, "candidates")
|
|
2711
2716
|
};
|
|
2712
2717
|
|
|
2713
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2718
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/link-scorers/mail-thread.js
|
|
2714
2719
|
var NAMED = 0.7;
|
|
2715
2720
|
var MEMBER_ONLY = 0.3;
|
|
2716
2721
|
var READ_LIMIT2 = 500;
|
|
@@ -2784,7 +2789,7 @@ var mailThread = {
|
|
|
2784
2789
|
}, "candidates")
|
|
2785
2790
|
};
|
|
2786
2791
|
|
|
2787
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2792
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-chats.js
|
|
2788
2793
|
var WEIGHT4 = 0.5;
|
|
2789
2794
|
var memberChats = {
|
|
2790
2795
|
id: "member-chats",
|
|
@@ -2826,7 +2831,7 @@ var memberChats = {
|
|
|
2826
2831
|
}, "candidates")
|
|
2827
2832
|
};
|
|
2828
2833
|
|
|
2829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2834
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-dialog.js
|
|
2830
2835
|
var WEIGHT5 = 0.6;
|
|
2831
2836
|
var memberDialog = {
|
|
2832
2837
|
id: "member-dialog",
|
|
@@ -2859,7 +2864,7 @@ var memberDialog = {
|
|
|
2859
2864
|
}, "candidates")
|
|
2860
2865
|
};
|
|
2861
2866
|
|
|
2862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2867
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
2863
2868
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
2864
2869
|
var DEFAULT_PURPOSES = ["work"];
|
|
2865
2870
|
var LINK_PURPOSE = "work";
|
|
@@ -2889,7 +2894,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
2889
2894
|
...value.split(",").map((one2) => one2.trim()).filter(Boolean)
|
|
2890
2895
|
], "purposeList");
|
|
2891
2896
|
|
|
2892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
2893
2898
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
2894
2899
|
async around(ref2, window2) {
|
|
2895
2900
|
const at2 = parseLocator(ref2);
|
|
@@ -2985,7 +2990,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
2985
2990
|
};
|
|
2986
2991
|
}, "storedNeighbours");
|
|
2987
2992
|
|
|
2988
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2993
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
2989
2994
|
import { createHash as createHash2 } from "node:crypto";
|
|
2990
2995
|
var DAY2 = 864e5;
|
|
2991
2996
|
var MAX_TIME = 864e13;
|
|
@@ -3301,7 +3306,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text3, plan) => {
|
|
|
3301
3306
|
return value;
|
|
3302
3307
|
}, "decodeCheckpoint");
|
|
3303
3308
|
|
|
3304
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3309
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
3305
3310
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
3306
3311
|
var PAGE = 20;
|
|
3307
3312
|
var PEOPLE = 20;
|
|
@@ -3705,7 +3710,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
3705
3710
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
3706
3711
|
}, "peopleOf");
|
|
3707
3712
|
|
|
3708
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3713
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
3709
3714
|
var normalizedText = /* @__PURE__ */ __name((text3) => text3.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
3710
3715
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
3711
3716
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -3770,7 +3775,7 @@ var matchProjectCandidates = /* @__PURE__ */ __name((catalog, input) => matchVoc
|
|
|
3770
3775
|
omittedMatches: omitted
|
|
3771
3776
|
})), "matchProjectCandidates");
|
|
3772
3777
|
|
|
3773
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
3774
3779
|
var KINDS = ["project", "tag", "topic"];
|
|
3775
3780
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
3776
3781
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -3825,7 +3830,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
3825
3830
|
};
|
|
3826
3831
|
}, "findEvidenceMentions");
|
|
3827
3832
|
|
|
3828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
3829
3834
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
3830
3835
|
const window2 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
3831
3836
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -4136,7 +4141,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
4136
4141
|
return { chat: top.ref, relationship: link3.relationship, items, of };
|
|
4137
4142
|
}, "purposeHintOf");
|
|
4138
4143
|
|
|
4139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/link-scorers/scan.js
|
|
4140
4145
|
var SCORERS = [chatTitle, aliasHits, memberChats, memberDialog, chatSenders, mailThread];
|
|
4141
4146
|
var PERSON_SCORERS = [emailDomain];
|
|
4142
4147
|
var SCAN_BOT = { bot: "memo-scan", kind: "rule" };
|
|
@@ -4392,18 +4397,18 @@ var referenceOf = /* @__PURE__ */ __name((text3) => {
|
|
|
4392
4397
|
}, "referenceOf");
|
|
4393
4398
|
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");
|
|
4394
4399
|
|
|
4395
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4400
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
4396
4401
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
4397
4402
|
|
|
4398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4403
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
4399
4404
|
import { lstat } from "node:fs/promises";
|
|
4400
4405
|
|
|
4401
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4406
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
4402
4407
|
import { createHash as createHash4, randomUUID as randomUUID2 } from "node:crypto";
|
|
4403
4408
|
import { open as open2, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
4404
4409
|
import { join as join2 } from "node:path";
|
|
4405
4410
|
|
|
4406
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4411
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
4407
4412
|
import { createHash as createHash3 } from "node:crypto";
|
|
4408
4413
|
var metadataLimit = 16384;
|
|
4409
4414
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -4463,7 +4468,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path2, locator, maxBytes
|
|
|
4463
4468
|
}
|
|
4464
4469
|
}, "readPartialMetadata");
|
|
4465
4470
|
|
|
4466
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
4467
4472
|
import { randomUUID } from "node:crypto";
|
|
4468
4473
|
import { open, rename, unlink } from "node:fs/promises";
|
|
4469
4474
|
import { join } from "node:path";
|
|
@@ -4555,7 +4560,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
4555
4560
|
};
|
|
4556
4561
|
}, "partialWriter");
|
|
4557
4562
|
|
|
4558
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4563
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
4559
4564
|
var NativeRecordingPartialStore = class {
|
|
4560
4565
|
static {
|
|
4561
4566
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -4662,12 +4667,12 @@ var NativeRecordingPartialStore = class {
|
|
|
4662
4667
|
}
|
|
4663
4668
|
};
|
|
4664
4669
|
|
|
4665
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4670
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
4666
4671
|
import { createHash as createHash5 } from "node:crypto";
|
|
4667
4672
|
import { link } from "node:fs/promises";
|
|
4668
4673
|
import { basename, dirname, join as join4, resolve } from "node:path";
|
|
4669
4674
|
|
|
4670
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4675
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
4671
4676
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
4672
4677
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path2, expected2, signal, writable = false) => {
|
|
4673
4678
|
signal?.throwIfAborted();
|
|
@@ -4702,7 +4707,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
4702
4707
|
signal?.throwIfAborted();
|
|
4703
4708
|
}, "commitPublication");
|
|
4704
4709
|
|
|
4705
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4710
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
4706
4711
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
4707
4712
|
import { open as open3, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
4708
4713
|
import { join as join3 } from "node:path";
|
|
@@ -4775,7 +4780,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path2, prefix,
|
|
|
4775
4780
|
}
|
|
4776
4781
|
}, "writePublicationJournal");
|
|
4777
4782
|
|
|
4778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4783
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
4779
4784
|
var NativeRecordingPublication = class {
|
|
4780
4785
|
static {
|
|
4781
4786
|
__name(this, "NativeRecordingPublication");
|
|
@@ -4848,7 +4853,7 @@ var NativeRecordingPublication = class {
|
|
|
4848
4853
|
}
|
|
4849
4854
|
};
|
|
4850
4855
|
|
|
4851
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4856
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
4852
4857
|
import { createHash as createHash6 } from "node:crypto";
|
|
4853
4858
|
import { readdir } from "node:fs/promises";
|
|
4854
4859
|
import { isAbsolute, join as join5, resolve as resolve2 } from "node:path";
|
|
@@ -4935,7 +4940,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one2, beforePublish) => wri
|
|
|
4935
4940
|
beforePublish
|
|
4936
4941
|
}), "commitMediaEntry");
|
|
4937
4942
|
|
|
4938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4943
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
4939
4944
|
var validator = '"media-completed-v1"';
|
|
4940
4945
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
4941
4946
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind2, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -5036,7 +5041,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind2, file
|
|
|
5036
5041
|
return entry;
|
|
5037
5042
|
}, "archiveMediaFile");
|
|
5038
5043
|
|
|
5039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
5040
5045
|
import { mkdir, realpath } from "node:fs/promises";
|
|
5041
5046
|
import { join as join6, resolve as resolve3 } from "node:path";
|
|
5042
5047
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -5103,7 +5108,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory, signal, run
|
|
|
5103
5108
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
5104
5109
|
}, "withMediaArchiveLocks");
|
|
5105
5110
|
|
|
5106
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5111
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
5107
5112
|
var checkMediaArchive = /* @__PURE__ */ __name((directory, signal) => withMediaArchiveLocks(directory, signal, async (root) => {
|
|
5108
5113
|
const entries = await readMediaManifests(root, signal);
|
|
5109
5114
|
if (!entries.length)
|
|
@@ -5246,7 +5251,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
5246
5251
|
}, { create: true });
|
|
5247
5252
|
}, "archiveMedia");
|
|
5248
5253
|
|
|
5249
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5254
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
5250
5255
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
5251
5256
|
import { basename as basename2, dirname as dirname2, join as join7, resolve as resolve4 } from "node:path";
|
|
5252
5257
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory) => {
|
|
@@ -5397,7 +5402,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
5397
5402
|
}, { additional: [target], createAdditional: !options.dryRun });
|
|
5398
5403
|
}, "moveMediaArchive");
|
|
5399
5404
|
|
|
5400
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5405
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
5401
5406
|
import { writeFileSync } from "node:fs";
|
|
5402
5407
|
import { join as join8 } from "node:path";
|
|
5403
5408
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
@@ -5422,7 +5427,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
5422
5427
|
`);
|
|
5423
5428
|
await nativeRuntime({ env, progress });
|
|
5424
5429
|
progress(`${model.id}: loading it once to check it works`);
|
|
5425
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
5430
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-Q6H3QSMC.js");
|
|
5426
5431
|
const embedder = await openEmbedder2(model, directory);
|
|
5427
5432
|
try {
|
|
5428
5433
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -5443,7 +5448,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id3, { env, progress = /
|
|
|
5443
5448
|
}
|
|
5444
5449
|
await nativeRuntime({ env, progress });
|
|
5445
5450
|
progress(`${model.id}: loading it once to check it works`);
|
|
5446
|
-
const { openReranker } = await import("./rerank-
|
|
5451
|
+
const { openReranker } = await import("./rerank-HR5J35V6.js");
|
|
5447
5452
|
const reranker = await openReranker(model, directory);
|
|
5448
5453
|
try {
|
|
5449
5454
|
await reranker.score("check", ["check"]);
|
|
@@ -5461,7 +5466,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
5461
5466
|
await installFiles(placedImage(model, directory), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
5462
5467
|
}
|
|
5463
5468
|
progress(`${model.id}: loading it once to check it works`);
|
|
5464
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
5469
|
+
const { openPictureEmbedder } = await import("./embedder-536EI65E.js");
|
|
5465
5470
|
const embedder = await openPictureEmbedder(model, directory);
|
|
5466
5471
|
try {
|
|
5467
5472
|
const vector = await embedder.embedQuery("check");
|
|
@@ -5473,7 +5478,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
5473
5478
|
return { model, directory };
|
|
5474
5479
|
}, "downloadImageModel");
|
|
5475
5480
|
|
|
5476
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5481
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
5477
5482
|
var MONEY_REQUEST = "money-request";
|
|
5478
5483
|
var MONEY_DONE = "money-done";
|
|
5479
5484
|
var PROMISE = "promise";
|
|
@@ -5507,10 +5512,10 @@ var MONEY_WORDS = [
|
|
|
5507
5512
|
}
|
|
5508
5513
|
];
|
|
5509
5514
|
|
|
5510
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
5511
5516
|
var moneyClassesOf = /* @__PURE__ */ __name((text3) => listsHit(text3, MONEY_WORDS), "moneyClassesOf");
|
|
5512
5517
|
|
|
5513
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5518
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
5514
5519
|
var words2 = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
5515
5520
|
var MONEY_DONE_FORMS = words2([
|
|
5516
5521
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -5550,7 +5555,7 @@ var PROMISE_FORMS = words2([
|
|
|
5550
5555
|
"estar\xE1 listo"
|
|
5551
5556
|
]);
|
|
5552
5557
|
|
|
5553
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5558
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
5554
5559
|
var EXCERPT_CHARS = 80;
|
|
5555
5560
|
var excerpt2 = /* @__PURE__ */ __name((text3) => {
|
|
5556
5561
|
const flat = text3.replace(/\s+/g, " ").trim();
|
|
@@ -5572,7 +5577,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
5572
5577
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
5573
5578
|
var day = /* @__PURE__ */ __name((at2) => new Date(at2).toISOString().slice(0, 10), "day");
|
|
5574
5579
|
|
|
5575
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5580
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
5576
5581
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
5577
5582
|
var verbOf = /* @__PURE__ */ __name((text3) => {
|
|
5578
5583
|
if (MONEY_DONE_FORMS.test(text3))
|
|
@@ -5653,7 +5658,7 @@ var amounts = {
|
|
|
5653
5658
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
5654
5659
|
};
|
|
5655
5660
|
|
|
5656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
5657
5662
|
var children = {
|
|
5658
5663
|
id: "children",
|
|
5659
5664
|
version: 1,
|
|
@@ -5682,7 +5687,7 @@ var children = {
|
|
|
5682
5687
|
}, "read")
|
|
5683
5688
|
};
|
|
5684
5689
|
|
|
5685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
5686
5691
|
var coverage = {
|
|
5687
5692
|
id: "coverage",
|
|
5688
5693
|
version: 1,
|
|
@@ -5711,7 +5716,7 @@ var coverage = {
|
|
|
5711
5716
|
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")
|
|
5712
5717
|
};
|
|
5713
5718
|
|
|
5714
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5719
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
5715
5720
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
5716
5721
|
var item = /* @__PURE__ */ __name((row, at2, data) => ({
|
|
5717
5722
|
signal: "payments",
|
|
@@ -5761,7 +5766,7 @@ var payments = {
|
|
|
5761
5766
|
}, "read")
|
|
5762
5767
|
};
|
|
5763
5768
|
|
|
5764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
5765
5770
|
var PATTERNS_PER_CHAT = 3;
|
|
5766
5771
|
var DAY3 = 864e5;
|
|
5767
5772
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -5850,7 +5855,7 @@ var promises = {
|
|
|
5850
5855
|
}, "read")
|
|
5851
5856
|
};
|
|
5852
5857
|
|
|
5853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
5854
5859
|
var PER_SIDE = 5;
|
|
5855
5860
|
var WEEK = 7 * 864e5;
|
|
5856
5861
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -5881,7 +5886,7 @@ var questions2 = {
|
|
|
5881
5886
|
}, "attention")
|
|
5882
5887
|
};
|
|
5883
5888
|
|
|
5884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5889
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
5885
5890
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
5886
5891
|
const byId = /* @__PURE__ */ __name((id3) => chat.messages.find((one2) => one2.id === id3), "byId");
|
|
5887
5892
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId(message.replyToId));
|
|
@@ -5949,7 +5954,7 @@ var replyNext = {
|
|
|
5949
5954
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
5950
5955
|
};
|
|
5951
5956
|
|
|
5952
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5957
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
5953
5958
|
var escaped2 = /* @__PURE__ */ __name((text3) => text3.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
5954
5959
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped2(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
5955
5960
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -5995,7 +6000,7 @@ var topics = {
|
|
|
5995
6000
|
}, "read")
|
|
5996
6001
|
};
|
|
5997
6002
|
|
|
5998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6003
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
5999
6004
|
var STATUS_SIGNALS = [
|
|
6000
6005
|
replyNext,
|
|
6001
6006
|
questions2,
|
|
@@ -6007,7 +6012,7 @@ var STATUS_SIGNALS = [
|
|
|
6007
6012
|
children
|
|
6008
6013
|
];
|
|
6009
6014
|
|
|
6010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6015
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
6011
6016
|
var DAY4 = 864e5;
|
|
6012
6017
|
var STATUS_WINDOW = 300;
|
|
6013
6018
|
var STATUS_CHATS = 16;
|
|
@@ -6196,7 +6201,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
6196
6201
|
};
|
|
6197
6202
|
}, "projectStatus");
|
|
6198
6203
|
|
|
6199
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/project-activity.js
|
|
6200
6205
|
var TOP = 3;
|
|
6201
6206
|
var projectActivity = /* @__PURE__ */ __name(async (store, input) => {
|
|
6202
6207
|
const until = input.until ?? Date.now();
|
|
@@ -6258,7 +6263,7 @@ var projectActivity = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
6258
6263
|
}, "projectActivity");
|
|
6259
6264
|
var refOf = /* @__PURE__ */ __name((chat) => formatReference({ type: "chat", provider: chat.provider, account: chat.account, chat: chat.chat }), "refOf");
|
|
6260
6265
|
|
|
6261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6266
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
6262
6267
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
6263
6268
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
6264
6269
|
if (deps.offline)
|
|
@@ -6330,7 +6335,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
6330
6335
|
};
|
|
6331
6336
|
}, "accountService");
|
|
6332
6337
|
|
|
6333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
6334
6339
|
var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-time", zone) => {
|
|
6335
6340
|
const at2 = aheadOf(value, flag, now, {
|
|
6336
6341
|
...zone === void 0 ? {} : { zone },
|
|
@@ -6341,7 +6346,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
6341
6346
|
return new Date(at2 - at2 % MINUTE).toISOString();
|
|
6342
6347
|
}, "sendTime");
|
|
6343
6348
|
|
|
6344
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6349
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
6345
6350
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
|
|
6346
6351
|
try {
|
|
6347
6352
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -6588,7 +6593,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
6588
6593
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
6589
6594
|
}, "linkLimits");
|
|
6590
6595
|
|
|
6591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
6592
6597
|
var THREADS_PAGE = 500;
|
|
6593
6598
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
6594
6599
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -6663,7 +6668,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before = 0, after
|
|
|
6663
6668
|
return thread.slice(Math.max(0, at2 - before), at2 + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
6664
6669
|
}, "readMail");
|
|
6665
6670
|
|
|
6666
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6671
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
6667
6672
|
var PERSON_FIELDS = /* @__PURE__ */ new Set(["from", "to", "cc", "bcc"]);
|
|
6668
6673
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list"]);
|
|
6669
6674
|
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");
|
|
@@ -7036,7 +7041,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
7036
7041
|
};
|
|
7037
7042
|
}, "statsLucene");
|
|
7038
7043
|
|
|
7039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
7040
7045
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
7041
7046
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
7042
7047
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -7205,7 +7210,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
7205
7210
|
};
|
|
7206
7211
|
}, "readRankingSelection");
|
|
7207
7212
|
|
|
7208
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
7209
7214
|
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");
|
|
7210
7215
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
7211
7216
|
command,
|
|
@@ -7215,7 +7220,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
7215
7220
|
fieldsVersion: FIELD_VERSION
|
|
7216
7221
|
}), "searchRecordOf");
|
|
7217
7222
|
|
|
7218
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7223
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
7219
7224
|
function invalid2(message) {
|
|
7220
7225
|
throw new CliError("validation_error", message);
|
|
7221
7226
|
}
|
|
@@ -7509,10 +7514,10 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
7509
7514
|
}, "evidence")
|
|
7510
7515
|
}), "adminStatisticsService");
|
|
7511
7516
|
|
|
7512
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
7513
7518
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
7514
7519
|
|
|
7515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
7516
7521
|
var REQUEST_MS = 400;
|
|
7517
7522
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
7518
7523
|
const lowest = ranges[0];
|
|
@@ -7535,7 +7540,7 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
7535
7540
|
};
|
|
7536
7541
|
}, "estimateBackfill");
|
|
7537
7542
|
|
|
7538
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7543
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
7539
7544
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
7540
7545
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
7541
7546
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -7558,7 +7563,7 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
7558
7563
|
}
|
|
7559
7564
|
}, "patiently");
|
|
7560
7565
|
|
|
7561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7566
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
7562
7567
|
var RULES_VERSION = 6;
|
|
7563
7568
|
var LOOK_BACK = 50;
|
|
7564
7569
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -7656,7 +7661,7 @@ var latest = /* @__PURE__ */ __name((window2, matches) => {
|
|
|
7656
7661
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
7657
7662
|
var link2 = /* @__PURE__ */ __name((message, parentId, source, kind2, confidence, method) => ({ messageId: message.id, parentId, source, kind: kind2, confidence, method }), "link");
|
|
7658
7663
|
|
|
7659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
7660
7665
|
var CONTEXT_MESSAGES = 3;
|
|
7661
7666
|
var CONTEXT_MINUTES = 10;
|
|
7662
7667
|
var MAX_CHARS = 1200;
|
|
@@ -7680,12 +7685,12 @@ var context = {
|
|
|
7680
7685
|
}, "describe")
|
|
7681
7686
|
};
|
|
7682
7687
|
|
|
7683
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7688
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
7684
7689
|
var BUILT_INS = [context];
|
|
7685
7690
|
var providers = [...BUILT_INS];
|
|
7686
7691
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
7687
7692
|
|
|
7688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7693
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
7689
7694
|
var READ_PAGE = 5e3;
|
|
7690
7695
|
var CHAIN = 50;
|
|
7691
7696
|
var CONVERSATION_QUERY = {
|
|
@@ -7837,7 +7842,7 @@ var sized = /* @__PURE__ */ __name((size4) => {
|
|
|
7837
7842
|
return size4;
|
|
7838
7843
|
}, "sized");
|
|
7839
7844
|
|
|
7840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
7841
7846
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
7842
7847
|
var MESSAGE_PAGE = 5e3;
|
|
7843
7848
|
var PER_SESSION = 8;
|
|
@@ -7856,7 +7861,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
7856
7861
|
price: remote.price,
|
|
7857
7862
|
installed: true,
|
|
7858
7863
|
perBatch: PER_REQUEST * concurrency,
|
|
7859
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
7864
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-XM2CRZJY.js")).openRemote(remote, apiKey, {
|
|
7860
7865
|
concurrency,
|
|
7861
7866
|
env: deps.env ?? process.env
|
|
7862
7867
|
}), "open")
|
|
@@ -7876,7 +7881,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
7876
7881
|
if (!isTextModelInstalled(model, directory))
|
|
7877
7882
|
throw notDownloaded(model.id);
|
|
7878
7883
|
if (apart) {
|
|
7879
|
-
const { openProcess } = await import("./process-
|
|
7884
|
+
const { openProcess } = await import("./process-RFIII6TW.js");
|
|
7880
7885
|
return openProcess(model, directory, { threads: threads ?? defaultThreads() });
|
|
7881
7886
|
}
|
|
7882
7887
|
return openEmbedder(model, directory, { threads: threads ?? defaultThreads() });
|
|
@@ -8165,7 +8170,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
8165
8170
|
return { ...one2, state };
|
|
8166
8171
|
}, "shaped");
|
|
8167
8172
|
|
|
8168
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
8169
8174
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
8170
8175
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
8171
8176
|
for (const [key, value, maximum] of [
|
|
@@ -8218,7 +8223,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
8218
8223
|
}
|
|
8219
8224
|
}, "catchUpSearch");
|
|
8220
8225
|
|
|
8221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8226
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
8222
8227
|
var pushed = /* @__PURE__ */ __name((deps, what2) => {
|
|
8223
8228
|
if (deps.reads === "store") {
|
|
8224
8229
|
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`);
|
|
@@ -8601,11 +8606,18 @@ var savedReplies = /* @__PURE__ */ __name(async (connection, store, account, cha
|
|
|
8601
8606
|
return 0;
|
|
8602
8607
|
const startedAt = Date.now();
|
|
8603
8608
|
const point = Number((await store.sync.syncState(account, threadsKey(chatId)))?.value);
|
|
8604
|
-
const
|
|
8605
|
-
|
|
8606
|
-
|
|
8609
|
+
const answer = await connection.threadReplies(chatId, Number.isFinite(point) ? { since: point } : {});
|
|
8610
|
+
const batches = Symbol.asyncIterator in answer ? answer : [answer];
|
|
8611
|
+
let saved = 0;
|
|
8612
|
+
for await (const replies of batches) {
|
|
8613
|
+
if (replies.length > 0)
|
|
8614
|
+
await store.messages.saveMessages(account, chatId, replies, { via: "history", seenAt: startedAt });
|
|
8615
|
+
saved += replies.length;
|
|
8616
|
+
if (stop.aborted)
|
|
8617
|
+
return saved;
|
|
8618
|
+
}
|
|
8607
8619
|
await store.sync.setSyncState(account, threadsKey(chatId), String(startedAt));
|
|
8608
|
-
return
|
|
8620
|
+
return saved;
|
|
8609
8621
|
}, "savedReplies");
|
|
8610
8622
|
var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTime, fallback) => {
|
|
8611
8623
|
if (byTime)
|
|
@@ -8614,7 +8626,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
8614
8626
|
return message?.timestamp ?? fallback;
|
|
8615
8627
|
}, "timeOfKey");
|
|
8616
8628
|
|
|
8617
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8629
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
8618
8630
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
8619
8631
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
8620
8632
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -8751,16 +8763,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
8751
8763
|
return { plan, repair };
|
|
8752
8764
|
}, "gapsService");
|
|
8753
8765
|
|
|
8754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8766
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
8755
8767
|
import { createHash as createHash9 } from "node:crypto";
|
|
8756
8768
|
import { constants as constants2, mkdirSync } from "node:fs";
|
|
8757
8769
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
8758
8770
|
|
|
8759
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
8760
8772
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
8761
8773
|
import { basename as basename4, join as join9, relative as relative2, sep as sep2 } from "node:path";
|
|
8762
8774
|
|
|
8763
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8775
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
8764
8776
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
8765
8777
|
import { open as open4, stat } from "node:fs/promises";
|
|
8766
8778
|
import { basename as basename3, dirname as dirname3, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -8976,7 +8988,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path2, maxBytes, read) => {
|
|
|
8976
8988
|
return { name, source };
|
|
8977
8989
|
}, "readStickerFile");
|
|
8978
8990
|
|
|
8979
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
8980
8992
|
var MAX_FILES = 1e4;
|
|
8981
8993
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory, app, env) => {
|
|
8982
8994
|
if (refusedPlace(directory, app, env))
|
|
@@ -9045,7 +9057,7 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory, app,
|
|
|
9045
9057
|
return choices;
|
|
9046
9058
|
}, "directoryPaths");
|
|
9047
9059
|
|
|
9048
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9060
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
9049
9061
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
9050
9062
|
const limits = pdfPreviewLimits(env);
|
|
9051
9063
|
const cancelled = /* @__PURE__ */ __name(() => {
|
|
@@ -9122,7 +9134,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
9122
9134
|
}
|
|
9123
9135
|
}, "pdfPreview");
|
|
9124
9136
|
|
|
9125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
9126
9138
|
import { createHash as createHash8 } from "node:crypto";
|
|
9127
9139
|
import { constants } from "node:fs";
|
|
9128
9140
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -9230,7 +9242,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
9230
9242
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
9231
9243
|
}, "transferMime");
|
|
9232
9244
|
|
|
9233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9245
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
9234
9246
|
var ATTACHMENT_QUERY = {
|
|
9235
9247
|
entity: "attachment",
|
|
9236
9248
|
backend: "sql",
|
|
@@ -9701,7 +9713,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
9701
9713
|
}, "readPicture")
|
|
9702
9714
|
}), "attachmentsService");
|
|
9703
9715
|
|
|
9704
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9716
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
9705
9717
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
9706
9718
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref: ref2 }) => {
|
|
9707
9719
|
const store = await accountStore(deps);
|
|
@@ -9731,7 +9743,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
9731
9743
|
}, "list")
|
|
9732
9744
|
}), "chatDocumentsService");
|
|
9733
9745
|
|
|
9734
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
9735
9747
|
var observationDuration = /* @__PURE__ */ __name((text3, flag) => {
|
|
9736
9748
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text3);
|
|
9737
9749
|
const units = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -9818,7 +9830,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
9818
9830
|
}
|
|
9819
9831
|
}, "isRetentionSelection");
|
|
9820
9832
|
|
|
9821
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
9822
9834
|
var counterFields = /* @__PURE__ */ __name((text3 = "views,reactions,comments") => {
|
|
9823
9835
|
const fields2 = text3.split(",").map((one2) => one2.trim());
|
|
9824
9836
|
if (!fields2.length || fields2.some((one2) => !COUNTER_FIELDS.includes(one2)) || new Set(fields2).size !== fields2.length)
|
|
@@ -10025,7 +10037,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
10025
10037
|
};
|
|
10026
10038
|
}, "countersService");
|
|
10027
10039
|
|
|
10028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10040
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/search/respell.js
|
|
10029
10041
|
var LATIN = {
|
|
10030
10042
|
\u0430: "a",
|
|
10031
10043
|
\u0431: "b",
|
|
@@ -10080,7 +10092,7 @@ var respelled = /* @__PURE__ */ __name(async (vocabulary, words4) => {
|
|
|
10080
10092
|
return found;
|
|
10081
10093
|
}, "respelled");
|
|
10082
10094
|
|
|
10083
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10095
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/named-chat.js
|
|
10084
10096
|
var LEAST_USES = 3;
|
|
10085
10097
|
var SAMPLE = 50;
|
|
10086
10098
|
var CAPITALISED = 0.8;
|
|
@@ -10134,7 +10146,7 @@ var queryWords2 = /* @__PURE__ */ __name((query) => {
|
|
|
10134
10146
|
}, "queryWords");
|
|
10135
10147
|
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");
|
|
10136
10148
|
|
|
10137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10149
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
10138
10150
|
var SYNC_KEY = "messages.sync-first";
|
|
10139
10151
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
10140
10152
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -10266,7 +10278,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
10266
10278
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
10267
10279
|
}), "withRefresh");
|
|
10268
10280
|
|
|
10269
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
10270
10282
|
var CANDIDATES = 50;
|
|
10271
10283
|
var ACROSS_CHATS = 500;
|
|
10272
10284
|
var OWN_BLOCK = 5;
|
|
@@ -10278,6 +10290,7 @@ var SHOWN_CHARS = 200;
|
|
|
10278
10290
|
var SHOWN_HEAD = 80;
|
|
10279
10291
|
var CHUNK_READ = 60;
|
|
10280
10292
|
var REPLIES_READ = 60;
|
|
10293
|
+
var BIG_CONVERSATION = 50;
|
|
10281
10294
|
var RRF_K2 = 60;
|
|
10282
10295
|
var embeddingsSearch = /* @__PURE__ */ __name((deps) => {
|
|
10283
10296
|
const command = deps.messenger.app.command;
|
|
@@ -10428,9 +10441,10 @@ var embeddingsSearch = /* @__PURE__ */ __name((deps) => {
|
|
|
10428
10441
|
const meaning = texts.map(() => []);
|
|
10429
10442
|
const own = [];
|
|
10430
10443
|
const sources = words4.sources;
|
|
10444
|
+
let vectors = [];
|
|
10431
10445
|
if (target.installed && prepared.scopeAccounts.length && eligibility?.conversations.length !== 0) {
|
|
10432
10446
|
await withEmbedder(deps, target, choice, {}, async (embedder) => {
|
|
10433
|
-
|
|
10447
|
+
vectors = await embedder.embed(texts, "query");
|
|
10434
10448
|
for (const [at2, vector] of vectors.entries())
|
|
10435
10449
|
for (const one2 of prepared.scopeAccounts) {
|
|
10436
10450
|
const scope = scopeOf6(one2);
|
|
@@ -10505,7 +10519,23 @@ var embeddingsSearch = /* @__PURE__ */ __name((deps) => {
|
|
|
10505
10519
|
locator: formatLocator({ ...source2, chat: hit.summary.chatId, message: hit.chunk.firstMessageId })
|
|
10506
10520
|
};
|
|
10507
10521
|
}, "located");
|
|
10508
|
-
const
|
|
10522
|
+
const stemmed = [
|
|
10523
|
+
...chunkStems(query).map((stem) => ({ stem, weight: 2 })),
|
|
10524
|
+
...texts.slice(1).flatMap((text3) => chunkStems(text3).map((stem) => ({ stem, weight: 1 })))
|
|
10525
|
+
];
|
|
10526
|
+
const rechunked = /* @__PURE__ */ __name(async (hit) => {
|
|
10527
|
+
const source2 = sources.get(hit.summary.id);
|
|
10528
|
+
if (texts.length < 2 || hit.matchedIn || !vectors.length || !source2)
|
|
10529
|
+
return hit;
|
|
10530
|
+
const chunk = await store.conversations.bestChunk(source2, hit.summary.id, {
|
|
10531
|
+
model: target.key,
|
|
10532
|
+
vectors,
|
|
10533
|
+
stems: stemmed,
|
|
10534
|
+
over: BIG_CONVERSATION
|
|
10535
|
+
});
|
|
10536
|
+
return chunk ? { ...hit, chunk } : hit;
|
|
10537
|
+
}, "rechunked");
|
|
10538
|
+
const hits = (await Promise.all(fused(meaning.map((list3) => list3.map(({ hit }) => hit)), words4.hits, meaningFloor(target.key)).slice(0, limit).map(rechunked))).map(located);
|
|
10509
10539
|
const shown = new Set(hits.map((hit) => hit.summary.id));
|
|
10510
10540
|
const ownOf = /* @__PURE__ */ __name((keep2) => own.filter(keep2).sort((a, b) => b.score - a.score).slice(0, OWN_BLOCK).map((hit) => located({ ...hit, by: ["meaning"] })), "ownOf");
|
|
10511
10541
|
const ownHits = ownOf((hit) => !shown.has(hit.summary.id));
|
|
@@ -10653,6 +10683,9 @@ var fused = /* @__PURE__ */ __name((meaning, words4, minimumCosine) => {
|
|
|
10653
10683
|
});
|
|
10654
10684
|
return [...merged3.values()].sort((a, b) => b.fused - a.fused || (b.score ?? -2) - (a.score ?? -2)).map(({ fused: _, ...hit }) => hit);
|
|
10655
10685
|
}, "fused");
|
|
10686
|
+
var chunkStems = /* @__PURE__ */ __name((text3) => [
|
|
10687
|
+
...new Set((text3.toLowerCase().match(/[\p{L}\p{N}_]+/gu) ?? []).filter((word) => word.length >= 3).map((word) => word.slice(0, 5)))
|
|
10688
|
+
], "chunkStems");
|
|
10656
10689
|
var wordStems = /* @__PURE__ */ __name((text3) => [...new Set(queryWords2(text3).map((word) => word.slice(0, 5)))], "wordStems");
|
|
10657
10690
|
var shownLines = /* @__PURE__ */ __name((read, stems, ownFirst, asked, count2 = SHOWN_LINES) => {
|
|
10658
10691
|
const scored = read.map(({ text: text3, ...line2 }, at2) => {
|
|
@@ -10706,13 +10739,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
10706
10739
|
return mean2.map((value) => value / length);
|
|
10707
10740
|
}, "meanOf");
|
|
10708
10741
|
|
|
10709
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10742
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
10710
10743
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
10711
10744
|
...embeddingsMaintenance(deps),
|
|
10712
10745
|
...embeddingsSearch(deps)
|
|
10713
10746
|
}), "embeddingsService");
|
|
10714
10747
|
|
|
10715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10748
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
10716
10749
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
10717
10750
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
10718
10751
|
if (deps.offline)
|
|
@@ -10853,7 +10886,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
10853
10886
|
};
|
|
10854
10887
|
}, "foldersService");
|
|
10855
10888
|
|
|
10856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10889
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
10857
10890
|
var INBOX_CHATS = 20;
|
|
10858
10891
|
var REVIEW_DAYS = 3;
|
|
10859
10892
|
var UNANSWERED_HOURS = 24;
|
|
@@ -10861,7 +10894,7 @@ var reviewStart = /* @__PURE__ */ __name((now = Date.now()) => now - REVIEW_DAYS
|
|
|
10861
10894
|
var byRecency = /* @__PURE__ */ __name((chats) => chats.toSorted((a, b) => Date.parse(b.lastMessageAt ?? "") - Date.parse(a.lastMessageAt ?? "")), "byRecency");
|
|
10862
10895
|
var isQuiet = /* @__PURE__ */ __name((chat) => (chat.muted === true || chat.archived === true) && (chat.unreadMentions ?? 0) === 0 && chat.markedUnread !== true, "isQuiet");
|
|
10863
10896
|
var heard = /* @__PURE__ */ __name((chats, all) => all ? { heard: chats, quiet: 0 } : { heard: chats.filter((chat) => !isQuiet(chat)), quiet: chats.filter(isQuiet).length }, "heard");
|
|
10864
|
-
var everyChat = /* @__PURE__ */ __name((adapter) => adapter.chats({ offset: 0 }), "everyChat");
|
|
10897
|
+
var everyChat = /* @__PURE__ */ __name((adapter) => adapter.unreadChats ? adapter.unreadChats() : adapter.chats({ offset: 0 }), "everyChat");
|
|
10865
10898
|
var storeReader = /* @__PURE__ */ __name((deps, store, account) => ({
|
|
10866
10899
|
chats: /* @__PURE__ */ __name(async ({ limit, offset }) => {
|
|
10867
10900
|
const newest = new Map((await store.chats.chatStats(account)).map((one2) => [one2.chatId, one2.newestAt]));
|
|
@@ -11028,7 +11061,8 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
11028
11061
|
chats: capability(connection, "chats", "list chats"),
|
|
11029
11062
|
history: capability(connection, "history", "read a chat's history"),
|
|
11030
11063
|
resolve: /* @__PURE__ */ __name((reference) => connection.resolve(reference), "resolve"),
|
|
11031
|
-
...connection.admins ? { admins: capability(connection, "admins", "list a chat's admins") } : {}
|
|
11064
|
+
...connection.admins ? { admins: capability(connection, "admins", "list a chat's admins") } : {},
|
|
11065
|
+
...connection.unreadChats ? { unreadChats: capability(connection, "unreadChats", "count unread chats") } : {}
|
|
11032
11066
|
};
|
|
11033
11067
|
}, "reader");
|
|
11034
11068
|
return {
|
|
@@ -11061,7 +11095,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
11061
11095
|
};
|
|
11062
11096
|
}, "inboxService");
|
|
11063
11097
|
|
|
11064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11098
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
11065
11099
|
var REVIEW_COUNT = 500;
|
|
11066
11100
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
11067
11101
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -11140,7 +11174,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
11140
11174
|
};
|
|
11141
11175
|
}, "mentionsService");
|
|
11142
11176
|
|
|
11143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11177
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
11144
11178
|
var invalid3 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
11145
11179
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
11146
11180
|
const { text: text3, spans } = formatted2;
|
|
@@ -11200,7 +11234,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
11200
11234
|
};
|
|
11201
11235
|
}, "visibleFormattedText");
|
|
11202
11236
|
|
|
11203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11237
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
11204
11238
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind: kind2, name }) => ({
|
|
11205
11239
|
position,
|
|
11206
11240
|
kind: kind2,
|
|
@@ -11249,7 +11283,7 @@ var validatePermalink = /* @__PURE__ */ __name((link3) => {
|
|
|
11249
11283
|
return { url: link3.url, access: link3.access, reason: link3.reason };
|
|
11250
11284
|
}, "validatePermalink");
|
|
11251
11285
|
|
|
11252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
11253
11287
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
11254
11288
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
11255
11289
|
return `${seconds / 86400}d`;
|
|
@@ -11281,7 +11315,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
11281
11315
|
return seconds;
|
|
11282
11316
|
}, "pinDurationOf");
|
|
11283
11317
|
|
|
11284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11318
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
11285
11319
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
11286
11320
|
if (sendAs === void 0) {
|
|
11287
11321
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -11306,7 +11340,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
11306
11340
|
return sendAs;
|
|
11307
11341
|
}, "typedSendAs");
|
|
11308
11342
|
|
|
11309
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11343
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
11310
11344
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
11311
11345
|
var tokensOf = /* @__PURE__ */ __name((text3) => normalize(text3).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
11312
11346
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -11507,7 +11541,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
11507
11541
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
|
|
11508
11542
|
}, "signals");
|
|
11509
11543
|
|
|
11510
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11544
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
11511
11545
|
var MEANING_DEPTH = 100;
|
|
11512
11546
|
var RRF_K3 = 60;
|
|
11513
11547
|
var RERANK_DEPTH = 50;
|
|
@@ -11833,7 +11867,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
11833
11867
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
11834
11868
|
}, "mixedWithReranker");
|
|
11835
11869
|
|
|
11836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11870
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
11837
11871
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
11838
11872
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
11839
11873
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -12032,7 +12066,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
12032
12066
|
return result;
|
|
12033
12067
|
}, "readThreadContext");
|
|
12034
12068
|
|
|
12035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12069
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
12036
12070
|
var SEARCH_FILL_MS = 200;
|
|
12037
12071
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
12038
12072
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -12140,7 +12174,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
12140
12174
|
}, "accountOf");
|
|
12141
12175
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
12142
12176
|
|
|
12143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12177
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
12144
12178
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
12145
12179
|
try {
|
|
12146
12180
|
const text3 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -12219,7 +12253,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
12219
12253
|
}
|
|
12220
12254
|
}, "meaningLane");
|
|
12221
12255
|
|
|
12222
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12256
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
12223
12257
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
12224
12258
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
12225
12259
|
if (choice === "off")
|
|
@@ -12231,9 +12265,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
12231
12265
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
12232
12266
|
try {
|
|
12233
12267
|
const warm = deps.embedders;
|
|
12234
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
12268
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-RFIII6TW.js")).openRerankerProcess(model, directory, {
|
|
12235
12269
|
threads: defaultThreads()
|
|
12236
|
-
})) : await (await import("./rerank-
|
|
12270
|
+
})) : await (await import("./rerank-HR5J35V6.js")).openReranker(model, directory);
|
|
12237
12271
|
return {
|
|
12238
12272
|
model: model.id,
|
|
12239
12273
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -12253,14 +12287,14 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
12253
12287
|
};
|
|
12254
12288
|
}, "rerankLane");
|
|
12255
12289
|
|
|
12256
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12290
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/crm/file-fetch.js
|
|
12257
12291
|
var EXCHANGE_MS = 60 * 60 * 1e3;
|
|
12258
12292
|
|
|
12259
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12293
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/crm/files.js
|
|
12260
12294
|
var foldKey = /* @__PURE__ */ __name((key) => key.replaceAll("_", "").toLowerCase(), "foldKey");
|
|
12261
12295
|
var DOWNLOAD_KEYS = new Set(["DOWNLOAD_URL", "downloadUrl", "fileUrl", "CALL_RECORD_URL", "archiveLink", "publicUrl"].map(foldKey));
|
|
12262
12296
|
|
|
12263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12297
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
12264
12298
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
|
|
12265
12299
|
import { dirname as dirname4 } from "node:path";
|
|
12266
12300
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -12327,10 +12361,10 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
12327
12361
|
}
|
|
12328
12362
|
}, "lockTime");
|
|
12329
12363
|
|
|
12330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12364
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/crm/values.js
|
|
12331
12365
|
var isRaw = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isRaw");
|
|
12332
12366
|
|
|
12333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12367
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/crm/manifest/map.js
|
|
12334
12368
|
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");
|
|
12335
12369
|
var TIMES = { createdAt: "epoch", updatedAt: "epoch" };
|
|
12336
12370
|
var ITEM = {
|
|
@@ -12383,7 +12417,7 @@ var FIELDS = {
|
|
|
12383
12417
|
lead: ITEM
|
|
12384
12418
|
};
|
|
12385
12419
|
|
|
12386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/crm/manifest/manifest.js
|
|
12387
12421
|
var path = pipe(string(), regex(/^[^.\s]+(\.[^.\s]+)*$/, "a dotted path such as properties.name"));
|
|
12388
12422
|
var paths = pipe(array(path), minLength(1));
|
|
12389
12423
|
var crmRuleSchema = union([
|
|
@@ -12493,7 +12527,7 @@ var schema = strictObject({
|
|
|
12493
12527
|
writes: optional(record(kind, optional(write)))
|
|
12494
12528
|
});
|
|
12495
12529
|
|
|
12496
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
12530
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/names.js
|
|
12497
12531
|
var pascal = /* @__PURE__ */ __name((text3) => text3.split(/[^A-Za-z0-9]+/).filter(Boolean).map((word) => word[0]?.toUpperCase() + word.slice(1)).join(""), "pascal");
|
|
12498
12532
|
var GLOBALS = /* @__PURE__ */ new Set([
|
|
12499
12533
|
"Array",
|
|
@@ -12529,7 +12563,7 @@ var identifier = /* @__PURE__ */ __name((id3) => {
|
|
|
12529
12563
|
return GLOBALS.has(name) ? `Api${name}` : name;
|
|
12530
12564
|
}, "identifier");
|
|
12531
12565
|
|
|
12532
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
12566
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/sign-in.js
|
|
12533
12567
|
var BEARER = { in: "header", name: "authorization", value: /* @__PURE__ */ __name((token) => `Bearer ${token}`, "value") };
|
|
12534
12568
|
var signInPlace = /* @__PURE__ */ __name((scheme) => {
|
|
12535
12569
|
if (scheme.type === "apiKey") {
|
|
@@ -12562,7 +12596,7 @@ var signInRequirements = /* @__PURE__ */ __name((operation, document) => {
|
|
|
12562
12596
|
return requirements?.some((one2) => Object.keys(one2).length > 0) ? requirements : void 0;
|
|
12563
12597
|
}, "signInRequirements");
|
|
12564
12598
|
|
|
12565
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
12599
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/graphql.js
|
|
12566
12600
|
var graphqlDocument = /* @__PURE__ */ __name((binding, selection = binding.selection) => {
|
|
12567
12601
|
const variables = Object.entries(binding.variables);
|
|
12568
12602
|
const declared = variables.length ? `(${variables.map(([name, type]) => `$${name}: ${type}`).join(", ")})` : "";
|
|
@@ -12571,7 +12605,7 @@ var graphqlDocument = /* @__PURE__ */ __name((binding, selection = binding.selec
|
|
|
12571
12605
|
return `${binding.operation} ${binding.field[0]?.toUpperCase()}${binding.field.slice(1)}${declared} { ${binding.field}${passed}${inner} }`;
|
|
12572
12606
|
}, "graphqlDocument");
|
|
12573
12607
|
|
|
12574
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
12608
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/runtime.js
|
|
12575
12609
|
var isLossless = /* @__PURE__ */ __name((input) => typeof input === "object" && input !== null && input.isLosslessNumber === true && typeof input.value === "string", "isLossless");
|
|
12576
12610
|
var INTEGER = /^-?\d+$/;
|
|
12577
12611
|
var INT64_MIN = -(2n ** 63n);
|
|
@@ -12592,7 +12626,7 @@ var integer2 = /* @__PURE__ */ __name((range2 = {}) => pipe(custom((input) => {
|
|
|
12592
12626
|
}, "expected an integer within \xB12^53"), transform((input) => Number(digitsOf(input))), check((value) => inRange(value, range2), "integer out of range")), "integer");
|
|
12593
12627
|
var number3 = /* @__PURE__ */ __name((range2 = {}) => pipe(custom((input) => isLossless(input) ? Number.isFinite(Number(input.value)) : Number.isFinite(input), "expected a number"), transform((input) => isLossless(input) ? Number(input.value) : input), check((value) => inRange(value, range2), "number out of range")), "number");
|
|
12594
12628
|
|
|
12595
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
12629
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/openapi.js
|
|
12596
12630
|
var IGNORED = /* @__PURE__ */ new Set([
|
|
12597
12631
|
"readOnly",
|
|
12598
12632
|
"example",
|
|
@@ -12636,7 +12670,7 @@ var KNOWN = /* @__PURE__ */ new Set([
|
|
|
12636
12670
|
]);
|
|
12637
12671
|
var LARGEST_EXAMPLE = 8 * 1024;
|
|
12638
12672
|
|
|
12639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12673
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/cli/bot/api-input.js
|
|
12640
12674
|
import { readFileSync } from "node:fs";
|
|
12641
12675
|
|
|
12642
12676
|
// node_modules/.pnpm/lossless-json@4.3.3/node_modules/lossless-json/lib/esm/utils.js
|
|
@@ -13323,7 +13357,7 @@ function resolveSpace(space) {
|
|
|
13323
13357
|
}
|
|
13324
13358
|
__name(resolveSpace, "resolveSpace");
|
|
13325
13359
|
|
|
13326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13360
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/cli/bot/api-input.js
|
|
13327
13361
|
var RENAMED = { timeout: "poll-timeout" };
|
|
13328
13362
|
var apiFlagOf = /* @__PURE__ */ __name((name) => RENAMED[name] ?? name.replace(/_/g, "-").replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), "apiFlagOf");
|
|
13329
13363
|
var apiOptionKey = /* @__PURE__ */ __name((name) => apiFlagOf(name).replace(/-([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "apiOptionKey");
|
|
@@ -13462,7 +13496,7 @@ var flagValue = /* @__PURE__ */ __name((operation, name, raw, type) => {
|
|
|
13462
13496
|
return raw;
|
|
13463
13497
|
}, "flagValue");
|
|
13464
13498
|
|
|
13465
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13499
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/cli/service-api-manifest.js
|
|
13466
13500
|
var manifestBaseUrl = /* @__PURE__ */ __name((manifest, given, variables = {}) => {
|
|
13467
13501
|
const server = manifest.servers?.[0];
|
|
13468
13502
|
if (given === void 0 && !server)
|
|
@@ -13590,13 +13624,13 @@ var nextPage = /* @__PURE__ */ __name((pagination, input, answer, headers) => {
|
|
|
13590
13624
|
}
|
|
13591
13625
|
}, "nextPage");
|
|
13592
13626
|
|
|
13593
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13627
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/crm/manifest/source.js
|
|
13594
13628
|
var OVERLAP_MS = 10 * 6e4;
|
|
13595
13629
|
|
|
13596
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
13597
13631
|
import { randomUUID as randomUUID5 } from "node:crypto";
|
|
13598
13632
|
|
|
13599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
13600
13634
|
import { mkdirSync as mkdirSync3, readFileSync as readFileSync2, renameSync, writeFileSync as writeFileSync2 } from "node:fs";
|
|
13601
13635
|
import { dirname as dirname5, join as join10 } from "node:path";
|
|
13602
13636
|
var MOST_DEADLINES = 50;
|
|
@@ -13680,7 +13714,7 @@ var FloodMemory = class {
|
|
|
13680
13714
|
}
|
|
13681
13715
|
};
|
|
13682
13716
|
|
|
13683
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13717
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
13684
13718
|
import { appendFileSync, mkdirSync as mkdirSync4, readFileSync as readFileSync3 } from "node:fs";
|
|
13685
13719
|
import { dirname as dirname6, join as join11 } from "node:path";
|
|
13686
13720
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join11(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
@@ -13759,7 +13793,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
13759
13793
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
13760
13794
|
}, "withSendId");
|
|
13761
13795
|
|
|
13762
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13796
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
13763
13797
|
import { existsSync, readFileSync as readFileSync4, rmSync } from "node:fs";
|
|
13764
13798
|
import { join as join12 } from "node:path";
|
|
13765
13799
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join12(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -13871,7 +13905,7 @@ var RecipientList = class {
|
|
|
13871
13905
|
}
|
|
13872
13906
|
};
|
|
13873
13907
|
|
|
13874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13908
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
13875
13909
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
13876
13910
|
var countsTowardLimit = /* @__PURE__ */ __name(({ kind: kind2 = "message", action: action2, notify }) => kind2 === "message" || kind2 === "forward" || kind2 === "edit" || kind2 === "delete" || kind2 === "pin" && notify === true || action2 === "create" || action2 === "members.add" || action2 === "requests.accept" || action2 === "join" || action2 === "contact-import", "countsTowardLimit");
|
|
13877
13911
|
var weightOf = /* @__PURE__ */ __name(({ kind: kind2 = "message", action: action2, count: count2, people }) => kind2 === "delete" || kind2 === "message" && action2 === void 0 ? Math.max(1, count2 ?? 1) : action2 === "create" || action2 === "members.add" || action2 === "requests.accept" || action2 === "contact-import" ? Math.max(1, people ?? count2 ?? 1) : 1, "weightOf");
|
|
@@ -14059,7 +14093,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
14059
14093
|
}), "guardFor");
|
|
14060
14094
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
14061
14095
|
|
|
14062
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14096
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/sends/keyed-guard.js
|
|
14063
14097
|
var keyedGuard = /* @__PURE__ */ __name((build, ask2, levelOf, extra) => {
|
|
14064
14098
|
let question;
|
|
14065
14099
|
let answered = false;
|
|
@@ -14102,7 +14136,7 @@ var keyedGuard = /* @__PURE__ */ __name((build, ask2, levelOf, extra) => {
|
|
|
14102
14136
|
};
|
|
14103
14137
|
}, "keyedGuard");
|
|
14104
14138
|
|
|
14105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/cli/bot/api.js
|
|
14106
14140
|
var apiPathOf = /* @__PURE__ */ __name((operation) => {
|
|
14107
14141
|
const { command, group } = operation;
|
|
14108
14142
|
if (!group)
|
|
@@ -14215,7 +14249,7 @@ var generatedApiCommand = /* @__PURE__ */ __name((api) => {
|
|
|
14215
14249
|
return group;
|
|
14216
14250
|
}, "generatedApiCommand");
|
|
14217
14251
|
|
|
14218
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/cli/command-runs.js
|
|
14219
14253
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
14220
14254
|
var runSettings = /* @__PURE__ */ __name((flag, saved = {}) => {
|
|
14221
14255
|
const record2 = flag ?? saved.record ?? true;
|
|
@@ -14404,7 +14438,7 @@ var recordRuns = /* @__PURE__ */ __name((program, options) => {
|
|
|
14404
14438
|
};
|
|
14405
14439
|
}, "recordRuns");
|
|
14406
14440
|
|
|
14407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14441
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/cli/bot/api-http.js
|
|
14408
14442
|
var LARGEST_ANSWER = 16 * 1024 * 1024;
|
|
14409
14443
|
var segment = /* @__PURE__ */ __name((name, value) => {
|
|
14410
14444
|
if (value === void 0 || value === "" || value === "." || value === "..")
|
|
@@ -14634,7 +14668,7 @@ var refusal = /* @__PURE__ */ __name((service, operation, response, writes, inne
|
|
|
14634
14668
|
});
|
|
14635
14669
|
}, "refusal");
|
|
14636
14670
|
|
|
14637
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14671
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
|
|
14638
14672
|
import { openSync as openSync2 } from "node:fs";
|
|
14639
14673
|
import { createInterface as createInterface2 } from "node:readline";
|
|
14640
14674
|
import { ReadStream } from "node:tty";
|
|
@@ -14689,7 +14723,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
14689
14723
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
14690
14724
|
}, "terminalAsker");
|
|
14691
14725
|
|
|
14692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14726
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
14693
14727
|
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
14694
14728
|
"help",
|
|
14695
14729
|
"guide",
|
|
@@ -14777,7 +14811,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
14777
14811
|
throw new CliError("validation_error", `--permission ${key} names no command${now === void 0 ? "" : `: its command moved, so use ${now}`}`, { permission: key });
|
|
14778
14812
|
}, "refuseUnknownPermissionKeys");
|
|
14779
14813
|
|
|
14780
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14814
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/cli/service-api.js
|
|
14781
14815
|
var serviceApiOperations = /* @__PURE__ */ __name((manifest) => {
|
|
14782
14816
|
const reasonOf2 = /* @__PURE__ */ __name((operation) => operation.response?.sensitive ? "it returns a credential, which is never printed" : unsendableBody(operation), "reasonOf");
|
|
14783
14817
|
return {
|
|
@@ -15112,7 +15146,7 @@ var serviceApiWriter = /* @__PURE__ */ __name((options) => {
|
|
|
15112
15146
|
};
|
|
15113
15147
|
}, "serviceApiWriter");
|
|
15114
15148
|
|
|
15115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15149
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/cli/service-api-call.js
|
|
15116
15150
|
var hostsFetch = /* @__PURE__ */ __name((hosts, fetch2, credentialScope) => hostFetch({ hosts, ...fetch2 ? { fetch: fetch2 } : {}, ...credentialScope ? { credentialScope } : {} }), "hostsFetch");
|
|
15117
15151
|
var NO_COMMAND = new Command("source");
|
|
15118
15152
|
var sender = /* @__PURE__ */ __name((options, writes) => {
|
|
@@ -15150,7 +15184,7 @@ var serviceApiCall = /* @__PURE__ */ __name((options) => {
|
|
|
15150
15184
|
});
|
|
15151
15185
|
}, "serviceApiCall");
|
|
15152
15186
|
|
|
15153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/crm/writer.js
|
|
15154
15188
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
15155
15189
|
var CRM_WRITE_DEFAULTS = {
|
|
15156
15190
|
"deals.delete": "ask",
|
|
@@ -15158,7 +15192,7 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
15158
15192
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
15159
15193
|
};
|
|
15160
15194
|
|
|
15161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
15162
15196
|
import { readFileSync as readFileSync5, renameSync as renameSync2, writeFileSync as writeFileSync3 } from "node:fs";
|
|
15163
15197
|
import { join as join13 } from "node:path";
|
|
15164
15198
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -15253,7 +15287,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
|
|
|
15253
15287
|
await (options.sleep ?? ((ms) => new Promise((resolve6) => setTimeout(resolve6, ms))))(waitMs);
|
|
15254
15288
|
}, "waitForTurn");
|
|
15255
15289
|
|
|
15256
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15290
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/crm/viewer.js
|
|
15257
15291
|
var VIEWERS = "crm:viewers";
|
|
15258
15292
|
var viewersOf = /* @__PURE__ */ __name(async (store, account) => {
|
|
15259
15293
|
try {
|
|
@@ -15296,7 +15330,7 @@ var withReadableDeal = /* @__PURE__ */ __name(async (store, viewers, row) => {
|
|
|
15296
15330
|
return seen ? row : { ...row, deal: null };
|
|
15297
15331
|
}, "withReadableDeal");
|
|
15298
15332
|
|
|
15299
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/crm/sync.js
|
|
15300
15334
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
15301
15335
|
var GAPS = "crm:gaps";
|
|
15302
15336
|
var crmGapsOf = /* @__PURE__ */ __name(async (store, account) => {
|
|
@@ -15308,7 +15342,7 @@ var crmGapsOf = /* @__PURE__ */ __name(async (store, account) => {
|
|
|
15308
15342
|
}
|
|
15309
15343
|
}, "crmGapsOf");
|
|
15310
15344
|
|
|
15311
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/search/question-period.js
|
|
15312
15346
|
var DAY5 = 864e5;
|
|
15313
15347
|
var SPAN = { start: 0, end: 0 };
|
|
15314
15348
|
var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
|
|
@@ -15433,7 +15467,7 @@ var questionPeriod = /* @__PURE__ */ __name((text3, now, zone) => {
|
|
|
15433
15467
|
};
|
|
15434
15468
|
}, "questionPeriod");
|
|
15435
15469
|
|
|
15436
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15470
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
15437
15471
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
15438
15472
|
var iso = /* @__PURE__ */ __name((at2) => at2 === null ? null : new Date(at2).toISOString(), "iso");
|
|
15439
15473
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -15551,7 +15585,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
15551
15585
|
};
|
|
15552
15586
|
}, "searchEvents");
|
|
15553
15587
|
|
|
15554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15588
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
|
|
15555
15589
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
15556
15590
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
15557
15591
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -15581,7 +15615,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words4, anyWo
|
|
|
15581
15615
|
};
|
|
15582
15616
|
}, "searchBusiness");
|
|
15583
15617
|
|
|
15584
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15618
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
15585
15619
|
var MOST_HITS_PER_MEETING = 3;
|
|
15586
15620
|
var PAGE_ROWS = 200;
|
|
15587
15621
|
var MOST_PAGES2 = 25;
|
|
@@ -15809,7 +15843,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
|
|
|
15809
15843
|
foundBy: ["title"]
|
|
15810
15844
|
}), "titleItem");
|
|
15811
15845
|
|
|
15812
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15846
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/search-harder.js
|
|
15813
15847
|
var SECTION = "search_harder";
|
|
15814
15848
|
var HARDER_MODELS = {
|
|
15815
15849
|
anthropic: "claude-haiku-5-5",
|
|
@@ -16071,8 +16105,33 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
|
|
|
16071
16105
|
};
|
|
16072
16106
|
}, "reorderHarder");
|
|
16073
16107
|
|
|
16074
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16075
|
-
var
|
|
16108
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/tracker-meaning.js
|
|
16109
|
+
var embedTracker = /* @__PURE__ */ __name(async (store, options = {}) => {
|
|
16110
|
+
localModel(options.model, options.env, options.command);
|
|
16111
|
+
const until = stopsAt(options.deadline);
|
|
16112
|
+
await store.tracker.refreshChunks({ until: /* @__PURE__ */ __name(() => options.signal?.aborted === true || Date.now() >= until, "until") });
|
|
16113
|
+
return embedChunks(store, store.tracker, options);
|
|
16114
|
+
}, "embedTracker");
|
|
16115
|
+
var nearestTracker = /* @__PURE__ */ __name(async (store, words4, { limit, accounts, env, command, embedders }) => {
|
|
16116
|
+
const { model, directory, key } = localModel(await meaningModel(store, env), env, command);
|
|
16117
|
+
if (!await store.tracker.embedded(key, accounts))
|
|
16118
|
+
throw new CliError("not_found", `no issue, project or comment has vectors of ${model.id} yet, so only words were matched`);
|
|
16119
|
+
const [vector] = await withLocal(model, directory, void 0, (embedder) => embedder.embed([words4], "query"), embedders);
|
|
16120
|
+
const floor = meaningFloor(key);
|
|
16121
|
+
return (await store.tracker.nearest(key, vector, { limit, accounts })).filter(({ score }) => score > floor);
|
|
16122
|
+
}, "nearestTracker");
|
|
16123
|
+
|
|
16124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
16125
|
+
var RESOURCES_SEARCHED = [
|
|
16126
|
+
"messages",
|
|
16127
|
+
"mail",
|
|
16128
|
+
"notes",
|
|
16129
|
+
"events",
|
|
16130
|
+
"crm",
|
|
16131
|
+
"business",
|
|
16132
|
+
"meetings",
|
|
16133
|
+
"tracker"
|
|
16134
|
+
];
|
|
16076
16135
|
var refusal2 = /* @__PURE__ */ __name((error, text3) => {
|
|
16077
16136
|
const { reason, span } = error.details ?? {};
|
|
16078
16137
|
const why = typeof reason === "string" ? reason : void 0;
|
|
@@ -16110,14 +16169,21 @@ var strictWords = /* @__PURE__ */ __name((text3) => {
|
|
|
16110
16169
|
}, "strictWords");
|
|
16111
16170
|
var accountKeyOf = /* @__PURE__ */ __name(({ provider, account }) => `${provider}\0${account}`, "accountKeyOf");
|
|
16112
16171
|
var sourceScope = /* @__PURE__ */ __name(async (store, account, source, asked, messenger) => {
|
|
16113
|
-
const
|
|
16172
|
+
const context2 = await listContextOf(store, account, messenger.app);
|
|
16173
|
+
const entries = entriesOfList(source, context2);
|
|
16114
16174
|
const imported = asked.includes("business") ? new Set((await store.business.accounts()).map(accountKeyOf)) : /* @__PURE__ */ new Set();
|
|
16115
16175
|
const holdsBusiness = /* @__PURE__ */ __name((one2) => imported.has(accountKeyOf(one2)), "holdsBusiness");
|
|
16116
16176
|
const holdsDocuments = /* @__PURE__ */ __name((one2) => asked.includes("notes") && holdsKind(one2.provider, "documents"), "holdsDocuments");
|
|
16117
16177
|
const { skipped } = fitting(entries, asked.filter((one2) => one2 !== "business"), "search all", (kind2) => `--only leaves ${kind2} out`, (one2) => holdsBusiness(one2) || holdsDocuments(one2));
|
|
16118
16178
|
const holds2 = /* @__PURE__ */ __name((resource, one2) => resource === "business" ? holdsBusiness(one2) : listedHolds(one2, resource) || resource === "notes" && holdsDocuments(one2), "holds");
|
|
16179
|
+
const asNotes = /* @__PURE__ */ __name((one2) => {
|
|
16180
|
+
if (!isDocumentAccountProvider(one2.provider))
|
|
16181
|
+
return one2;
|
|
16182
|
+
const stored = context2.held.find(({ provider, account: account2 }) => provider === one2.provider && account2 === one2.account);
|
|
16183
|
+
return stored ? { provider: "notes", account: String(stored.id) } : one2;
|
|
16184
|
+
}, "asNotes");
|
|
16119
16185
|
const named3 = /* @__PURE__ */ __name((resource) => [
|
|
16120
|
-
...new Map(entries.flatMap(({ accounts }) => accounts).filter((one2) => holds2(resource, one2)).map(({ provider, account: account2 }) => [`${provider}\0${account2}`, { provider, account: account2 }])).values()
|
|
16186
|
+
...new Map(entries.flatMap(({ accounts }) => accounts).filter((one2) => holds2(resource, one2)).map((one2) => resource === "notes" ? asNotes(one2) : one2).map(({ provider, account: account2 }) => [`${provider}\0${account2}`, { provider, account: account2 }])).values()
|
|
16121
16187
|
], "named");
|
|
16122
16188
|
const scope = Object.fromEntries(asked.map((resource) => [resource, named3(resource)]));
|
|
16123
16189
|
const only = asked.filter((resource) => scope[resource]?.length);
|
|
@@ -16133,6 +16199,25 @@ var copyViewers = /* @__PURE__ */ __name(async (store) => {
|
|
|
16133
16199
|
}
|
|
16134
16200
|
return viewers;
|
|
16135
16201
|
}, "copyViewers");
|
|
16202
|
+
var TRACKER_HIT_KINDS = { issue: "issue", project: "project", comment: "issue_comment" };
|
|
16203
|
+
var trackerAccounts = /* @__PURE__ */ __name(async (store) => (await store.accounts.accounts()).filter(({ provider }) => holdsKind(provider, "tracker")), "trackerAccounts");
|
|
16204
|
+
var trackerTitle = /* @__PURE__ */ __name(({ kind: kind2, record: record2 }) => {
|
|
16205
|
+
const title = trackerTitleOf(kind2, record2);
|
|
16206
|
+
const key = kind2 === "issue" ? record2.key : void 0;
|
|
16207
|
+
return key ? `${key} ${title}` : title;
|
|
16208
|
+
}, "trackerTitle");
|
|
16209
|
+
var trackerMeaningWords = /* @__PURE__ */ __name((text3) => {
|
|
16210
|
+
try {
|
|
16211
|
+
const { root } = parseLucene(text3, SEARCH_QUERY);
|
|
16212
|
+
const nodes = root.kind === "boolean" ? root.clauses.map(({ node }) => node) : [root];
|
|
16213
|
+
if (!nodes.every((node) => node.kind === "predicate" && node.field === "text"))
|
|
16214
|
+
return void 0;
|
|
16215
|
+
return meaningWords(root) || void 0;
|
|
16216
|
+
} catch {
|
|
16217
|
+
return void 0;
|
|
16218
|
+
}
|
|
16219
|
+
}, "trackerMeaningWords");
|
|
16220
|
+
var trackerExcerpt = /* @__PURE__ */ __name(({ kind: kind2, record: record2 }, query) => excerpt([trackerTitleOf(kind2, record2), trackerBodyOf(kind2, record2)].filter(Boolean).join("\n"), query), "trackerExcerpt");
|
|
16136
16221
|
var crmAccounts = /* @__PURE__ */ __name(async (store) => (await store.accounts.accounts()).filter(({ provider }) => holdsKind(provider, "crm")), "crmAccounts");
|
|
16137
16222
|
var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger = {}, searchMessages = (query) => searchStore(store, account, query, messenger), meaning) => {
|
|
16138
16223
|
if (!asked.text.trim())
|
|
@@ -16154,6 +16239,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
|
|
|
16154
16239
|
let hasMore = false;
|
|
16155
16240
|
let notes;
|
|
16156
16241
|
let events;
|
|
16242
|
+
let tracker2;
|
|
16157
16243
|
const by = {};
|
|
16158
16244
|
let server;
|
|
16159
16245
|
const discover = !request.exact && questionLookup(request.text) !== void 0;
|
|
@@ -16371,6 +16457,81 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
|
|
|
16371
16457
|
const read = chosen2 ?? [...await crmAccounts(store), { provider: "crm", account: INTERNAL_NOTES }];
|
|
16372
16458
|
for (const { provider, account: account2 } of read)
|
|
16373
16459
|
accounts.push({ resource, provider, account: account2 });
|
|
16460
|
+
} else if (resource === "tracker") {
|
|
16461
|
+
const read = scope?.tracker ?? await trackerAccounts(store);
|
|
16462
|
+
if (!read.length)
|
|
16463
|
+
continue;
|
|
16464
|
+
const { words: words4, anyWord } = titleWords2(request.text, "issues, projects and comments are found by the words and meaning of their title and text only");
|
|
16465
|
+
const found = await store.tracker.find({
|
|
16466
|
+
words: words4,
|
|
16467
|
+
anyWord: anyWord || discover,
|
|
16468
|
+
...request.exact ? { exact: true } : {},
|
|
16469
|
+
kinds: ["issue", "project", "comment"],
|
|
16470
|
+
limit: Math.min(depth, 500),
|
|
16471
|
+
accounts: read
|
|
16472
|
+
});
|
|
16473
|
+
hasMore ||= found.hasMore;
|
|
16474
|
+
const hitOf = /* @__PURE__ */ __name((at2, item2, text3, foundBy) => ({
|
|
16475
|
+
kind: TRACKER_HIT_KINDS[item2.kind],
|
|
16476
|
+
// Two sign-ins see the same issue under the same id, so the account keeps their hits apart.
|
|
16477
|
+
ref: `tracker:${at2.provider}/${at2.account}/${item2.kind}/${item2.record.externalId}`,
|
|
16478
|
+
provider: at2.provider,
|
|
16479
|
+
account: at2.account,
|
|
16480
|
+
...item2.record.url ? { url: item2.record.url } : {},
|
|
16481
|
+
title: trackerTitle(item2),
|
|
16482
|
+
timestamp: new Date(item2.record.updatedAt ?? item2.syncedAt).toISOString(),
|
|
16483
|
+
text: text3,
|
|
16484
|
+
foundBy
|
|
16485
|
+
}), "hitOf");
|
|
16486
|
+
const byWords = found.items.map(({ account: at2, item: item2, excerpt: text3 }) => hitOf(at2, item2, text3, ["words"]));
|
|
16487
|
+
const plain = trackerMeaningWords(discover ? questionText(request.text) : request.text);
|
|
16488
|
+
let near2;
|
|
16489
|
+
let meaningSkipped;
|
|
16490
|
+
if (request.exact)
|
|
16491
|
+
meaningSkipped = "--exact searches words as written";
|
|
16492
|
+
else if (plain === void 0)
|
|
16493
|
+
meaningSkipped = "the query names a title, which meaning cannot follow";
|
|
16494
|
+
else
|
|
16495
|
+
try {
|
|
16496
|
+
near2 = await nearestTracker(store, plain, {
|
|
16497
|
+
limit: Math.min(depth, 500),
|
|
16498
|
+
accounts: read,
|
|
16499
|
+
embedders,
|
|
16500
|
+
...command === void 0 ? {} : { command },
|
|
16501
|
+
...request.env === void 0 ? {} : { env: request.env }
|
|
16502
|
+
});
|
|
16503
|
+
} catch (error) {
|
|
16504
|
+
if (!(error instanceof CliError && error.code === "not_found"))
|
|
16505
|
+
throw error;
|
|
16506
|
+
meaningSkipped = error.message;
|
|
16507
|
+
}
|
|
16508
|
+
tracker2 = {
|
|
16509
|
+
by: near2 === void 0 ? "words" : "words and meaning",
|
|
16510
|
+
...meaningSkipped === void 0 ? {} : { meaningSkipped }
|
|
16511
|
+
};
|
|
16512
|
+
if (near2 === void 0)
|
|
16513
|
+
lists.push(byWords);
|
|
16514
|
+
else {
|
|
16515
|
+
const fused2 = /* @__PURE__ */ new Map();
|
|
16516
|
+
byWords.forEach((item2, rank) => {
|
|
16517
|
+
fused2.set(item2.ref, { item: item2, score: 1 / (RRF_K + rank + 1) });
|
|
16518
|
+
});
|
|
16519
|
+
near2.forEach(({ account: at2, item: item2, score }, rank) => {
|
|
16520
|
+
const hit = hitOf(at2, item2, trackerExcerpt(item2, request.text), ["meaning"]);
|
|
16521
|
+
cosines.set(hit.ref, score);
|
|
16522
|
+
const held = fused2.get(hit.ref);
|
|
16523
|
+
if (held)
|
|
16524
|
+
held.item.foundBy = ["words", "meaning"];
|
|
16525
|
+
const vote = 1 / (RRF_K + rank + 1);
|
|
16526
|
+
if (held && discover)
|
|
16527
|
+
held.score = Math.max(held.score, vote);
|
|
16528
|
+
else
|
|
16529
|
+
fused2.set(hit.ref, { item: held?.item ?? hit, score: (held?.score ?? 0) + vote });
|
|
16530
|
+
});
|
|
16531
|
+
lists.push([...fused2.values()].sort((a, b) => b.score - a.score).map(({ item: item2 }) => item2));
|
|
16532
|
+
}
|
|
16533
|
+
for (const { provider, account: account2 } of read)
|
|
16534
|
+
accounts.push({ resource, provider, account: account2 });
|
|
16374
16535
|
} else if (resource === "business") {
|
|
16375
16536
|
const { words: words4, anyWord } = titleWords2(request.text, BUSINESS_WORDS_ONLY);
|
|
16376
16537
|
const found = await searchBusiness(store, {
|
|
@@ -16451,6 +16612,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
|
|
|
16451
16612
|
skipped,
|
|
16452
16613
|
...notes === void 0 ? {} : { notes },
|
|
16453
16614
|
...events === void 0 ? {} : { events },
|
|
16615
|
+
...tracker2 === void 0 ? {} : { tracker: tracker2 },
|
|
16454
16616
|
...by.messages === void 0 ? {} : { messages: by.messages },
|
|
16455
16617
|
...by.mail === void 0 ? {} : { mail: by.mail },
|
|
16456
16618
|
...server === void 0 ? {} : { server },
|
|
@@ -16516,10 +16678,14 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
16516
16678
|
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);
|
|
16517
16679
|
}, "insidePeriodFirst");
|
|
16518
16680
|
|
|
16519
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
16520
16682
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
16521
16683
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
16522
16684
|
var DEFAULT_BACKEND = "both";
|
|
16685
|
+
var keysOf = /* @__PURE__ */ __name((error) => {
|
|
16686
|
+
const { reason } = error.details;
|
|
16687
|
+
return { code: error.code, ...typeof reason === "string" ? { reason } : {} };
|
|
16688
|
+
}, "keysOf");
|
|
16523
16689
|
var sourceKey = /* @__PURE__ */ __name((chatId, id3) => JSON.stringify([chatId, id3]), "sourceKey");
|
|
16524
16690
|
var merge = /* @__PURE__ */ __name((one2, other) => {
|
|
16525
16691
|
if (one2.chat !== void 0 && other.chat !== void 0 && one2.chat !== other.chat)
|
|
@@ -16644,10 +16810,14 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
16644
16810
|
const pending = new Set(calls);
|
|
16645
16811
|
const found = [];
|
|
16646
16812
|
let open7 = true;
|
|
16647
|
-
const fail4 = /* @__PURE__ */ __name((branch, reason) => {
|
|
16813
|
+
const fail4 = /* @__PURE__ */ __name((branch, reason, error) => {
|
|
16648
16814
|
pending.delete(branch);
|
|
16649
16815
|
report.complete = false;
|
|
16650
|
-
report.failed.push({
|
|
16816
|
+
report.failed.push({
|
|
16817
|
+
chat: branch.chat ?? null,
|
|
16818
|
+
reason,
|
|
16819
|
+
...error instanceof CliError ? { error: keysOf(error) } : {}
|
|
16820
|
+
});
|
|
16651
16821
|
}, "fail");
|
|
16652
16822
|
const ask2 = /* @__PURE__ */ __name(async (adapter) => {
|
|
16653
16823
|
const search = capability(adapter, "searchMessages", "search messages on its server");
|
|
@@ -16666,7 +16836,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
16666
16836
|
} catch (error) {
|
|
16667
16837
|
if (!open7)
|
|
16668
16838
|
return;
|
|
16669
|
-
fail4(branch, error instanceof CliError && error.code === "rate_limited" ? "rate_limited" : "search_failed");
|
|
16839
|
+
fail4(branch, error instanceof CliError && error.code === "rate_limited" ? "rate_limited" : "search_failed", error);
|
|
16670
16840
|
}
|
|
16671
16841
|
}));
|
|
16672
16842
|
}, "ask");
|
|
@@ -16707,7 +16877,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
16707
16877
|
return { report, sources };
|
|
16708
16878
|
}, "searchServer");
|
|
16709
16879
|
|
|
16710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16880
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
16711
16881
|
var DELETE_AT_ONCE = 10;
|
|
16712
16882
|
var atOnce = /* @__PURE__ */ __name((ids) => {
|
|
16713
16883
|
if (ids.length > DELETE_AT_ONCE)
|
|
@@ -17207,7 +17377,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
17207
17377
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first]} needs a --photo or --file`);
|
|
17208
17378
|
}, "checkMediaOptions");
|
|
17209
17379
|
|
|
17210
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17380
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
17211
17381
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
17212
17382
|
var RULES2 = {
|
|
17213
17383
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -17222,7 +17392,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
17222
17392
|
return fields2.length ? [{ tag, score: fields2.length / 3, fields: fields2 }] : [];
|
|
17223
17393
|
}), "classifyChannel");
|
|
17224
17394
|
|
|
17225
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17395
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
17226
17396
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
17227
17397
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
17228
17398
|
const store = await deps.store();
|
|
@@ -17308,7 +17478,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
17308
17478
|
};
|
|
17309
17479
|
}, "metadataService");
|
|
17310
17480
|
|
|
17311
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17481
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
17312
17482
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
17313
17483
|
var LINK2 = /https?:\/\/\S+/i;
|
|
17314
17484
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -17496,7 +17666,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
17496
17666
|
}, "nextPoint");
|
|
17497
17667
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
17498
17668
|
|
|
17499
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17669
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
17500
17670
|
import { existsSync as existsSync2, readdirSync, readFileSync as readFileSync6 } from "node:fs";
|
|
17501
17671
|
import { join as join14 } from "node:path";
|
|
17502
17672
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -17648,7 +17818,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
17648
17818
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
17649
17819
|
}, "assign");
|
|
17650
17820
|
|
|
17651
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17821
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
17652
17822
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
17653
17823
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
17654
17824
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -17685,7 +17855,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
17685
17855
|
return { chatId, rows, notes };
|
|
17686
17856
|
}, "moderateWith");
|
|
17687
17857
|
|
|
17688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
17689
17859
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
17690
17860
|
const file2 = /* @__PURE__ */ __name(() => {
|
|
17691
17861
|
const env = deps.env ?? process.env;
|
|
@@ -17770,7 +17940,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
17770
17940
|
}, "removePerson")
|
|
17771
17941
|
}), "moderatorOf");
|
|
17772
17942
|
|
|
17773
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17943
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
|
|
17774
17944
|
var SCAN = 1e3;
|
|
17775
17945
|
var SNIPPET = 200;
|
|
17776
17946
|
var SNIPPET_ROWS = 6;
|
|
@@ -17835,7 +18005,7 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
17835
18005
|
return { items, total: newest.length, hasMore: cut || newest.length > limit };
|
|
17836
18006
|
}, "personMeetings");
|
|
17837
18007
|
|
|
17838
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
17839
18009
|
var CONTEXT_MESSAGES2 = 10;
|
|
17840
18010
|
var CONTEXT_BYTES = 64 * 1024;
|
|
17841
18011
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -18141,10 +18311,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
18141
18311
|
};
|
|
18142
18312
|
}, "personMessages");
|
|
18143
18313
|
|
|
18144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
18145
18315
|
import { createHash as createHash10 } from "node:crypto";
|
|
18146
18316
|
|
|
18147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18317
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
18148
18318
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
18149
18319
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
18150
18320
|
const parsed = parseMeetingReference(reference);
|
|
@@ -18192,7 +18362,7 @@ var resolveMeetingReference = /* @__PURE__ */ __name(async (store, accountId, re
|
|
|
18192
18362
|
};
|
|
18193
18363
|
}, "resolveMeetingReference");
|
|
18194
18364
|
|
|
18195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18365
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
18196
18366
|
var hash = /* @__PURE__ */ __name((value) => createHash10("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
18197
18367
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
18198
18368
|
if (signal?.aborted)
|
|
@@ -18391,7 +18561,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
18391
18561
|
return { ...packet, fingerprint: hash(packet) };
|
|
18392
18562
|
}, "readMeetingEvidence");
|
|
18393
18563
|
|
|
18394
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18564
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
18395
18565
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
18396
18566
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
18397
18567
|
const requestedAccounts = options.accountIds;
|
|
@@ -18490,7 +18660,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
18490
18660
|
};
|
|
18491
18661
|
}, "personMeetingContext");
|
|
18492
18662
|
|
|
18493
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18663
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
18494
18664
|
var PREPARE_BYTES = 96 * 1024;
|
|
18495
18665
|
var MEETINGS = 5;
|
|
18496
18666
|
var CUES = 3;
|
|
@@ -18613,7 +18783,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
18613
18783
|
}
|
|
18614
18784
|
}, "meetingsOf");
|
|
18615
18785
|
|
|
18616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18786
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
18617
18787
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
18618
18788
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
18619
18789
|
const held = await storeIfOpen(deps);
|
|
@@ -18683,7 +18853,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id3, title,
|
|
|
18683
18853
|
complete: false
|
|
18684
18854
|
})), "quiet");
|
|
18685
18855
|
|
|
18686
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18856
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
18687
18857
|
var TIMELINE_ITEMS = 50;
|
|
18688
18858
|
var TIMELINE_MAX = 500;
|
|
18689
18859
|
var SCOPES = ["personal", "work"];
|
|
@@ -18745,7 +18915,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
18745
18915
|
};
|
|
18746
18916
|
}, "personTimeline");
|
|
18747
18917
|
|
|
18748
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18918
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
18749
18919
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
18750
18920
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
18751
18921
|
const held = await storeIfOpen(deps);
|
|
@@ -19010,7 +19180,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
19010
19180
|
return rest;
|
|
19011
19181
|
}, "withoutPhone");
|
|
19012
19182
|
|
|
19013
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19183
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
19014
19184
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
19015
19185
|
id: note.id,
|
|
19016
19186
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -19054,7 +19224,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
19054
19224
|
};
|
|
19055
19225
|
}, "privatePeopleService");
|
|
19056
19226
|
|
|
19057
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
19058
19228
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
19059
19229
|
total: 0,
|
|
19060
19230
|
population: 0,
|
|
@@ -19310,7 +19480,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
19310
19480
|
}, "evidence")
|
|
19311
19481
|
}), "rankingsService");
|
|
19312
19482
|
|
|
19313
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19483
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
19314
19484
|
var FIELDS2 = ["date", "chat", "kind", "muted"];
|
|
19315
19485
|
var WAITING_TAIL = 100;
|
|
19316
19486
|
var plainOnly = /* @__PURE__ */ __name((text3, command) => {
|
|
@@ -19444,7 +19614,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
19444
19614
|
};
|
|
19445
19615
|
}, "replyStatsService");
|
|
19446
19616
|
|
|
19447
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19617
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
19448
19618
|
var savedSearchItem = /* @__PURE__ */ __name((one2) => ({
|
|
19449
19619
|
id: one2.id,
|
|
19450
19620
|
name: one2.name,
|
|
@@ -19570,7 +19740,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
19570
19740
|
};
|
|
19571
19741
|
}, "searchesService");
|
|
19572
19742
|
|
|
19573
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19743
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
19574
19744
|
var TAGGING_QUERY = {
|
|
19575
19745
|
entity: "tagging",
|
|
19576
19746
|
backend: "sql",
|
|
@@ -19654,7 +19824,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
19654
19824
|
};
|
|
19655
19825
|
}, "tagsService");
|
|
19656
19826
|
|
|
19657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19827
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
19658
19828
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
19659
19829
|
var PERIOD_FIELD = "created";
|
|
19660
19830
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -19785,7 +19955,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
19785
19955
|
}));
|
|
19786
19956
|
}, "meetingNames");
|
|
19787
19957
|
|
|
19788
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
19789
19959
|
var TASK_QUERY = {
|
|
19790
19960
|
entity: "task",
|
|
19791
19961
|
backend: "sql",
|
|
@@ -20285,7 +20455,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
20285
20455
|
};
|
|
20286
20456
|
}, "taskView");
|
|
20287
20457
|
|
|
20288
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20458
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
20289
20459
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
20290
20460
|
const set2 = [closed, pinned, hidden].filter((one2) => one2 !== void 0).length;
|
|
20291
20461
|
if (title !== void 0 || icon !== void 0 || set2 !== 1)
|
|
@@ -20484,7 +20654,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
20484
20654
|
};
|
|
20485
20655
|
}, "topicsService");
|
|
20486
20656
|
|
|
20487
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/business-context.js
|
|
20488
20658
|
var SECTION_LIMIT = 20;
|
|
20489
20659
|
var STORE_PAGE = 500;
|
|
20490
20660
|
var sectionOf = /* @__PURE__ */ __name((all, limit, next, { more = false, total = all.length, newest = false } = {}) => {
|
|
@@ -20615,7 +20785,7 @@ var coverageFor = /* @__PURE__ */ __name(async (store, base, scope) => {
|
|
|
20615
20785
|
}, "coverageFor");
|
|
20616
20786
|
var newestFirst2 = /* @__PURE__ */ __name((a, b) => (b.at ?? "").localeCompare(a.at ?? "") || a.ref.localeCompare(b.ref), "newestFirst");
|
|
20617
20787
|
|
|
20618
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20788
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/call-stats.js
|
|
20619
20789
|
var callsOf = /* @__PURE__ */ __name((stored) => stored.map(callOf).filter((one2) => one2 !== null), "callsOf");
|
|
20620
20790
|
var readCallStats = /* @__PURE__ */ __name(async (store, request) => {
|
|
20621
20791
|
const { timeZone, callbackWithinMs, missedLimit, ...selection } = request;
|
|
@@ -20646,7 +20816,7 @@ var readCallStats = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
20646
20816
|
};
|
|
20647
20817
|
}, "readCallStats");
|
|
20648
20818
|
|
|
20649
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20819
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/communications.js
|
|
20650
20820
|
var MAIL_ROWS = 500;
|
|
20651
20821
|
var EVENT_ROWS2 = 1e3;
|
|
20652
20822
|
var RECORDED_ROWS = 100;
|
|
@@ -20832,7 +21002,7 @@ var personHistory = /* @__PURE__ */ __name(async (store, reference, { accounts,
|
|
|
20832
21002
|
};
|
|
20833
21003
|
}, "personHistory");
|
|
20834
21004
|
|
|
20835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/money-context.js
|
|
20836
21006
|
var invoiceLine = /* @__PURE__ */ __name((invoice, linkedBy) => ({
|
|
20837
21007
|
ref: invoice.ref,
|
|
20838
21008
|
title: invoice.title,
|
|
@@ -20904,7 +21074,7 @@ var moneyOf = /* @__PURE__ */ __name((rows, limit, next, complete) => {
|
|
|
20904
21074
|
};
|
|
20905
21075
|
}, "moneyOf");
|
|
20906
21076
|
|
|
20907
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21077
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/organization-context.js
|
|
20908
21078
|
var dealLine = /* @__PURE__ */ __name((deal) => ({
|
|
20909
21079
|
ref: deal.ref,
|
|
20910
21080
|
kind: deal.kind,
|
|
@@ -21056,7 +21226,7 @@ var organizationContext = /* @__PURE__ */ __name(async (store, reference, { acco
|
|
|
21056
21226
|
};
|
|
21057
21227
|
}, "organizationContext");
|
|
21058
21228
|
|
|
21059
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21229
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/deal-context.js
|
|
21060
21230
|
var DAY6 = 864e5;
|
|
21061
21231
|
var dealContext = /* @__PURE__ */ __name(async (store, reference, { accounts, limit = SECTION_LIMIT, now = Date.now(), deniedKinds = [], viewing = [] } = {}) => {
|
|
21062
21232
|
const scope = scopeOf4(accounts, deniedKinds, viewing);
|
|
@@ -21185,7 +21355,7 @@ var dealBrief = /* @__PURE__ */ __name((context2) => ({
|
|
|
21185
21355
|
notRead: context2.coverage.notRead
|
|
21186
21356
|
}), "dealBrief");
|
|
21187
21357
|
|
|
21188
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21358
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
21189
21359
|
import { createHash as createHash11, randomUUID as randomUUID6 } from "node:crypto";
|
|
21190
21360
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
21191
21361
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -21259,7 +21429,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind: kind2, source, page,
|
|
|
21259
21429
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
21260
21430
|
}, "prepareEvidencePacket");
|
|
21261
21431
|
|
|
21262
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
21263
21433
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before }, messenger = {}) => {
|
|
21264
21434
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
21265
21435
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -21279,7 +21449,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
21279
21449
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
21280
21450
|
}, "readEvidencePacket");
|
|
21281
21451
|
|
|
21282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21452
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/meeting-links.js
|
|
21283
21453
|
var readMeetingLinks = /* @__PURE__ */ __name(async (store, request) => {
|
|
21284
21454
|
const { maxMessages, url, ...selecting } = request;
|
|
21285
21455
|
const { input, selection } = await resolveMeetingSelection(store, selecting);
|
|
@@ -21318,7 +21488,7 @@ var readMeetingLinks = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
21318
21488
|
};
|
|
21319
21489
|
}, "readMeetingLinks");
|
|
21320
21490
|
|
|
21321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21491
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/meeting-meaning.js
|
|
21322
21492
|
var bounded = /* @__PURE__ */ __name((value, maximum) => value === void 0 || Number.isSafeInteger(value) && value > 0 && value <= maximum, "bounded");
|
|
21323
21493
|
var validateMeetingModel = /* @__PURE__ */ __name((options) => {
|
|
21324
21494
|
if (typeof options.model !== "string" || !options.model.trim() || options.model.length > 1e3)
|
|
@@ -21349,9 +21519,9 @@ var validateMeetingEmbeddings = /* @__PURE__ */ __name((options) => {
|
|
|
21349
21519
|
}, "validateMeetingEmbeddings");
|
|
21350
21520
|
var loadApi = /* @__PURE__ */ __name(async () => {
|
|
21351
21521
|
const [model, combined, semantic] = await Promise.all([
|
|
21352
|
-
import("./meeting-model-
|
|
21353
|
-
import("./meeting-combined-
|
|
21354
|
-
import("./meeting-semantic-
|
|
21522
|
+
import("./meeting-model-K7UQ7TO5.js"),
|
|
21523
|
+
import("./meeting-combined-NWWZCYN4.js"),
|
|
21524
|
+
import("./meeting-semantic-Z7FAOSLQ.js")
|
|
21355
21525
|
]);
|
|
21356
21526
|
return { ...model, ...combined, ...semantic };
|
|
21357
21527
|
}, "loadApi");
|
|
@@ -21449,10 +21619,10 @@ var meetingMeaning = /* @__PURE__ */ __name((store, accountId, options = {}) =>
|
|
|
21449
21619
|
};
|
|
21450
21620
|
}, "meetingMeaning");
|
|
21451
21621
|
|
|
21452
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21622
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidates.js
|
|
21453
21623
|
import { createHash as createHash12 } from "node:crypto";
|
|
21454
21624
|
|
|
21455
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-validation.js
|
|
21456
21626
|
function invalid5(field, response = false) {
|
|
21457
21627
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid project candidate ${field}`);
|
|
21458
21628
|
}
|
|
@@ -21571,7 +21741,7 @@ var candidateCatalog = /* @__PURE__ */ __name((catalog, limits) => {
|
|
|
21571
21741
|
}
|
|
21572
21742
|
}, "candidateCatalog");
|
|
21573
21743
|
|
|
21574
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21744
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidates.js
|
|
21575
21745
|
var createMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
21576
21746
|
const fixed = snapshotMeetingScope(scope);
|
|
21577
21747
|
if (!Number.isSafeInteger(accountId) || accountId < 1 || typeof ports?.vocabulary?.vocabulary !== "function")
|
|
@@ -21624,7 +21794,7 @@ var createMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, account
|
|
|
21624
21794
|
};
|
|
21625
21795
|
}, "createMeetingProjectCandidateReader");
|
|
21626
21796
|
|
|
21627
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21797
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
21628
21798
|
import { createHash as createHash13 } from "node:crypto";
|
|
21629
21799
|
var scopeKeys = [
|
|
21630
21800
|
"accountId",
|
|
@@ -21759,7 +21929,7 @@ var readMeetingProjectDiscovery = /* @__PURE__ */ __name(async (ports, projectNa
|
|
|
21759
21929
|
};
|
|
21760
21930
|
}, "readMeetingProjectDiscovery");
|
|
21761
21931
|
|
|
21762
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/meeting-review.js
|
|
21763
21933
|
var readMeetingReview = /* @__PURE__ */ __name(async (store, request) => {
|
|
21764
21934
|
const { limit, ...selecting } = request;
|
|
21765
21935
|
const { input, selection } = await resolveMeetingSelection(store, selecting);
|
|
@@ -21767,7 +21937,7 @@ var readMeetingReview = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
21767
21937
|
return { ...review, selection };
|
|
21768
21938
|
}, "readMeetingReview");
|
|
21769
21939
|
|
|
21770
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21940
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/meeting-searches.js
|
|
21771
21941
|
var KIND = ["meetings-search"];
|
|
21772
21942
|
var meetingSearchesService = /* @__PURE__ */ __name((searches) => {
|
|
21773
21943
|
const found = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -21797,7 +21967,7 @@ var meetingSearchesService = /* @__PURE__ */ __name((searches) => {
|
|
|
21797
21967
|
};
|
|
21798
21968
|
}, "meetingSearchesService");
|
|
21799
21969
|
|
|
21800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21970
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/meeting-stats.js
|
|
21801
21971
|
var readMeetingStats = /* @__PURE__ */ __name(async (store, request) => {
|
|
21802
21972
|
const { timeZone, maxRows, ...selecting } = request;
|
|
21803
21973
|
const { input, selection } = await resolveMeetingSelection(store, selecting);
|
|
@@ -21820,7 +21990,7 @@ var readMeetingCounts = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
21820
21990
|
return { ...counts, selection };
|
|
21821
21991
|
}, "readMeetingCounts");
|
|
21822
21992
|
|
|
21823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21993
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/meeting-tags.js
|
|
21824
21994
|
var keyOf7 = /* @__PURE__ */ __name(async (store, accountId) => {
|
|
21825
21995
|
const owner = await store.meetings.account(accountId);
|
|
21826
21996
|
if (!owner)
|
|
@@ -21894,7 +22064,7 @@ var meetingTags = /* @__PURE__ */ __name((store, accountId) => {
|
|
|
21894
22064
|
};
|
|
21895
22065
|
}, "meetingTags");
|
|
21896
22066
|
|
|
21897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22067
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/person-business.js
|
|
21898
22068
|
var personBusiness = /* @__PURE__ */ __name(async (store, uid, { limit = SECTION_LIMIT, scope = scopeOf4(void 0) } = {}) => {
|
|
21899
22069
|
const ref2 = `person:${uid}`;
|
|
21900
22070
|
const { edges, full } = await edgesOf(store, ref2, scope);
|
|
@@ -21952,7 +22122,7 @@ var canonicalPersonContext = /* @__PURE__ */ __name(async (store, reference, { a
|
|
|
21952
22122
|
};
|
|
21953
22123
|
}, "canonicalPersonContext");
|
|
21954
22124
|
|
|
21955
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
21956
22126
|
import { createHash as createHash14 } from "node:crypto";
|
|
21957
22127
|
import { existsSync as existsSync3 } from "node:fs";
|
|
21958
22128
|
var useTextModel = /* @__PURE__ */ __name(async (id3, { env, command }) => {
|
|
@@ -22083,7 +22253,7 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id3, payload, { env, fetc
|
|
|
22083
22253
|
return { ...checked2.output, custom: true };
|
|
22084
22254
|
}, "addCustomTextModel");
|
|
22085
22255
|
|
|
22086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22256
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/account-groups.js
|
|
22087
22257
|
var SCOPES2 = ["personal", "work"];
|
|
22088
22258
|
var scopeOf5 = /* @__PURE__ */ __name((scope) => {
|
|
22089
22259
|
if (!SCOPES2.includes(scope))
|
|
@@ -22205,7 +22375,7 @@ var setChatScope = /* @__PURE__ */ __name(async (at2, change) => {
|
|
|
22205
22375
|
return { ...key, chat: change.chat, own: scope, scope: effective };
|
|
22206
22376
|
}, "setChatScope");
|
|
22207
22377
|
|
|
22208
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22378
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/group-guard.js
|
|
22209
22379
|
var refOf2 = /* @__PURE__ */ __name((item2) => typeof item2 === "string" ? item2 : typeof item2 === "object" && item2 !== null && "ref" in item2 ? item2.ref : void 0, "refOf");
|
|
22210
22380
|
var groupGuardOf = /* @__PURE__ */ __name(async (store, app, env) => {
|
|
22211
22381
|
const group = groupLockOf(app, env);
|
|
@@ -22316,14 +22486,14 @@ var lockedRegistry = /* @__PURE__ */ __name((registry, guard) => {
|
|
|
22316
22486
|
};
|
|
22317
22487
|
}, "lockedRegistry");
|
|
22318
22488
|
|
|
22319
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22489
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/calendar/sync.js
|
|
22320
22490
|
var DAY7 = 864e5;
|
|
22321
22491
|
var SLOTS_EVERY = 7 * DAY7;
|
|
22322
22492
|
|
|
22323
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22493
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/calendar/feeds.js
|
|
22324
22494
|
var FEED_LIMITS = { maxBytes: 10 * 1024 * 1024, timeoutMs: 3e4, redirects: 5 };
|
|
22325
22495
|
|
|
22326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22496
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/calendar/reads.js
|
|
22327
22497
|
var eventIdOf = /* @__PURE__ */ __name((reference) => {
|
|
22328
22498
|
const text3 = String(reference).replace(/^event:/u, "");
|
|
22329
22499
|
if (!/^[1-9]\d*$/u.test(text3) || !Number.isSafeInteger(Number(text3)))
|
|
@@ -22393,11 +22563,11 @@ var EVENTS_QUERY = {
|
|
|
22393
22563
|
} : field)
|
|
22394
22564
|
};
|
|
22395
22565
|
|
|
22396
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22566
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/calendar/recurrence.js
|
|
22397
22567
|
var RULE_LINE = /^RRULE:/iu;
|
|
22398
22568
|
var ruleLine = /* @__PURE__ */ __name((lines) => lines.find((line2) => RULE_LINE.test(line2)), "ruleLine");
|
|
22399
22569
|
|
|
22400
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/calendar/writer.js
|
|
22401
22571
|
var EVENTS_NOTIFY_KEY = "events.notify";
|
|
22402
22572
|
var EVENTS_DELETE_SERIES_KEY = "events.delete.series";
|
|
22403
22573
|
var EVENTS_REMIND_HOOK_KEY = "events.remind.hook";
|
|
@@ -22415,7 +22585,7 @@ var CALENDAR_WRITE_DEFAULTS = {
|
|
|
22415
22585
|
[EVENTS_REMIND_HOOK_KEY]: "deny"
|
|
22416
22586
|
};
|
|
22417
22587
|
|
|
22418
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22588
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/listings.js
|
|
22419
22589
|
var DOCUMENT_TEXT_CANDIDATES = 2e3;
|
|
22420
22590
|
var webUrl = /* @__PURE__ */ __name((url) => url !== null && /^https:\/\//iu.test(url) ? url : null, "webUrl");
|
|
22421
22591
|
var iso4 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
@@ -22688,7 +22858,7 @@ var showMeetingEntry = /* @__PURE__ */ __name(async (store, reference, lines) =>
|
|
|
22688
22858
|
};
|
|
22689
22859
|
}, "showMeetingEntry");
|
|
22690
22860
|
|
|
22691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/meeting-hit-context.js
|
|
22692
22862
|
import { createHash as createHash15 } from "node:crypto";
|
|
22693
22863
|
var contextCue = /* @__PURE__ */ __name((cue) => ({
|
|
22694
22864
|
ref: cue.reference,
|
|
@@ -22806,7 +22976,7 @@ var readMeetingHitContext = /* @__PURE__ */ __name(async (store, accountId, refe
|
|
|
22806
22976
|
return { ...packet, fingerprint: createHash15("sha256").update(JSON.stringify(packet)).digest("hex") };
|
|
22807
22977
|
}, "readMeetingHitContext");
|
|
22808
22978
|
|
|
22809
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/meeting-passage-format.js
|
|
22810
22980
|
var visible = /* @__PURE__ */ __name((text3) => text3.replace(/[\p{Cc}\p{Cf}]/gu, (value) => value === "\n" || value === " " ? value : `\\u{${value.codePointAt(0)?.toString(16)}}`), "visible");
|
|
22811
22981
|
var markdown = /* @__PURE__ */ __name((text3) => visible(text3).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replace(/[\\`*_[\]#|~]/g, "\\$&"), "markdown");
|
|
22812
22982
|
var timestamp = /* @__PURE__ */ __name((ms) => {
|
|
@@ -22883,7 +23053,7 @@ var readMeetingPassage = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
22883
23053
|
return { packet, content };
|
|
22884
23054
|
}, "readMeetingPassage");
|
|
22885
23055
|
|
|
22886
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23056
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/meeting-batch.js
|
|
22887
23057
|
var createMeetingBatchReader = /* @__PURE__ */ __name((store, accountId) => {
|
|
22888
23058
|
if (!Number.isSafeInteger(accountId) || accountId < 1)
|
|
22889
23059
|
throw new CliError("validation_error", "choose a positive meeting account");
|
|
@@ -22897,7 +23067,7 @@ var createMeetingBatchReader = /* @__PURE__ */ __name((store, accountId) => {
|
|
|
22897
23067
|
};
|
|
22898
23068
|
}, "createMeetingBatchReader");
|
|
22899
23069
|
|
|
22900
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/meeting-context.js
|
|
22901
23071
|
var meetingReferences = /* @__PURE__ */ __name((values) => values.map((value) => formatMeetingReference(parseMeetingReference(value))), "meetingReferences");
|
|
22902
23072
|
var checkCancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
22903
23073
|
if (!signal?.aborted)
|
|
@@ -23004,7 +23174,7 @@ var createMeetingContextService = /* @__PURE__ */ __name(async (store, input, op
|
|
|
23004
23174
|
};
|
|
23005
23175
|
}, "createMeetingContextService");
|
|
23006
23176
|
|
|
23007
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23177
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
23008
23178
|
var communicationFields = {
|
|
23009
23179
|
sources: pipe(array(strictObject({
|
|
23010
23180
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -23036,7 +23206,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
23036
23206
|
return { ...input, after, before };
|
|
23037
23207
|
}, "communicationRequest");
|
|
23038
23208
|
|
|
23039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
23040
23210
|
var MEETING_PREPARATION_LIMITS = {
|
|
23041
23211
|
meetings: { min: 1, max: 20, default: 5 },
|
|
23042
23212
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -23122,7 +23292,7 @@ var preparationRequest = /* @__PURE__ */ __name((accountId, externalId, original
|
|
|
23122
23292
|
return { ...input, history };
|
|
23123
23293
|
}, "preparationRequest");
|
|
23124
23294
|
|
|
23125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23295
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/meeting-communications-preparation.js
|
|
23126
23296
|
var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal) => {
|
|
23127
23297
|
const section = {
|
|
23128
23298
|
readUsage: plan.reader.usage(),
|
|
@@ -23227,7 +23397,7 @@ var appendPreparationCommunications = /* @__PURE__ */ __name((result, read) => {
|
|
|
23227
23397
|
result.knowledge.coverage.otherSources = "see-communications";
|
|
23228
23398
|
}, "appendPreparationCommunications");
|
|
23229
23399
|
|
|
23230
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23400
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
23231
23401
|
var captureCommunicationSelections = /* @__PURE__ */ __name((port) => {
|
|
23232
23402
|
if (port === void 0)
|
|
23233
23403
|
return void 0;
|
|
@@ -23332,7 +23502,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
23332
23502
|
}
|
|
23333
23503
|
}, "validatePreparationCommunications");
|
|
23334
23504
|
|
|
23335
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23505
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/meeting-knowledge-preparation.js
|
|
23336
23506
|
var invalid7 = /* @__PURE__ */ __name(() => {
|
|
23337
23507
|
throw new CliError("invalid_response", "Preparation knowledge returned an invalid selection");
|
|
23338
23508
|
}, "invalid");
|
|
@@ -23401,7 +23571,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
23401
23571
|
}
|
|
23402
23572
|
}, "appendKnowledgePreparation");
|
|
23403
23573
|
|
|
23404
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23574
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/meeting-notes-preparation.js
|
|
23405
23575
|
var invalid8 = /* @__PURE__ */ __name(() => {
|
|
23406
23576
|
throw new CliError("invalid_response", "Preparation notes returned an invalid selection");
|
|
23407
23577
|
}, "invalid");
|
|
@@ -23475,7 +23645,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
23475
23645
|
}
|
|
23476
23646
|
}, "appendNotesPreparation");
|
|
23477
23647
|
|
|
23478
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/meeting-project-preparation.js
|
|
23479
23649
|
var PAGE_LIMIT = 4;
|
|
23480
23650
|
var size2 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
23481
23651
|
var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, input) => {
|
|
@@ -23525,7 +23695,7 @@ var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, inpu
|
|
|
23525
23695
|
}
|
|
23526
23696
|
}, "appendProjectPreparation");
|
|
23527
23697
|
|
|
23528
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23698
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/meeting-related-preparation.js
|
|
23529
23699
|
var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, input) => {
|
|
23530
23700
|
if (!result.series || !result.items.length || result.coverage.outputLimited)
|
|
23531
23701
|
return;
|
|
@@ -23597,7 +23767,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
23597
23767
|
}
|
|
23598
23768
|
}, "appendRelatedPreparation");
|
|
23599
23769
|
|
|
23600
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23770
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/meeting-preparation.js
|
|
23601
23771
|
var size3 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
23602
23772
|
var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
23603
23773
|
const fixed = snapshotMeetingScope(scope);
|
|
@@ -23735,7 +23905,7 @@ var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId,
|
|
|
23735
23905
|
};
|
|
23736
23906
|
}, "createMeetingPreparationService");
|
|
23737
23907
|
|
|
23738
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23908
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/meeting-task-proposal.js
|
|
23739
23909
|
import { createHash as createHash16 } from "node:crypto";
|
|
23740
23910
|
var proposeMeetingTask = /* @__PURE__ */ __name(async (store, accountId, reference, kind2) => {
|
|
23741
23911
|
if (!TASK_KINDS.includes(kind2))
|
|
@@ -23755,7 +23925,7 @@ var proposeMeetingTask = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
23755
23925
|
};
|
|
23756
23926
|
}, "proposeMeetingTask");
|
|
23757
23927
|
|
|
23758
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/meeting-tasks.js
|
|
23759
23929
|
var accountSnapshot = /* @__PURE__ */ __name((key) => {
|
|
23760
23930
|
const { provider, account, scope } = key;
|
|
23761
23931
|
if (!provider.trim() || provider.includes(":") || !account.trim())
|
|
@@ -23818,7 +23988,7 @@ var readMeetingTask = /* @__PURE__ */ __name(async (store, account, id3) => {
|
|
|
23818
23988
|
}
|
|
23819
23989
|
}, "readMeetingTask");
|
|
23820
23990
|
|
|
23821
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
23822
23992
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
23823
23993
|
const installer = ports.installer();
|
|
23824
23994
|
const argv = updateCommand(installer, packageName);
|
|
@@ -23883,7 +24053,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
23883
24053
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
23884
24054
|
}, "dayAfter");
|
|
23885
24055
|
|
|
23886
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24056
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/proposal-tasks.js
|
|
23887
24057
|
var proposalSource = /* @__PURE__ */ __name((id3) => `proposed-action:${id3}`, "proposalSource");
|
|
23888
24058
|
var approveAsTask = /* @__PURE__ */ __name(async (store, id3, by) => {
|
|
23889
24059
|
const proposal = await store.proposedActions.get(id3);
|
|
@@ -23906,7 +24076,7 @@ var approveAsTask = /* @__PURE__ */ __name(async (store, id3, by) => {
|
|
|
23906
24076
|
return { proposal: await store.proposedActions.approve(proposal.id, by, { task: task2.id }), task: task2 };
|
|
23907
24077
|
}, "approveAsTask");
|
|
23908
24078
|
|
|
23909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24079
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/proposals/ids.js
|
|
23910
24080
|
var MAX_IDS = 500;
|
|
23911
24081
|
var refuse = /* @__PURE__ */ __name((message) => {
|
|
23912
24082
|
throw new CliError("validation_error", message, { reason: "proposal.ids" });
|
|
@@ -23948,7 +24118,7 @@ var parseProposalIds = /* @__PURE__ */ __name((text3) => {
|
|
|
23948
24118
|
return ids;
|
|
23949
24119
|
}, "parseProposalIds");
|
|
23950
24120
|
|
|
23951
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24121
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/shared.js
|
|
23952
24122
|
var proposerOfAuthor = /* @__PURE__ */ __name((author) => {
|
|
23953
24123
|
if (author.type === "person")
|
|
23954
24124
|
return { type: "person", id: author.id };
|
|
@@ -24021,7 +24191,7 @@ var reviewedKind = /* @__PURE__ */ __name((spec) => ({
|
|
|
24021
24191
|
}, "decide")
|
|
24022
24192
|
}), "reviewedKind");
|
|
24023
24193
|
|
|
24024
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/findings.js
|
|
24025
24195
|
var FACT_SUMMARIES = {
|
|
24026
24196
|
fact: /* @__PURE__ */ __name((finding) => finding.statement, "fact"),
|
|
24027
24197
|
task: /* @__PURE__ */ __name((finding) => finding.title, "task"),
|
|
@@ -24096,7 +24266,7 @@ var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
24096
24266
|
};
|
|
24097
24267
|
}, "findingsKind");
|
|
24098
24268
|
|
|
24099
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24269
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/organization.js
|
|
24100
24270
|
var ORGANIZATION_ADD_KIND = "organization_add";
|
|
24101
24271
|
var ORGANIZATION_RENAME_KIND = "organization_rename";
|
|
24102
24272
|
var rowOf3 = /* @__PURE__ */ __name((action2) => {
|
|
@@ -24152,7 +24322,7 @@ var organizationKind = /* @__PURE__ */ __name((store) => ({
|
|
|
24152
24322
|
}, "decide")
|
|
24153
24323
|
}), "organizationKind");
|
|
24154
24324
|
|
|
24155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24325
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/action.js
|
|
24156
24326
|
var rowOf4 = /* @__PURE__ */ __name((action2) => ({
|
|
24157
24327
|
id: action2.id,
|
|
24158
24328
|
kind: "action",
|
|
@@ -24192,7 +24362,7 @@ var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
|
24192
24362
|
}, "decide")
|
|
24193
24363
|
}), "actionKind");
|
|
24194
24364
|
|
|
24195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24365
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/contracts.js
|
|
24196
24366
|
var contractKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
24197
24367
|
type: "contract",
|
|
24198
24368
|
list: /* @__PURE__ */ __name((options) => store.contracts.list(options), "list"),
|
|
@@ -24201,7 +24371,7 @@ var contractKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
24201
24371
|
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")
|
|
24202
24372
|
}), "contractKind");
|
|
24203
24373
|
|
|
24204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/fact.js
|
|
24205
24375
|
var STATUS = {
|
|
24206
24376
|
proposed: "proposed",
|
|
24207
24377
|
accepted: "confirmed",
|
|
@@ -24244,7 +24414,7 @@ var factKind = /* @__PURE__ */ __name((store) => ({
|
|
|
24244
24414
|
}, "decide")
|
|
24245
24415
|
}), "factKind");
|
|
24246
24416
|
|
|
24247
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/finance.js
|
|
24248
24418
|
var invoiceKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
24249
24419
|
type: "invoice",
|
|
24250
24420
|
list: /* @__PURE__ */ __name((options) => store.finance.invoices(options), "list"),
|
|
@@ -24260,7 +24430,7 @@ var paymentKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
24260
24430
|
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")
|
|
24261
24431
|
}), "paymentKind");
|
|
24262
24432
|
|
|
24263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/identity-link.js
|
|
24264
24434
|
var rowOf6 = /* @__PURE__ */ __name((action2) => {
|
|
24265
24435
|
const payload = action2.payload;
|
|
24266
24436
|
const [from, to] = payload.persons;
|
|
@@ -24307,7 +24477,7 @@ var identityLinkKind = /* @__PURE__ */ __name((store) => ({
|
|
|
24307
24477
|
}, "decide")
|
|
24308
24478
|
}), "identityLinkKind");
|
|
24309
24479
|
|
|
24310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24480
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/identity-split.js
|
|
24311
24481
|
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");
|
|
24312
24482
|
var dropped = /* @__PURE__ */ __name((action2) => action2.status !== "proposed" && action2.status !== "rejected" && typeof action2.result?.person !== "string", "dropped");
|
|
24313
24483
|
var rowOf7 = /* @__PURE__ */ __name((store) => async (action2) => {
|
|
@@ -24362,7 +24532,7 @@ var identitySplitKind = /* @__PURE__ */ __name((store) => ({
|
|
|
24362
24532
|
}, "decide")
|
|
24363
24533
|
}), "identitySplitKind");
|
|
24364
24534
|
|
|
24365
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/key-document.js
|
|
24366
24536
|
var linkRow = /* @__PURE__ */ __name((link3) => ({
|
|
24367
24537
|
id: `key:${link3.id}`,
|
|
24368
24538
|
kind: "key_document",
|
|
@@ -24430,7 +24600,7 @@ var keyDocumentKind = /* @__PURE__ */ __name((store) => {
|
|
|
24430
24600
|
};
|
|
24431
24601
|
}, "keyDocumentKind");
|
|
24432
24602
|
|
|
24433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/mail-findings.js
|
|
24434
24604
|
var words3 = /* @__PURE__ */ __name((...parts) => parts.filter(Boolean).join(" "), "words");
|
|
24435
24605
|
var summaryOf2 = /* @__PURE__ */ __name((finding) => {
|
|
24436
24606
|
switch (finding.kind) {
|
|
@@ -24521,7 +24691,7 @@ var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
24521
24691
|
};
|
|
24522
24692
|
}, "mailFindingsKind");
|
|
24523
24693
|
|
|
24524
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24694
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/meeting-findings.js
|
|
24525
24695
|
var rowOf9 = /* @__PURE__ */ __name((action2, batch) => {
|
|
24526
24696
|
const findings = batch.input.findings;
|
|
24527
24697
|
const projects = [...new Set(findings.map((one2) => "project" in one2 ? one2.project : void 0))];
|
|
@@ -24588,7 +24758,7 @@ var meetingFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
24588
24758
|
};
|
|
24589
24759
|
}, "meetingFindingsKind");
|
|
24590
24760
|
|
|
24591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24761
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/memory.js
|
|
24592
24762
|
var STATUS2 = {
|
|
24593
24763
|
proposed: "proposed",
|
|
24594
24764
|
confirmed: "confirmed",
|
|
@@ -24629,7 +24799,7 @@ var memoryKind = /* @__PURE__ */ __name((store) => ({
|
|
|
24629
24799
|
}, "decide")
|
|
24630
24800
|
}), "memoryKind");
|
|
24631
24801
|
|
|
24632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24802
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/orders.js
|
|
24633
24803
|
var orderKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
24634
24804
|
type: "order",
|
|
24635
24805
|
list: /* @__PURE__ */ __name((options) => store.orders.list(options), "list"),
|
|
@@ -24638,7 +24808,7 @@ var orderKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
24638
24808
|
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")
|
|
24639
24809
|
}), "orderKind");
|
|
24640
24810
|
|
|
24641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship.js
|
|
24642
24812
|
var linkRow2 = /* @__PURE__ */ __name((link3) => ({
|
|
24643
24813
|
id: `link:${link3.id}`,
|
|
24644
24814
|
kind: "relationship",
|
|
@@ -24713,7 +24883,7 @@ var relationshipKind = /* @__PURE__ */ __name((store) => {
|
|
|
24713
24883
|
};
|
|
24714
24884
|
}, "relationshipKind");
|
|
24715
24885
|
|
|
24716
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24886
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship-update.js
|
|
24717
24887
|
var KIND2 = "relationship_update";
|
|
24718
24888
|
var summaryOf3 = /* @__PURE__ */ __name(({ changes }) => Object.entries(changes).map(([field, value]) => `${field} ${value ?? "cleared"}`).join(", "), "summaryOf");
|
|
24719
24889
|
var rowOf11 = /* @__PURE__ */ __name((action2) => {
|
|
@@ -24763,7 +24933,7 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
24763
24933
|
}, "decide")
|
|
24764
24934
|
}), "relationshipUpdateKind");
|
|
24765
24935
|
|
|
24766
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/source-review.js
|
|
24767
24937
|
var rowOf12 = /* @__PURE__ */ __name((action2) => {
|
|
24768
24938
|
const payload = action2.payload;
|
|
24769
24939
|
const sources = payload.sources.flatMap((source) => source.ref ?? []);
|
|
@@ -24806,7 +24976,7 @@ var sourceReviewKind = /* @__PURE__ */ __name((store) => ({
|
|
|
24806
24976
|
}, "decide")
|
|
24807
24977
|
}), "sourceReviewKind");
|
|
24808
24978
|
|
|
24809
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/subscriptions.js
|
|
24810
24980
|
var subscriptionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
24811
24981
|
type: "subscription",
|
|
24812
24982
|
list: /* @__PURE__ */ __name((options) => store.subscriptions.list(options), "list"),
|
|
@@ -24825,7 +24995,7 @@ var subscriptionPriceKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
24825
24995
|
}, "decide")
|
|
24826
24996
|
}), "subscriptionPriceKind");
|
|
24827
24997
|
|
|
24828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24998
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/task-close.js
|
|
24829
24999
|
var rowOf13 = /* @__PURE__ */ __name((task2) => {
|
|
24830
25000
|
const suggestion = task2.closeSuggestion;
|
|
24831
25001
|
if (suggestion === null)
|
|
@@ -24893,7 +25063,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
24893
25063
|
};
|
|
24894
25064
|
}, "taskCloseKind");
|
|
24895
25065
|
|
|
24896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25066
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/transactions.js
|
|
24897
25067
|
var transactionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
24898
25068
|
type: "transaction",
|
|
24899
25069
|
list: /* @__PURE__ */ __name((options) => store.transactions.list(options), "list"),
|
|
@@ -24902,7 +25072,7 @@ var transactionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
24902
25072
|
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")
|
|
24903
25073
|
}), "transactionKind");
|
|
24904
25074
|
|
|
24905
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/proposals/registry.js
|
|
24906
25076
|
var PREFIX = /^([a-z][a-z_]*):/;
|
|
24907
25077
|
var marked = /* @__PURE__ */ __name((kind2, row) => kind2.ownerOnly ? { ...row, ownerOnly: true } : row, "marked");
|
|
24908
25078
|
var refusalOf = /* @__PURE__ */ __name((id3, error) => {
|
|
@@ -25037,7 +25207,7 @@ var proposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
25037
25207
|
return registry;
|
|
25038
25208
|
}, "proposalRegistry");
|
|
25039
25209
|
|
|
25040
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25210
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/search-all-deprecated.js
|
|
25041
25211
|
var searchAllIncludingMeetings = /* @__PURE__ */ __name(async (store, account, { meetingAccount, maxMeetings: _maxMeetings, meetingCursor: _meetingCursor, ...request }, messenger = {}, searchMessages, meaning) => {
|
|
25042
25212
|
const { meetings: _meetings, ...found } = await searchAll(store, account, {
|
|
25043
25213
|
...request,
|
|
@@ -25047,7 +25217,7 @@ var searchAllIncludingMeetings = /* @__PURE__ */ __name(async (store, account, {
|
|
|
25047
25217
|
return found;
|
|
25048
25218
|
}, "searchAllIncludingMeetings");
|
|
25049
25219
|
|
|
25050
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25220
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/stored-meeting-project-candidate-validation.js
|
|
25051
25221
|
var storedCandidateRequest = /* @__PURE__ */ __name((reference, accountId, options) => {
|
|
25052
25222
|
const invalid9 = /* @__PURE__ */ __name((field) => {
|
|
25053
25223
|
throw new CliError("validation_error", `invalid stored project candidate ${field}`);
|
|
@@ -25089,7 +25259,7 @@ var storedCandidateRequest = /* @__PURE__ */ __name((reference, accountId, optio
|
|
|
25089
25259
|
return { reference, limits, after, afterTranscriptId, signal };
|
|
25090
25260
|
}, "storedCandidateRequest");
|
|
25091
25261
|
|
|
25092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25262
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/stored-meeting-project-candidates.js
|
|
25093
25263
|
var createStoredMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
25094
25264
|
const fixed = snapshotMeetingScope(scope);
|
|
25095
25265
|
const store = ports?.meetings;
|
|
@@ -25181,7 +25351,7 @@ var createStoredMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, a
|
|
|
25181
25351
|
};
|
|
25182
25352
|
}, "createStoredMeetingProjectCandidateReader");
|
|
25183
25353
|
|
|
25184
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25354
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
25185
25355
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
25186
25356
|
const pictures = picturesService(deps);
|
|
25187
25357
|
const base = {
|
|
@@ -25440,6 +25610,8 @@ export {
|
|
|
25440
25610
|
harderTimeoutSeconds,
|
|
25441
25611
|
HARDER_REASON_IDS,
|
|
25442
25612
|
harderRanking,
|
|
25613
|
+
embedTracker,
|
|
25614
|
+
nearestTracker,
|
|
25443
25615
|
RESOURCES_SEARCHED,
|
|
25444
25616
|
searchAll,
|
|
25445
25617
|
SERVER_SEARCH_KEY,
|