@wirecat/mail-cli 0.7.0 → 0.8.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 +20 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-SI67TKZM.js → all-profiles-MXGDUBAM.js} +9 -9
- package/dist/bundle/{anthropic-DALMLC3Y.js → anthropic-A2QA4W7L.js} +6 -6
- package/dist/bundle/{app-server-XOH327Z2.js → app-server-PMIMK6FK.js} +48 -48
- package/dist/bundle/{bun-ORL67CJ6.js → bun-3UW3LFNL.js} +2 -2
- package/dist/bundle/{bun-sqlite-DGXFNFHI.js → bun-sqlite-TGFZFKAX.js} +5 -5
- package/dist/bundle/{chunk-IYZHM3ZN.js → chunk-2KZJWBXB.js} +3 -3
- package/dist/bundle/{chunk-2M4K7HYR.js → chunk-2MQXXPPK.js} +17 -17
- package/dist/bundle/{chunk-VBOMKZ4E.js → chunk-4QDBMYK4.js} +70 -53
- package/dist/bundle/{chunk-23IEVVL2.js → chunk-5PWKPRTD.js} +4 -4
- package/dist/bundle/{chunk-RQVWZBW3.js → chunk-5W74YMCK.js} +3 -3
- package/dist/bundle/{chunk-7K6KJWTO.js → chunk-6J3DKKOV.js} +12 -12
- package/dist/bundle/{chunk-4NYWHINR.js → chunk-6JK46V5X.js} +6 -6
- package/dist/bundle/{chunk-CAKBG5FC.js → chunk-6U6Z3GXR.js} +6 -6
- package/dist/bundle/{chunk-V4TDG4KF.js → chunk-7JUTNCQX.js} +14 -14
- package/dist/bundle/{chunk-6XNPXAJU.js → chunk-AO3XYONW.js} +23 -23
- package/dist/bundle/{chunk-JFMUI4H6.js → chunk-BCDPLG7T.js} +1 -1
- package/dist/bundle/{chunk-PDL4UREY.js → chunk-BEUQ2X7U.js} +8 -8
- package/dist/bundle/{chunk-DXGMPMFP.js → chunk-CMNFLAUG.js} +4 -4
- package/dist/bundle/{chunk-U6UJ3HRS.js → chunk-CRS63C3T.js} +2 -2
- package/dist/bundle/{chunk-SQLCCKEL.js → chunk-DLB2JPLU.js} +1 -1
- package/dist/bundle/{chunk-XQJWMBDY.js → chunk-DM4ULDS3.js} +6 -6
- package/dist/bundle/{chunk-BGUMGCUY.js → chunk-DYCPBLUC.js} +2 -2
- package/dist/bundle/{chunk-3TYEJRMZ.js → chunk-EN3UZPGB.js} +4 -4
- package/dist/bundle/{chunk-DKQWTQVY.js → chunk-EU35YQXE.js} +23 -23
- package/dist/bundle/{chunk-GJUUTUK4.js → chunk-EVO77D3Y.js} +8 -8
- package/dist/bundle/{chunk-S4YUR4S3.js → chunk-FSBKLJXM.js} +219 -206
- package/dist/bundle/{chunk-EYT33MM3.js → chunk-J5RKMQ6A.js} +46 -46
- package/dist/bundle/{chunk-ZNGQ3NZ4.js → chunk-J6ACLZKV.js} +9 -9
- package/dist/bundle/{chunk-45KA5667.js → chunk-KBKEZV4L.js} +13 -13
- package/dist/bundle/{chunk-73OJJGZE.js → chunk-KEZHPPMI.js} +17 -3
- package/dist/bundle/{chunk-4ULY3GDL.js → chunk-KF4YULWC.js} +10 -10
- package/dist/bundle/{chunk-HFJNEXU7.js → chunk-L2ZHPIFC.js} +2 -2
- package/dist/bundle/{chunk-BM445GYF.js → chunk-L3KMVMRJ.js} +2 -2
- package/dist/bundle/{chunk-FTFNWGIR.js → chunk-LN7TNZIS.js} +8 -8
- package/dist/bundle/{chunk-NXJLC2WK.js → chunk-NAIJNJZZ.js} +12 -8
- package/dist/bundle/{chunk-5JEYIHS6.js → chunk-NEBO3NZU.js} +3 -3
- package/dist/bundle/{chunk-VNJMO5F6.js → chunk-NI6WX55Z.js} +2 -2
- package/dist/bundle/{chunk-M2JCUVCJ.js → chunk-NSODLSEL.js} +94 -94
- package/dist/bundle/{chunk-6RMMAUUW.js → chunk-NWKLBZN5.js} +30 -30
- package/dist/bundle/{chunk-5BSEGMNE.js → chunk-OAQ4UB6V.js} +4 -4
- package/dist/bundle/{chunk-FUB3X25H.js → chunk-PEF637VV.js} +4 -4
- package/dist/bundle/{chunk-NNIXREJH.js → chunk-PXCIM6D5.js} +7 -7
- package/dist/bundle/{chunk-6LK7KTWB.js → chunk-Q5DOXSBM.js} +1 -1
- package/dist/bundle/{chunk-35KD2CI2.js → chunk-QBBKSCQD.js} +286 -252
- package/dist/bundle/{chunk-MHQKHWCJ.js → chunk-RFWTPSJX.js} +34 -28
- package/dist/bundle/{chunk-QZBT6BOU.js → chunk-ROZBXOES.js} +1 -1
- package/dist/bundle/{chunk-AP7V256W.js → chunk-RVZ4JIRR.js} +1 -1
- package/dist/bundle/{chunk-MMXMVGA6.js → chunk-SZ5PKNDF.js} +7 -7
- package/dist/bundle/{chunk-VSHJWTX5.js → chunk-TCWJYOZV.js} +6 -6
- package/dist/bundle/{chunk-HV3EIYX4.js → chunk-TMQA4KR7.js} +1 -1
- package/dist/bundle/{chunk-VKPWP3AK.js → chunk-U4IF2MOB.js} +2 -2
- package/dist/bundle/{chunk-ZKCNMW7G.js → chunk-UR6WHUJF.js} +2 -2
- package/dist/bundle/{chunk-MCJ7LKYR.js → chunk-VGR3AGAC.js} +6 -6
- package/dist/bundle/{chunk-R5MML3FC.js → chunk-VSDVH2M2.js} +67 -59
- package/dist/bundle/{chunk-E3DRM6YP.js → chunk-W5J6I5GW.js} +3 -3
- package/dist/bundle/{chunk-FPOGVDLS.js → chunk-W7H3PZ67.js} +2 -2
- package/dist/bundle/{chunk-BEMLGWY4.js → chunk-WS4L47DG.js} +1 -1
- package/dist/bundle/{chunk-ZKZABB4K.js → chunk-WWNAQ75T.js} +3 -3
- package/dist/bundle/{chunk-Q44AYEOB.js → chunk-XWNCXFR5.js} +2 -2
- package/dist/bundle/{chunk-LZ5J3UXD.js → chunk-YS2WUWY7.js} +4 -4
- package/dist/bundle/{chunk-OHTR4WFO.js → chunk-Z5GDZ3QF.js} +2 -2
- package/dist/bundle/{chunk-Q2C3VMSU.js → chunk-ZISFMUYB.js} +18 -18
- package/dist/bundle/{chunk-3GZK5GTU.js → chunk-ZKAT6I2I.js} +1 -1
- package/dist/bundle/command-contract-Q32SL5KX.js +34 -0
- package/dist/bundle/{decode-KOBURZIQ.js → decode-NF4TGOR3.js} +5 -5
- package/dist/bundle/{dispatch-GDAH4JHS.js → dispatch-5C6XNGEE.js} +8 -8
- package/dist/bundle/{dist-T7HMT675.js → dist-DVYY3YFG.js} +13 -13
- package/dist/bundle/{echarts-LEWTQO6H.js → echarts-F3USGP5B.js} +2 -2
- package/dist/bundle/{embed-PUFE4BSQ.js → embed-2RXV3BEC.js} +6 -6
- package/dist/bundle/{embedder-3G4BQQ6X.js → embedder-I2SJMC6N.js} +9 -9
- package/dist/bundle/{failure-6COJAO7T.js → failure-YRGRZBTX.js} +2 -2
- package/dist/bundle/{first-run-FLXOC53U.js → first-run-3GA7YCKZ.js} +11 -11
- package/dist/bundle/first-screen-JFIXKYAK.js +32 -0
- package/dist/bundle/{instructions-HGSXDCBT.js → instructions-VHI5CWH5.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-GAPDLFWA.js → mcp-B25MZCS7.js} +2 -2
- package/dist/bundle/{node-5Z7PS4F5.js → node-4RBB3RDY.js} +2 -2
- package/dist/bundle/{node-sqlite-OAW7APIX.js → node-sqlite-FWYX3P2D.js} +5 -5
- package/dist/bundle/{oauth-ZFZWPAJN.js → oauth-6JKKRGLX.js} +7 -7
- package/dist/bundle/{open-ZQMBZVH4.js → open-7JSNC3MR.js} +4 -4
- package/dist/bundle/{openai-XT2RIXAK.js → openai-ASLWL3D6.js} +14 -14
- package/dist/bundle/{process-VVEQIHPE.js → process-AB2D2G2Q.js} +1 -1
- package/dist/bundle/{program-RD3BBDNY.js → program-ZJPQ3IDU.js} +447 -382
- package/dist/bundle/{prompt-PU7GE4Z4.js → prompt-JDFVQR3L.js} +5 -5
- package/dist/bundle/{recognize-AG4A3KUK.js → recognize-PKYA4HRC.js} +4 -4
- package/dist/bundle/{remote-D6TQ6T7F.js → remote-USBVVO4O.js} +7 -7
- package/dist/bundle/{rerank-GO24HJPF.js → rerank-UBMV6KO6.js} +7 -7
- package/dist/bundle/{serve-WCHJAH6G.js → serve-SVS3YOYS.js} +9 -9
- package/dist/bundle/{server-CAVNBG3P.js → server-7PZMYXY6.js} +38 -38
- package/dist/bundle/server-KA7Q5XCL.js +63 -0
- package/dist/bundle/{sqlite-runtime-ANXC4AW2.js → sqlite-runtime-IDPTXAM7.js} +5 -5
- package/dist/bundle/{state-EGJ66A62.js → state-6G2TSVP7.js} +6 -6
- package/dist/bundle/{store-OON7FCMQ.js → store-7A464D4X.js} +15 -15
- package/dist/bundle/{store-SBFA444C.js → store-L56GFI4P.js} +13 -13
- package/dist/bundle/store-maintenance-command-2LM4GOI3.js +52 -0
- package/dist/commands/read.d.ts.map +1 -1
- package/dist/commands/read.js +1 -0
- package/dist/commands/read.js.map +1 -1
- package/dist/commands/server-search.d.ts.map +1 -1
- package/dist/commands/server-search.js +3 -2
- package/dist/commands/server-search.js.map +1 -1
- package/dist/providers.d.ts +8 -0
- package/dist/providers.d.ts.map +1 -1
- package/dist/providers.js +2 -0
- package/dist/providers.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-CB5BII3S.js +0 -34
- package/dist/bundle/first-screen-VUZEDSQW.js +0 -32
- package/dist/bundle/server-5KJJ3D6P.js +0 -63
- package/dist/bundle/store-maintenance-command-UEOJLYMJ.js +0 -52
- /package/dist/bundle/{chunk-WJWLHLQ7.js → chunk-EKRM2QJB.js} +0 -0
|
@@ -2,26 +2,26 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
validateFormattedText
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LN7TNZIS.js";
|
|
6
6
|
import {
|
|
7
7
|
inputPolicy
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DYCPBLUC.js";
|
|
9
9
|
import {
|
|
10
10
|
indent
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZISFMUYB.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-L3KMVMRJ.js";
|
|
15
15
|
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.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/domain/checks.js
|
|
20
20
|
var spelled = /* @__PURE__ */ __name((check, args) => `${check.replaceAll(".", " ")}${args === void 0 ? "" : ` ${args}`}`, "spelled");
|
|
21
21
|
var bareCheck = /* @__PURE__ */ __name((check, args) => `\`${spelled(check, args)}\``, "bareCheck");
|
|
22
22
|
var checkWords = /* @__PURE__ */ __name((command, profile) => (check, args) => `\`${command} ${profile === void 0 ? "" : `${profile} `}${spelled(check, args)}\``, "checkWords");
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/domain/markdown.js
|
|
25
25
|
var MARKERS = [
|
|
26
26
|
["**", "bold"],
|
|
27
27
|
["~~", "strike"],
|
|
@@ -67,7 +67,7 @@ var closing = /* @__PURE__ */ __name((input, open, marker) => {
|
|
|
67
67
|
return end;
|
|
68
68
|
}, "closing");
|
|
69
69
|
|
|
70
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
70
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/domain/markdown-spans.js
|
|
71
71
|
var STYLES = [
|
|
72
72
|
["**", "bold"],
|
|
73
73
|
["__", "underline"],
|
|
@@ -227,7 +227,7 @@ var parseMarkdownSpans = /* @__PURE__ */ __name((input) => {
|
|
|
227
227
|
return validateFormattedText(result);
|
|
228
228
|
}, "parseMarkdownSpans");
|
|
229
229
|
|
|
230
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
230
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/domain/polls.js
|
|
231
231
|
var countedPoll = /* @__PURE__ */ __name((poll, votes, self) => {
|
|
232
232
|
const cast = votes.filter((vote) => vote.answers.length > 0);
|
|
233
233
|
const mine = self === null ? void 0 : votes.find((vote) => vote.person.id === self);
|
|
@@ -1876,7 +1876,7 @@ var createDataURL = /* @__PURE__ */ __name(function(width, height, getPixel) {
|
|
|
1876
1876
|
var qrcode_default = qrcode;
|
|
1877
1877
|
var stringToBytes = qrcode.stringToBytes;
|
|
1878
1878
|
|
|
1879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/terminal/qr.js
|
|
1880
1880
|
var QUIET_ZONE = 4;
|
|
1881
1881
|
var BLACK_ON_WHITE = "\x1B[30;107m";
|
|
1882
1882
|
var RESET = "\x1B[0m";
|
|
@@ -1923,7 +1923,7 @@ var plainQr = /* @__PURE__ */ __name((link) => {
|
|
|
1923
1923
|
return lines.join("\n");
|
|
1924
1924
|
}, "plainQr");
|
|
1925
1925
|
|
|
1926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/terminal/login-qr.js
|
|
1927
1927
|
var MARGIN = 2;
|
|
1928
1928
|
var atTerminal = /* @__PURE__ */ __name((input) => input.isTTY === true && !inputPolicy(input).noInput, "atTerminal");
|
|
1929
1929
|
var PASTE_QR = "agents: paste the QR code above into the chat as a code block, exactly as printed; when a new one is printed, paste it and say the old one expired";
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
singleLine,
|
|
9
9
|
visibleControls
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-L3KMVMRJ.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.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/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);
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/errors.js
|
|
8
8
|
var errorCodes = [
|
|
9
9
|
"validation_error",
|
|
10
10
|
"configuration_error",
|
|
@@ -38,7 +38,7 @@ var CliError = class extends Error {
|
|
|
38
38
|
};
|
|
39
39
|
var isCliError = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && value[BRAND] === true, "isCliError");
|
|
40
40
|
|
|
41
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
41
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
|
|
42
42
|
var CONTROL = (
|
|
43
43
|
// biome-ignore lint/suspicious/noControlCharactersInRegex: matching them is the whole point
|
|
44
44
|
/[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u200B\u200E\u200F\u202A-\u202E\u2066-\u2069\uFEFF\u{E0000}-\u{E007F}]/gu
|
|
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
LEVELS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TCWJYOZV.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZISFMUYB.js";
|
|
10
10
|
import {
|
|
11
11
|
array,
|
|
12
12
|
getDotPath,
|
|
@@ -25,17 +25,17 @@ import {
|
|
|
25
25
|
string,
|
|
26
26
|
transform,
|
|
27
27
|
unknown
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-NAIJNJZZ.js";
|
|
29
29
|
import {
|
|
30
30
|
CliError,
|
|
31
31
|
singleLine,
|
|
32
32
|
visibleControls
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-L3KMVMRJ.js";
|
|
34
34
|
import {
|
|
35
35
|
__name
|
|
36
36
|
} from "./chunk-ZVVMGPBJ.js";
|
|
37
37
|
|
|
38
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
39
39
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
40
40
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase(), "foldName");
|
|
41
41
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -73,7 +73,7 @@ ${lines}`, { candidates });
|
|
|
73
73
|
}, "ambiguous");
|
|
74
74
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
75
75
|
|
|
76
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
76
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
77
77
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
78
78
|
var validateFormattedText = /* @__PURE__ */ __name((formatted) => {
|
|
79
79
|
const { text, spans } = formatted;
|
|
@@ -133,7 +133,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted) => {
|
|
|
133
133
|
};
|
|
134
134
|
}, "visibleFormattedText");
|
|
135
135
|
|
|
136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
136
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
137
137
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
138
138
|
var LINK = /https?:\/\/\S+/i;
|
|
139
139
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -321,7 +321,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
321
321
|
}, "nextPoint");
|
|
322
322
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
323
323
|
|
|
324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
325
325
|
import { existsSync, readFileSync } from "node:fs";
|
|
326
326
|
import { join } from "node:path";
|
|
327
327
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
errorCodes,
|
|
5
5
|
isCliError,
|
|
6
6
|
visibleControls
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-L3KMVMRJ.js";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
10
|
} from "./chunk-ZVVMGPBJ.js";
|
|
11
11
|
|
|
12
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
12
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
|
|
13
13
|
var EXIT_CODES = {
|
|
14
14
|
validation_error: 2,
|
|
15
15
|
configuration_error: 3,
|
|
@@ -1245,7 +1245,7 @@ function unwrap(schema) {
|
|
|
1245
1245
|
}
|
|
1246
1246
|
__name(unwrap, "unwrap");
|
|
1247
1247
|
|
|
1248
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1248
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
|
|
1249
1249
|
var EFFECT_LEVELS = ["none", "read", "write"];
|
|
1250
1250
|
var effectsSchema = strictObject({
|
|
1251
1251
|
remote: picklist(EFFECT_LEVELS),
|
|
@@ -1882,7 +1882,7 @@ function toStandardJsonSchema(schema) {
|
|
|
1882
1882
|
}
|
|
1883
1883
|
__name(toStandardJsonSchema, "toStandardJsonSchema");
|
|
1884
1884
|
|
|
1885
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1885
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
|
|
1886
1886
|
var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
|
|
1887
1887
|
var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
|
|
1888
1888
|
var text = pipe(string(), regex(/\S/, "must not be empty"));
|
|
@@ -1924,9 +1924,10 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
|
|
|
1924
1924
|
return String(value);
|
|
1925
1925
|
}), "fill");
|
|
1926
1926
|
|
|
1927
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1927
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
|
|
1928
1928
|
var MAX_NEXT_STEPS = 2;
|
|
1929
1929
|
var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
|
|
1930
|
+
var localTime = pipe(string(), regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}[+-]\d{2}:\d{2}$/, "an ISO 8601 time with its offset"));
|
|
1930
1931
|
var reference = pipe(string(), regex(/^[a-z]+:\S+$/, "a reference such as `note:42`"));
|
|
1931
1932
|
var nextStepSchema = variant("kind", [
|
|
1932
1933
|
strictObject({
|
|
@@ -1993,6 +1994,9 @@ var metaSchema = strictObject({
|
|
|
1993
1994
|
issues: optional(array(issueSchema)),
|
|
1994
1995
|
truncated: optional(boolean()),
|
|
1995
1996
|
timezone: optional(text),
|
|
1997
|
+
/** When the command answered, for an agent that plans from "now" (WC-TIME-7); `timezone` names the zone of `now_local`. */
|
|
1998
|
+
now: optional(isoTime),
|
|
1999
|
+
now_local: optional(localTime),
|
|
1996
2000
|
window: optional(strictObject({ since: optional(isoTime), until: optional(isoTime) }))
|
|
1997
2001
|
});
|
|
1998
2002
|
var nextSteps = optional(pipe(array(nextStepSchema), maxLength(MAX_NEXT_STEPS)));
|
|
@@ -2020,7 +2024,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
|
|
|
2020
2024
|
JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
|
|
2021
2025
|
].join("\n"), "jsonlOf");
|
|
2022
2026
|
|
|
2023
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2027
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
|
|
2024
2028
|
var CRASH_CODE = "internal_error";
|
|
2025
2029
|
var CRASH_REASON = "command.crashed";
|
|
2026
2030
|
var errorObjectSchema = strictObject({
|
|
@@ -2107,7 +2111,7 @@ var BASE_REASONS = defineReasons([
|
|
|
2107
2111
|
{ reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
|
|
2108
2112
|
]);
|
|
2109
2113
|
|
|
2110
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2114
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
|
|
2111
2115
|
var SAME_COMMAND = "*";
|
|
2112
2116
|
var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
|
|
2113
2117
|
var stepSchema = union([
|
|
@@ -2186,7 +2190,7 @@ var STEPS = defineSteps([
|
|
|
2186
2190
|
}
|
|
2187
2191
|
]);
|
|
2188
2192
|
|
|
2189
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2193
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
|
|
2190
2194
|
var recognise = /* @__PURE__ */ __name((failure) => {
|
|
2191
2195
|
if (isCliError(failure))
|
|
2192
2196
|
return failure;
|
|
@@ -2,16 +2,16 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
alive
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Q5DOXSBM.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZISFMUYB.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/background/lock.js
|
|
15
15
|
import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
16
16
|
import { dirname, join } from "node:path";
|
|
17
17
|
var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
agentOf,
|
|
30
30
|
clientHash,
|
|
31
31
|
currentCaller
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-J6ACLZKV.js";
|
|
33
33
|
import {
|
|
34
34
|
__name
|
|
35
35
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -541,7 +541,7 @@ function toError(value) {
|
|
|
541
541
|
}
|
|
542
542
|
__name(toError, "toError");
|
|
543
543
|
|
|
544
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
544
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/mcp/caller.js
|
|
545
545
|
var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
|
|
546
546
|
const client = caller?.agent?.client?.name;
|
|
547
547
|
if (client && client !== "unknown")
|