@wirecat/mail-cli 0.31.0 → 0.33.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/CHANGELOG.md +24 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-XL62TNUO.js → all-profiles-W3CGXEEJ.js} +10 -10
- package/dist/bundle/{anthropic-3MSWVYCE.js → anthropic-UMDO5AKP.js} +5 -5
- package/dist/bundle/{app-server-RRNR5XFA.js → app-server-4SICQ5RP.js} +50 -50
- package/dist/bundle/{bun-E3F3PEQQ.js → bun-QVVCH4MJ.js} +2 -2
- package/dist/bundle/{bun-sqlite-UOFN77LO.js → bun-sqlite-CHD4AIUK.js} +6 -6
- package/dist/bundle/{chunk-JYGFEMTR.js → chunk-2BFXHCZW.js} +2 -2
- package/dist/bundle/{chunk-NEJU74O4.js → chunk-2L6D54BR.js} +8 -8
- package/dist/bundle/{chunk-BS6WYCNZ.js → chunk-2P44S7XK.js} +27 -30
- package/dist/bundle/{chunk-TUXNILKR.js → chunk-2X344EUT.js} +8 -8
- package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-35AH33VJ.js} +1 -1
- package/dist/bundle/{chunk-UFMR2TB3.js → chunk-47YNANPZ.js} +2 -2
- package/dist/bundle/{chunk-7C6FGWDH.js → chunk-6IS4BEN4.js} +4 -4
- package/dist/bundle/{chunk-ITU6K7LU.js → chunk-6VCQ4CTK.js} +1 -1
- package/dist/bundle/{chunk-NYQPKZWL.js → chunk-74BYHR44.js} +590 -604
- package/dist/bundle/{chunk-T72DWT37.js → chunk-7OYZU5SP.js} +4 -4
- package/dist/bundle/{chunk-4BW5JACS.js → chunk-AEKWEYIG.js} +17 -17
- package/dist/bundle/{chunk-3CJ4C6BB.js → chunk-BF73DBAA.js} +13 -13
- package/dist/bundle/{chunk-7KCBPAQS.js → chunk-BI5P7JWM.js} +2 -2
- package/dist/bundle/{chunk-7MEVD5PI.js → chunk-BRRHYXUP.js} +19 -19
- package/dist/bundle/{chunk-GZLCZU5B.js → chunk-BZY5W35X.js} +7 -7
- package/dist/bundle/{chunk-6UOUDIXL.js → chunk-CHNNKHLL.js} +7468 -7317
- package/dist/bundle/{chunk-QVGCHTTU.js → chunk-CIG4UVP6.js} +12 -12
- package/dist/bundle/{chunk-D6D6JLXG.js → chunk-CZ6ZXDSO.js} +46 -37
- package/dist/bundle/{chunk-7E7YXQ52.js → chunk-DI74RP6R.js} +18 -18
- package/dist/bundle/{chunk-IX3GUNGV.js → chunk-EW3JFV7J.js} +4 -4
- package/dist/bundle/{chunk-GWKGZOSO.js → chunk-FSMCXQH2.js} +2 -2
- package/dist/bundle/{chunk-DDCDOBZS.js → chunk-GZYICXO4.js} +1 -1
- package/dist/bundle/{chunk-BKRIIZPV.js → chunk-H46MANPR.js} +3 -3
- package/dist/bundle/{chunk-OP5ZLH53.js → chunk-HFFHL7SV.js} +55 -55
- package/dist/bundle/{chunk-DCR3IWC7.js → chunk-I3UAD4EI.js} +33 -32
- package/dist/bundle/{chunk-EMVLCION.js → chunk-IBIFX2LK.js} +2 -2
- package/dist/bundle/{chunk-BNP7WLDQ.js → chunk-IPSLQX64.js} +2 -2
- package/dist/bundle/{chunk-DPDS6IZJ.js → chunk-JADBHKBP.js} +1 -1
- package/dist/bundle/{chunk-DWBY7DMF.js → chunk-JCQ47WR4.js} +5 -5
- package/dist/bundle/{chunk-LGDJDD5J.js → chunk-JUYUWMTG.js} +4 -4
- package/dist/bundle/{chunk-OXHQNEXU.js → chunk-KLLT572M.js} +3 -3
- package/dist/bundle/{chunk-5YRR52NH.js → chunk-L3MKFI3Y.js} +2 -2
- package/dist/bundle/{chunk-PZL7DHVJ.js → chunk-LACMDMDI.js} +9 -9
- package/dist/bundle/{chunk-DZSS2IUK.js → chunk-LB5FTCPZ.js} +3 -4
- package/dist/bundle/{chunk-JLIVJSCF.js → chunk-LFBD6RTX.js} +2 -2
- package/dist/bundle/{chunk-QSXJ2BVQ.js → chunk-LKGJMM6W.js} +6 -6
- package/dist/bundle/{chunk-NV3WPD3B.js → chunk-LXAX6AZU.js} +6 -6
- package/dist/bundle/{chunk-H2QTUZ3C.js → chunk-LXUHYDNE.js} +1 -1
- package/dist/bundle/{chunk-I3BQ2QIY.js → chunk-MJ7DUSHT.js} +14 -14
- package/dist/bundle/{chunk-4ME2NHNJ.js → chunk-MNJ3BMPZ.js} +3 -3
- package/dist/bundle/{chunk-THZHNCJP.js → chunk-MT7T5N2N.js} +4 -4
- package/dist/bundle/{chunk-KPFB2VUY.js → chunk-OFMYFFEF.js} +461 -402
- package/dist/bundle/{chunk-WZGFC7D5.js → chunk-OOYIPK4F.js} +1 -1
- package/dist/bundle/{chunk-NUN7DBR4.js → chunk-OWAJN74H.js} +17 -18
- package/dist/bundle/{chunk-S2QO6KUI.js → chunk-QN423PC6.js} +3 -3
- package/dist/bundle/{chunk-EV5SR3OC.js → chunk-QO7BK4WD.js} +8 -8
- package/dist/bundle/{chunk-GXBNTKJW.js → chunk-RENCSP47.js} +3 -3
- package/dist/bundle/{chunk-FIVFP53N.js → chunk-RXUVXAMM.js} +1 -1
- package/dist/bundle/{chunk-HZCINHHS.js → chunk-S6CHYNFE.js} +2 -2
- package/dist/bundle/{chunk-E3IOR37T.js → chunk-SDWYOYGN.js} +4 -4
- package/dist/bundle/{chunk-MS5XYEYW.js → chunk-SW7YGW3T.js} +28 -7
- package/dist/bundle/{chunk-BXMLIKUM.js → chunk-SYUIAMVA.js} +181 -156
- package/dist/bundle/{chunk-HZL3X4XR.js → chunk-TBZLGT7R.js} +20 -17
- package/dist/bundle/{chunk-FRXDSR45.js → chunk-TK77DCE5.js} +1 -1
- package/dist/bundle/{chunk-P6CYVOL6.js → chunk-UAV74EY4.js} +1 -1
- package/dist/bundle/{chunk-SQA5JI7Q.js → chunk-UG2QDGAH.js} +1 -1
- package/dist/bundle/{chunk-ECZSYLSL.js → chunk-UWF3SSRL.js} +25 -8
- package/dist/bundle/{chunk-QANXOKYQ.js → chunk-UX76GMQM.js} +6 -6
- package/dist/bundle/{chunk-I5Y6Y7Q5.js → chunk-UYZDH5LK.js} +1 -1
- package/dist/bundle/{chunk-3V6J7VPF.js → chunk-XN5KH24X.js} +5 -5
- package/dist/bundle/{chunk-FYP2M6IT.js → chunk-XQXYAOBV.js} +30 -29
- package/dist/bundle/{chunk-PIXFZZUZ.js → chunk-Y2P2LC5R.js} +21 -11
- package/dist/bundle/command-contract-NRNQAFFE.js +36 -0
- package/dist/bundle/{command-server-entry-A3FCP24M.js → command-server-entry-G2ZHCN5J.js} +25 -25
- package/dist/bundle/{decode-FI2ISRNZ.js → decode-U6V6D6XH.js} +5 -5
- package/dist/bundle/{dispatch-DSVN7MNG.js → dispatch-RHIK22OA.js} +8 -8
- package/dist/bundle/{dist-NLOOZJ64.js → dist-X5G2IMYG.js} +15 -15
- package/dist/bundle/{echarts-PMAJUJFE.js → echarts-UZJ6AREV.js} +2 -2
- package/dist/bundle/{embed-OIMT6SAX.js → embed-FEXLUH3T.js} +6 -6
- package/dist/bundle/{embedder-Q5IF5WIM.js → embedder-NHQARKFJ.js} +9 -9
- package/dist/bundle/{failure-COTPFUP4.js → failure-7DIA4OET.js} +2 -2
- package/dist/bundle/{first-run-4L53QWOT.js → first-run-PS5NR2QG.js} +12 -12
- package/dist/bundle/first-screen-C2WTLOG2.js +34 -0
- package/dist/bundle/{instructions-ZJGGGXOA.js → instructions-SDDUBGH4.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-TDKGDB4V.js → mcp-GN4FTJX5.js} +2 -2
- package/dist/bundle/{node-DCSOHRD6.js → node-ELCNUOCE.js} +2 -2
- package/dist/bundle/{node-sqlite-7F77K5JA.js → node-sqlite-2E5MKZMH.js} +7 -7
- package/dist/bundle/{oauth-LVPMEN6M.js → oauth-JGPEIY3M.js} +7 -7
- package/dist/bundle/{open-XM5LWEN6.js → open-6DEMCZAB.js} +5 -5
- package/dist/bundle/{openai-H2LCGK22.js → openai-IVKDU5AH.js} +15 -15
- package/dist/bundle/{process-MFC5VSPT.js → process-67DAKAAQ.js} +1 -1
- package/dist/bundle/{program-ZQ43ZYKZ.js → program-ESJDQMAJ.js} +498 -481
- package/dist/bundle/{prompt-3LZAZNQ4.js → prompt-ZBWOT5KG.js} +5 -5
- package/dist/bundle/{recognize-GYQMHFY2.js → recognize-UUBH2DOH.js} +4 -4
- package/dist/bundle/{remote-P2MD5G64.js → remote-UYTNWNOB.js} +9 -9
- package/dist/bundle/{rerank-A5X6THV6.js → rerank-X2633CQN.js} +7 -7
- package/dist/bundle/{serve-IEC3EUKS.js → serve-CP7Q4OVW.js} +9 -9
- package/dist/bundle/{server-3REPXFNI.js → server-I7MXRSAG.js} +42 -42
- package/dist/bundle/server-QGTMJ7SF.js +67 -0
- package/dist/bundle/{sqlite-runtime-AOLQGC5J.js → sqlite-runtime-BX55LI5G.js} +6 -6
- package/dist/bundle/{state-D3P5IXXA.js → state-LLNJQXFH.js} +6 -6
- package/dist/bundle/{store-MZCQXBVW.js → store-K4KU5N75.js} +19 -19
- package/dist/bundle/{store-DIN6OY3K.js → store-N27XI3VV.js} +17 -17
- package/dist/bundle/store-maintenance-command-VPAFQCNA.js +58 -0
- package/dist/commands/messages.js +1 -1
- package/dist/commands/messages.js.map +1 -1
- package/dist/mail/cleanup.d.ts.map +1 -1
- package/dist/mail/cleanup.js +4 -3
- package/dist/mail/cleanup.js.map +1 -1
- package/dist/mail/rules/apply.js +1 -1
- package/dist/mail/rules/apply.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-YRNKDQDL.js +0 -36
- package/dist/bundle/first-screen-ZPQLAAIS.js +0 -34
- package/dist/bundle/server-E2QTFURI.js +0 -67
- package/dist/bundle/store-maintenance-command-UMVFI6M6.js +0 -58
- /package/dist/bundle/{chunk-XWBPP2HX.js → chunk-BDCC2J2Z.js} +0 -0
|
@@ -2,31 +2,31 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
updateCommand
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6IS4BEN4.js";
|
|
6
6
|
import {
|
|
7
7
|
QUESTIONS,
|
|
8
8
|
readSetupAnswers,
|
|
9
9
|
unanswered,
|
|
10
10
|
writeSetupAnswers
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MNJ3BMPZ.js";
|
|
12
12
|
import {
|
|
13
13
|
DEFAULT_STEMMERS,
|
|
14
14
|
LANGUAGES
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QO7BK4WD.js";
|
|
16
16
|
import {
|
|
17
17
|
sharedConfigPath
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-BZY5W35X.js";
|
|
19
19
|
import {
|
|
20
20
|
installerOf
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-35AH33VJ.js";
|
|
22
22
|
import {
|
|
23
23
|
storePath
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-IPSLQX64.js";
|
|
25
25
|
import {
|
|
26
26
|
__name
|
|
27
27
|
} from "./chunk-ZVVMGPBJ.js";
|
|
28
28
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/first-run.js
|
|
30
30
|
import { spawnSync } from "node:child_process";
|
|
31
31
|
import { accessSync, constants, realpathSync } from "node:fs";
|
|
32
32
|
import { delimiter, join } from "node:path";
|
|
@@ -84,7 +84,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
|
|
|
84
84
|
return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
|
|
85
85
|
}, "suggested");
|
|
86
86
|
var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
|
|
87
|
-
const { openStore } = await import("./store-
|
|
87
|
+
const { openStore } = await import("./store-N27XI3VV.js");
|
|
88
88
|
const store = await openStore({ env });
|
|
89
89
|
let rebuild = false;
|
|
90
90
|
try {
|
|
@@ -113,8 +113,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
113
113
|
if (!rebuild)
|
|
114
114
|
return;
|
|
115
115
|
const [{ openCache }, { buildStems }] = await Promise.all([
|
|
116
|
-
import("./open-
|
|
117
|
-
import("./store-maintenance-command-
|
|
116
|
+
import("./open-6DEMCZAB.js"),
|
|
117
|
+
import("./store-maintenance-command-VPAFQCNA.js")
|
|
118
118
|
]);
|
|
119
119
|
const database = await openCache(storePath(env));
|
|
120
120
|
try {
|
|
@@ -126,7 +126,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
126
126
|
var askTools = /* @__PURE__ */ __name(async (run) => {
|
|
127
127
|
const { command, env, io } = run;
|
|
128
128
|
const installed = run.installed ?? ((name) => onPath(name, env));
|
|
129
|
-
const { WIRECAT_TOOLS } = await import("./first-screen-
|
|
129
|
+
const { WIRECAT_TOOLS } = await import("./first-screen-C2WTLOG2.js");
|
|
130
130
|
const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
|
|
131
131
|
const missing = others.filter((tool) => !installed(tool.command));
|
|
132
132
|
io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
|
|
@@ -199,7 +199,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
|
|
|
199
199
|
contentLanguages: start.contentLanguages,
|
|
200
200
|
all: start.path[0] === "setup",
|
|
201
201
|
io: {
|
|
202
|
-
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-
|
|
202
|
+
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-ZBWOT5KG.js")).readSecret(prompt, { input, echo: true }), "ask"),
|
|
203
203
|
say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
|
|
204
204
|
`), "say")
|
|
205
205
|
}
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
agentArguments,
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OWAJN74H.js";
|
|
10
10
|
import {
|
|
11
11
|
failureContext
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LB5FTCPZ.js";
|
|
13
13
|
import {
|
|
14
14
|
callerOf
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KLLT572M.js";
|
|
16
16
|
import {
|
|
17
17
|
QUERY_ARGUMENT,
|
|
18
18
|
lentConnection,
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
refuseLacking,
|
|
21
21
|
servicesFor,
|
|
22
22
|
storeModeDeps
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-74BYHR44.js";
|
|
24
24
|
import {
|
|
25
25
|
MAX_BUFFERED_INPUT
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-S6CHYNFE.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_OUTPUT_BYTES,
|
|
29
29
|
ENTITIES,
|
|
@@ -38,36 +38,37 @@ import {
|
|
|
38
38
|
refuseStoreChange,
|
|
39
39
|
sealed,
|
|
40
40
|
startRecording
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-SYUIAMVA.js";
|
|
42
42
|
import {
|
|
43
43
|
authorityAllowed,
|
|
44
44
|
botApiAllowed,
|
|
45
|
+
fetchesAt,
|
|
45
46
|
keyForCommand,
|
|
46
47
|
levelFor,
|
|
47
48
|
readKeysForCommand
|
|
48
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-SW7YGW3T.js";
|
|
49
50
|
import {
|
|
50
51
|
currentCaller,
|
|
51
52
|
keepsSuccess,
|
|
52
53
|
runContextOf,
|
|
53
54
|
withCaller
|
|
54
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-2X344EUT.js";
|
|
55
56
|
import {
|
|
56
57
|
enclosingTraceId,
|
|
57
58
|
inRun,
|
|
58
59
|
newRunId,
|
|
59
60
|
traceOf
|
|
60
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-XQXYAOBV.js";
|
|
61
62
|
import {
|
|
62
63
|
queryDescription
|
|
63
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-OFMYFFEF.js";
|
|
64
65
|
import {
|
|
65
66
|
storeDamaged
|
|
66
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-L3MKFI3Y.js";
|
|
67
68
|
import {
|
|
68
69
|
captureStreams,
|
|
69
70
|
traceIdOf
|
|
70
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-BRRHYXUP.js";
|
|
71
72
|
import {
|
|
72
73
|
COMPACT_FLAG,
|
|
73
74
|
SNAKE_CASE,
|
|
@@ -106,19 +107,19 @@ import {
|
|
|
106
107
|
unknown,
|
|
107
108
|
word,
|
|
108
109
|
writes
|
|
109
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-UWF3SSRL.js";
|
|
110
111
|
import {
|
|
111
112
|
CliError,
|
|
112
113
|
errorCodes
|
|
113
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-BI5P7JWM.js";
|
|
114
115
|
import {
|
|
115
116
|
__name
|
|
116
117
|
} from "./chunk-ZVVMGPBJ.js";
|
|
117
118
|
|
|
118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
119
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
119
120
|
import { Readable } from "node:stream";
|
|
120
121
|
|
|
121
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
122
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
|
|
122
123
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
123
124
|
var lintRuleSchema = strictObject({
|
|
124
125
|
id: word,
|
|
@@ -264,7 +265,7 @@ var overrideSchema = strictObject({
|
|
|
264
265
|
});
|
|
265
266
|
var overridesSchema = array(overrideSchema);
|
|
266
267
|
|
|
267
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
268
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
|
|
268
269
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
269
270
|
var defineAuditRules = /* @__PURE__ */ __name((input) => parseRegistry("audit rules", array(auditRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineAuditRules");
|
|
270
271
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -393,11 +394,12 @@ var PARITY_GROUPS = defineParityGroups([
|
|
|
393
394
|
covers: ["commands", "upgrade", "notes", "meetings"],
|
|
394
395
|
differences: FAMILY_SINCE_0_98
|
|
395
396
|
},
|
|
396
|
-
// bitrix24-cli's search is cli-core's CRM `search all`, and beeline-cli's meetings take call
|
|
397
|
-
// zoom-cli's:
|
|
397
|
+
// bitrix24-cli's search is cli-core's CRM `search all`, and beeline-cli's and asterisk-cli's meetings take call
|
|
398
|
+
// recordings, not zoom-cli's: they are compared on the root commands every CLI shares, the way gcal and mail are.
|
|
399
|
+
// notion-cli joins here until its documents commands ship; then it moves next to drive.
|
|
398
400
|
{
|
|
399
401
|
name: "shared-roots",
|
|
400
|
-
members: ["tg", "max", "memo", "drive", "zm", "wa", "b24", "beeline"],
|
|
402
|
+
members: ["tg", "max", "memo", "drive", "zm", "wa", "b24", "beeline", "pbx", "notion"],
|
|
401
403
|
covers: ["commands", "doctor", "skill", "mcp", "upgrade"],
|
|
402
404
|
differences: [...MEMO_HAS_NO_PROFILES, MEMO_DOCTOR_DEEP]
|
|
403
405
|
}
|
|
@@ -413,7 +415,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
413
415
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
414
416
|
]);
|
|
415
417
|
|
|
416
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
418
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
|
|
417
419
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
418
420
|
var defineFieldRules = /* @__PURE__ */ __name((input) => parseRegistry("output field rules", array(fieldRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineFieldRules");
|
|
419
421
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -429,7 +431,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
429
431
|
}
|
|
430
432
|
]);
|
|
431
433
|
|
|
432
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
434
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
|
|
433
435
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
434
436
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
435
437
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -451,7 +453,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
451
453
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
452
454
|
]);
|
|
453
455
|
|
|
454
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
456
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-account.js
|
|
455
457
|
var ACCOUNT_FLAGS = [
|
|
456
458
|
{
|
|
457
459
|
name: "--client-id",
|
|
@@ -488,7 +490,7 @@ var ACCOUNT_FLAGS = [
|
|
|
488
490
|
{ name: "--hide-phone", role: "output", type: "switch", meaning: "leave the phone number out of the answer" }
|
|
489
491
|
];
|
|
490
492
|
|
|
491
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
493
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
|
|
492
494
|
var CALENDAR_FLAGS = [
|
|
493
495
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
494
496
|
{
|
|
@@ -513,6 +515,13 @@ var CALENDAR_FLAGS = [
|
|
|
513
515
|
type: "string",
|
|
514
516
|
meaning: "a person invited to the event, by email address; repeat it for more"
|
|
515
517
|
},
|
|
518
|
+
{
|
|
519
|
+
name: "--setting",
|
|
520
|
+
value: "<name=value>",
|
|
521
|
+
role: "value",
|
|
522
|
+
type: "string",
|
|
523
|
+
meaning: "one of the service's own settings, such as a meeting's waiting room; repeat it for more"
|
|
524
|
+
},
|
|
516
525
|
{
|
|
517
526
|
name: "--id",
|
|
518
527
|
value: "<id>",
|
|
@@ -562,7 +571,7 @@ var CALENDAR_FLAGS = [
|
|
|
562
571
|
}
|
|
563
572
|
];
|
|
564
573
|
|
|
565
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
574
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-crm.js
|
|
566
575
|
var CRM_FLAGS = [
|
|
567
576
|
{
|
|
568
577
|
name: "--pipeline",
|
|
@@ -712,7 +721,7 @@ var CRM_FLAGS = [
|
|
|
712
721
|
}
|
|
713
722
|
];
|
|
714
723
|
|
|
715
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
724
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
|
|
716
725
|
var HOW_FLAGS = [
|
|
717
726
|
{
|
|
718
727
|
name: "--limit",
|
|
@@ -1709,7 +1718,7 @@ var HOW_FLAGS = [
|
|
|
1709
1718
|
}
|
|
1710
1719
|
];
|
|
1711
1720
|
|
|
1712
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1721
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-knowledge.js
|
|
1713
1722
|
var KNOWLEDGE_FLAGS = [
|
|
1714
1723
|
{
|
|
1715
1724
|
name: "--accept-terms",
|
|
@@ -1747,7 +1756,7 @@ var KNOWLEDGE_FLAGS = [
|
|
|
1747
1756
|
}
|
|
1748
1757
|
];
|
|
1749
1758
|
|
|
1750
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1759
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-mail.js
|
|
1751
1760
|
var MAIL_FLAGS = [
|
|
1752
1761
|
{
|
|
1753
1762
|
name: "--cc",
|
|
@@ -1777,7 +1786,7 @@ var MAIL_FLAGS = [
|
|
|
1777
1786
|
}
|
|
1778
1787
|
];
|
|
1779
1788
|
|
|
1780
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1789
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-privacy.js
|
|
1781
1790
|
var PRIVACY_FLAGS = [
|
|
1782
1791
|
{
|
|
1783
1792
|
name: "--about-text",
|
|
@@ -1838,7 +1847,7 @@ var PRIVACY_FLAGS = [
|
|
|
1838
1847
|
{ name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" }
|
|
1839
1848
|
];
|
|
1840
1849
|
|
|
1841
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1850
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-schedule.js
|
|
1842
1851
|
var SCHEDULE_FLAGS = [
|
|
1843
1852
|
{
|
|
1844
1853
|
name: "--locale",
|
|
@@ -1871,7 +1880,7 @@ var SCHEDULE_FLAGS = [
|
|
|
1871
1880
|
}
|
|
1872
1881
|
];
|
|
1873
1882
|
|
|
1874
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1883
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
|
|
1875
1884
|
var WHAT_FLAGS = [
|
|
1876
1885
|
{
|
|
1877
1886
|
name: "--analysis-provider",
|
|
@@ -2868,7 +2877,7 @@ var WHAT_FLAGS = [
|
|
|
2868
2877
|
}
|
|
2869
2878
|
];
|
|
2870
2879
|
|
|
2871
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2880
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
|
|
2872
2881
|
var FLAG_TYPES = [
|
|
2873
2882
|
"switch",
|
|
2874
2883
|
"count",
|
|
@@ -3287,7 +3296,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
3287
3296
|
]
|
|
3288
3297
|
});
|
|
3289
3298
|
|
|
3290
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3299
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
3291
3300
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
3292
3301
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
3293
3302
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -3514,7 +3523,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3514
3523
|
}
|
|
3515
3524
|
}, "runCommandForAgent");
|
|
3516
3525
|
|
|
3517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3526
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
3518
3527
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
3519
3528
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
3520
3529
|
var message = pipe(
|
|
@@ -3568,8 +3577,8 @@ var toolKey = /* @__PURE__ */ __name((name, definition) => definition.key !== vo
|
|
|
3568
3577
|
var inputOf = /* @__PURE__ */ __name((definition, syncAllowed) => strictObject(syncAllowed || !("sync_first" in definition.input.entries) ? definition.input.entries : Object.fromEntries(Object.entries(definition.input.entries).filter(([name]) => !["sync_first", "sync_time", "max_chats", "max_messages"].includes(name)))), "inputOf");
|
|
3569
3578
|
var syncAllowedFor = /* @__PURE__ */ __name((key2, defaults) => {
|
|
3570
3579
|
const permissions = defaults.settings.permissions ?? {};
|
|
3571
|
-
const shared = defaults.syncAllowed ?? levelFor(permissions, "messages.sync-first").level
|
|
3572
|
-
return shared && (!key2.startsWith("stats_") || levelFor(permissions, `${key2.replaceAll("_", ".")}.sync-first`).level
|
|
3580
|
+
const shared = defaults.syncAllowed ?? fetchesAt(levelFor(permissions, "messages.sync-first").level);
|
|
3581
|
+
return shared && (!key2.startsWith("stats_") || fetchesAt(levelFor(permissions, `${key2.replaceAll("_", ".")}.sync-first`).level));
|
|
3573
3582
|
}, "syncAllowedFor");
|
|
3574
3583
|
var entryRunner = /* @__PURE__ */ __name((registration) => {
|
|
3575
3584
|
const run = callRunner(registration);
|
|
@@ -3773,7 +3782,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3773
3782
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
|
|
3774
3783
|
}, "failed");
|
|
3775
3784
|
|
|
3776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3785
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3777
3786
|
import { randomUUID } from "node:crypto";
|
|
3778
3787
|
var MATCHES = 8;
|
|
3779
3788
|
var ANSWER = answerSchema();
|
|
@@ -20,20 +20,20 @@ import {
|
|
|
20
20
|
providerLabel,
|
|
21
21
|
providerNamed,
|
|
22
22
|
queryError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-OFMYFFEF.js";
|
|
24
24
|
import {
|
|
25
25
|
fold
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-TK77DCE5.js";
|
|
27
27
|
import {
|
|
28
28
|
CliError,
|
|
29
29
|
isCliError,
|
|
30
30
|
singleLine
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-BI5P7JWM.js";
|
|
32
32
|
import {
|
|
33
33
|
__name
|
|
34
34
|
} from "./chunk-ZVVMGPBJ.js";
|
|
35
35
|
|
|
36
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
|
|
37
37
|
var PHONE_PLANS = [
|
|
38
38
|
{
|
|
39
39
|
country: "us",
|
|
@@ -413,7 +413,7 @@ var PHONE_PLANS = [
|
|
|
413
413
|
}
|
|
414
414
|
];
|
|
415
415
|
|
|
416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
416
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/phones.js
|
|
417
417
|
var PHONE_COUNTRIES = PHONE_PLANS.map((plan) => plan.country);
|
|
418
418
|
var DEFAULT_PHONE_COUNTRIES = ["ru"];
|
|
419
419
|
var parsePhoneCountries = /* @__PURE__ */ __name((value) => {
|
|
@@ -488,7 +488,7 @@ var storedPhone = /* @__PURE__ */ __name((raw, provider) => {
|
|
|
488
488
|
return found ? `+${found[1]}` : void 0;
|
|
489
489
|
}, "storedPhone");
|
|
490
490
|
|
|
491
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
491
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/record-fields.js
|
|
492
492
|
var DECIMAL_PATTERN = "^[0-9]{1,16}(\\.[0-9]{1,6})?$";
|
|
493
493
|
var SIGNED_DECIMAL = "^-?[0-9]{1,16}(\\.[0-9]{1,6})?$";
|
|
494
494
|
var DAY = "^[0-9]{4}-[0-9]{2}-[0-9]{2}$";
|
|
@@ -538,7 +538,7 @@ var arrayOf = /* @__PURE__ */ __name((item, maxItems, description) => ({
|
|
|
538
538
|
}), "arrayOf");
|
|
539
539
|
var isObject = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isObject");
|
|
540
540
|
|
|
541
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
541
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/record-types.js
|
|
542
542
|
var kept = /* @__PURE__ */ __name((description) => ({ description }), "kept");
|
|
543
543
|
var PARTY = ["person", "organization"];
|
|
544
544
|
var ORGANIZATION = ["organization"];
|
|
@@ -933,7 +933,7 @@ var hasV1Roles = /* @__PURE__ */ __name((type) => rolesOf(type).some(([, role])
|
|
|
933
933
|
var IDENTITY_TYPES = RECORD_ENTITY_TYPES.filter((type) => RECORD_TYPES[type].review === "identity");
|
|
934
934
|
var article = /* @__PURE__ */ __name((word) => /^[aeiou]/.test(word) ? "an" : "a", "article");
|
|
935
935
|
|
|
936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/ref-arguments.js
|
|
937
937
|
var TAKES = {
|
|
938
938
|
chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
|
|
939
939
|
message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
|
|
@@ -993,7 +993,7 @@ var ensureAccount = /* @__PURE__ */ __name(async (reference, scope, profilesOn)
|
|
|
993
993
|
throw wrongAccount(reference, scope, profiles);
|
|
994
994
|
}, "ensureAccount");
|
|
995
995
|
|
|
996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
|
|
997
997
|
var QUERY_VERSION = 1;
|
|
998
998
|
var QUERY_LIMITS2 = {
|
|
999
999
|
...QUERY_LIMITS,
|
|
@@ -1038,7 +1038,7 @@ function tooWideTerm([term], budget) {
|
|
|
1038
1038
|
}
|
|
1039
1039
|
__name(tooWideTerm, "tooWideTerm");
|
|
1040
1040
|
|
|
1041
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1041
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
|
|
1042
1042
|
var any = { kind: "char", ranges: [[0, 1114111]], negate: false };
|
|
1043
1043
|
var literal = /* @__PURE__ */ __name((c) => ({
|
|
1044
1044
|
kind: "char",
|
|
@@ -1438,7 +1438,7 @@ var foldRegex = /* @__PURE__ */ __name((pattern, span) => {
|
|
|
1438
1438
|
return out;
|
|
1439
1439
|
}, "foldRegex");
|
|
1440
1440
|
|
|
1441
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1441
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/search/trigrams.js
|
|
1442
1442
|
var trigrams = /* @__PURE__ */ __name((term) => {
|
|
1443
1443
|
const padded = ` ${term} `;
|
|
1444
1444
|
const pieces = /* @__PURE__ */ new Set();
|
|
@@ -1447,7 +1447,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
|
|
|
1447
1447
|
return [...pieces];
|
|
1448
1448
|
}, "trigrams");
|
|
1449
1449
|
|
|
1450
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1450
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
1451
1451
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
1452
1452
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase().replaceAll("\u0451", "\u0435"), "foldName");
|
|
1453
1453
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -1518,7 +1518,7 @@ ${lines}`, { candidates });
|
|
|
1518
1518
|
}, "ambiguous");
|
|
1519
1519
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
1520
1520
|
|
|
1521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1521
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/addresses.js
|
|
1522
1522
|
var EMAIL_ADDRESS = /^[^\s@]+@[^\s@]+\.[^\s@]+$/u;
|
|
1523
1523
|
var isEmailAddress = /* @__PURE__ */ __name((value) => EMAIL_ADDRESS.test(value), "isEmailAddress");
|
|
1524
1524
|
var ROLE_ADDRESS_WORDS = {
|
|
@@ -1580,7 +1580,7 @@ var PERSON_LIKE = /* @__PURE__ */ new Set(["hr"]);
|
|
|
1580
1580
|
var isPersonLikeRoleAddress = /* @__PURE__ */ __name((address) => PERSON_LIKE.has(localWord(address)), "isPersonLikeRoleAddress");
|
|
1581
1581
|
var isNoReplyAddress = /* @__PURE__ */ __name((address) => NO_REPLY.has(localWord(address)), "isNoReplyAddress");
|
|
1582
1582
|
|
|
1583
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1583
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/display-names.js
|
|
1584
1584
|
var QUOTES = [
|
|
1585
1585
|
['"', '"'],
|
|
1586
1586
|
["'", "'"],
|
|
@@ -1638,7 +1638,7 @@ var nameKey = /* @__PURE__ */ __name((name) => {
|
|
|
1638
1638
|
}, "nameKey");
|
|
1639
1639
|
var isReadable = /* @__PURE__ */ __name((shown) => shown !== null && READABLE.test(shown), "isReadable");
|
|
1640
1640
|
|
|
1641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1641
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/counters.js
|
|
1642
1642
|
var COUNTER_FIELDS = ["views", "reactions", "comments"];
|
|
1643
1643
|
var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
|
|
1644
1644
|
var counterValue = /* @__PURE__ */ __name((message, field) => {
|
|
@@ -1675,7 +1675,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
|
|
|
1675
1675
|
return states.some((one) => one.freshness === "stale") ? "stale" : "fresh";
|
|
1676
1676
|
}, "counterFreshness");
|
|
1677
1677
|
|
|
1678
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
|
|
1679
1679
|
var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
|
|
1680
1680
|
var AUTHOR_MEASURES = [
|
|
1681
1681
|
"messages",
|
|
@@ -1815,7 +1815,7 @@ var withoutUrls = /* @__PURE__ */ __name((text2) => text2.replace(/\S+/gu, (toke
|
|
|
1815
1815
|
var rankingWords = /* @__PURE__ */ __name((text2) => withoutUrls(text2).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
|
|
1816
1816
|
var rankingQuestion = /* @__PURE__ */ __name((text2) => withoutUrls(text2).includes("?"), "rankingQuestion");
|
|
1817
1817
|
|
|
1818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/records.js
|
|
1819
1819
|
import { createHash } from "node:crypto";
|
|
1820
1820
|
var RECORDS_SCHEMA_VERSION = 1;
|
|
1821
1821
|
var RECORD_OPERATIONS = ["upsert", "delete"];
|
|
@@ -1987,7 +1987,7 @@ var fieldReferences = /* @__PURE__ */ __name((record, options = {}) => {
|
|
|
1987
1987
|
return found;
|
|
1988
1988
|
}, "fieldReferences");
|
|
1989
1989
|
|
|
1990
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/relation-role-labels.js
|
|
1991
1991
|
var label = /* @__PURE__ */ __name((en, ru, es) => ({ en, ru, es }), "label");
|
|
1992
1992
|
var ROLE_LABELS = {
|
|
1993
1993
|
organization: {
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
singleLine
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BI5P7JWM.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
|
|
11
11
|
var FIRST_PARTY_TOOLS = [
|
|
12
12
|
{ name: "tg", package: "@wirecat/tg-cli" },
|
|
13
13
|
{ name: "max", package: "@wirecat/max-cli" },
|
|
@@ -31,7 +31,7 @@ var DESCRIBE_FLAG = "--wcat-describe";
|
|
|
31
31
|
var DESCRIBE_MAX_BYTES = 64 * 1024;
|
|
32
32
|
var DISPATCH_FLAG = "--wcat-dispatch";
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
|
|
35
35
|
var DESCRIBE_FORMAT = 1;
|
|
36
36
|
var DESCRIBE_MANIFEST_FORMAT = 2;
|
|
37
37
|
var describeAnswer = /* @__PURE__ */ __name((tool, manifest) => {
|
|
@@ -74,7 +74,7 @@ var parseDescribe = /* @__PURE__ */ __name((text) => {
|
|
|
74
74
|
};
|
|
75
75
|
}, "parseDescribe");
|
|
76
76
|
|
|
77
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
77
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
|
|
78
78
|
import { lstatSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
79
79
|
import { join } from "node:path";
|
|
80
80
|
var SHIM_FORMAT = 2;
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
CAPABILITY_STATEMENTS,
|
|
5
5
|
storeCapable
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LXAX6AZU.js";
|
|
7
7
|
import {
|
|
8
8
|
importFrom
|
|
9
9
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -11,7 +11,7 @@ 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.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
|
|
15
15
|
import { spawn, spawnSync } from "node:child_process";
|
|
16
16
|
import { readFileSync } from "node:fs";
|
|
17
17
|
import { dirname } from "node:path";
|
|
@@ -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.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/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.",
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
id,
|
|
6
6
|
text,
|
|
7
7
|
time
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XQXYAOBV.js";
|
|
9
9
|
import {
|
|
10
10
|
array,
|
|
11
11
|
nullable,
|
|
@@ -16,9 +16,9 @@ import {
|
|
|
16
16
|
strictObject,
|
|
17
17
|
string,
|
|
18
18
|
unknown
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-UWF3SSRL.js";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/entities/note.js
|
|
22
22
|
var link = {
|
|
23
23
|
target_text: nullable(text),
|
|
24
24
|
kind: text,
|