@wirecat/zoom-cli 0.76.0 → 0.78.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 +12 -11
- package/contracts/wirecat.json +53 -105
- package/dist/answer-entities.d.ts +1 -141
- package/dist/answer-entities.d.ts.map +1 -1
- package/dist/answer-entities.js +0 -31
- package/dist/answer-entities.js.map +1 -1
- package/dist/api.d.ts +18 -1
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +179 -54
- package/dist/api.js.map +1 -1
- package/dist/archive-commands.d.ts +0 -3
- package/dist/archive-commands.d.ts.map +1 -1
- package/dist/archive-commands.js +1 -54
- package/dist/archive-commands.js.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-AAMFP7IN.js → all-profiles-7JN3N3E6.js} +11 -11
- package/dist/bundle/answer-policy-G2BNMPEX.js +122 -0
- package/dist/bundle/{anthropic-6KIS53QB.js → anthropic-U6O7UYGZ.js} +6 -6
- package/dist/bundle/{app-server-6QYNNYEU.js → app-server-G7BTC6CE.js} +78 -68
- package/dist/bundle/{bun-QVVCH4MJ.js → bun-VLROVUFK.js} +2 -2
- package/dist/bundle/{bun-sqlite-Y2ZFMNQ3.js → bun-sqlite-C5JLANDE.js} +7 -7
- package/dist/bundle/{chunk-25GMFXPF.js → chunk-2AWWMROP.js} +3244 -3674
- package/dist/bundle/{chunk-YESHGC3M.js → chunk-2LMD3JUD.js} +2 -2
- package/dist/bundle/{chunk-LGBLYFKI.js → chunk-2O66KMOR.js} +6 -2
- package/dist/bundle/{chunk-JADBHKBP.js → chunk-2USGT7LE.js} +1 -1
- package/dist/bundle/{chunk-M7WYBGQT.js → chunk-3A3B3JX4.js} +8 -8
- package/dist/bundle/{chunk-RJK5ADMH.js → chunk-3NZJKY7A.js} +103 -42
- package/dist/bundle/chunk-3QWYRZME.js +773 -0
- package/dist/bundle/{chunk-D2TGXSHQ.js → chunk-4QCLPSJ7.js} +5 -5
- package/dist/bundle/{chunk-XC4V6YCS.js → chunk-4XPVRZXE.js} +1 -1
- package/dist/bundle/{chunk-EZJSAYWZ.js → chunk-532FNLON.js} +31 -87
- package/dist/bundle/{chunk-QLUU3BV2.js → chunk-53TV72JG.js} +6 -6
- package/dist/bundle/{chunk-VJANMYEC.js → chunk-5DLK4OXF.js} +3 -3
- package/dist/bundle/chunk-5SM2IOAS.js +389 -0
- package/dist/bundle/{chunk-65VRWNDP.js → chunk-6MFEWAK4.js} +4 -4
- package/dist/bundle/{chunk-IUSY4ZJK.js → chunk-6NTNAEZF.js} +2379 -2114
- package/dist/bundle/{chunk-DQHS336B.js → chunk-7AMKSXMB.js} +7 -6
- package/dist/bundle/{chunk-IXPBSDKB.js → chunk-7EVB4UV7.js} +4 -4
- package/dist/bundle/chunk-7HEZQCHL.js +555 -0
- package/dist/bundle/{chunk-TYAFL66K.js → chunk-7IIQU5RA.js} +15 -31
- package/dist/bundle/{chunk-TK77DCE5.js → chunk-7K5O2VWO.js} +1 -1
- package/dist/bundle/{chunk-VG63EXRC.js → chunk-AEVSVVTP.js} +2 -2
- package/dist/bundle/chunk-B4V4DRVO.js +229 -0
- package/dist/bundle/{chunk-2HKUQ7DR.js → chunk-B6TUEQ4O.js} +3 -3
- package/dist/bundle/chunk-BAHXR4PA.js +259 -0
- package/dist/bundle/{chunk-ZFYNJERV.js → chunk-BGO7IEHY.js} +6 -6
- package/dist/bundle/{chunk-PFLJJQWW.js → chunk-BIUHLXL2.js} +54 -55
- package/dist/bundle/{chunk-5T7TBK5Y.js → chunk-C26V2XNV.js} +1 -1
- package/dist/bundle/chunk-C56OYYFG.js +170 -0
- package/dist/bundle/{chunk-MDTEAKA5.js → chunk-DLJPN47R.js} +8 -6
- package/dist/bundle/{chunk-FBVJGJDM.js → chunk-EV7QCFQR.js} +27 -574
- package/dist/bundle/{chunk-ORM73DZO.js → chunk-F2KZNAFF.js} +2 -2
- package/dist/bundle/{chunk-QY6GE7CL.js → chunk-F7IDYQLM.js} +2 -2
- package/dist/bundle/{chunk-WNXC42IU.js → chunk-FCGRXUAU.js} +9 -9
- package/dist/bundle/{chunk-ELW3LMJZ.js → chunk-FHOQWPQ6.js} +397 -157
- package/dist/bundle/{chunk-NQ356ERO.js → chunk-FMMCGQNT.js} +77 -10
- package/dist/bundle/{chunk-K3K3WKDB.js → chunk-FNLXFQN6.js} +1 -1
- package/dist/bundle/{chunk-YGKM2ZWF.js → chunk-FURKMNC2.js} +3 -3
- package/dist/bundle/{chunk-XRH2NKW4.js → chunk-FXHZHQKU.js} +6 -6
- package/dist/bundle/{chunk-GZYICXO4.js → chunk-GQ6EJDMV.js} +1 -1
- package/dist/bundle/{chunk-VABYJQYE.js → chunk-H34KEXTN.js} +24 -22
- package/dist/bundle/{chunk-HWYSJ4SL.js → chunk-H74NENWA.js} +3 -3
- package/dist/bundle/{chunk-Y2BGABXP.js → chunk-H7SRM26V.js} +3 -3
- package/dist/bundle/{chunk-VRA4RVQU.js → chunk-HGBZBQAE.js} +3 -3
- package/dist/bundle/{chunk-EZXW3ZCR.js → chunk-HI4QICF7.js} +12 -12
- package/dist/bundle/{chunk-LEVOI6Z3.js → chunk-HOJOVUO6.js} +14 -13
- package/dist/bundle/{chunk-XWQKRKMT.js → chunk-HUSIS3XO.js} +71 -252
- package/dist/bundle/chunk-IBINGDYF.js +335 -0
- package/dist/bundle/{chunk-55SWKR6Y.js → chunk-INJK7FNM.js} +337 -597
- package/dist/bundle/{chunk-CXHUOPN5.js → chunk-JOIAE3NO.js} +7 -7
- package/dist/bundle/{chunk-OFODCJ2A.js → chunk-KBTINKQF.js} +3 -3
- package/dist/bundle/{chunk-VCFSUGPE.js → chunk-KEAKNNXU.js} +4 -4
- package/dist/bundle/{chunk-XHVFX74L.js → chunk-LBTANUUH.js} +2 -2
- package/dist/bundle/chunk-LBV4673S.js +72 -0
- package/dist/bundle/chunk-LERF2FIK.js +295 -0
- package/dist/bundle/{chunk-UYZDH5LK.js → chunk-LX532BXO.js} +1 -1
- package/dist/bundle/{chunk-IVFNHIU4.js → chunk-M2M3U4UU.js} +81 -5
- package/dist/bundle/{chunk-JWMOHEDL.js → chunk-M5R2DURM.js} +10 -10
- package/dist/bundle/{chunk-4ERYXY4Y.js → chunk-MJMHUU3J.js} +1 -1
- package/dist/bundle/{chunk-GYTAHH5Y.js → chunk-MSMFYW6N.js} +2 -2
- package/dist/bundle/{chunk-X73YEFQE.js → chunk-MVLLWSV7.js} +20 -118
- package/dist/bundle/{chunk-RXUVXAMM.js → chunk-NO2LIHWA.js} +1 -1
- package/dist/bundle/{chunk-Y4WEAWU7.js → chunk-NS5XSCHC.js} +1 -1
- package/dist/bundle/{chunk-ZETM63M6.js → chunk-OAE6XR7E.js} +9 -60
- package/dist/bundle/{chunk-CS62FET6.js → chunk-OAYAGQ7C.js} +22 -22
- package/dist/bundle/{chunk-T2QVWRJF.js → chunk-OI4563JI.js} +39 -67
- package/dist/bundle/{chunk-WKT5RPSY.js → chunk-OOLNK3Y5.js} +8 -8
- package/dist/bundle/{chunk-EBIK5Q73.js → chunk-ORSTSBWU.js} +1 -1
- package/dist/bundle/{chunk-GB5LI5RM.js → chunk-P5QO7Y3H.js} +6 -6
- package/dist/bundle/{chunk-3D5PETD2.js → chunk-PJMQE4PW.js} +29 -9
- package/dist/bundle/{chunk-KEFDP6NL.js → chunk-Q4AKIAIA.js} +12 -12
- package/dist/bundle/{chunk-CPOFLYPU.js → chunk-Q4CNLEAY.js} +29 -29
- package/dist/bundle/{chunk-UAV74EY4.js → chunk-RJIJR6KH.js} +1 -1
- package/dist/bundle/{chunk-GPIQY4YB.js → chunk-TEFHNXXX.js} +14 -14
- package/dist/bundle/{chunk-FMJ4QSSU.js → chunk-TFDD4Q5Z.js} +10 -10
- package/dist/bundle/{chunk-HUHH25AG.js → chunk-TXDCIM5D.js} +3017 -1599
- package/dist/bundle/{chunk-FGRFIXG2.js → chunk-U2Z35B3W.js} +2 -2
- package/dist/bundle/{chunk-WZJ7ZYR4.js → chunk-UHBQM54J.js} +4 -4
- package/dist/bundle/{chunk-6VCQ4CTK.js → chunk-UIBKGH5P.js} +1 -1
- package/dist/bundle/{chunk-5EII5RIL.js → chunk-UKYO3HNO.js} +1 -1
- package/dist/bundle/{chunk-7RORMNKP.js → chunk-V53TIJLY.js} +2 -2
- package/dist/bundle/{chunk-OOYIPK4F.js → chunk-VMA7SILL.js} +1 -1
- package/dist/bundle/chunk-VW36ZSAE.js +88 -0
- package/dist/bundle/chunk-WEAMGNST.js +31 -0
- package/dist/bundle/{chunk-EPPE6ZTS.js → chunk-WJTXO2EI.js} +1 -1
- package/dist/bundle/{chunk-4JPOELCT.js → chunk-WOYPWXZK.js} +4 -4
- package/dist/bundle/{chunk-OINDAHXC.js → chunk-XCOGI4JE.js} +4 -4
- package/dist/bundle/{chunk-CE5Y7PQU.js → chunk-XOG7B7K5.js} +4 -4
- package/dist/bundle/chunk-XSF5OBVZ.js +224 -0
- package/dist/bundle/{chunk-B7ZREOBD.js → chunk-XXD4YPHQ.js} +12 -12
- package/dist/bundle/{chunk-35AH33VJ.js → chunk-YAPDU3SV.js} +1 -1
- package/dist/bundle/{chunk-R47GYLNN.js → chunk-YHQ3TEGB.js} +29 -27
- package/dist/bundle/{chunk-LOEK6IFQ.js → chunk-YLNUKNGD.js} +87 -35
- package/dist/bundle/{chunk-6SXCGS3A.js → chunk-YNYQGZUW.js} +7 -7
- package/dist/bundle/{chunk-OWZETMRE.js → chunk-YZKVCTZI.js} +8 -8
- package/dist/bundle/{chunk-UG2QDGAH.js → chunk-ZCVO6GAT.js} +1 -1
- package/dist/bundle/{chunk-YEBWRWE3.js → chunk-ZDZASHSQ.js} +17 -17
- package/dist/bundle/chunk-ZZJ5IWNT.js +101 -0
- package/dist/bundle/{cli-FHMLYHUZ.js → cli-YALONJ4V.js} +135 -84
- package/dist/bundle/command-contract-DMR5EOIN.js +45 -0
- package/dist/bundle/{command-server-entry-YEZM52R5.js → command-server-entry-W4XTBUZE.js} +35 -31
- package/dist/bundle/config-4TLDRXRL.js +109 -0
- package/dist/bundle/{decode-SIYRMJOK.js → decode-IFQHVCFX.js} +16 -8
- package/dist/bundle/{dispatch-SMER3WDX.js → dispatch-GOJB4TDK.js} +9 -9
- package/dist/bundle/{dist-BSJETSFE.js → dist-H7XFUMRX.js} +25 -22
- package/dist/bundle/{echarts-UZJ6AREV.js → echarts-HPUHPJCO.js} +2 -2
- package/dist/bundle/{embed-A7DSHVI7.js → embed-ESU3WZYW.js} +7 -7
- package/dist/bundle/{embedder-WQBR4UGS.js → embedder-BV6O76B3.js} +10 -10
- package/dist/bundle/{failure-73UQXQTW.js → failure-SWVCYFQX.js} +3 -3
- package/dist/bundle/first-run-OEJGAQAE.js +29 -0
- package/dist/bundle/first-screen-QLM4IABL.js +45 -0
- package/dist/bundle/{folders-BH4SV6SI.js → folders-VQGKBM3P.js} +5 -5
- package/dist/bundle/{instructions-SDDUBGH4.js → instructions-UUX57I3V.js} +1 -1
- package/dist/bundle/{main-KL4FN5F3.js → main-UIKADOFB.js} +24 -24
- package/dist/bundle/{mcp-GN4FTJX5.js → mcp-VMS6PBCU.js} +2 -2
- package/dist/bundle/meeting-combined-SKJISCC7.js +26 -0
- package/dist/bundle/meeting-model-YG3Z5KCB.js +26 -0
- package/dist/bundle/meeting-semantic-F6GUICB7.js +23 -0
- package/dist/bundle/{meetings-URPXBHV7.js → meetings-KIBUPLPW.js} +37 -7
- package/dist/bundle/{node-ELCNUOCE.js → node-AM3JCAWB.js} +2 -2
- package/dist/bundle/{node-sqlite-QLSNHZBM.js → node-sqlite-VM6VS3RU.js} +8 -8
- package/dist/bundle/{oauth-LZ64S7Y3.js → oauth-AX5Z32H6.js} +8 -8
- package/dist/bundle/{open-WB4HUPQT.js → open-SSGOOOZG.js} +6 -6
- package/dist/bundle/openai-YIP73X2B.js +28 -0
- package/dist/bundle/{output-file-AHPQA5LR.js → output-file-FR226A64.js} +6 -6
- package/dist/bundle/{process-67DAKAAQ.js → process-5ZEK2VFY.js} +1 -1
- package/dist/bundle/{program-CIMACIBE.js → program-ROJAJHCB.js} +424 -251
- package/dist/bundle/{prompt-GG53UBDJ.js → prompt-6Y7A4453.js} +6 -6
- package/dist/bundle/{recognize-CFJ3CAEH.js → recognize-R5W25WKH.js} +5 -5
- package/dist/bundle/{remote-BLEM7C3Q.js → remote-PA4FQUZK.js} +11 -11
- package/dist/bundle/{rerank-ERN6PC66.js → rerank-CYX3UFTM.js} +8 -8
- package/dist/bundle/run-log-FHERL3H6.js +136 -0
- package/dist/bundle/{serve-FJPPTJXH.js → serve-MM5QEZJW.js} +15 -15
- package/dist/bundle/{server-FLUSDUGM.js → server-JQQAH7E5.js} +64 -54
- package/dist/bundle/server-W2BBONCQ.js +85 -0
- package/dist/bundle/{services-LXC6DVUQ.js → services-Y2DOQONM.js} +85 -54
- package/dist/bundle/{speech-WFEZTKXA.js → speech-O6WLX34V.js} +34 -18
- package/dist/bundle/{sqlite-runtime-KN33VSP7.js → sqlite-runtime-LQTBZMFH.js} +7 -7
- package/dist/bundle/{state-TXS4ZHIT.js → state-AIDPZLVH.js} +7 -7
- package/dist/bundle/{store-ZUREZYZB.js → store-BA4FQS5V.js} +26 -20
- package/dist/bundle/{store-MUOXLVL4.js → store-UNDS2TBG.js} +30 -22
- package/dist/bundle/store-connection-ADBJ36T4.js +102 -0
- package/dist/bundle/store-maintenance-command-IB6ML4UI.js +77 -0
- package/dist/bundle/{streaming-ZSCHRC5S.js → streaming-UFHT5MR2.js} +7 -7
- package/dist/bundle/{tokens-YVDOY4EV.js → tokens-Z32UKGQB.js} +10 -10
- package/dist/bundle/zm.js +9 -9
- package/dist/bundle/{zoom-app-O6GIMB7Y.js → zoom-app-6U46XBTG.js} +8 -8
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +3 -0
- package/dist/commands.js.map +1 -1
- package/dist/first-screen.d.ts.map +1 -1
- package/dist/first-screen.js +3 -5
- package/dist/first-screen.js.map +1 -1
- package/dist/meeting-integration-commands.d.ts.map +1 -1
- package/dist/meeting-integration-commands.js +46 -28
- package/dist/meeting-integration-commands.js.map +1 -1
- package/dist/meeting-source.d.ts.map +1 -1
- package/dist/meeting-source.js +15 -1
- package/dist/meeting-source.js.map +1 -1
- package/dist/permissions.d.ts +8 -4
- package/dist/permissions.d.ts.map +1 -1
- package/dist/permissions.js +25 -24
- package/dist/permissions.js.map +1 -1
- package/dist/program-bindings.d.ts.map +1 -1
- package/dist/program-bindings.js +8 -5
- package/dist/program-bindings.js.map +1 -1
- package/dist/program.d.ts +2 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js.map +1 -1
- package/dist/remote-meetings.d.ts +38 -8
- package/dist/remote-meetings.d.ts.map +1 -1
- package/dist/remote-meetings.js +52 -29
- package/dist/remote-meetings.js.map +1 -1
- package/dist/run.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/zoom-app.d.ts.map +1 -1
- package/dist/zoom-app.js +1 -0
- package/dist/zoom-app.js.map +1 -1
- package/package.json +5 -4
- package/skills/zoom-cli/SKILL.md +88 -236
- package/skills/zoom-cli/references/archive.md +59 -0
- package/skills/zoom-cli/references/people-and-projects.md +51 -0
- package/skills/zoom-cli/references/prepare.md +78 -0
- package/skills/zoom-cli/references/search.md +71 -0
- package/skills/zoom-cli/references/setup.md +31 -0
- package/skills/zoom-cli/references/zoom-live.md +27 -0
- package/dist/bundle/answer-policy-ETAELI4A.js +0 -110
- package/dist/bundle/chunk-64N7MY3I.js +0 -161
- package/dist/bundle/command-contract-HUZ4I23S.js +0 -41
- package/dist/bundle/config-KVTWN7QZ.js +0 -97
- package/dist/bundle/first-run-SY6XSUZ3.js +0 -29
- package/dist/bundle/first-screen-ZDMODGWS.js +0 -39
- package/dist/bundle/openai-KN6JE4QU.js +0 -28
- package/dist/bundle/run-log-S67YPJF6.js +0 -124
- package/dist/bundle/server-UNJY3TSJ.js +0 -74
- package/dist/bundle/store-connection-NRNEBUPU.js +0 -90
- package/dist/bundle/store-maintenance-command-OBOPYFZ5.js +0 -65
- /package/dist/bundle/{chunk-BDCC2J2Z.js → chunk-SHTHNBHG.js} +0 -0
|
@@ -1,33 +1,30 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
sharedModel
|
|
5
|
+
} from "./chunk-XSF5OBVZ.js";
|
|
3
6
|
import {
|
|
4
7
|
answerOf,
|
|
5
8
|
messengerContext
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MVLLWSV7.js";
|
|
7
10
|
import {
|
|
8
11
|
chatEventAnswer,
|
|
9
12
|
memberAnswer,
|
|
10
13
|
pollVoteAnswer,
|
|
11
14
|
serveRelay
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import {
|
|
14
|
-
renderMessages
|
|
15
|
-
} from "./chunk-ORM73DZO.js";
|
|
15
|
+
} from "./chunk-HI4QICF7.js";
|
|
16
16
|
import {
|
|
17
17
|
holdLock,
|
|
18
18
|
lockPath,
|
|
19
19
|
releaseLock,
|
|
20
20
|
servingProfiles,
|
|
21
21
|
takeLock
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-B6TUEQ4O.js";
|
|
23
23
|
import {
|
|
24
24
|
FETCHING,
|
|
25
25
|
RULES_VERSION,
|
|
26
26
|
applyTaskRulesOnArrival,
|
|
27
27
|
capability,
|
|
28
|
-
embeddingKeys,
|
|
29
|
-
endpointKeyName,
|
|
30
|
-
modelGateway,
|
|
31
28
|
newSendId,
|
|
32
29
|
onlineDeps,
|
|
33
30
|
openRequestTask,
|
|
@@ -39,10 +36,18 @@ import {
|
|
|
39
36
|
syncsOneChat,
|
|
40
37
|
typedQuery,
|
|
41
38
|
withQuery
|
|
42
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-2AWWMROP.js";
|
|
40
|
+
import {
|
|
41
|
+
embeddingKeys,
|
|
42
|
+
endpointKeyName,
|
|
43
|
+
modelGateway
|
|
44
|
+
} from "./chunk-B4V4DRVO.js";
|
|
43
45
|
import {
|
|
44
46
|
withTimeLimit
|
|
45
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-4XPVRZXE.js";
|
|
48
|
+
import {
|
|
49
|
+
renderMessages
|
|
50
|
+
} from "./chunk-F2KZNAFF.js";
|
|
46
51
|
import {
|
|
47
52
|
QUICK_HEALTH_CHECKS,
|
|
48
53
|
fts5Tables,
|
|
@@ -50,7 +55,7 @@ import {
|
|
|
50
55
|
lossUnknown,
|
|
51
56
|
storeDamageReport,
|
|
52
57
|
storeHealth
|
|
53
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-ZDZASHSQ.js";
|
|
54
59
|
import {
|
|
55
60
|
Command,
|
|
56
61
|
LOCAL_READ,
|
|
@@ -67,7 +72,6 @@ import {
|
|
|
67
72
|
jsonlRecords,
|
|
68
73
|
lineOf,
|
|
69
74
|
listOf,
|
|
70
|
-
modelTarget,
|
|
71
75
|
nextStep,
|
|
72
76
|
outputFor,
|
|
73
77
|
parseDuration,
|
|
@@ -77,20 +81,19 @@ import {
|
|
|
77
81
|
snakeKeys,
|
|
78
82
|
storeTable,
|
|
79
83
|
withoutProviderRefs
|
|
80
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-INJK7FNM.js";
|
|
81
85
|
import {
|
|
82
|
-
|
|
83
|
-
} from "./chunk-
|
|
86
|
+
modelTarget
|
|
87
|
+
} from "./chunk-ZZJ5IWNT.js";
|
|
84
88
|
import {
|
|
85
89
|
holdersOf
|
|
86
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-ZCVO6GAT.js";
|
|
87
91
|
import {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
} from "./chunk-YGKM2ZWF.js";
|
|
92
|
+
levelFor
|
|
93
|
+
} from "./chunk-YZKVCTZI.js";
|
|
91
94
|
import {
|
|
92
95
|
readSecret
|
|
93
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-KBTINKQF.js";
|
|
94
97
|
import {
|
|
95
98
|
CORPORA,
|
|
96
99
|
MIGRATIONS,
|
|
@@ -125,49 +128,43 @@ import {
|
|
|
125
128
|
storeClients,
|
|
126
129
|
storeContents,
|
|
127
130
|
vectorIndexCounts
|
|
128
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-6NTNAEZF.js";
|
|
129
132
|
import {
|
|
130
|
-
currentRun,
|
|
131
133
|
readDamageMark,
|
|
132
134
|
readHealthMark,
|
|
133
135
|
readJournalMark,
|
|
134
136
|
recordDeepCheck
|
|
135
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-EV7QCFQR.js";
|
|
138
|
+
import {
|
|
139
|
+
currentRun
|
|
140
|
+
} from "./chunk-7HEZQCHL.js";
|
|
136
141
|
import {
|
|
137
142
|
failureKey,
|
|
138
143
|
isStoreDamage
|
|
139
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-AEVSVVTP.js";
|
|
140
145
|
import {
|
|
141
146
|
formatLocator,
|
|
142
147
|
parseLocator
|
|
143
|
-
} from "./chunk-
|
|
144
|
-
import {
|
|
145
|
-
readSharedSection,
|
|
146
|
-
sharedConfigPath,
|
|
147
|
-
writeSharedSection
|
|
148
|
-
} from "./chunk-WKT5RPSY.js";
|
|
148
|
+
} from "./chunk-7IIQU5RA.js";
|
|
149
149
|
import {
|
|
150
150
|
storePath
|
|
151
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-LBTANUUH.js";
|
|
152
152
|
import {
|
|
153
153
|
openCache
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-FXHZHQKU.js";
|
|
155
155
|
import {
|
|
156
156
|
queryFieldsOf
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-TFDD4Q5Z.js";
|
|
158
158
|
import {
|
|
159
|
-
Credentials,
|
|
160
|
-
isMovedRun,
|
|
161
159
|
resolvePaths,
|
|
162
160
|
writeSecurely
|
|
163
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-OAYAGQ7C.js";
|
|
164
162
|
import {
|
|
165
163
|
array,
|
|
166
164
|
boolean,
|
|
167
165
|
check,
|
|
168
166
|
forward,
|
|
169
167
|
getDotPath,
|
|
170
|
-
maxLength,
|
|
171
168
|
minLength,
|
|
172
169
|
nullable,
|
|
173
170
|
object,
|
|
@@ -182,10 +179,10 @@ import {
|
|
|
182
179
|
string,
|
|
183
180
|
transform,
|
|
184
181
|
trim
|
|
185
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-PJMQE4PW.js";
|
|
186
183
|
import {
|
|
187
184
|
CliError
|
|
188
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-FNLXFQN6.js";
|
|
189
186
|
import {
|
|
190
187
|
__commonJS,
|
|
191
188
|
__name,
|
|
@@ -5525,11 +5522,11 @@ var require_liquid_node = __commonJS({
|
|
|
5525
5522
|
}
|
|
5526
5523
|
});
|
|
5527
5524
|
|
|
5528
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5529
5526
|
import { chmodSync, constants, copyFileSync, existsSync as existsSync10, mkdirSync, realpathSync as realpathSync3, renameSync as renameSync3, rmSync as rmSync3, statfsSync as statfsSync2, statSync as statSync4, writeFileSync as writeFileSync2 } from "node:fs";
|
|
5530
5527
|
import { dirname as dirname3, resolve } from "node:path";
|
|
5531
5528
|
|
|
5532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5533
5530
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5534
5531
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5535
5532
|
import { Transform } from "node:stream";
|
|
@@ -5636,7 +5633,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5636
5633
|
renameSync(pending, to);
|
|
5637
5634
|
}, "unsealFile");
|
|
5638
5635
|
|
|
5639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5640
5637
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5641
5638
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5642
5639
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5660,7 +5657,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5660
5657
|
};
|
|
5661
5658
|
}, "compatibilityOf");
|
|
5662
5659
|
|
|
5663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5660
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5664
5661
|
import { createHash as createHash2 } from "node:crypto";
|
|
5665
5662
|
var COPY_MARK = "__repair_";
|
|
5666
5663
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5914,19 +5911,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5914
5911
|
return found;
|
|
5915
5912
|
}, "deleteCopy");
|
|
5916
5913
|
|
|
5917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5918
5915
|
import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
|
|
5919
5916
|
|
|
5920
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
5921
5918
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5922
5919
|
|
|
5923
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5920
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
5924
5921
|
import { execFileSync, spawn } from "node:child_process";
|
|
5925
5922
|
import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
|
|
5926
5923
|
import { basename, dirname, join } from "node:path";
|
|
5927
5924
|
import { Transform as Transform2 } from "node:stream";
|
|
5928
5925
|
|
|
5929
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/store/refill.js
|
|
5930
5927
|
var REFILL_MARGIN_MS = 864e5;
|
|
5931
5928
|
var TIME_KEYS = 1e12;
|
|
5932
5929
|
var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
|
|
@@ -6006,7 +6003,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
|
|
|
6006
6003
|
return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
|
|
6007
6004
|
}, "forgetMail");
|
|
6008
6005
|
|
|
6009
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
6010
6007
|
var SQLITE3_MINIMUM = [3, 43, 0];
|
|
6011
6008
|
var STORE_PARTS = ["", "-wal", "-shm"];
|
|
6012
6009
|
var RECOVER_LOCK = ".recover-lock";
|
|
@@ -6534,7 +6531,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
|
|
|
6534
6531
|
}
|
|
6535
6532
|
}, "recoverLocked");
|
|
6536
6533
|
|
|
6537
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
6538
6535
|
var COUNTED = [
|
|
6539
6536
|
"accounts",
|
|
6540
6537
|
"chats",
|
|
@@ -6690,7 +6687,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
|
6690
6687
|
return recover;
|
|
6691
6688
|
}, "storeRecoverCommand");
|
|
6692
6689
|
|
|
6693
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
6694
6691
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
6695
6692
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
|
|
6696
6693
|
var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
|
|
@@ -6740,7 +6737,7 @@ var sharedStoreCommand = /* @__PURE__ */ __name((app) => {
|
|
|
6740
6737
|
return app ? store.addCommand(storeRecoverCommand(app)) : store;
|
|
6741
6738
|
}, "sharedStoreCommand");
|
|
6742
6739
|
|
|
6743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6740
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
6744
6741
|
var ENCRYPT_OPTION = [
|
|
6745
6742
|
"--encrypt",
|
|
6746
6743
|
"compress and encrypt with a password, typed at a hidden prompt or piped on stdin; it is never kept \u2014 lose it and the file cannot be opened"
|
|
@@ -6759,7 +6756,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
6759
6756
|
return password;
|
|
6760
6757
|
}, "passwordOf");
|
|
6761
6758
|
|
|
6762
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
6763
6760
|
import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
|
|
6764
6761
|
import { join as join2 } from "node:path";
|
|
6765
6762
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6930,7 +6927,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6930
6927
|
}, "problem");
|
|
6931
6928
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6932
6929
|
|
|
6933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6930
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6934
6931
|
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
6935
6932
|
import { join as join3 } from "node:path";
|
|
6936
6933
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6983,7 +6980,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6983
6980
|
}, "recordReply");
|
|
6984
6981
|
var broken2 = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply state ${path} cannot be read (${why}) \u2014 fix or move the file`), "broken");
|
|
6985
6982
|
|
|
6986
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6983
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6987
6984
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6988
6985
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6989
6986
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -7089,10 +7086,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
7089
7086
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
7090
7087
|
}, "filled");
|
|
7091
7088
|
|
|
7092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7089
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7093
7090
|
var import_liquidjs2 = __toESM(require_liquid_node(), 1);
|
|
7094
7091
|
|
|
7095
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7092
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/render/liquid.js
|
|
7096
7093
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
7097
7094
|
var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
7098
7095
|
const engine = new import_liquidjs.Liquid({
|
|
@@ -7119,7 +7116,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
|
7119
7116
|
return engine;
|
|
7120
7117
|
}, "safeLiquid");
|
|
7121
7118
|
|
|
7122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7119
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7123
7120
|
var TEMPLATE_LIMITS = {
|
|
7124
7121
|
parse: 32768,
|
|
7125
7122
|
renders: 2e3,
|
|
@@ -7258,7 +7255,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
7258
7255
|
}
|
|
7259
7256
|
}, "renderReplyTemplate");
|
|
7260
7257
|
|
|
7261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
7262
7259
|
var DRY_RUN_DAYS = 7;
|
|
7263
7260
|
var PAGE = 500;
|
|
7264
7261
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -7372,171 +7369,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
7372
7369
|
}
|
|
7373
7370
|
}, "storedSince");
|
|
7374
7371
|
|
|
7375
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7376
|
-
var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
|
|
7377
|
-
var DEFAULT_BASE_URL = {
|
|
7378
|
-
anthropic: "https://api.anthropic.com",
|
|
7379
|
-
openai: "https://api.openai.com/v1",
|
|
7380
|
-
ollama: "http://127.0.0.1:11434/v1"
|
|
7381
|
-
};
|
|
7382
|
-
var OFFICIAL = {
|
|
7383
|
-
"https://api.openai.com": "openai",
|
|
7384
|
-
"https://api.anthropic.com": "anthropic"
|
|
7385
|
-
};
|
|
7386
|
-
var SECTION = "ai";
|
|
7387
|
-
var aiAddressAllowed = modelAddressAllowed;
|
|
7388
|
-
var consentShape = strictObject({
|
|
7389
|
-
origin: string(),
|
|
7390
|
-
model: string(),
|
|
7391
|
-
at: string()
|
|
7392
|
-
});
|
|
7393
|
-
var settingShape = strictObject({
|
|
7394
|
-
provider: picklist(AI_PROVIDERS),
|
|
7395
|
-
model: pipe(string(), trim(), minLength(1), maxLength(200)),
|
|
7396
|
-
base_url: optional(pipe(string(), check(aiAddressAllowed, "use https, or http only on this computer"))),
|
|
7397
|
-
images: optional(consentShape)
|
|
7398
|
-
});
|
|
7399
|
-
var aiSettingPath = /* @__PURE__ */ __name((env) => sharedConfigPath(storePath(env), env), "aiSettingPath");
|
|
7400
|
-
var readAiSetting = /* @__PURE__ */ __name((path) => {
|
|
7401
|
-
const section = readSharedSection(path, SECTION);
|
|
7402
|
-
if (section === void 0)
|
|
7403
|
-
return void 0;
|
|
7404
|
-
const checked = safeParse(settingShape, section);
|
|
7405
|
-
if (!checked.success)
|
|
7406
|
-
throw new CliError("configuration_error", `${path}: ai.${getDotPath(checked.issues[0]) ?? "setting"} is invalid`, {
|
|
7407
|
-
reason: "ai.setting-invalid"
|
|
7408
|
-
});
|
|
7409
|
-
return checked.output;
|
|
7410
|
-
}, "readAiSetting");
|
|
7411
|
-
var writeAiSetting = /* @__PURE__ */ __name((path, setting) => writeSharedSection(path, SECTION, setting), "writeAiSetting");
|
|
7412
|
-
var aiSettingOf = /* @__PURE__ */ __name((given) => {
|
|
7413
|
-
const draft = {
|
|
7414
|
-
provider: given.provider,
|
|
7415
|
-
model: given.model,
|
|
7416
|
-
...given.baseUrl?.trim() ? { base_url: given.baseUrl.trim().replace(/\/+$/, "") } : {}
|
|
7417
|
-
};
|
|
7418
|
-
const checked = safeParse(settingShape, draft);
|
|
7419
|
-
if (!checked.success) {
|
|
7420
|
-
const field = getDotPath(checked.issues[0]);
|
|
7421
|
-
throw new CliError("validation_error", field === "provider" ? `the provider is one of ${AI_PROVIDERS.join(", ")}` : field === "base_url" ? "this address is not allowed: use https, or http only on this computer" : "name the model, 1 to 200 characters", { reason: field === "base_url" ? "model.address-refused" : "ai.setting-invalid" });
|
|
7422
|
-
}
|
|
7423
|
-
if (checked.output.provider === "ollama" && !onThisComputer(aiBaseUrl(checked.output)))
|
|
7424
|
-
throw new CliError("validation_error", "Ollama is read only on this computer", { reason: "model.address-refused" });
|
|
7425
|
-
return given.allowImages ? {
|
|
7426
|
-
...checked.output,
|
|
7427
|
-
images: { origin: aiOrigin(checked.output), model: checked.output.model, at: (/* @__PURE__ */ new Date()).toISOString() }
|
|
7428
|
-
} : checked.output;
|
|
7429
|
-
}, "aiSettingOf");
|
|
7430
|
-
var aiBaseUrl = /* @__PURE__ */ __name((setting) => setting.base_url ?? DEFAULT_BASE_URL[setting.provider], "aiBaseUrl");
|
|
7431
|
-
var aiOrigin = /* @__PURE__ */ __name((setting) => new URL(aiBaseUrl(setting)).origin, "aiOrigin");
|
|
7432
|
-
var aiTarget = /* @__PURE__ */ __name((setting) => ({
|
|
7433
|
-
provider: setting.provider === "anthropic" ? "anthropic" : "openai",
|
|
7434
|
-
model: setting.model,
|
|
7435
|
-
baseUrl: aiBaseUrl(setting)
|
|
7436
|
-
}), "aiTarget");
|
|
7437
|
-
var aiImagesAllowed = /* @__PURE__ */ __name((setting) => setting.images?.origin === aiOrigin(setting) && setting.images.model === setting.model, "aiImagesAllowed");
|
|
7438
|
-
var aiKeys = /* @__PURE__ */ __name((app, env, keyring) => {
|
|
7439
|
-
const where = { appName: "WireCat", prefix: "WIRECAT", env };
|
|
7440
|
-
const credentials = new Credentials({
|
|
7441
|
-
configDir: resolvePaths(where).config,
|
|
7442
|
-
service: "WireCat",
|
|
7443
|
-
// A tool run with its own folders moved (MEMO_CONFIG_DIR…) is a test or a sandbox, not the owner.
|
|
7444
|
-
isolated: isMovedRun(where) || isMovedRun({ appName: app.appName, prefix: app.envPrefix, env }),
|
|
7445
|
-
env,
|
|
7446
|
-
...keyring ? { keyring } : {},
|
|
7447
|
-
warn: /* @__PURE__ */ __name((message) => process.stderr.write(`${message}
|
|
7448
|
-
`), "warn")
|
|
7449
|
-
});
|
|
7450
|
-
const account = /* @__PURE__ */ __name((origin) => `ai:${origin}`, "account");
|
|
7451
|
-
return {
|
|
7452
|
-
read: /* @__PURE__ */ __name((origin) => {
|
|
7453
|
-
const stored = credentials.read(account(origin));
|
|
7454
|
-
if (stored)
|
|
7455
|
-
return { key: stored.secret, source: stored.source };
|
|
7456
|
-
const official = OFFICIAL[origin];
|
|
7457
|
-
const legacy = official ?? (origin.startsWith("https://") ? endpointKeyName(origin) : void 0);
|
|
7458
|
-
const found = legacy === void 0 ? void 0 : embeddingKeys(app, env, keyring).read(legacy);
|
|
7459
|
-
return found ? { key: found.key, source: found.source === "env" ? "environment" : found.source } : void 0;
|
|
7460
|
-
}, "read"),
|
|
7461
|
-
write: /* @__PURE__ */ __name((origin, key) => credentials.write(account(origin), key, { signIn: true }), "write"),
|
|
7462
|
-
remove: /* @__PURE__ */ __name((origin) => credentials.remove(account(origin)), "remove")
|
|
7463
|
-
};
|
|
7464
|
-
}, "aiKeys");
|
|
7465
|
-
var aiNeedsKey = /* @__PURE__ */ __name((setting) => aiLeavesComputer(setting), "aiNeedsKey");
|
|
7466
|
-
var aiTakesKey = /* @__PURE__ */ __name((setting) => setting.provider !== "ollama", "aiTakesKey");
|
|
7467
|
-
var keyFor = /* @__PURE__ */ __name((setting, deps) => aiTakesKey(setting) ? aiKeys(deps.app, deps.env, deps.keyring).read(aiOrigin(setting))?.key : void 0, "keyFor");
|
|
7468
|
-
var gatewayFor = /* @__PURE__ */ __name((setting, deps, key) => modelGateway({
|
|
7469
|
-
resolve: /* @__PURE__ */ __name(() => aiTarget(setting), "resolve"),
|
|
7470
|
-
consent: /* @__PURE__ */ __name(() => true, "consent"),
|
|
7471
|
-
key: /* @__PURE__ */ __name(() => key, "key"),
|
|
7472
|
-
env: deps.env,
|
|
7473
|
-
...deps.fetch ? { fetch: deps.fetch } : {},
|
|
7474
|
-
...deps.signal ? { signal: deps.signal } : {}
|
|
7475
|
-
}), "gatewayFor");
|
|
7476
|
-
var aiLeavesComputer = /* @__PURE__ */ __name((setting) => !onThisComputer(aiBaseUrl(setting)), "aiLeavesComputer");
|
|
7477
|
-
var sharedModel = /* @__PURE__ */ __name((deps) => {
|
|
7478
|
-
const setting = readAiSetting(aiSettingPath(deps.env));
|
|
7479
|
-
if (!setting)
|
|
7480
|
-
return void 0;
|
|
7481
|
-
return { target: { ...aiTarget(setting), baseUrl: aiBaseUrl(setting) }, key: keyFor(setting, deps), setting };
|
|
7482
|
-
}, "sharedModel");
|
|
7483
|
-
var aiTextReader = /* @__PURE__ */ __name((deps) => {
|
|
7484
|
-
const setting = readAiSetting(aiSettingPath(deps.env));
|
|
7485
|
-
if (!setting)
|
|
7486
|
-
return { refused: "ai.not-set" };
|
|
7487
|
-
const key = keyFor(setting, deps);
|
|
7488
|
-
if (aiNeedsKey(setting) && !key)
|
|
7489
|
-
return { refused: "ai.key-missing" };
|
|
7490
|
-
const gateway = gatewayFor(setting, deps, key);
|
|
7491
|
-
return {
|
|
7492
|
-
by: `${setting.provider}/${setting.model}`,
|
|
7493
|
-
leavesComputer: aiLeavesComputer(setting),
|
|
7494
|
-
complete: /* @__PURE__ */ __name(async (request) => (await gateway.complete(request)).text, "complete")
|
|
7495
|
-
};
|
|
7496
|
-
}, "aiTextReader");
|
|
7497
|
-
var reasonOf = /* @__PURE__ */ __name((error) => {
|
|
7498
|
-
if (!(error instanceof CliError))
|
|
7499
|
-
return "ai.failed";
|
|
7500
|
-
if (error.code === "rate_limited")
|
|
7501
|
-
return "ai.rate-limited";
|
|
7502
|
-
const { reason, status } = error.details;
|
|
7503
|
-
if (reason === "model.key-rejected")
|
|
7504
|
-
return "ai.key-rejected";
|
|
7505
|
-
if (reason === "model.unreachable")
|
|
7506
|
-
return "ai.unreachable";
|
|
7507
|
-
if (reason === "model.empty-answer")
|
|
7508
|
-
return "ai.empty-answer";
|
|
7509
|
-
if (status === 402)
|
|
7510
|
-
return "ai.no-credit";
|
|
7511
|
-
if (status === 404)
|
|
7512
|
-
return "ai.model-unknown";
|
|
7513
|
-
if (typeof status === "number" && status >= 500)
|
|
7514
|
-
return "ai.provider-error";
|
|
7515
|
-
return "ai.failed";
|
|
7516
|
-
}, "reasonOf");
|
|
7517
|
-
var checkAi = /* @__PURE__ */ __name(async (deps) => {
|
|
7518
|
-
const setting = readAiSetting(aiSettingPath(deps.env));
|
|
7519
|
-
if (!setting)
|
|
7520
|
-
return { ok: false, reason: "ai.not-set", ms: null };
|
|
7521
|
-
const key = keyFor(setting, deps);
|
|
7522
|
-
if (aiNeedsKey(setting) && !key)
|
|
7523
|
-
return { ok: false, reason: "ai.key-missing", ms: null };
|
|
7524
|
-
const started = Date.now();
|
|
7525
|
-
try {
|
|
7526
|
-
await gatewayFor(setting, deps, key).complete({
|
|
7527
|
-
purpose: "check",
|
|
7528
|
-
system: "Reply with the word OK.",
|
|
7529
|
-
prompt: "OK?",
|
|
7530
|
-
// Reasoning models spend tokens before they answer; too low a cap reads as a broken setup.
|
|
7531
|
-
maxTokens: 2048
|
|
7532
|
-
});
|
|
7533
|
-
return { ok: true, reason: "ai.ok", ms: Date.now() - started };
|
|
7534
|
-
} catch (error) {
|
|
7535
|
-
return { ok: false, reason: reasonOf(error), ms: null };
|
|
7536
|
-
}
|
|
7537
|
-
}, "checkAi");
|
|
7538
|
-
|
|
7539
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/models/purpose.js
|
|
7372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/models/purpose.js
|
|
7540
7373
|
var HOSTED = {
|
|
7541
7374
|
openai: "https://api.openai.com/v1",
|
|
7542
7375
|
anthropic: "https://api.anthropic.com"
|
|
@@ -7557,7 +7390,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
|
|
|
7557
7390
|
return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
|
|
7558
7391
|
}, "purposeModel");
|
|
7559
7392
|
|
|
7560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7393
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
7561
7394
|
import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
|
|
7562
7395
|
import { join as join4 } from "node:path";
|
|
7563
7396
|
var shape = strictObject({
|
|
@@ -7582,7 +7415,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
7582
7415
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
7583
7416
|
}, "mayModelReply");
|
|
7584
7417
|
|
|
7585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7418
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
7586
7419
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
|
|
7587
7420
|
ai: true
|
|
7588
7421
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -7630,7 +7463,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
7630
7463
|
return result2;
|
|
7631
7464
|
}, "replyRenderer");
|
|
7632
7465
|
|
|
7633
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7466
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
7634
7467
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
7635
7468
|
var NO_RULES = "no rules";
|
|
7636
7469
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -7723,7 +7556,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
7723
7556
|
return { skip: why };
|
|
7724
7557
|
}, "replyTo");
|
|
7725
7558
|
|
|
7726
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7559
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
|
|
7727
7560
|
var START_SYNC_DELAY_MS = 3e4;
|
|
7728
7561
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
7729
7562
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -7800,7 +7633,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
|
|
|
7800
7633
|
};
|
|
7801
7634
|
}, "startSync");
|
|
7802
7635
|
|
|
7803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
7804
7637
|
var FIRST_FETCH_MS = 6e4;
|
|
7805
7638
|
var DAY_MS = 864e5;
|
|
7806
7639
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -7854,7 +7687,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
|
|
|
7854
7687
|
};
|
|
7855
7688
|
}, "memberFetches");
|
|
7856
7689
|
|
|
7857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
7858
7691
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
7859
7692
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
7860
7693
|
if (context.format === "pretty") {
|
|
@@ -7887,7 +7720,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7887
7720
|
return context;
|
|
7888
7721
|
}, "recordDiagnostics");
|
|
7889
7722
|
|
|
7890
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
|
|
7891
7724
|
import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
|
|
7892
7725
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
7893
7726
|
var OUTDATED_CHECK_MS = 6e4;
|
|
@@ -7973,7 +7806,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
|
|
|
7973
7806
|
};
|
|
7974
7807
|
}, "watchOutdated");
|
|
7975
7808
|
|
|
7976
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7809
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
7977
7810
|
var STEMS_EVERY_MS = 3e4;
|
|
7978
7811
|
var STEMS_SLICE_MS = 2e3;
|
|
7979
7812
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -8013,7 +7846,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
8013
7846
|
};
|
|
8014
7847
|
}, "stemFills");
|
|
8015
7848
|
|
|
8016
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7849
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
8017
7850
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
8018
7851
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
8019
7852
|
kind: attachment.kind,
|
|
@@ -8109,7 +7942,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
8109
7942
|
locale: messenger.app.locale
|
|
8110
7943
|
}), "viewOf");
|
|
8111
7944
|
|
|
8112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7945
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
8113
7946
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
8114
7947
|
value: value.value,
|
|
8115
7948
|
observed_at: value.observedAt,
|
|
@@ -8176,7 +8009,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
8176
8009
|
}
|
|
8177
8010
|
}, "watchEventItem");
|
|
8178
8011
|
|
|
8179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8012
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
8180
8013
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
8181
8014
|
output: { entity: "watch_item" },
|
|
8182
8015
|
effects: REMOTE_READ,
|
|
@@ -8331,7 +8164,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
8331
8164
|
}
|
|
8332
8165
|
}, "describe");
|
|
8333
8166
|
|
|
8334
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8167
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
8335
8168
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
8336
8169
|
const command = annotate(new Command("serve"), {
|
|
8337
8170
|
output: { entity: "serve_summary" },
|
|
@@ -8617,7 +8450,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
8617
8450
|
};
|
|
8618
8451
|
}, "tasking");
|
|
8619
8452
|
|
|
8620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8453
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
8621
8454
|
import { existsSync as existsSync9 } from "node:fs";
|
|
8622
8455
|
var PATH = "store tables list";
|
|
8623
8456
|
var STORE_TABLES_QUERY = {
|
|
@@ -8660,7 +8493,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
|
|
|
8660
8493
|
return tables;
|
|
8661
8494
|
}, "storeTablesCommand");
|
|
8662
8495
|
|
|
8663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8496
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
8664
8497
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
8665
8498
|
var WORD_INDEX = "message_words";
|
|
8666
8499
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -9386,20 +9219,6 @@ export {
|
|
|
9386
9219
|
DRY_RUN_DAYS,
|
|
9387
9220
|
dryRun,
|
|
9388
9221
|
senderFacts,
|
|
9389
|
-
AI_PROVIDERS,
|
|
9390
|
-
aiSettingPath,
|
|
9391
|
-
readAiSetting,
|
|
9392
|
-
writeAiSetting,
|
|
9393
|
-
aiSettingOf,
|
|
9394
|
-
aiBaseUrl,
|
|
9395
|
-
aiOrigin,
|
|
9396
|
-
aiImagesAllowed,
|
|
9397
|
-
aiKeys,
|
|
9398
|
-
aiTakesKey,
|
|
9399
|
-
aiLeavesComputer,
|
|
9400
|
-
sharedModel,
|
|
9401
|
-
aiTextReader,
|
|
9402
|
-
checkAi,
|
|
9403
9222
|
purposeModel,
|
|
9404
9223
|
replyConsentPathFor,
|
|
9405
9224
|
readReplyConsent,
|