@wirecat/zoom-cli 0.59.1 → 0.60.1
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 -3
- package/dist/bin/main.js +1 -0
- package/dist/bin/main.js.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-RS5IWIGR.js → all-profiles-E6KXASLY.js} +6 -6
- package/dist/bundle/answer-policy-YWCC55NB.js +96 -0
- package/dist/bundle/{anthropic-5QHQR4WF.js → anthropic-CSLAACWX.js} +4 -4
- package/dist/bundle/{app-server-7LANSZGE.js → app-server-RYYXX6QV.js} +48 -48
- package/dist/bundle/{bun-O6RL6LRQ.js → bun-JVDJVDHL.js} +2 -2
- package/dist/bundle/{bun-sqlite-PEJM6CS4.js → bun-sqlite-B5CZHAV4.js} +3 -3
- package/dist/bundle/{chunk-BXZ6WSVF.js → chunk-3LBA63D5.js} +4 -4
- package/dist/bundle/{chunk-UXM7I35J.js → chunk-3R437ICM.js} +4 -4
- package/dist/bundle/{chunk-MBT7GP7K.js → chunk-43BX56ZI.js} +9 -9
- package/dist/bundle/{chunk-VYUSEJE4.js → chunk-46R2JTGO.js} +2 -2
- package/dist/bundle/{chunk-2EYP23NY.js → chunk-4TCQT57W.js} +10 -10
- package/dist/bundle/{chunk-3SCTDFNO.js → chunk-6BJQBVMN.js} +16 -16
- package/dist/bundle/{chunk-AQDWGJZT.js → chunk-7IDNHVJS.js} +39 -2
- package/dist/bundle/{chunk-PF25S7L4.js → chunk-AOZGGGUK.js} +2 -2
- package/dist/bundle/{chunk-G27MRA24.js → chunk-AZZPMHP2.js} +2 -2
- package/dist/bundle/{chunk-T6AAM7UT.js → chunk-BO7J5Z3T.js} +20 -17
- package/dist/bundle/{chunk-PNBEREOU.js → chunk-CGCJ6P3A.js} +1906 -1529
- package/dist/bundle/{chunk-PKTFZAXG.js → chunk-DBSWVZES.js} +2 -2
- package/dist/bundle/{chunk-CVIKKIGE.js → chunk-EF2RCQ3L.js} +1 -1
- package/dist/bundle/{chunk-K76WFW4I.js → chunk-EN5DBDKW.js} +4 -4
- package/dist/bundle/{chunk-NDXAZB5Z.js → chunk-ES6UWVTM.js} +6 -6
- package/dist/bundle/{chunk-BAQLQIMI.js → chunk-EUHQ5D4K.js} +31 -27
- package/dist/bundle/{chunk-KVHRHBLY.js → chunk-FWJ3Q7NO.js} +5 -5
- package/dist/bundle/{chunk-ZTOAAYFV.js → chunk-FZMRHNOP.js} +3 -3
- package/dist/bundle/{chunk-NOKFJJPA.js → chunk-GEVHI226.js} +6 -6
- package/dist/bundle/{chunk-YJRMMZI5.js → chunk-HAUAEGGI.js} +10 -10
- package/dist/bundle/{chunk-4NGLRHWO.js → chunk-HBYE4EP2.js} +1 -1
- package/dist/bundle/{chunk-NW7IMGRR.js → chunk-HIAO4MPA.js} +1 -1
- package/dist/bundle/{chunk-VSUY7PDW.js → chunk-HYZ545ON.js} +7 -4
- package/dist/bundle/{chunk-OBZWUNO4.js → chunk-INARC5O7.js} +9 -9
- package/dist/bundle/{chunk-A6323R5P.js → chunk-IQENQXUJ.js} +2 -2
- package/dist/bundle/{chunk-UYJUTZTT.js → chunk-IQSBMAYB.js} +3 -3
- package/dist/bundle/{chunk-4AURKUDZ.js → chunk-IRX2YVAH.js} +4 -4
- package/dist/bundle/{chunk-CTGI4ES2.js → chunk-K6NPOZUP.js} +6 -6
- package/dist/bundle/{chunk-7H3ZRDLW.js → chunk-KNAS4VEA.js} +2 -2
- package/dist/bundle/{chunk-B32SF7J3.js → chunk-KXEC5FVT.js} +2 -2
- package/dist/bundle/{chunk-XFCSPOLZ.js → chunk-KYUIU5UR.js} +2 -2
- package/dist/bundle/{chunk-KDYPY6IL.js → chunk-LPDYI5GR.js} +1 -1
- package/dist/bundle/{chunk-L3VS3H34.js → chunk-LPY2ISJK.js} +6 -6
- package/dist/bundle/{chunk-UOFOMU3T.js → chunk-LVHZQCP4.js} +1 -1
- package/dist/bundle/{chunk-QFGBMS67.js → chunk-N27LOY3D.js} +14 -7
- package/dist/bundle/{chunk-JUS4H7Z5.js → chunk-OBUKZ2ZM.js} +25 -25
- package/dist/bundle/{chunk-RXDIG23Z.js → chunk-OEEMCNAO.js} +6 -6
- package/dist/bundle/{chunk-URO44C5T.js → chunk-PAEBFJUC.js} +157 -145
- package/dist/bundle/{chunk-EUQ7XFPK.js → chunk-PATM7JGR.js} +1 -1
- package/dist/bundle/{chunk-6FL25KC5.js → chunk-PEMLI3T7.js} +4 -4
- package/dist/bundle/{chunk-5DVW77VC.js → chunk-PPHUBORC.js} +32 -32
- package/dist/bundle/{chunk-PP3JGQQE.js → chunk-Q7U627RY.js} +110 -54
- package/dist/bundle/{chunk-7GVNQOV6.js → chunk-QKSCDALS.js} +1 -1
- package/dist/bundle/{chunk-YIMI6O7R.js → chunk-R4SRXI7M.js} +111 -111
- package/dist/bundle/{chunk-DP5DX45H.js → chunk-RACSKYNX.js} +1 -1
- package/dist/bundle/{chunk-L2UIJDWB.js → chunk-REC3AZP6.js} +2 -2
- package/dist/bundle/{chunk-24DLFGES.js → chunk-RUEPZTNA.js} +2 -2
- package/dist/bundle/{chunk-ZC5UXEIH.js → chunk-TY5PBEH2.js} +11 -11
- package/dist/bundle/{chunk-UKR7KH3H.js → chunk-UWVNY5CA.js} +2 -2
- package/dist/bundle/{chunk-SIA7HJE2.js → chunk-V53IB5AU.js} +56 -49
- package/dist/bundle/{chunk-N7GAQ27N.js → chunk-VJBVNDFR.js} +3 -3
- package/dist/bundle/{chunk-IYAGQXED.js → chunk-VKUS2V4L.js} +8 -8
- package/dist/bundle/{chunk-27P22POE.js → chunk-VLE3FWE3.js} +30 -26
- package/dist/bundle/{recognize-EMHQX4XF.js → chunk-VVKHF6VJ.js} +7 -6
- package/dist/bundle/{chunk-AIXLOMH4.js → chunk-W5EUHV3J.js} +1 -1
- package/dist/bundle/{chunk-QCFHL4ES.js → chunk-WB7MQHUI.js} +2 -2
- package/dist/bundle/{chunk-7Z4ANTAK.js → chunk-WEUXLXOZ.js} +28 -20
- package/dist/bundle/{chunk-VOAVOK4I.js → chunk-WFT2GGFH.js} +57 -18
- package/dist/bundle/{chunk-DXZTLB24.js → chunk-WWNZS7ZY.js} +4 -4
- package/dist/bundle/{chunk-MIGIKHER.js → chunk-WYRYLBST.js} +4 -4
- package/dist/bundle/{chunk-PACC5N6T.js → chunk-X7YPTYM4.js} +10 -3
- package/dist/bundle/{chunk-DXKVEOSS.js → chunk-XLJV3ZOH.js} +1 -1
- package/dist/bundle/{chunk-7D2CD3E3.js → chunk-XNUFDYR6.js} +5 -5
- package/dist/bundle/{chunk-YIFIY7ZE.js → chunk-XS72YFPV.js} +2 -2
- package/dist/bundle/{chunk-ZHXIXDH5.js → chunk-XX7KVQIG.js} +4 -4
- package/dist/bundle/{chunk-MNUTWGSA.js → chunk-Y3YURIZF.js} +32 -32
- package/dist/bundle/{chunk-XT7XVPEM.js → chunk-YEZQ7SD7.js} +11 -11
- package/dist/bundle/{chunk-SL3SXQZ5.js → chunk-YLATWUE7.js} +6 -6
- package/dist/bundle/{chunk-MMT46EN4.js → chunk-Z4D6M62I.js} +2 -2
- package/dist/bundle/{chunk-3SERIWJD.js → chunk-Z5H47R4G.js} +7856 -7818
- package/dist/bundle/{chunk-U6QW67SU.js → chunk-ZDRDCANC.js} +374 -317
- package/dist/bundle/{chunk-DDYR6DYL.js → chunk-ZK7Y5K63.js} +1 -1
- package/dist/bundle/{chunk-YSHSCBPM.js → chunk-ZXQCA3ZW.js} +8 -8
- package/dist/bundle/{cli-IQTASP44.js → cli-CYKEKT5P.js} +54 -54
- package/dist/bundle/command-contract-P45QCCXM.js +38 -0
- package/dist/bundle/config-JYKTLEA3.js +79 -0
- package/dist/bundle/decode-CTQJQYNU.js +158 -0
- package/dist/bundle/{dist-WT73DF46.js → dist-YLSQKPPY.js} +13 -13
- package/dist/bundle/{echarts-LD3AI55P.js → echarts-4OQHS575.js} +2 -2
- package/dist/bundle/{embed-XEMH4LNX.js → embed-P2BKRRJD.js} +4 -4
- package/dist/bundle/{embedder-ZCYKSKAE.js → embedder-HC6ZARP5.js} +7 -7
- package/dist/bundle/{first-run-LGYDLIUM.js → first-run-UERFFXBV.js} +7 -7
- package/dist/bundle/first-screen-VFIS7FX3.js +36 -0
- package/dist/bundle/{folders-5ZBUQHAM.js → folders-RSLPTZLJ.js} +2 -2
- package/dist/bundle/{instructions-RZMSW3OC.js → instructions-3QZBKKPF.js} +1 -1
- package/dist/bundle/{main-LDCSYBV3.js → main-2T6D77JC.js} +17 -16
- package/dist/bundle/mcp-4VHVUMCR.js +92 -0
- package/dist/bundle/{mcp-M7MW5EGT.js → mcp-6CLW2IZM.js} +62 -62
- package/dist/bundle/{meetings-XPBHVZAU.js → meetings-ZIDSQZBJ.js} +7 -3
- package/dist/bundle/{node-ZRLYQL7J.js → node-R2BLYUSB.js} +2 -2
- package/dist/bundle/node-sqlite-7CGHAHIS.js +61 -0
- package/dist/bundle/{oauth-UHVRGKZU.js → oauth-UBCYXTWV.js} +5 -5
- package/dist/bundle/{open-J4FCAUAJ.js → open-AWUB4Q7Z.js} +2 -2
- package/dist/bundle/{output-file-SXV2ANW7.js → output-file-SN22HAVL.js} +3 -3
- package/dist/bundle/{process-LL77573L.js → process-IX5YWGDP.js} +1 -1
- package/dist/bundle/{program-4S5BJVSW.js → program-STYPTNT3.js} +74 -70
- package/dist/bundle/{prompt-LUUMQTMY.js → prompt-MAYUHEGN.js} +3 -3
- package/dist/bundle/recognize-FVTNXRTF.js +21 -0
- package/dist/bundle/{remote-ZXS6D7VB.js → remote-WCPRU73L.js} +5 -5
- package/dist/bundle/{rerank-WP7RKZNB.js → rerank-6CBLZBCV.js} +5 -5
- package/dist/bundle/{run-log-GS2L66G6.js → run-log-G4WZTOBW.js} +51 -51
- package/dist/bundle/{serve-L6KLLXK2.js → serve-3IDUVTZL.js} +7 -7
- package/dist/bundle/server-7GU36TER.js +66 -0
- package/dist/bundle/server-VHRS5UAL.js +53 -0
- package/dist/bundle/{services-SPOEWVK3.js → services-326Z3TNE.js} +24 -24
- package/dist/bundle/{speech-6OBAKMND.js → speech-KSZ7RKM3.js} +4 -4
- package/dist/bundle/{state-HN5EJKXQ.js → state-EPB3L2JM.js} +4 -4
- package/dist/bundle/{store-ZP2URKET.js → store-7WX7SW2R.js} +14 -14
- package/dist/bundle/{store-LEU3M6IN.js → store-KO242JBK.js} +12 -12
- package/dist/bundle/store-connection-K3MNDCQQ.js +76 -0
- package/dist/bundle/store-maintenance-command-GJDJYI2U.js +54 -0
- package/dist/bundle/{streaming-AK6Q2ZGQ.js → streaming-M6VDKBBH.js} +4 -4
- package/dist/bundle/{tokens-CCM3D4ZT.js → tokens-BTNXHR7T.js} +4 -4
- package/dist/bundle/zm.js +1 -1
- package/dist/login.d.ts +1 -0
- package/dist/login.d.ts.map +1 -1
- package/dist/login.js +1 -1
- package/dist/login.js.map +1 -1
- package/dist/recording-schedule-setup.d.ts.map +1 -1
- package/dist/recording-schedule-setup.js +1 -0
- package/dist/recording-schedule-setup.js.map +1 -1
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +6 -1
- package/dist/setup-commands.js.map +1 -1
- package/dist/tokens.d.ts +15 -0
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +40 -1
- package/dist/tokens.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/zoom-cli/SKILL.md +1 -0
- package/dist/bundle/answer-policy-7BYG6XWZ.js +0 -96
- package/dist/bundle/command-contract-WHZPF7NA.js +0 -38
- package/dist/bundle/config-AXMQ2PXT.js +0 -79
- package/dist/bundle/first-screen-LYQKPNF4.js +0 -36
- package/dist/bundle/mcp-VISEXTVC.js +0 -92
- package/dist/bundle/node-sqlite-BBEDYBWO.js +0 -45
- package/dist/bundle/server-NOFYENP5.js +0 -53
- package/dist/bundle/server-P5TXAPBY.js +0 -66
- package/dist/bundle/store-connection-3UZBORXK.js +0 -76
- package/dist/bundle/store-maintenance-command-PSCHEHHY.js +0 -54
- /package/dist/bundle/{chunk-Q2Z3VCM4.js → chunk-YLBNPI7H.js} +0 -0
|
@@ -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-R4SRXI7M.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.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/http/public-url.js
|
|
11
11
|
var EXAMPLE = "--public-url https://<name>.ts.net";
|
|
12
12
|
var publicUrlOf = /* @__PURE__ */ __name((given, { missing, reaches, path = false }) => {
|
|
13
13
|
if (!given)
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
|
|
8
8
|
import { PassThrough, Writable } from "node:stream";
|
|
9
9
|
var lineReader = /* @__PURE__ */ __name((onMessage) => {
|
|
10
10
|
let rest = "";
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
processStreams,
|
|
8
8
|
projectFields,
|
|
9
9
|
singleLine
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-R4SRXI7M.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
16
16
|
var named = /* @__PURE__ */ __name((work) => {
|
|
17
17
|
try {
|
|
18
18
|
return work();
|
|
@@ -39,7 +39,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
39
39
|
return projectFields(value, fields);
|
|
40
40
|
}), "projectFields");
|
|
41
41
|
|
|
42
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
43
43
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
44
44
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
45
45
|
var isHit = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && typeof value.locator === "string" && typeof value.text === "string", "isHit");
|
|
@@ -69,7 +69,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
69
69
|
return value;
|
|
70
70
|
}, "atDetail");
|
|
71
71
|
|
|
72
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
72
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/output.js
|
|
73
73
|
var resolveOutput = /* @__PURE__ */ __name(({ json, jsonl, quiet, streams = processStreams, tty, color, fields, hitDetail, env = process.env, capture } = {}) => {
|
|
74
74
|
const interactive = tty ?? process.stdout.isTTY === true;
|
|
75
75
|
const format = jsonl ? "jsonl" : json || !interactive ? "json" : "pretty";
|
|
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
CliError,
|
|
5
5
|
singleLine
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-R4SRXI7M.js";
|
|
7
7
|
import {
|
|
8
8
|
__name
|
|
9
9
|
} from "./chunk-ZVVMGPBJ.js";
|
|
10
10
|
|
|
11
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/domain/providers.js
|
|
12
12
|
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events"];
|
|
13
13
|
var PROVIDERS = [
|
|
14
14
|
{ name: "telegram", kind: "messages", aliases: ["tg"] },
|
|
@@ -102,7 +102,7 @@ var providerNamed = /* @__PURE__ */ __name((word) => {
|
|
|
102
102
|
var kindIn = /* @__PURE__ */ __name((provider) => isFolderProvider(provider) ? "notes" : registry.find(({ name }) => name === provider)?.kind, "kindIn");
|
|
103
103
|
var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
|
|
104
104
|
|
|
105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
106
106
|
var SCHEME = "msg:";
|
|
107
107
|
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
|
|
108
108
|
var isLocator = /* @__PURE__ */ __name((reference) => reference.trim().startsWith(SCHEME), "isLocator");
|
|
@@ -116,7 +116,7 @@ var parseLocator = /* @__PURE__ */ __name((reference) => {
|
|
|
116
116
|
return { provider, account, chat, message };
|
|
117
117
|
}, "parseLocator");
|
|
118
118
|
|
|
119
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
119
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
120
120
|
var SIMPLE_REFERENCES = [
|
|
121
121
|
"note",
|
|
122
122
|
"document",
|
|
@@ -188,7 +188,7 @@ var folderPath = /* @__PURE__ */ __name((path) => {
|
|
|
188
188
|
}, "folderPath");
|
|
189
189
|
var canonicalReference = /* @__PURE__ */ __name((text) => formatReference(parseReference(text)), "canonicalReference");
|
|
190
190
|
|
|
191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/domain/counters.js
|
|
192
192
|
var COUNTER_FIELDS = ["views", "reactions", "comments"];
|
|
193
193
|
var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
|
|
194
194
|
var counterValue = /* @__PURE__ */ __name((message, field) => {
|
|
@@ -225,7 +225,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
|
|
|
225
225
|
return states.some((one) => one.freshness === "stale") ? "stale" : "fresh";
|
|
226
226
|
}, "counterFreshness");
|
|
227
227
|
|
|
228
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
228
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
|
|
229
229
|
var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
|
|
230
230
|
var AUTHOR_MEASURES = [
|
|
231
231
|
"messages",
|
|
@@ -2,17 +2,17 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
refuseLacking
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WFT2GGFH.js";
|
|
6
6
|
import {
|
|
7
7
|
servingProfiles
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IQSBMAYB.js";
|
|
9
9
|
import {
|
|
10
10
|
OFFLINE,
|
|
11
11
|
capability,
|
|
12
12
|
chatIdIn,
|
|
13
13
|
servicesFor,
|
|
14
14
|
throughWrapper
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Z5H47R4G.js";
|
|
16
16
|
import {
|
|
17
17
|
asFirstWord,
|
|
18
18
|
baseContext,
|
|
@@ -23,14 +23,14 @@ import {
|
|
|
23
23
|
recalledAccount,
|
|
24
24
|
rememberAccount,
|
|
25
25
|
rootOf2 as rootOf
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-Y3YURIZF.js";
|
|
27
27
|
import {
|
|
28
28
|
MESSENGER_CHANGE_REFUSAL,
|
|
29
29
|
readOnlyRefusal
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-KYUIU5UR.js";
|
|
31
31
|
import {
|
|
32
32
|
providerErrorKey
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-VKUS2V4L.js";
|
|
34
34
|
import {
|
|
35
35
|
LOG_ATTRIBUTES,
|
|
36
36
|
codeOf,
|
|
@@ -38,15 +38,15 @@ import {
|
|
|
38
38
|
currentRun,
|
|
39
39
|
fromLogAttributes,
|
|
40
40
|
logAttributes
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-WEUXLXOZ.js";
|
|
42
42
|
import {
|
|
43
43
|
isCliFailure
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-IQENQXUJ.js";
|
|
45
45
|
import {
|
|
46
46
|
foldName,
|
|
47
47
|
isId,
|
|
48
48
|
pickPerson
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-LPY2ISJK.js";
|
|
50
50
|
import {
|
|
51
51
|
AUTHORITY_KEY,
|
|
52
52
|
CEILING_KEY,
|
|
@@ -57,22 +57,22 @@ import {
|
|
|
57
57
|
levelFor,
|
|
58
58
|
readKeysForCommand,
|
|
59
59
|
skipFlagFor
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-AOZGGGUK.js";
|
|
61
61
|
import {
|
|
62
62
|
openStore
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-CGCJ6P3A.js";
|
|
64
64
|
import {
|
|
65
65
|
CliError,
|
|
66
66
|
logRecordOf,
|
|
67
67
|
realSleep,
|
|
68
68
|
resolvePaths,
|
|
69
69
|
writeSecurely
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-R4SRXI7M.js";
|
|
71
71
|
import {
|
|
72
72
|
__name
|
|
73
73
|
} from "./chunk-ZVVMGPBJ.js";
|
|
74
74
|
|
|
75
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
75
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
|
|
76
76
|
import { openSync } from "node:fs";
|
|
77
77
|
import { createInterface } from "node:readline";
|
|
78
78
|
import { ReadStream } from "node:tty";
|
|
@@ -127,10 +127,10 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
127
127
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
128
128
|
}, "terminalAsker");
|
|
129
129
|
|
|
130
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
130
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
131
131
|
import { randomUUID } from "node:crypto";
|
|
132
132
|
|
|
133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
133
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
134
134
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
135
135
|
import { dirname, join } from "node:path";
|
|
136
136
|
var MOST_DEADLINES = 50;
|
|
@@ -214,11 +214,11 @@ var FloodMemory = class {
|
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
216
|
|
|
217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
217
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
218
218
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
219
219
|
import { dirname as dirname3, join as join2 } from "node:path";
|
|
220
220
|
|
|
221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
221
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
222
222
|
import { closeSync, mkdirSync as mkdirSync2, openSync as openSync2, statSync, unlinkSync } from "node:fs";
|
|
223
223
|
import { dirname as dirname2 } from "node:path";
|
|
224
224
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -285,7 +285,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
285
285
|
}
|
|
286
286
|
}, "lockTime");
|
|
287
287
|
|
|
288
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
288
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
289
289
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
290
290
|
var SendJournal = class {
|
|
291
291
|
static {
|
|
@@ -362,7 +362,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
362
362
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
363
363
|
}, "withSendId");
|
|
364
364
|
|
|
365
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
365
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
366
366
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
367
367
|
import { join as join3 } from "node:path";
|
|
368
368
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -474,7 +474,7 @@ var RecipientList = class {
|
|
|
474
474
|
}
|
|
475
475
|
};
|
|
476
476
|
|
|
477
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
477
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
478
478
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
479
479
|
var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
|
|
480
480
|
"attachments.extract",
|
|
@@ -667,7 +667,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
667
667
|
}), "guardFor");
|
|
668
668
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
669
669
|
|
|
670
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
670
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
671
671
|
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
672
672
|
"help",
|
|
673
673
|
"guide",
|
|
@@ -746,7 +746,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
746
746
|
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
747
747
|
}, "refuseUnknownPermissionKeys");
|
|
748
748
|
|
|
749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
749
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
750
750
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
751
751
|
var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false }) => {
|
|
752
752
|
let warned = false;
|
|
@@ -1238,7 +1238,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
1238
1238
|
}
|
|
1239
1239
|
}, "keep");
|
|
1240
1240
|
|
|
1241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1241
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
1242
1242
|
import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
1243
1243
|
import { join as join4 } from "node:path";
|
|
1244
1244
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -1297,7 +1297,7 @@ var Pacer = class {
|
|
|
1297
1297
|
}
|
|
1298
1298
|
};
|
|
1299
1299
|
|
|
1300
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1300
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
1301
1301
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
1302
1302
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
1303
1303
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
@@ -1416,7 +1416,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
1416
1416
|
});
|
|
1417
1417
|
}, "flooded");
|
|
1418
1418
|
|
|
1419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
1420
1420
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
1421
1421
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
1422
1422
|
const write = currentOperation();
|
|
@@ -1515,7 +1515,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
1515
1515
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
1516
1516
|
}, "byPart");
|
|
1517
1517
|
|
|
1518
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1518
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
1519
1519
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1520
1520
|
let opened;
|
|
1521
1521
|
return {
|
|
@@ -1578,7 +1578,11 @@ var storedMessages = /* @__PURE__ */ __name((provider, store, account) => {
|
|
|
1578
1578
|
pollVotes: /* @__PURE__ */ __name(async (chatId, messageId) => {
|
|
1579
1579
|
const owner = key();
|
|
1580
1580
|
return owner ? (await store()).messages.pollVotes(owner, chatId, messageId) : [];
|
|
1581
|
-
}, "pollVotes")
|
|
1581
|
+
}, "pollVotes"),
|
|
1582
|
+
reactors: /* @__PURE__ */ __name(async (chatId, messageId) => {
|
|
1583
|
+
const owner = key();
|
|
1584
|
+
return owner ? (await store()).messages.reactors(owner, chatId, messageId) : [];
|
|
1585
|
+
}, "reactors")
|
|
1582
1586
|
};
|
|
1583
1587
|
}, "storedMessages");
|
|
1584
1588
|
var connectFor = /* @__PURE__ */ __name((command, messenger, base, options = {}) => {
|
|
@@ -2,21 +2,21 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
storePath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KXEC5FVT.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError,
|
|
8
8
|
resolvePaths,
|
|
9
9
|
singleLine
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-R4SRXI7M.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
16
16
|
import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
17
17
|
import { dirname, join, resolve } from "node:path";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
20
20
|
var DEFAULT_TASK_CATEGORIES = [
|
|
21
21
|
{
|
|
22
22
|
name: "taxes",
|
|
@@ -771,7 +771,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
771
771
|
}
|
|
772
772
|
}, "storedTaskCategories");
|
|
773
773
|
|
|
774
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
774
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
775
775
|
var SECTION = "task_categories";
|
|
776
776
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
777
777
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
unit
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GEVHI226.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-R4SRXI7M.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.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
|
|
14
14
|
import { setTimeout } from "node:timers/promises";
|
|
15
15
|
var OPENAI_URL = "https://api.openai.com/v1";
|
|
16
16
|
var OPENAI_MODELS = {
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PEMLI3T7.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-R4SRXI7M.js";
|
|
12
12
|
import {
|
|
13
13
|
importFrom
|
|
14
14
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
20
20
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
21
21
|
import { availableParallelism } from "node:os";
|
|
22
22
|
import { basename, join as join2 } from "node:path";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
25
25
|
import { createHash } from "node:crypto";
|
|
26
26
|
import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
27
27
|
import { join } from "node:path";
|
|
@@ -678,7 +678,7 @@ var Unzip = /* @__PURE__ */ (function() {
|
|
|
678
678
|
return Unzip2;
|
|
679
679
|
})();
|
|
680
680
|
|
|
681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
682
682
|
var ONNX_RUNTIME_VERSION = "1.30.0";
|
|
683
683
|
var release = /* @__PURE__ */ __name((name, sha256, bytes) => ({
|
|
684
684
|
name,
|
|
@@ -858,7 +858,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
|
|
|
858
858
|
return { ort, session: await ort.InferenceSession.create(bytes, options) };
|
|
859
859
|
}, "openSession");
|
|
860
860
|
|
|
861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
862
862
|
var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
|
|
863
863
|
var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
|
|
864
864
|
var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
|
|
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
envName,
|
|
5
5
|
readOnlyLockOf
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KYUIU5UR.js";
|
|
7
7
|
import {
|
|
8
8
|
CAPABILITY_STATEMENTS,
|
|
9
9
|
storeCapable
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YLATWUE7.js";
|
|
11
11
|
import {
|
|
12
12
|
CliError,
|
|
13
13
|
catchCrashes
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-R4SRXI7M.js";
|
|
15
15
|
import {
|
|
16
16
|
importFrom
|
|
17
17
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-ZVVMGPBJ.js";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
23
23
|
import { spawn as spawn2 } from "node:child_process";
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
|
|
26
26
|
import { spawn, spawnSync } from "node:child_process";
|
|
27
27
|
import { readFileSync } from "node:fs";
|
|
28
28
|
import { dirname } from "node:path";
|
|
@@ -110,7 +110,7 @@ var relay = /* @__PURE__ */ __name((child, host = process) => new Promise(() =>
|
|
|
110
110
|
});
|
|
111
111
|
}), "relay");
|
|
112
112
|
|
|
113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
|
|
114
114
|
import { appendFileSync } from "node:fs";
|
|
115
115
|
var logParsedArgv = /* @__PURE__ */ __name((file, action) => {
|
|
116
116
|
const words = [];
|
|
@@ -134,7 +134,7 @@ var logVersion = /* @__PURE__ */ __name((file) => {
|
|
|
134
134
|
`);
|
|
135
135
|
}, "logVersion");
|
|
136
136
|
|
|
137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
138
138
|
var processIo = /* @__PURE__ */ __name(() => ({
|
|
139
139
|
argv: process.argv,
|
|
140
140
|
env: process.env,
|
|
@@ -188,8 +188,8 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
188
188
|
if (command.optsWithGlobals().dryRun === true)
|
|
189
189
|
return;
|
|
190
190
|
const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
|
|
191
|
-
import("./first-run-
|
|
192
|
-
import("./command-contract-
|
|
191
|
+
import("./first-run-UERFFXBV.js"),
|
|
192
|
+
import("./command-contract-P45QCCXM.js")
|
|
193
193
|
]);
|
|
194
194
|
await setupAtStart({
|
|
195
195
|
command: entry.app.command,
|
|
@@ -204,7 +204,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
204
204
|
ask: /* @__PURE__ */ __name(async (question, command) => {
|
|
205
205
|
if (headless(command) || io.stdin.isTTY !== true)
|
|
206
206
|
return false;
|
|
207
|
-
const { readSecret } = await import("./prompt-
|
|
207
|
+
const { readSecret } = await import("./prompt-MAYUHEGN.js");
|
|
208
208
|
const answer = await readSecret(`${question} [y/N] `, {
|
|
209
209
|
input: io.stdin,
|
|
210
210
|
output: io.stderr,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
|
|
8
8
|
var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
|
|
9
9
|
`The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
|
|
10
10
|
"Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
|
|
8
8
|
var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
|
|
9
9
|
var kindsByConstructor = /* @__PURE__ */ new WeakMap();
|
|
10
10
|
function collectKinds(ctor) {
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
singleLine,
|
|
9
9
|
visibleControls
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-R4SRXI7M.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/render/messages.js
|
|
16
16
|
import { styleText } from "node:util";
|
|
17
17
|
var TIME_WIDTH = 8;
|
|
18
18
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -119,9 +119,12 @@ var attachmentLines = /* @__PURE__ */ __name((attachments, paint, options) => {
|
|
|
119
119
|
let number = 0;
|
|
120
120
|
const keyboard = attachments.flatMap((attachment) => attachment.buttons ?? []).map((row) => paint("dim", row.map((button) => link(`[${++number} ${singleLine(button.text)}]`, button.url)).join(" ")));
|
|
121
121
|
const polls = attachments.flatMap((attachment) => attachment.poll ? pollLines(attachment.poll) : []);
|
|
122
|
+
const cards = attachments.flatMap(({ contact }) => contact ? [
|
|
123
|
+
paint("dim", `\u{1F464} ${[contact.name, contact.phone].flatMap((part) => part ? [singleLine(part)] : []).join(" \xB7 ")}`)
|
|
124
|
+
] : []);
|
|
122
125
|
const groups = /* @__PURE__ */ new Map();
|
|
123
126
|
for (const attachment of attachments) {
|
|
124
|
-
if (attachment.buttons || attachment.poll)
|
|
127
|
+
if (attachment.buttons || attachment.poll || attachment.contact)
|
|
125
128
|
continue;
|
|
126
129
|
const key = singleLine(attachment.name ?? attachment.title ?? attachment.kind);
|
|
127
130
|
groups.set(key, [...groups.get(key) ?? [], attachment]);
|
|
@@ -134,7 +137,7 @@ var attachmentLines = /* @__PURE__ */ __name((attachments, paint, options) => {
|
|
|
134
137
|
const each = same.map((attachment, index) => link(String(index + 1), attachment.url)).join(" ");
|
|
135
138
|
return paint("dim", `\u{1F4CE} ${label} \xD7${same.length} ${each}`);
|
|
136
139
|
});
|
|
137
|
-
return [...polls, ...files, ...keyboard];
|
|
140
|
+
return [...polls, ...cards, ...files, ...keyboard];
|
|
138
141
|
}, "attachmentLines");
|
|
139
142
|
var pollLines = /* @__PURE__ */ __name((poll) => {
|
|
140
143
|
const kind = [
|
|
@@ -2,47 +2,47 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
botInstructions
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HBYE4EP2.js";
|
|
6
6
|
import {
|
|
7
7
|
answered,
|
|
8
8
|
normal,
|
|
9
9
|
registerCommands,
|
|
10
10
|
runCommandForAgent,
|
|
11
11
|
toolsFromCommands
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6BJQBVMN.js";
|
|
13
13
|
import {
|
|
14
14
|
agentJson,
|
|
15
15
|
skillResource
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YEZQ7SD7.js";
|
|
17
17
|
import {
|
|
18
18
|
callerOf,
|
|
19
19
|
serveStdio
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KNAS4VEA.js";
|
|
21
21
|
import {
|
|
22
22
|
McpServer
|
|
23
23
|
} from "./chunk-5D4AEUVA.js";
|
|
24
24
|
import {
|
|
25
25
|
wholeList
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-WFT2GGFH.js";
|
|
27
27
|
import {
|
|
28
28
|
changesMessenger,
|
|
29
29
|
flatten,
|
|
30
30
|
itemOf
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-Y3YURIZF.js";
|
|
32
32
|
import {
|
|
33
33
|
MESSENGER_CHANGE_REFUSAL,
|
|
34
34
|
readOnlyLockOf,
|
|
35
35
|
readOnlyRefusal
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-KYUIU5UR.js";
|
|
37
37
|
import {
|
|
38
38
|
mcpErrorResult,
|
|
39
39
|
object
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-R4SRXI7M.js";
|
|
41
41
|
import {
|
|
42
42
|
__name
|
|
43
43
|
} from "./chunk-ZVVMGPBJ.js";
|
|
44
44
|
|
|
45
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/mcp/bot/server.js
|
|
46
46
|
import { randomUUID } from "node:crypto";
|
|
47
47
|
var body = /* @__PURE__ */ __name((command, value) => Array.isArray(value) ? wholeList(`bot ${command}`, value) : value !== null && typeof value === "object" && ("item" in value || "items" in value) ? value : itemOf(value !== null && typeof value === "object" ? value : { value }), "body");
|
|
48
48
|
var createBotServer = /* @__PURE__ */ __name((options) => {
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
errorCodes
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-R4SRXI7M.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.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/errors/failures.js
|
|
11
11
|
var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
|
|
12
12
|
var isCommanderFailure = /* @__PURE__ */ __name((value) => {
|
|
13
13
|
const { code, exitCode } = value ?? {};
|