@wirecat/drive-cli 0.72.0 → 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-GXGDVNQJ.js → all-profiles-HGQGKCKQ.js} +14 -14
- package/dist/bundle/{anthropic-H5C4GQHC.js → anthropic-2L5DN3HF.js} +8 -8
- package/dist/bundle/{app-server-EQ3UK4C7.js → app-server-TRSOKYYF.js} +79 -79
- package/dist/bundle/{bun-DTJVSRY3.js → bun-AFA5HULK.js} +2 -2
- package/dist/bundle/{bun-sqlite-JIFY7MAE.js → bun-sqlite-5MW2BWV4.js} +9 -9
- package/dist/bundle/{chunk-FRCJHGZM.js → chunk-2G24DYSZ.js} +2 -2
- package/dist/bundle/{chunk-FUDUXIVG.js → chunk-2MCMUZCE.js} +1 -1
- package/dist/bundle/{chunk-COJTCEZP.js → chunk-2NAMKBBV.js} +31 -23
- package/dist/bundle/{chunk-CIFE4KPX.js → chunk-2WAGRBQT.js} +50 -47
- package/dist/bundle/{chunk-ZKWT6HXT.js → chunk-33RQ3YVC.js} +1 -1
- package/dist/bundle/{chunk-E3VWZC3K.js → chunk-36256UTA.js} +12 -12
- package/dist/bundle/{chunk-KP2XMCNT.js → chunk-4FTGSEBR.js} +6 -6
- package/dist/bundle/{chunk-MUFF2YTH.js → chunk-4KOMZRN6.js} +2 -2
- package/dist/bundle/{chunk-J4NUHSM7.js → chunk-4LLO4USI.js} +1 -1
- package/dist/bundle/{chunk-CWPYDT73.js → chunk-4VTAPSZE.js} +4 -4
- package/dist/bundle/{chunk-OLDQLEPA.js → chunk-4ZP3IK5I.js} +6 -6
- package/dist/bundle/{chunk-M2ZWYVWO.js → chunk-5CYWWYIG.js} +6 -1
- package/dist/bundle/{chunk-AA4LKC6W.js → chunk-5EZCDENA.js} +78 -35
- package/dist/bundle/{chunk-GWCDOYSC.js → chunk-5R2VPXVT.js} +1 -1
- package/dist/bundle/{chunk-KF3ZBQJV.js → chunk-5SQHQRNO.js} +4 -4
- package/dist/bundle/{chunk-77OBW43F.js → chunk-6AVHD6WB.js} +6 -6
- package/dist/bundle/{chunk-K652FYCO.js → chunk-6EC3LAVC.js} +2 -2
- package/dist/bundle/{chunk-ST35FIUG.js → chunk-6HZKX65K.js} +3 -3
- package/dist/bundle/{chunk-VAR3MJU6.js → chunk-6TGZCOYR.js} +3 -3
- package/dist/bundle/{chunk-D4JNCXS7.js → chunk-6V5556NF.js} +7 -7
- package/dist/bundle/{chunk-BM6V7456.js → chunk-6WZLP4CI.js} +5 -5
- package/dist/bundle/{chunk-ML2QIWX2.js → chunk-77SAHCDZ.js} +4 -4
- package/dist/bundle/{chunk-NNGA4QDR.js → chunk-AGATODLO.js} +12 -12
- package/dist/bundle/{chunk-OLCU7Q2B.js → chunk-B6YBN6VK.js} +1 -1
- package/dist/bundle/{chunk-TTPWKTVR.js → chunk-BAG4KIN5.js} +1 -1
- package/dist/bundle/{chunk-U7VEJ3CW.js → chunk-BAHWXDWN.js} +29 -190
- package/dist/bundle/{chunk-4HPXWYTE.js → chunk-BFESDJPU.js} +1 -1
- package/dist/bundle/{chunk-QSLOACDT.js → chunk-BOHC2GPY.js} +36 -36
- package/dist/bundle/{chunk-BO6EDBYJ.js → chunk-BY5D2LXE.js} +3 -3
- package/dist/bundle/{chunk-FBEZSA76.js → chunk-CMB6URN7.js} +5 -5
- package/dist/bundle/{chunk-4JS32SRX.js → chunk-CY2MNN3I.js} +5 -5
- package/dist/bundle/{chunk-PRYMT3OG.js → chunk-DAYHLKTM.js} +2 -2
- package/dist/bundle/{chunk-YWOLQEDV.js → chunk-DOUFW7RK.js} +3 -3
- package/dist/bundle/{chunk-CKB4XZZJ.js → chunk-DZG5SAO6.js} +14 -14
- package/dist/bundle/{chunk-FTG5QBSD.js → chunk-E3UFICXC.js} +35 -31
- package/dist/bundle/{chunk-QDUIVMEW.js → chunk-EBGI3Z6U.js} +1 -1
- package/dist/bundle/{chunk-ZJKXSMXK.js → chunk-EQGVNLUN.js} +42 -42
- package/dist/bundle/{chunk-WMG3H2VK.js → chunk-F5XMZDR5.js} +2 -2
- package/dist/bundle/{chunk-6ZW2ZJYC.js → chunk-FITKBN46.js} +2 -2
- package/dist/bundle/{chunk-ZFDSJ5YJ.js → chunk-FRQBKAPV.js} +6 -6
- package/dist/bundle/{chunk-DHMNCOQI.js → chunk-GW7L2G4I.js} +57 -57
- package/dist/bundle/{chunk-FIZOPJYY.js → chunk-HGXFOXSA.js} +1 -1
- package/dist/bundle/{chunk-N24YSLED.js → chunk-HYJEBBFK.js} +1892 -588
- package/dist/bundle/{chunk-SQHDSIFL.js → chunk-I2KGZ6XQ.js} +6 -6
- package/dist/bundle/{chunk-XZ7MO6EU.js → chunk-I3DZHZHM.js} +7 -7
- package/dist/bundle/{chunk-ZFUZEFU6.js → chunk-I3MLLVPE.js} +3 -3
- package/dist/bundle/{chunk-5BNMWSU2.js → chunk-IDJKYHVG.js} +2246 -2047
- package/dist/bundle/{chunk-SPNPJ3FZ.js → chunk-IEGU6GG7.js} +1 -1
- package/dist/bundle/{chunk-ZPUY3COZ.js → chunk-IKW3PRNG.js} +13 -13
- package/dist/bundle/{chunk-R57QUYBG.js → chunk-J3I4WOBI.js} +3 -3
- package/dist/bundle/{chunk-DCPWZIOV.js → chunk-JA37PJL4.js} +11 -11
- package/dist/bundle/{chunk-OAONP6KI.js → chunk-JJGKHGBX.js} +8 -8
- package/dist/bundle/{chunk-UIQ35CA5.js → chunk-JWNM6FCC.js} +1 -1
- package/dist/bundle/{chunk-R32DHS6J.js → chunk-JZYNXTMH.js} +51 -15
- package/dist/bundle/{chunk-QKBPCX7Y.js → chunk-K34B37AP.js} +1 -1
- package/dist/bundle/{chunk-HAGXTGJC.js → chunk-KERX3BQL.js} +4 -4
- package/dist/bundle/{chunk-QUZFDU4K.js → chunk-KV232TIK.js} +4 -4
- package/dist/bundle/{chunk-RSPBVKOC.js → chunk-KXETGAU4.js} +8 -8
- package/dist/bundle/{chunk-VPQSI5IU.js → chunk-L5ZZ6RLL.js} +2 -2
- package/dist/bundle/{chunk-OPIPG6AP.js → chunk-LGRZNEMA.js} +8 -8
- package/dist/bundle/{chunk-X5BGAZC5.js → chunk-M3VJTLFM.js} +6 -6
- package/dist/bundle/{chunk-5H747A76.js → chunk-MTH76YSQ.js} +500 -1428
- package/dist/bundle/{chunk-75DAHQOV.js → chunk-NA4HEM4Z.js} +3 -3
- package/dist/bundle/{chunk-5KWCO56H.js → chunk-OCZWU2H4.js} +2 -2
- package/dist/bundle/{chunk-GUMKKRE6.js → chunk-OHKAL25R.js} +63 -63
- package/dist/bundle/{chunk-O7CZZ36M.js → chunk-P2FOF6RR.js} +3 -3
- package/dist/bundle/{chunk-OHR6IZNH.js → chunk-PMYTDTT4.js} +8 -1
- package/dist/bundle/{chunk-XQZEMRCU.js → chunk-PQSCABAC.js} +10 -10
- package/dist/bundle/{chunk-GU6ICH53.js → chunk-PSFACXOC.js} +2 -2
- package/dist/bundle/{chunk-NBMGDRP4.js → chunk-PSWVHX53.js} +1 -1
- package/dist/bundle/{chunk-KFZCHJRT.js → chunk-Q2L3W7PS.js} +2 -2
- package/dist/bundle/{chunk-VQPT3Y7W.js → chunk-QMDVQ4AN.js} +12 -12
- package/dist/bundle/{chunk-GXGSC622.js → chunk-QZXFWDTX.js} +6 -6
- package/dist/bundle/{chunk-R64OSDOD.js → chunk-R2GLRHNK.js} +5 -5
- package/dist/bundle/{chunk-FNAYSZWK.js → chunk-R6K36FZ7.js} +23 -23
- package/dist/bundle/{chunk-7EFM6AW3.js → chunk-RHS3OBO5.js} +4 -4
- package/dist/bundle/{chunk-UJY26HW4.js → chunk-RNLLWYPV.js} +1 -1
- package/dist/bundle/{chunk-6CCO3JCM.js → chunk-RX6D64YA.js} +20 -20
- package/dist/bundle/{chunk-FBQJN74J.js → chunk-S7EQIYNF.js} +1 -1
- package/dist/bundle/{chunk-DWRUOLBF.js → chunk-SIC2CGYE.js} +4 -4
- package/dist/bundle/{chunk-55FH6IEL.js → chunk-SNY4WYPH.js} +5 -5
- package/dist/bundle/{chunk-A3S7QM5L.js → chunk-SQODI3DH.js} +2 -2
- package/dist/bundle/{chunk-EVG3AA5M.js → chunk-SRRNRQSQ.js} +2 -2
- package/dist/bundle/{chunk-IVGVVSPW.js → chunk-SYQKLEP3.js} +4 -4
- package/dist/bundle/{chunk-5U3NCE5R.js → chunk-TAQUEQ5B.js} +8 -8
- package/dist/bundle/{chunk-GIEZYBRC.js → chunk-TPIGO4JJ.js} +1 -1
- package/dist/bundle/{chunk-DOQMH4DC.js → chunk-U5SB2WDG.js} +12 -10
- package/dist/bundle/{chunk-KWDZ3KVH.js → chunk-UDP7EQNY.js} +4 -4
- package/dist/bundle/{chunk-4IUNYYYL.js → chunk-UZAOKKGK.js} +753 -494
- package/dist/bundle/{chunk-K6ZWNTXY.js → chunk-V5GIK53Z.js} +17 -17
- package/dist/bundle/{chunk-2Q325BBD.js → chunk-VENGEFU4.js} +8 -8
- package/dist/bundle/{chunk-N4GTCPML.js → chunk-VHPNTMJJ.js} +1 -1
- package/dist/bundle/{chunk-UWG3PRY7.js → chunk-VM3IERRK.js} +7 -7
- package/dist/bundle/{chunk-KLPFDFLI.js → chunk-VQ7K2EAW.js} +9 -9
- package/dist/bundle/{chunk-3FRQ6V4T.js → chunk-VQC4GYIQ.js} +3 -3
- package/dist/bundle/{chunk-XC6TRWLZ.js → chunk-VZTDELYM.js} +3 -3
- package/dist/bundle/{chunk-ASTKHB6B.js → chunk-W3OKRT6L.js} +179 -135
- package/dist/bundle/{chunk-KX4C32WD.js → chunk-WB46DJSK.js} +2 -2
- package/dist/bundle/{chunk-BPA3R4KN.js → chunk-WITO2RZO.js} +1 -1
- package/dist/bundle/{chunk-OESP4PHB.js → chunk-WJ7E6TPR.js} +17 -17
- package/dist/bundle/{chunk-YAIOEPKU.js → chunk-WUVNBZWC.js} +191 -160
- package/dist/bundle/{chunk-47L262VI.js → chunk-ZDYWRT3X.js} +7 -7
- package/dist/bundle/{chunk-IMAWQC5K.js → chunk-ZQMURHTL.js} +6 -6
- package/dist/bundle/{cli-2P5FW2RL.js → cli-A7MMBLGR.js} +107 -107
- package/dist/bundle/command-contract-WCGIIXYM.js +45 -0
- package/dist/bundle/{command-server-entry-KP2UDGLA.js → command-server-entry-557ZCX63.js} +35 -35
- package/dist/bundle/{decode-K2JZ5D6V.js → decode-3IPZIY2P.js} +8 -8
- package/dist/bundle/{dispatch-KOQZA74A.js → dispatch-UWS7A35Q.js} +9 -9
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-URO3QGCG.js → echarts-JLCV6NKC.js} +2 -2
- package/dist/bundle/{embed-JLIPWTNN.js → embed-Q6H3QSMC.js} +9 -9
- package/dist/bundle/{embedder-LUTDO3HS.js → embedder-536EI65E.js} +12 -12
- package/dist/bundle/entry-3PKJTP5E.js +25 -0
- package/dist/bundle/{failure-GJMQLM7O.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-RFXKRLL4.js → google-api-SY25TRXJ.js} +85 -85
- package/dist/bundle/grants-77W5MSWQ.js +133 -0
- package/dist/bundle/{identity-FXPB5EMT.js → identity-ZBMVHXUY.js} +6 -6
- package/dist/bundle/{instructions-IROIUVZI.js → instructions-XQOWVU6J.js} +1 -1
- package/dist/bundle/{login-WIY5VQU7.js → login-LXXYFMD3.js} +91 -91
- package/dist/bundle/{mcp-NJIOKW3E.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-62QNQMOM.js → meeting-semantic-Z7FAOSLQ.js} +10 -10
- package/dist/bundle/{node-IACCI2CW.js → node-MPZ3SVB4.js} +2 -2
- package/dist/bundle/{node-sqlite-WYIRC7C7.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-H32B6BCT.js → open-SERV3YXC.js} +8 -8
- package/dist/bundle/{openai-VHMPJJUG.js → openai-HUXETQVC.js} +20 -20
- package/dist/bundle/{process-RNHPF5OK.js → process-RFIII6TW.js} +1 -1
- package/dist/bundle/{program-GYMJ3DDH.js → program-VQ6IKDBJ.js} +353 -131
- package/dist/bundle/{prompt-TOG2CRCE.js → prompt-LCD5ZR7Q.js} +8 -8
- package/dist/bundle/{reasons-TLFQ45YX.js → reasons-GDQIXGWT.js} +5 -5
- package/dist/bundle/{recognize-GYGY45EY.js → recognize-GWKRFWHF.js} +7 -7
- package/dist/bundle/{remote-6XN2QLI5.js → remote-XM2CRZJY.js} +13 -13
- package/dist/bundle/{rerank-HJO3O4TW.js → rerank-HR5J35V6.js} +10 -10
- package/dist/bundle/{serve-XPCNLHCR.js → serve-PP3XR3GA.js} +12 -12
- package/dist/bundle/{server-WPT3NC5B.js → server-DD3DE536.js} +71 -71
- package/dist/bundle/server-NB4RGNYM.js +97 -0
- package/dist/bundle/{services-253KKKVU.js → services-4Y7R425J.js} +62 -58
- package/dist/bundle/{sqlite-runtime-EZASGJXW.js → sqlite-runtime-CVYBPVKO.js} +9 -9
- package/dist/bundle/{start-UHI35JFL.js → start-2KFZDMWM.js} +7 -7
- package/dist/bundle/{state-KJTSPFGK.js → state-AUXW4REW.js} +9 -9
- package/dist/bundle/{store-62J2H2A3.js → store-B7X6UN75.js} +28 -28
- package/dist/bundle/{store-G5B7T7M7.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-23OB2NZP.js +0 -46
- package/dist/bundle/command-contract-BMQT2G5X.js +0 -45
- package/dist/bundle/entry-AVF6LMG7.js +0 -25
- package/dist/bundle/first-run-VYTIEUDA.js +0 -31
- package/dist/bundle/first-screen-QVZPF7KL.js +0 -45
- package/dist/bundle/google-VX7IPACN.js +0 -46
- package/dist/bundle/grants-4XWJFVD6.js +0 -133
- package/dist/bundle/meeting-combined-JUNV35GM.js +0 -28
- package/dist/bundle/meeting-model-XY4UNWWK.js +0 -29
- package/dist/bundle/notes-search-DEDUJKSN.js +0 -70
- package/dist/bundle/oauth-HXBXF4VI.js +0 -22
- package/dist/bundle/server-UBJZ66XE.js +0 -97
- package/dist/bundle/store-maintenance-command-C6T4YLVF.js +0 -85
- package/dist/bundle/surface-3OT64BHS.js +0 -83
- package/dist/bundle/tokens-EHYO6D2X.js +0 -133
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
formatMeetingReference
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GW7L2G4I.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-B6YBN6VK.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// 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-semantic.js
|
|
14
14
|
var positive = /* @__PURE__ */ __name((value, name, max) => {
|
|
15
15
|
if (!Number.isSafeInteger(value) || value < 1 || value > max)
|
|
16
16
|
throw new CliError("validation_error", `Invalid ${name}`);
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-B6YBN6VK.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// 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/app.js
|
|
11
11
|
import { readFileSync } from "node:fs";
|
|
12
12
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
13
13
|
var locking = /* @__PURE__ */ __name((value) => value !== void 0 && value.trim() !== "" && value !== "0", "locking");
|
|
@@ -2,16 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
sharedModel
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JJGKHGBX.js";
|
|
6
6
|
import {
|
|
7
|
-
answerOf,
|
|
8
7
|
messengerContext
|
|
9
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BAHWXDWN.js";
|
|
10
9
|
import {
|
|
11
10
|
chatEventAnswer,
|
|
12
11
|
memberAnswer,
|
|
13
12
|
pollVoteAnswer
|
|
14
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VENGEFU4.js";
|
|
15
14
|
import {
|
|
16
15
|
holdLock,
|
|
17
16
|
lockPath,
|
|
@@ -19,13 +18,14 @@ import {
|
|
|
19
18
|
releaseLock,
|
|
20
19
|
servingProfiles,
|
|
21
20
|
takeLock
|
|
22
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-DOUFW7RK.js";
|
|
23
22
|
import {
|
|
24
23
|
serveRelay
|
|
25
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-ZDYWRT3X.js";
|
|
26
25
|
import {
|
|
27
26
|
FETCHING,
|
|
28
27
|
RULES_VERSION,
|
|
28
|
+
answerOf,
|
|
29
29
|
applyTaskRulesOnArrival,
|
|
30
30
|
newSendId,
|
|
31
31
|
openRequestTask,
|
|
@@ -33,25 +33,25 @@ import {
|
|
|
33
33
|
refuseLockedOutput,
|
|
34
34
|
servicesFor,
|
|
35
35
|
syncsOneChat
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-HYJEBBFK.js";
|
|
37
37
|
import {
|
|
38
38
|
queryTerms,
|
|
39
39
|
typedQuery,
|
|
40
40
|
withQuery
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-DZG5SAO6.js";
|
|
42
42
|
import {
|
|
43
43
|
onlineDeps,
|
|
44
44
|
senderIsMe
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-2WAGRBQT.js";
|
|
46
46
|
import {
|
|
47
47
|
embeddingKeys,
|
|
48
48
|
endpointKeyName,
|
|
49
49
|
modelGateway,
|
|
50
50
|
withTimeLimit
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-IKW3PRNG.js";
|
|
52
52
|
import {
|
|
53
53
|
capability
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-DAYHLKTM.js";
|
|
55
55
|
import {
|
|
56
56
|
stringWidth,
|
|
57
57
|
wrapAnsi
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
lossUnknown,
|
|
64
64
|
storeDamageReport,
|
|
65
65
|
storeHealth
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-WJ7E6TPR.js";
|
|
67
67
|
import {
|
|
68
68
|
Command,
|
|
69
69
|
LOCAL_READ,
|
|
@@ -89,19 +89,19 @@ import {
|
|
|
89
89
|
snakeKeys,
|
|
90
90
|
storeTable,
|
|
91
91
|
withoutProviderRefs
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-WUVNBZWC.js";
|
|
93
93
|
import {
|
|
94
94
|
holdersOf
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-HGXFOXSA.js";
|
|
96
96
|
import {
|
|
97
97
|
codeOf
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-KERX3BQL.js";
|
|
99
99
|
import {
|
|
100
100
|
modelTarget
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-CY2MNN3I.js";
|
|
102
102
|
import {
|
|
103
103
|
readSecret
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-6HZKX65K.js";
|
|
105
105
|
import {
|
|
106
106
|
CORPORA,
|
|
107
107
|
MIGRATIONS,
|
|
@@ -139,39 +139,39 @@ import {
|
|
|
139
139
|
storeClients,
|
|
140
140
|
storeContents,
|
|
141
141
|
vectorIndexCounts
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-UZAOKKGK.js";
|
|
143
143
|
import {
|
|
144
144
|
openCache
|
|
145
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-M3VJTLFM.js";
|
|
146
146
|
import {
|
|
147
147
|
readDamageMark,
|
|
148
148
|
readHealthMark,
|
|
149
149
|
readJournalMark,
|
|
150
150
|
recordDeepCheck
|
|
151
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-R6K36FZ7.js";
|
|
152
152
|
import {
|
|
153
153
|
currentRun,
|
|
154
154
|
formatLocator,
|
|
155
155
|
parseLocator
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-2NAMKBBV.js";
|
|
157
157
|
import {
|
|
158
158
|
failureKey,
|
|
159
159
|
isStoreDamage
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-FITKBN46.js";
|
|
161
161
|
import {
|
|
162
162
|
queryFieldsOf
|
|
163
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-PQSCABAC.js";
|
|
164
164
|
import {
|
|
165
165
|
storePath
|
|
166
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-F5XMZDR5.js";
|
|
167
167
|
import {
|
|
168
168
|
resolvePaths,
|
|
169
169
|
writeSecurely
|
|
170
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-RX6D64YA.js";
|
|
171
171
|
import {
|
|
172
172
|
singleLine,
|
|
173
173
|
visibleControls
|
|
174
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-2MCMUZCE.js";
|
|
175
175
|
import {
|
|
176
176
|
array,
|
|
177
177
|
boolean,
|
|
@@ -192,10 +192,10 @@ import {
|
|
|
192
192
|
string,
|
|
193
193
|
transform,
|
|
194
194
|
trim
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-QZXFWDTX.js";
|
|
196
196
|
import {
|
|
197
197
|
CliError
|
|
198
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-B6YBN6VK.js";
|
|
199
199
|
import {
|
|
200
200
|
__commonJS,
|
|
201
201
|
__name,
|
|
@@ -5535,11 +5535,11 @@ var require_liquid_node = __commonJS({
|
|
|
5535
5535
|
}
|
|
5536
5536
|
});
|
|
5537
5537
|
|
|
5538
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5538
|
+
// 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/store-maintenance-command.js
|
|
5539
5539
|
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";
|
|
5540
5540
|
import { dirname as dirname3, resolve } from "node:path";
|
|
5541
5541
|
|
|
5542
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5542
|
+
// 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/sealed.js
|
|
5543
5543
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5544
5544
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5545
5545
|
import { Transform } from "node:stream";
|
|
@@ -5646,7 +5646,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5646
5646
|
renameSync(pending, to);
|
|
5647
5647
|
}, "unsealFile");
|
|
5648
5648
|
|
|
5649
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5649
|
+
// 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/store/compatibility.js
|
|
5650
5650
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5651
5651
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5652
5652
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5670,7 +5670,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5670
5670
|
};
|
|
5671
5671
|
}, "compatibilityOf");
|
|
5672
5672
|
|
|
5673
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5673
|
+
// 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/store/repair.js
|
|
5674
5674
|
import { createHash as createHash2 } from "node:crypto";
|
|
5675
5675
|
var COPY_MARK = "__repair_";
|
|
5676
5676
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5924,19 +5924,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5924
5924
|
return found;
|
|
5925
5925
|
}, "deleteCopy");
|
|
5926
5926
|
|
|
5927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5927
|
+
// 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/store-info.js
|
|
5928
5928
|
import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
|
|
5929
5929
|
|
|
5930
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5930
|
+
// 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/store-recover.js
|
|
5931
5931
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5932
5932
|
|
|
5933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5933
|
+
// 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/store/recover.js
|
|
5934
5934
|
import { execFileSync, spawn } from "node:child_process";
|
|
5935
5935
|
import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
|
|
5936
5936
|
import { basename, dirname, join } from "node:path";
|
|
5937
5937
|
import { Transform as Transform2 } from "node:stream";
|
|
5938
5938
|
|
|
5939
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5939
|
+
// 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/store/refill.js
|
|
5940
5940
|
var REFILL_MARGIN_MS = 864e5;
|
|
5941
5941
|
var TIME_KEYS = 1e12;
|
|
5942
5942
|
var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
|
|
@@ -6016,7 +6016,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
|
|
|
6016
6016
|
return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
|
|
6017
6017
|
}, "forgetMail");
|
|
6018
6018
|
|
|
6019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6019
|
+
// 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/store/recover.js
|
|
6020
6020
|
var SQLITE3_MINIMUM = [3, 43, 0];
|
|
6021
6021
|
var STORE_PARTS = ["", "-wal", "-shm"];
|
|
6022
6022
|
var RECOVER_LOCK = ".recover-lock";
|
|
@@ -6547,7 +6547,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
|
|
|
6547
6547
|
}
|
|
6548
6548
|
}, "recoverLocked");
|
|
6549
6549
|
|
|
6550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6550
|
+
// 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/store-recover.js
|
|
6551
6551
|
var COUNTED = [
|
|
6552
6552
|
"accounts",
|
|
6553
6553
|
"chats",
|
|
@@ -6703,7 +6703,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
|
6703
6703
|
return recover;
|
|
6704
6704
|
}, "storeRecoverCommand");
|
|
6705
6705
|
|
|
6706
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6706
|
+
// 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/store-info.js
|
|
6707
6707
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
6708
6708
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
|
|
6709
6709
|
var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
|
|
@@ -6753,7 +6753,7 @@ var sharedStoreCommand = /* @__PURE__ */ __name((app) => {
|
|
|
6753
6753
|
return app ? store.addCommand(storeRecoverCommand(app)) : store;
|
|
6754
6754
|
}, "sharedStoreCommand");
|
|
6755
6755
|
|
|
6756
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6756
|
+
// 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/password.js
|
|
6757
6757
|
var ENCRYPT_OPTION = [
|
|
6758
6758
|
"--encrypt",
|
|
6759
6759
|
"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"
|
|
@@ -6772,7 +6772,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
6772
6772
|
return password;
|
|
6773
6773
|
}, "passwordOf");
|
|
6774
6774
|
|
|
6775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6775
|
+
// 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/replies/rules.js
|
|
6776
6776
|
import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
|
|
6777
6777
|
import { join as join2 } from "node:path";
|
|
6778
6778
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6943,7 +6943,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6943
6943
|
}, "problem");
|
|
6944
6944
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6945
6945
|
|
|
6946
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6946
|
+
// 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/replies/state.js
|
|
6947
6947
|
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
6948
6948
|
import { join as join3 } from "node:path";
|
|
6949
6949
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6996,7 +6996,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6996
6996
|
}, "recordReply");
|
|
6997
6997
|
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");
|
|
6998
6998
|
|
|
6999
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6999
|
+
// 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/replies/decide.js
|
|
7000
7000
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
7001
7001
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
7002
7002
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -7102,10 +7102,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
7102
7102
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
7103
7103
|
}, "filled");
|
|
7104
7104
|
|
|
7105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7105
|
+
// 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/replies/template.js
|
|
7106
7106
|
var import_liquidjs2 = __toESM(require_liquid_node(), 1);
|
|
7107
7107
|
|
|
7108
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7108
|
+
// 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/render/liquid.js
|
|
7109
7109
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
7110
7110
|
var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
7111
7111
|
const engine = new import_liquidjs.Liquid({
|
|
@@ -7132,7 +7132,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
|
7132
7132
|
return engine;
|
|
7133
7133
|
}, "safeLiquid");
|
|
7134
7134
|
|
|
7135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7135
|
+
// 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/replies/template.js
|
|
7136
7136
|
var TEMPLATE_LIMITS = {
|
|
7137
7137
|
parse: 32768,
|
|
7138
7138
|
renders: 2e3,
|
|
@@ -7271,7 +7271,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
7271
7271
|
}
|
|
7272
7272
|
}, "renderReplyTemplate");
|
|
7273
7273
|
|
|
7274
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7274
|
+
// 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/replies/dry-run.js
|
|
7275
7275
|
var DRY_RUN_DAYS = 7;
|
|
7276
7276
|
var PAGE = 500;
|
|
7277
7277
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -7385,7 +7385,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
7385
7385
|
}
|
|
7386
7386
|
}, "storedSince");
|
|
7387
7387
|
|
|
7388
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7388
|
+
// 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/models/purpose.js
|
|
7389
7389
|
var HOSTED = {
|
|
7390
7390
|
openai: "https://api.openai.com/v1",
|
|
7391
7391
|
anthropic: "https://api.anthropic.com"
|
|
@@ -7406,7 +7406,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
|
|
|
7406
7406
|
return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
|
|
7407
7407
|
}, "purposeModel");
|
|
7408
7408
|
|
|
7409
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7409
|
+
// 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/replies/consents.js
|
|
7410
7410
|
import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
|
|
7411
7411
|
import { join as join4 } from "node:path";
|
|
7412
7412
|
var shape = strictObject({
|
|
@@ -7431,7 +7431,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
7431
7431
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
7432
7432
|
}, "mayModelReply");
|
|
7433
7433
|
|
|
7434
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7434
|
+
// 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/replies/rendering.js
|
|
7435
7435
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
|
|
7436
7436
|
ai: true
|
|
7437
7437
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -7479,7 +7479,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
7479
7479
|
return result2;
|
|
7480
7480
|
}, "replyRenderer");
|
|
7481
7481
|
|
|
7482
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7482
|
+
// 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/replies/serve.js
|
|
7483
7483
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
7484
7484
|
var NO_RULES = "no rules";
|
|
7485
7485
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -7572,7 +7572,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
7572
7572
|
return { skip: why };
|
|
7573
7573
|
}, "replyTo");
|
|
7574
7574
|
|
|
7575
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7575
|
+
// 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/serve-catch-up.js
|
|
7576
7576
|
var START_SYNC_DELAY_MS = 3e4;
|
|
7577
7577
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
7578
7578
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -7649,7 +7649,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
|
|
|
7649
7649
|
};
|
|
7650
7650
|
}, "startSync");
|
|
7651
7651
|
|
|
7652
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7652
|
+
// 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/serve-members.js
|
|
7653
7653
|
var FIRST_FETCH_MS = 6e4;
|
|
7654
7654
|
var DAY_MS = 864e5;
|
|
7655
7655
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -7703,7 +7703,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
|
|
|
7703
7703
|
};
|
|
7704
7704
|
}, "memberFetches");
|
|
7705
7705
|
|
|
7706
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7706
|
+
// 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/serve-notice.js
|
|
7707
7707
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
7708
7708
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
7709
7709
|
if (context.format === "pretty") {
|
|
@@ -7736,7 +7736,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7736
7736
|
return context;
|
|
7737
7737
|
}, "recordDiagnostics");
|
|
7738
7738
|
|
|
7739
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7739
|
+
// 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/serve-outdated.js
|
|
7740
7740
|
import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
|
|
7741
7741
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
7742
7742
|
var OUTDATED_CHECK_MS = 6e4;
|
|
@@ -7822,7 +7822,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
|
|
|
7822
7822
|
};
|
|
7823
7823
|
}, "watchOutdated");
|
|
7824
7824
|
|
|
7825
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7825
|
+
// 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/serve-stems.js
|
|
7826
7826
|
var STEMS_EVERY_MS = 3e4;
|
|
7827
7827
|
var STEMS_SLICE_MS = 2e3;
|
|
7828
7828
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -7862,7 +7862,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
7862
7862
|
};
|
|
7863
7863
|
}, "stemFills");
|
|
7864
7864
|
|
|
7865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7865
|
+
// 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/render/messages.js
|
|
7866
7866
|
import { styleText } from "node:util";
|
|
7867
7867
|
var TIME_WIDTH = 8;
|
|
7868
7868
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -8038,7 +8038,7 @@ var editedAt = /* @__PURE__ */ __name((message, options) => {
|
|
|
8038
8038
|
return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
|
|
8039
8039
|
}, "editedAt");
|
|
8040
8040
|
|
|
8041
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8041
|
+
// 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/message-items.js
|
|
8042
8042
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
8043
8043
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
8044
8044
|
kind: attachment.kind,
|
|
@@ -8134,7 +8134,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
8134
8134
|
locale: messenger.app.locale
|
|
8135
8135
|
}), "viewOf");
|
|
8136
8136
|
|
|
8137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8137
|
+
// 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/watch-answers.js
|
|
8138
8138
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
8139
8139
|
value: value.value,
|
|
8140
8140
|
observed_at: value.observedAt,
|
|
@@ -8201,7 +8201,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
8201
8201
|
}
|
|
8202
8202
|
}, "watchEventItem");
|
|
8203
8203
|
|
|
8204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8204
|
+
// 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/watch-command.js
|
|
8205
8205
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
8206
8206
|
output: { entity: "watch_item" },
|
|
8207
8207
|
effects: REMOTE_READ,
|
|
@@ -8356,7 +8356,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
8356
8356
|
}
|
|
8357
8357
|
}, "describe");
|
|
8358
8358
|
|
|
8359
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8359
|
+
// 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/serve-command.js
|
|
8360
8360
|
var CURRENT_EVERY_MS = 6e4;
|
|
8361
8361
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
8362
8362
|
const command = annotate(new Command("serve"), {
|
|
@@ -8656,7 +8656,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
8656
8656
|
};
|
|
8657
8657
|
}, "tasking");
|
|
8658
8658
|
|
|
8659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8659
|
+
// 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/store-tables-command.js
|
|
8660
8660
|
import { existsSync as existsSync9 } from "node:fs";
|
|
8661
8661
|
var PATH = "store tables list";
|
|
8662
8662
|
var STORE_TABLES_QUERY = {
|
|
@@ -8699,7 +8699,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
|
|
|
8699
8699
|
return tables;
|
|
8700
8700
|
}, "storeTablesCommand");
|
|
8701
8701
|
|
|
8702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8702
|
+
// 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/store-maintenance-command.js
|
|
8703
8703
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
8704
8704
|
var WORD_INDEX = "message_words";
|
|
8705
8705
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
timezoneOf,
|
|
5
5
|
zonedMoment
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PQSCABAC.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-B6YBN6VK.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// 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/moment.js
|
|
15
15
|
var calendarMoment = /* @__PURE__ */ __name((wanted, flag, { zone, end = false } = {}) => {
|
|
16
16
|
try {
|
|
17
17
|
return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
|
|
4
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4
|
+
// 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/wirecat-tools.js
|
|
5
5
|
var WIRECAT_TOOLS = [
|
|
6
6
|
{
|
|
7
7
|
command: "tg",
|
|
@@ -74,6 +74,13 @@ var WIRECAT_TOOLS = [
|
|
|
74
74
|
package: "@wirecat/amo-cli",
|
|
75
75
|
does: "amoCRM and Kommo: deals, contacts and companies, searchable with your other WireCat data"
|
|
76
76
|
},
|
|
77
|
+
{
|
|
78
|
+
command: "attio",
|
|
79
|
+
appName: "attio-cli",
|
|
80
|
+
envPrefix: "WCATTIO",
|
|
81
|
+
package: "@wirecat/attio-cli",
|
|
82
|
+
does: "Attio CRM: deals, people and companies, searchable with your other WireCat data"
|
|
83
|
+
},
|
|
77
84
|
{
|
|
78
85
|
command: "pbx",
|
|
79
86
|
appName: "asterisk-cli",
|
|
@@ -19,16 +19,16 @@ import {
|
|
|
19
19
|
reference,
|
|
20
20
|
string,
|
|
21
21
|
variant
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-QZXFWDTX.js";
|
|
23
23
|
import {
|
|
24
24
|
CliError,
|
|
25
25
|
isCliError
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-B6YBN6VK.js";
|
|
27
27
|
import {
|
|
28
28
|
__name
|
|
29
29
|
} from "./chunk-ZVVMGPBJ.js";
|
|
30
30
|
|
|
31
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
31
|
+
// 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/query/types.js
|
|
32
32
|
var QUERY_LIMITS = {
|
|
33
33
|
bytes: 8192,
|
|
34
34
|
depth: 32,
|
|
@@ -72,7 +72,7 @@ function queryError(reason, span, alternative, context = {}, details = {}) {
|
|
|
72
72
|
__name(queryError, "queryError");
|
|
73
73
|
var walkQuery = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => walkQuery(node2)), "walkQuery");
|
|
74
74
|
|
|
75
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
75
|
+
// 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/query/parser.js
|
|
76
76
|
var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
|
|
77
77
|
var reserved = /* @__PURE__ */ new Set([
|
|
78
78
|
"+",
|
|
@@ -381,7 +381,7 @@ var implicitTextTerms = /* @__PURE__ */ __name((text) => {
|
|
|
381
381
|
return new Set(tokens.flatMap((token, index) => (token.kind === "term" || token.kind === "number") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index - 1]?.kind ?? "") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index + 1]?.kind ?? "") ? [token.span.start] : []));
|
|
382
382
|
}, "implicitTextTerms");
|
|
383
383
|
|
|
384
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
384
|
+
// 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/query/dates.js
|
|
385
385
|
var timezoneOf = /* @__PURE__ */ __name((given) => {
|
|
386
386
|
const zone = given ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? "UTC";
|
|
387
387
|
try {
|
|
@@ -531,7 +531,7 @@ var dateRange = /* @__PURE__ */ __name((lower, upper, lowerInclusive, upperInclu
|
|
|
531
531
|
};
|
|
532
532
|
}, "dateRange");
|
|
533
533
|
|
|
534
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
534
|
+
// 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/query/help.js
|
|
535
535
|
var shownOf = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "shownOf");
|
|
536
536
|
var leftOut = /* @__PURE__ */ __name((fields) => fields.filter((field) => field.negatable).map((field) => field.name), "leftOut");
|
|
537
537
|
var has = /* @__PURE__ */ __name((fields, operator) => fields.some((field) => field.operators.includes(operator)), "has");
|
|
@@ -568,7 +568,7 @@ var queryDescription = /* @__PURE__ */ __name((registry) => {
|
|
|
568
568
|
return `${terms}; fields: ${fields.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
|
|
569
569
|
}, "queryDescription");
|
|
570
570
|
|
|
571
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
571
|
+
// 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/query/evaluate.js
|
|
572
572
|
var wordsOf = /* @__PURE__ */ __name((text) => text.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
|
|
573
573
|
var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
|
|
574
574
|
var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
|
|
@@ -623,7 +623,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
|
|
|
623
623
|
}, "matches");
|
|
624
624
|
var evaluate = /* @__PURE__ */ __name((ast, fields, item, options = {}) => matches(ast.root, item, new Map(fields.map((field) => [field.name, field])), options), "evaluate");
|
|
625
625
|
|
|
626
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
626
|
+
// 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/query/fields.js
|
|
627
627
|
var FIELD_TYPES = ["kw", "txt", "enum", "num", "time", "bool", "ref"];
|
|
628
628
|
var OPERATORS_BY_TYPE = {
|
|
629
629
|
kw: ["term", "phrase", "wildcard"],
|
|
@@ -702,7 +702,7 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
|
|
|
702
702
|
return [...own, ...relations, ...states];
|
|
703
703
|
}, "queryFieldsOf");
|
|
704
704
|
|
|
705
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
705
|
+
// 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/query/validate.js
|
|
706
706
|
var inContext = /* @__PURE__ */ __name((context, run) => {
|
|
707
707
|
try {
|
|
708
708
|
run();
|
|
@@ -777,7 +777,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry, options = {}) => {
|
|
|
777
777
|
}, "validateQuery");
|
|
778
778
|
var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
|
|
779
779
|
|
|
780
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
780
|
+
// 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/query/registry.js
|
|
781
781
|
var describeQuery = /* @__PURE__ */ __name((registry) => ({
|
|
782
782
|
entity: registry.entity,
|
|
783
783
|
backend: registry.backend,
|