@wirecat/zoom-cli 0.57.0 → 0.58.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/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-EKHWTGOY.js → all-profiles-RS5IWIGR.js} +7 -7
- package/dist/bundle/answer-policy-R7VZMCGE.js +96 -0
- package/dist/bundle/{anthropic-VL54IUGF.js → anthropic-5QHQR4WF.js} +4 -4
- package/dist/bundle/app-server-7LANSZGE.js +232 -0
- package/dist/bundle/{bun-ADJVI4HY.js → bun-O6RL6LRQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-2SDA3YOT.js → bun-sqlite-PEJM6CS4.js} +3 -3
- package/dist/bundle/{chunk-SQJ7EH2D.js → chunk-24DLFGES.js} +2 -2
- package/dist/bundle/{chunk-SB6WOSHG.js → chunk-27P22POE.js} +24 -24
- package/dist/bundle/{chunk-BW52AJ4R.js → chunk-3SCTDFNO.js} +38 -27
- package/dist/bundle/{chunk-ICSKEDPI.js → chunk-3SERIWJD.js} +220 -220
- package/dist/bundle/{chunk-S4S7E54J.js → chunk-4AURKUDZ.js} +4 -4
- package/dist/bundle/{chunk-IP4OK7RQ.js → chunk-4NGLRHWO.js} +1 -1
- package/dist/bundle/{server-WLJCU7KK.js → chunk-5DVW77VC.js} +37 -60
- package/dist/bundle/{chunk-2IKY7VBH.js → chunk-6CYLVFXM.js} +1 -1
- package/dist/bundle/{chunk-NW3X3G5X.js → chunk-6FL25KC5.js} +4 -4
- package/dist/bundle/{chunk-TLQUKHEM.js → chunk-7D2CD3E3.js} +5 -5
- package/dist/bundle/{chunk-6MX5T6AQ.js → chunk-7GVNQOV6.js} +1 -1
- package/dist/bundle/{chunk-VPPYYWOH.js → chunk-7H3ZRDLW.js} +2 -2
- package/dist/bundle/{chunk-EOQFWJJD.js → chunk-7Z4ANTAK.js} +20 -20
- package/dist/bundle/{chunk-NO7CJEYV.js → chunk-A6323R5P.js} +2 -2
- package/dist/bundle/{chunk-PIN5RZ3D.js → chunk-AIXLOMH4.js} +1 -1
- package/dist/bundle/{chunk-R3HPOCZD.js → chunk-AQDWGJZT.js} +2 -2
- package/dist/bundle/{chunk-CB5UTASG.js → chunk-B32SF7J3.js} +2 -2
- package/dist/bundle/{chunk-GKMGS7G5.js → chunk-BAQLQIMI.js} +26 -26
- package/dist/bundle/{chunk-NN5B24KP.js → chunk-BGILD4CI.js} +27 -27
- package/dist/bundle/{chunk-I4VQDXFR.js → chunk-BXZ6WSVF.js} +4 -4
- package/dist/bundle/{chunk-6M6FJV5D.js → chunk-CTGI4ES2.js} +6 -6
- package/dist/bundle/{chunk-AN3GVZTU.js → chunk-CVIKKIGE.js} +1 -1
- package/dist/bundle/{chunk-UC44ZMQV.js → chunk-DDYR6DYL.js} +1 -1
- package/dist/bundle/{chunk-OIHDCGV4.js → chunk-DP5DX45H.js} +3 -3
- package/dist/bundle/{chunk-DCTXOMOR.js → chunk-DXKVEOSS.js} +20 -2
- package/dist/bundle/{chunk-YB4DMKYX.js → chunk-DXZTLB24.js} +5 -4
- package/dist/bundle/{chunk-HCNMFFG3.js → chunk-G27MRA24.js} +2 -2
- package/dist/bundle/{chunk-2WOGZDZG.js → chunk-IYAGQXED.js} +10 -8
- package/dist/bundle/{chunk-LQ3T2ZIX.js → chunk-K76WFW4I.js} +4 -4
- package/dist/bundle/{chunk-7GUG6UZS.js → chunk-KVHRHBLY.js} +5 -5
- package/dist/bundle/{chunk-SE75DPBY.js → chunk-L2UIJDWB.js} +2 -2
- package/dist/bundle/{chunk-RMV4C2YL.js → chunk-L3VS3H34.js} +6 -6
- package/dist/bundle/{chunk-HG5KRV55.js → chunk-MBT7GP7K.js} +9 -9
- package/dist/bundle/{chunk-LW2G4U6W.js → chunk-MFS52LTZ.js} +1 -1
- package/dist/bundle/{chunk-4YLS4YLS.js → chunk-MMT46EN4.js} +2 -2
- package/dist/bundle/{chunk-MAEFLDHG.js → chunk-MNUTWGSA.js} +39 -37
- package/dist/bundle/{chunk-HKYLSIZ2.js → chunk-N7GAQ27N.js} +3 -3
- package/dist/bundle/{chunk-GARCOIB6.js → chunk-NDXAZB5Z.js} +6 -6
- package/dist/bundle/{chunk-CLMXBW53.js → chunk-NOKFJJPA.js} +6 -6
- package/dist/bundle/{chunk-LY26NW3I.js → chunk-NW7IMGRR.js} +1 -1
- package/dist/bundle/{chunk-K72SEMYI.js → chunk-OBZWUNO4.js} +9 -9
- package/dist/bundle/{chunk-WQ24UC44.js → chunk-PACC5N6T.js} +4 -3
- package/dist/bundle/{chunk-TKCHUT2H.js → chunk-PF25S7L4.js} +2 -2
- package/dist/bundle/{chunk-O66V2WHK.js → chunk-PKTFZAXG.js} +2 -2
- package/dist/bundle/{chunk-WJHK5D7Z.js → chunk-PNBEREOU.js} +258 -244
- package/dist/bundle/{chunk-6P3YHT54.js → chunk-POOGFSRA.js} +4 -4
- package/dist/bundle/{chunk-LXB6ONWC.js → chunk-PP3JGQQE.js} +51 -51
- package/dist/bundle/{chunk-MZH4GDR4.js → chunk-QCFHL4ES.js} +2 -2
- package/dist/bundle/{chunk-7JZJMHQY.js → chunk-QFGBMS67.js} +12 -7
- package/dist/bundle/{chunk-7A6PZUDR.js → chunk-RUP467ZX.js} +22 -12
- package/dist/bundle/{chunk-BW2WPOXP.js → chunk-RXDIG23Z.js} +6 -6
- package/dist/bundle/{chunk-OVSWVPXL.js → chunk-SIA7HJE2.js} +49 -47
- package/dist/bundle/{chunk-TZ2MKETI.js → chunk-SL3SXQZ5.js} +6 -6
- package/dist/bundle/{chunk-LHRCJYFC.js → chunk-SV5L36WK.js} +1 -1
- package/dist/bundle/{chunk-RRRBMQ2E.js → chunk-T6AAM7UT.js} +19 -17
- package/dist/bundle/{chunk-NTDWAAGL.js → chunk-U6QW67SU.js} +797 -559
- package/dist/bundle/{chunk-Z4TZ6TAF.js → chunk-UKR7KH3H.js} +2 -2
- package/dist/bundle/{chunk-LSVI3A5X.js → chunk-UOFOMU3T.js} +9 -9
- package/dist/bundle/{chunk-G4R4ZIGD.js → chunk-URO44C5T.js} +95 -94
- package/dist/bundle/{chunk-5F7IOESV.js → chunk-UXM7I35J.js} +4 -4
- package/dist/bundle/{chunk-4R7HYNZS.js → chunk-UYJUTZTT.js} +3 -3
- package/dist/bundle/{chunk-QLIB3PEC.js → chunk-VOAVOK4I.js} +18 -18
- package/dist/bundle/{chunk-LPTIQLDW.js → chunk-VSUY7PDW.js} +2 -2
- package/dist/bundle/{chunk-A4ETXPMZ.js → chunk-VYUSEJE4.js} +2 -2
- package/dist/bundle/{chunk-OCGPZHXW.js → chunk-XFCSPOLZ.js} +2 -2
- package/dist/bundle/{chunk-4VCA7QU3.js → chunk-XT7XVPEM.js} +13 -13
- package/dist/bundle/{chunk-QTR6D5HT.js → chunk-YIFIY7ZE.js} +2 -2
- package/dist/bundle/{chunk-AE4BOXH7.js → chunk-YIMI6O7R.js} +25 -25
- package/dist/bundle/{chunk-UI5UTMSZ.js → chunk-YJRMMZI5.js} +10 -10
- package/dist/bundle/{chunk-QUJPQMHJ.js → chunk-YSHSCBPM.js} +8 -8
- package/dist/bundle/{chunk-BAYNCCNM.js → chunk-ZC5UXEIH.js} +11 -11
- package/dist/bundle/{chunk-G4VZDINN.js → chunk-ZHXIXDH5.js} +4 -4
- package/dist/bundle/{chunk-5QESMCQK.js → chunk-ZTOAAYFV.js} +3 -3
- package/dist/bundle/{cli-72EQATJF.js → cli-IQTASP44.js} +59 -53
- package/dist/bundle/command-contract-WHZPF7NA.js +38 -0
- package/dist/bundle/config-IP5SGHKN.js +79 -0
- package/dist/bundle/{dist-IBNHCQXT.js → dist-WT73DF46.js} +14 -14
- package/dist/bundle/{echarts-RFTK737T.js → echarts-LD3AI55P.js} +2 -2
- package/dist/bundle/{embed-7QYA2ZZE.js → embed-XEMH4LNX.js} +4 -4
- package/dist/bundle/{embedder-YNN6PCHG.js → embedder-ZCYKSKAE.js} +7 -7
- package/dist/bundle/{first-run-EVSRQKZJ.js → first-run-LGYDLIUM.js} +8 -8
- package/dist/bundle/first-screen-LYQKPNF4.js +36 -0
- package/dist/bundle/{folders-JEPOMYM4.js → folders-5ZBUQHAM.js} +2 -2
- package/dist/bundle/{instructions-FHNL7CMW.js → instructions-RZMSW3OC.js} +3 -1
- package/dist/bundle/{main-NYGJXPH7.js → main-NKY3JGXY.js} +16 -16
- package/dist/bundle/{mcp-VGSZDCKK.js → mcp-7OXUHLTO.js} +64 -64
- package/dist/bundle/{mcp-IXFC2VVR.js → mcp-OQBZXELQ.js} +2 -2
- package/dist/bundle/mcp-VISEXTVC.js +92 -0
- package/dist/bundle/{meetings-IBPI4MM4.js → meetings-XPBHVZAU.js} +4 -4
- package/dist/bundle/{node-ZMCACJVS.js → node-ZRLYQL7J.js} +2 -2
- package/dist/bundle/{node-sqlite-ZNGOBA5Q.js → node-sqlite-BBEDYBWO.js} +3 -3
- package/dist/bundle/{oauth-Q6LKF7DB.js → oauth-UHVRGKZU.js} +5 -5
- package/dist/bundle/{open-LJ332Y5O.js → open-J4FCAUAJ.js} +2 -2
- package/dist/bundle/{output-file-RYQZ3RTE.js → output-file-SXV2ANW7.js} +3 -3
- package/dist/bundle/{process-ZPTLNVQS.js → process-LL77573L.js} +1 -1
- package/dist/bundle/{program-IBRQBQ6W.js → program-EPMIJCGA.js} +80 -80
- package/dist/bundle/{prompt-RT7GUUXH.js → prompt-LUUMQTMY.js} +3 -3
- package/dist/bundle/{recognize-QXGE7YJH.js → recognize-EMHQX4XF.js} +4 -4
- package/dist/bundle/{remote-FD4MZQV3.js → remote-ZXS6D7VB.js} +5 -5
- package/dist/bundle/{rerank-V6AVV755.js → rerank-WP7RKZNB.js} +5 -5
- package/dist/bundle/{run-log-RE2EI3UU.js → run-log-GS2L66G6.js} +53 -53
- package/dist/bundle/{serve-HIJTFAW7.js → serve-L6KLLXK2.js} +7 -7
- package/dist/bundle/server-NOFYENP5.js +53 -0
- package/dist/bundle/server-P5TXAPBY.js +66 -0
- package/dist/bundle/{services-KC5KQFBS.js → services-SPOEWVK3.js} +26 -26
- package/dist/bundle/{speech-5JOXLYDA.js → speech-6OBAKMND.js} +4 -4
- package/dist/bundle/{state-PPGRB3T6.js → state-HN5EJKXQ.js} +4 -4
- package/dist/bundle/{store-WB5BICTG.js → store-LEU3M6IN.js} +13 -13
- package/dist/bundle/{store-LODVDPK3.js → store-ZP2URKET.js} +15 -15
- package/dist/bundle/store-connection-I53XZ2TS.js +76 -0
- package/dist/bundle/store-maintenance-command-PSCHEHHY.js +54 -0
- package/dist/bundle/{streaming-UGFFNOXL.js → streaming-AK6Q2ZGQ.js} +4 -4
- package/dist/bundle/{tokens-AF5CPY2F.js → tokens-CCM3D4ZT.js} +4 -4
- package/dist/bundle/zm.js +1 -1
- package/dist/contract-overrides.d.ts.map +1 -1
- package/dist/contract-overrides.js +12 -2
- package/dist/contract-overrides.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/answer-policy-KH2IFXPN.js +0 -96
- package/dist/bundle/command-contract-4MHSZUN3.js +0 -38
- package/dist/bundle/config-GFIJK6G2.js +0 -79
- package/dist/bundle/first-screen-RG4GUKW7.js +0 -36
- package/dist/bundle/mcp-XKP2PXLS.js +0 -92
- package/dist/bundle/server-3QOXOYYL.js +0 -53
- package/dist/bundle/store-connection-EG6Z5ITP.js +0 -76
- package/dist/bundle/store-maintenance-command-Q5WMFUZ2.js +0 -54
- /package/dist/bundle/{chunk-IVQ6342B.js → chunk-O5EHUB2V.js} +0 -0
- /package/dist/bundle/{chunk-X5DFDGWS.js → chunk-Q2Z3VCM4.js} +0 -0
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
ZM
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SV5L36WK.js";
|
|
6
6
|
import {
|
|
7
7
|
commandsCommand,
|
|
8
8
|
formatSuggestions,
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
runsCommand,
|
|
11
11
|
sharedCommandTemplate,
|
|
12
12
|
suggest
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-U6QW67SU.js";
|
|
14
14
|
import {
|
|
15
15
|
sharedStoreCommand
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SIA7HJE2.js";
|
|
17
17
|
import {
|
|
18
18
|
answerEntity
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RXDIG23Z.js";
|
|
20
20
|
import {
|
|
21
21
|
LOCAL_READ,
|
|
22
22
|
NO_EFFECTS,
|
|
@@ -38,24 +38,24 @@ import {
|
|
|
38
38
|
profileFree,
|
|
39
39
|
renderAnswer,
|
|
40
40
|
snakeKeys
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-MNUTWGSA.js";
|
|
42
42
|
import {
|
|
43
43
|
readOnlyLockOf,
|
|
44
44
|
readOnlyRefusal
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-XFCSPOLZ.js";
|
|
46
46
|
import {
|
|
47
47
|
setupPermissionCeiling
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-4AURKUDZ.js";
|
|
49
49
|
import {
|
|
50
50
|
CEILING_KEY,
|
|
51
51
|
DEFAULT_PERMISSIONS,
|
|
52
52
|
LEVELS,
|
|
53
53
|
keyForCommand,
|
|
54
54
|
levelFor
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-PF25S7L4.js";
|
|
56
56
|
import {
|
|
57
57
|
MEETING_RESULT_ENTITIES
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-PP3JGQQE.js";
|
|
59
59
|
import {
|
|
60
60
|
CliError,
|
|
61
61
|
array,
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
strictObject,
|
|
79
79
|
string,
|
|
80
80
|
union
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-YIMI6O7R.js";
|
|
82
82
|
import {
|
|
83
83
|
__name
|
|
84
84
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -483,7 +483,7 @@ var SHELL_OVERRIDES = {
|
|
|
483
483
|
{
|
|
484
484
|
command: ["mcp", "serve"],
|
|
485
485
|
field: "description",
|
|
486
|
-
before: "serve this profile to an agent over MCP, on stdin and stdout \u2014 `claude mcp add zm -- zm <profile> mcp serve`;
|
|
486
|
+
before: "serve this profile to an agent over MCP, on stdin and stdout \u2014 `claude mcp add zm -- zm <profile> mcp serve`; `zm mcp serve --profiles a,b` or `--profiles all` serves those profiles from one server and each tool asks which",
|
|
487
487
|
after: "serve this profile to an agent over MCP, on stdin and stdout \u2014 `claude mcp add zm -- zm <profile> mcp serve`; `--profiles a,b` or `--profiles all` serves several from one server and each tool asks which",
|
|
488
488
|
reason: "Zoom serves meeting and archive commands over stdio under its selected profile; HTTP-specific options are unsupported."
|
|
489
489
|
},
|
|
@@ -503,7 +503,11 @@ var SHELL_OVERRIDES = {
|
|
|
503
503
|
{
|
|
504
504
|
command: ["mcp", "serve"],
|
|
505
505
|
field: "examples",
|
|
506
|
-
before: [
|
|
506
|
+
before: [
|
|
507
|
+
"zm personal mcp serve",
|
|
508
|
+
"zm mcp serve --profiles work,personal",
|
|
509
|
+
"zm personal mcp serve --http --public-url https://laptop.example.ts.net"
|
|
510
|
+
],
|
|
507
511
|
after: ["zm personal mcp serve"],
|
|
508
512
|
reason: "Zoom serves meeting and archive commands over stdio under its selected profile; HTTP-specific options are unsupported."
|
|
509
513
|
},
|
|
@@ -517,6 +521,12 @@ var SHELL_OVERRIDES = {
|
|
|
517
521
|
takes_value: true,
|
|
518
522
|
mandatory: false
|
|
519
523
|
},
|
|
524
|
+
{
|
|
525
|
+
flags: "--profiles <names|all>",
|
|
526
|
+
description: "serve several profiles from one server instead of one: names, comma-separated, or all for every profile",
|
|
527
|
+
takes_value: true,
|
|
528
|
+
mandatory: false
|
|
529
|
+
},
|
|
520
530
|
{
|
|
521
531
|
flags: "--http",
|
|
522
532
|
description: "serve over HTTP on 127.0.0.1 for ChatGPT and Claude in the browser, behind your tunnel; the profile's permissions decide",
|
|
@@ -2,25 +2,25 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
ENTITIES
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-URO44C5T.js";
|
|
6
6
|
import {
|
|
7
7
|
annotate,
|
|
8
8
|
answerSchema,
|
|
9
9
|
describeOptions,
|
|
10
10
|
metaOf
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MNUTWGSA.js";
|
|
12
12
|
import {
|
|
13
13
|
keyForCommand
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PF25S7L4.js";
|
|
15
15
|
import {
|
|
16
16
|
CliError,
|
|
17
17
|
jsonSchemaOf
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-YIMI6O7R.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
21
|
} from "./chunk-ZVVMGPBJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
24
24
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
25
25
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema, options = {}) => {
|
|
26
26
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -50,7 +50,7 @@ var answerProjectionSchema = /* @__PURE__ */ __name((command) => {
|
|
|
50
50
|
return own && metaOf(command).output?.entity === own.name ? own.project : void 0;
|
|
51
51
|
}, "answerProjectionSchema");
|
|
52
52
|
|
|
53
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
53
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
|
|
54
54
|
var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
55
55
|
var outputOf = /* @__PURE__ */ __name((command) => {
|
|
56
56
|
const entity = answerEntitySchema(command);
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
answerOf,
|
|
5
5
|
messengerContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BAQLQIMI.js";
|
|
7
7
|
import {
|
|
8
8
|
chatEventAnswer,
|
|
9
9
|
memberAnswer,
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
serveRelay,
|
|
13
13
|
typedQuery,
|
|
14
14
|
withQuery
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VOAVOK4I.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-UYJUTZTT.js";
|
|
23
23
|
import {
|
|
24
24
|
RULES_VERSION,
|
|
25
25
|
applyTaskRulesOnArrival,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
openRequestTask,
|
|
29
29
|
servicesFor,
|
|
30
30
|
syncsOneChat
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-3SERIWJD.js";
|
|
32
32
|
import {
|
|
33
33
|
Command,
|
|
34
34
|
LOCAL_READ,
|
|
@@ -52,38 +52,38 @@ import {
|
|
|
52
52
|
snakeKeys,
|
|
53
53
|
storeTable,
|
|
54
54
|
withoutProviderRefs
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-MNUTWGSA.js";
|
|
56
56
|
import {
|
|
57
57
|
envName
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-XFCSPOLZ.js";
|
|
59
59
|
import {
|
|
60
60
|
holdersOf
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-AIXLOMH4.js";
|
|
62
62
|
import {
|
|
63
63
|
codeOf,
|
|
64
64
|
currentRun
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-7Z4ANTAK.js";
|
|
66
66
|
import {
|
|
67
67
|
failureKey
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-A6323R5P.js";
|
|
69
69
|
import {
|
|
70
70
|
renderMessages
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-VSUY7PDW.js";
|
|
72
72
|
import {
|
|
73
73
|
levelFor
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-PF25S7L4.js";
|
|
75
75
|
import {
|
|
76
76
|
readSecret
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-N7GAQ27N.js";
|
|
78
78
|
import {
|
|
79
79
|
checkedOptions,
|
|
80
80
|
range
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-L2UIJDWB.js";
|
|
82
82
|
import {
|
|
83
83
|
messagesFor,
|
|
84
84
|
systemFor,
|
|
85
85
|
validateImages
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-QCFHL4ES.js";
|
|
87
87
|
import {
|
|
88
88
|
MIGRATIONS,
|
|
89
89
|
drainNoteIndex,
|
|
@@ -110,20 +110,20 @@ import {
|
|
|
110
110
|
storeClients,
|
|
111
111
|
storeContents,
|
|
112
112
|
vectorIndexCounts
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-PNBEREOU.js";
|
|
114
114
|
import {
|
|
115
115
|
formatLocator,
|
|
116
116
|
parseLocator
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-NDXAZB5Z.js";
|
|
118
118
|
import {
|
|
119
119
|
storePath
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-B32SF7J3.js";
|
|
121
121
|
import {
|
|
122
122
|
openCache
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-SL3SXQZ5.js";
|
|
124
124
|
import {
|
|
125
125
|
queryFieldsOf
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-UOFOMU3T.js";
|
|
127
127
|
import {
|
|
128
128
|
CliError,
|
|
129
129
|
Credentials,
|
|
@@ -152,7 +152,7 @@ import {
|
|
|
152
152
|
trim,
|
|
153
153
|
union,
|
|
154
154
|
writeSecurely
|
|
155
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-YIMI6O7R.js";
|
|
156
156
|
import {
|
|
157
157
|
__commonJS,
|
|
158
158
|
__name,
|
|
@@ -5492,11 +5492,11 @@ var require_liquid_node = __commonJS({
|
|
|
5492
5492
|
}
|
|
5493
5493
|
});
|
|
5494
5494
|
|
|
5495
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5495
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5496
5496
|
import { chmodSync, constants, copyFileSync, existsSync as existsSync7, mkdirSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync3, writeFileSync } from "node:fs";
|
|
5497
5497
|
import { dirname, resolve } from "node:path";
|
|
5498
5498
|
|
|
5499
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5499
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5500
5500
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5501
5501
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5502
5502
|
import { Transform } from "node:stream";
|
|
@@ -5603,7 +5603,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5603
5603
|
renameSync(pending, to);
|
|
5604
5604
|
}, "unsealFile");
|
|
5605
5605
|
|
|
5606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5606
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5607
5607
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5608
5608
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5609
5609
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5627,7 +5627,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5627
5627
|
};
|
|
5628
5628
|
}, "compatibilityOf");
|
|
5629
5629
|
|
|
5630
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5631
5631
|
import { createHash as createHash2 } from "node:crypto";
|
|
5632
5632
|
var COPY_MARK = "__repair_";
|
|
5633
5633
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5881,7 +5881,7 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5881
5881
|
return found;
|
|
5882
5882
|
}, "deleteCopy");
|
|
5883
5883
|
|
|
5884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5885
5885
|
import { existsSync as existsSync2, statSync as statSync2 } from "node:fs";
|
|
5886
5886
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
5887
5887
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync2(path) ? statSync2(path).size : 0, "bytesOf");
|
|
@@ -5929,7 +5929,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
5929
5929
|
}), "storeInfoCommand");
|
|
5930
5930
|
var sharedStoreCommand = /* @__PURE__ */ __name(() => annotate(new Command("store"), { effects: LOCAL_READ }).description("the shared local store every WireCat tool reads").addCommand(storeInfoCommand()), "sharedStoreCommand");
|
|
5931
5931
|
|
|
5932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
5933
5933
|
var ENCRYPT_OPTION = [
|
|
5934
5934
|
"--encrypt",
|
|
5935
5935
|
"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"
|
|
@@ -5948,7 +5948,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
5948
5948
|
return password;
|
|
5949
5949
|
}, "passwordOf");
|
|
5950
5950
|
|
|
5951
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5951
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
5952
5952
|
import { existsSync as existsSync3, readFileSync } from "node:fs";
|
|
5953
5953
|
import { join } from "node:path";
|
|
5954
5954
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6119,7 +6119,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6119
6119
|
}, "problem");
|
|
6120
6120
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6121
6121
|
|
|
6122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6123
6123
|
import { existsSync as existsSync4, readFileSync as readFileSync2 } from "node:fs";
|
|
6124
6124
|
import { join as join2 } from "node:path";
|
|
6125
6125
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6172,7 +6172,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6172
6172
|
}, "recordReply");
|
|
6173
6173
|
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");
|
|
6174
6174
|
|
|
6175
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6175
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6176
6176
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6177
6177
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6178
6178
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -6278,7 +6278,7 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
6278
6278
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
6279
6279
|
}, "filled");
|
|
6280
6280
|
|
|
6281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
6282
6282
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
6283
6283
|
var TEMPLATE_LIMITS = {
|
|
6284
6284
|
parse: 32768,
|
|
@@ -6438,7 +6438,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
6438
6438
|
}
|
|
6439
6439
|
}, "renderReplyTemplate");
|
|
6440
6440
|
|
|
6441
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6441
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
6442
6442
|
var DRY_RUN_DAYS = 7;
|
|
6443
6443
|
var PAGE = 500;
|
|
6444
6444
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -6552,7 +6552,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
6552
6552
|
}
|
|
6553
6553
|
}, "storedSince");
|
|
6554
6554
|
|
|
6555
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6555
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
6556
6556
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
6557
6557
|
const host = new URL(baseUrl).host;
|
|
6558
6558
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -6583,7 +6583,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
6583
6583
|
};
|
|
6584
6584
|
}, "embeddingKeys");
|
|
6585
6585
|
|
|
6586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
6587
6587
|
var options = strictObject({
|
|
6588
6588
|
temperature: range(0, 2),
|
|
6589
6589
|
top_p: range(0, 1),
|
|
@@ -6632,7 +6632,7 @@ var openai = {
|
|
|
6632
6632
|
}, "complete")
|
|
6633
6633
|
};
|
|
6634
6634
|
|
|
6635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
6636
6636
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
6637
6637
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
6638
6638
|
if (deps.signal?.aborted)
|
|
@@ -6647,7 +6647,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6647
6647
|
if (!adapter && target.provider === "openai")
|
|
6648
6648
|
adapter = openai;
|
|
6649
6649
|
if (!adapter && target.provider === "anthropic")
|
|
6650
|
-
adapter = (await import("./anthropic-
|
|
6650
|
+
adapter = (await import("./anthropic-5QHQR4WF.js")).anthropic;
|
|
6651
6651
|
if (!adapter)
|
|
6652
6652
|
throw new CliError("validation_error", `no model adapter for ${target.provider}`);
|
|
6653
6653
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -6688,7 +6688,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6688
6688
|
}, "complete")
|
|
6689
6689
|
}), "modelGateway");
|
|
6690
6690
|
|
|
6691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6691
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
6692
6692
|
import { existsSync as existsSync5, readFileSync as readFileSync3 } from "node:fs";
|
|
6693
6693
|
import { join as join3 } from "node:path";
|
|
6694
6694
|
var shape = strictObject({
|
|
@@ -6713,7 +6713,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
6713
6713
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
6714
6714
|
}, "mayModelReply");
|
|
6715
6715
|
|
|
6716
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6716
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
6717
6717
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options2 = {
|
|
6718
6718
|
ai: true
|
|
6719
6719
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -6760,7 +6760,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
6760
6760
|
return result2;
|
|
6761
6761
|
}, "replyRenderer");
|
|
6762
6762
|
|
|
6763
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
6764
6764
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
6765
6765
|
var NO_RULES = "no rules";
|
|
6766
6766
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -6853,7 +6853,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
6853
6853
|
return { skip: why };
|
|
6854
6854
|
}, "replyTo");
|
|
6855
6855
|
|
|
6856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6856
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
6857
6857
|
var FIRST_FETCH_MS = 6e4;
|
|
6858
6858
|
var DAY_MS = 864e5;
|
|
6859
6859
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -6907,7 +6907,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, fi
|
|
|
6907
6907
|
};
|
|
6908
6908
|
}, "memberFetches");
|
|
6909
6909
|
|
|
6910
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6910
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
6911
6911
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
6912
6912
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
6913
6913
|
if (context.format === "pretty") {
|
|
@@ -6940,7 +6940,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
6940
6940
|
return context;
|
|
6941
6941
|
}, "recordDiagnostics");
|
|
6942
6942
|
|
|
6943
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6943
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
6944
6944
|
var STEMS_EVERY_MS = 3e4;
|
|
6945
6945
|
var STEMS_SLICE_MS = 2e3;
|
|
6946
6946
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -6980,7 +6980,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
6980
6980
|
};
|
|
6981
6981
|
}, "stemFills");
|
|
6982
6982
|
|
|
6983
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6983
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
6984
6984
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
6985
6985
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
6986
6986
|
kind: attachment.kind,
|
|
@@ -7017,6 +7017,8 @@ var messageItem = /* @__PURE__ */ __name((message, reader) => {
|
|
|
7017
7017
|
sender_name: message.senderName,
|
|
7018
7018
|
sender_username: message.senderUsername,
|
|
7019
7019
|
sender_is_chat: message.senderIsChat,
|
|
7020
|
+
// MAX reports the owner's own messages with no sender id, so `outgoing` counts as well as the id.
|
|
7021
|
+
sender_is_me: message.outgoing === true || message.senderId !== null && String(message.senderId) === account,
|
|
7020
7022
|
mentions: message.mentions,
|
|
7021
7023
|
timestamp: message.timestamp,
|
|
7022
7024
|
edited_at: message.editedAt,
|
|
@@ -7067,7 +7069,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
7067
7069
|
locale: messenger.app.locale
|
|
7068
7070
|
}), "viewOf");
|
|
7069
7071
|
|
|
7070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7072
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
7071
7073
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
7072
7074
|
value: value.value,
|
|
7073
7075
|
observed_at: value.observedAt,
|
|
@@ -7134,7 +7136,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
7134
7136
|
}
|
|
7135
7137
|
}, "watchEventItem");
|
|
7136
7138
|
|
|
7137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
7138
7140
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
7139
7141
|
output: { entity: "watch_item" },
|
|
7140
7142
|
effects: REMOTE_READ,
|
|
@@ -7289,7 +7291,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
7289
7291
|
}
|
|
7290
7292
|
}, "describe");
|
|
7291
7293
|
|
|
7292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7294
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
7293
7295
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
7294
7296
|
const command = annotate(new Command("serve"), {
|
|
7295
7297
|
output: { entity: "serve_summary" },
|
|
@@ -7505,7 +7507,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
7505
7507
|
};
|
|
7506
7508
|
}, "tasking");
|
|
7507
7509
|
|
|
7508
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7510
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
7509
7511
|
import { existsSync as existsSync6 } from "node:fs";
|
|
7510
7512
|
var PATH = "store tables list";
|
|
7511
7513
|
var STORE_TABLES_QUERY = {
|
|
@@ -7548,7 +7550,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
|
|
|
7548
7550
|
return tables;
|
|
7549
7551
|
}, "storeTablesCommand");
|
|
7550
7552
|
|
|
7551
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7553
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
7552
7554
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
7553
7555
|
var WORD_INDEX = "message_words";
|
|
7554
7556
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -2,19 +2,19 @@ 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-YIMI6O7R.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.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/driver.js
|
|
11
11
|
var PRAGMAS = `
|
|
12
12
|
PRAGMA busy_timeout = 5000;
|
|
13
13
|
PRAGMA journal_mode = WAL;
|
|
14
14
|
PRAGMA foreign_keys = ON;
|
|
15
15
|
`;
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
|
|
18
18
|
var SQLITE_WARNING = "SQLite is an experimental feature";
|
|
19
19
|
var quieted = /* @__PURE__ */ new WeakSet();
|
|
20
20
|
var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
|
|
@@ -35,7 +35,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
|
|
|
35
35
|
return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
|
|
36
36
|
}, "isSqliteWarning");
|
|
37
37
|
|
|
38
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/open.js
|
|
39
39
|
var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
40
40
|
const database = await openFile(path);
|
|
41
41
|
try {
|
|
@@ -48,12 +48,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
|
48
48
|
}, "openCache");
|
|
49
49
|
var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
|
|
50
50
|
var openUnderBun = /* @__PURE__ */ __name(async (path) => {
|
|
51
|
-
const { openWithBunSqlite } = await import("./bun-sqlite-
|
|
51
|
+
const { openWithBunSqlite } = await import("./bun-sqlite-PEJM6CS4.js");
|
|
52
52
|
return await openWithBunSqlite(path);
|
|
53
53
|
}, "openUnderBun");
|
|
54
54
|
var openUnderNode = /* @__PURE__ */ __name(async (path) => {
|
|
55
55
|
quietSqliteWarning();
|
|
56
|
-
const { openWithNodeSqlite } = await import("./node-sqlite-
|
|
56
|
+
const { openWithNodeSqlite } = await import("./node-sqlite-BBEDYBWO.js");
|
|
57
57
|
return openWithNodeSqlite(path);
|
|
58
58
|
}, "openUnderNode");
|
|
59
59
|
var runtime = /* @__PURE__ */ __name(() => {
|