@wirecat/mail-cli 0.35.0 → 0.37.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 +55 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/agent-OU4K7TKQ.js +40 -0
- package/dist/bundle/{all-profiles-6BDSMVOO.js → all-profiles-ICGWDPUU.js} +11 -11
- package/dist/bundle/{anthropic-C3XUXUCJ.js → anthropic-TL4WFWGU.js} +5 -5
- package/dist/bundle/{app-server-GUHDK4OR.js → app-server-YAR5EFOO.js} +69 -67
- package/dist/bundle/{bun-FN7AM4AG.js → bun-OPDGMZZQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-56IVBF22.js → bun-sqlite-WI3ZPANS.js} +6 -6
- package/dist/bundle/{chunk-L4RCWRWS.js → chunk-2JHVQMVC.js} +1 -1
- package/dist/bundle/{chunk-RJNKM3CQ.js → chunk-2XBDILVW.js} +1 -1
- package/dist/bundle/{chunk-7FXZKQAC.js → chunk-2YO3PLOE.js} +19 -19
- package/dist/bundle/{chunk-YCIWSKOH.js → chunk-3DHJF57U.js} +9 -9
- package/dist/bundle/{chunk-5XQI7WCJ.js → chunk-3HC5F3P7.js} +1 -1
- package/dist/bundle/{chunk-6Q5THDNW.js → chunk-3SKTQ2HC.js} +2 -2
- package/dist/bundle/{chunk-ZMYRPMAJ.js → chunk-3YM4B2GT.js} +1 -1
- package/dist/bundle/{chunk-7YMLEWTX.js → chunk-3ZOOTTFW.js} +6 -6
- package/dist/bundle/{chunk-CMGZXBJW.js → chunk-4FTIHADB.js} +6 -6
- package/dist/bundle/{chunk-3EV2B7KZ.js → chunk-4IZ6R5FS.js} +19 -15
- package/dist/bundle/{chunk-W7ICCFG5.js → chunk-4N7PP76S.js} +1 -1
- package/dist/bundle/{chunk-PQDQCCGG.js → chunk-7HRKUKKY.js} +23 -23
- package/dist/bundle/{chunk-GG634DR3.js → chunk-7PDGZFXD.js} +5 -5
- package/dist/bundle/{chunk-OOQFBRNR.js → chunk-7YKWFERX.js} +6 -6
- package/dist/bundle/{chunk-E6HSSKRX.js → chunk-BNURKCQG.js} +2 -3
- package/dist/bundle/{chunk-I3QZCQJT.js → chunk-BNVISIHP.js} +6 -6
- package/dist/bundle/{chunk-4U5ODZO7.js → chunk-BQMJYSA4.js} +11 -11
- package/dist/bundle/{chunk-TARNPINT.js → chunk-BYITYTRL.js} +16 -3
- package/dist/bundle/{chunk-GU3PYIV2.js → chunk-CICUPYHT.js} +2 -2
- package/dist/bundle/{chunk-6B4WZVLN.js → chunk-CQHLWMKK.js} +33 -28
- package/dist/bundle/{chunk-HKWZG7CZ.js → chunk-CUW7Y2HJ.js} +6 -6
- package/dist/bundle/{chunk-WDEVKKAD.js → chunk-DJZIFZOT.js} +3 -3
- package/dist/bundle/{chunk-AV2ZJ4WX.js → chunk-DNCLQPOM.js} +1 -1
- package/dist/bundle/{chunk-7JVKQ6NM.js → chunk-DPV53EZC.js} +4 -4
- package/dist/bundle/{chunk-ILEKGH44.js → chunk-DTR7JO2M.js} +35 -35
- package/dist/bundle/{chunk-TP766H4O.js → chunk-ES2FF42M.js} +14 -14
- package/dist/bundle/{chunk-635AFLZO.js → chunk-EV72K4IU.js} +4 -4
- package/dist/bundle/{chunk-XQNKAM26.js → chunk-EZQ5BYNL.js} +6 -6
- package/dist/bundle/{chunk-AISQNKT7.js → chunk-F2D3J5DR.js} +8 -8
- package/dist/bundle/{chunk-OO4OKMNB.js → chunk-FTT7UDYV.js} +3 -3
- package/dist/bundle/{chunk-DD2P67NP.js → chunk-FXNCKPQ7.js} +3 -3
- package/dist/bundle/{chunk-6VARUB3J.js → chunk-G4VJN75G.js} +37 -18
- package/dist/bundle/{chunk-2UNQTKRH.js → chunk-GGMAIIVE.js} +1 -1
- package/dist/bundle/{chunk-3WAZKCDF.js → chunk-GPUC3FTU.js} +2 -2
- package/dist/bundle/{chunk-ZX7HZDD6.js → chunk-GQIMVR7C.js} +180 -38
- package/dist/bundle/{chunk-4IASS7NQ.js → chunk-HCRUGAIN.js} +252 -60
- package/dist/bundle/{chunk-YQTRKNZQ.js → chunk-HES6YMYN.js} +4 -4
- package/dist/bundle/{chunk-2B67TUIF.js → chunk-HFY7536N.js} +201 -111
- package/dist/bundle/{chunk-5WYBI35N.js → chunk-IA7LLLEI.js} +3 -3
- package/dist/bundle/{chunk-HF5QWKK2.js → chunk-IUJDWEGJ.js} +7 -7
- package/dist/bundle/{chunk-UHGKN5US.js → chunk-IWFWWO37.js} +8 -8
- package/dist/bundle/{chunk-7PXAUMK5.js → chunk-JG6LCSEX.js} +13 -13
- package/dist/bundle/{chunk-UWDRU3R6.js → chunk-JLXXUEAM.js} +2 -2
- package/dist/bundle/{chunk-G662S2M4.js → chunk-JNP3XGJI.js} +16 -16
- package/dist/bundle/{chunk-DREU6TN6.js → chunk-JZUYZ2XJ.js} +38 -24
- package/dist/bundle/chunk-K4DEQAEW.js +1291 -0
- package/dist/bundle/{chunk-7KMI47AP.js → chunk-KCM3WSER.js} +6 -6
- package/dist/bundle/{chunk-YA44BG3N.js → chunk-KP5JDYY6.js} +42 -10
- package/dist/bundle/{chunk-QFMKCU42.js → chunk-KUX54EGR.js} +1982 -802
- package/dist/bundle/chunk-KXJ3JEDH.js +2 -0
- package/dist/bundle/{chunk-HJDIMVFW.js → chunk-KZD3H5QA.js} +2 -2
- package/dist/bundle/{chunk-XKKYRMGG.js → chunk-LKH3UKLO.js} +4 -4
- package/dist/bundle/{chunk-QYCMB7JY.js → chunk-NAOLBEFX.js} +226 -164
- package/dist/bundle/{chunk-46SBNO67.js → chunk-NB52JKLR.js} +13 -9
- package/dist/bundle/{chunk-3KAJCOJP.js → chunk-NB7EOAUZ.js} +15 -1
- package/dist/bundle/{chunk-DFHUJTP5.js → chunk-NISH4UXM.js} +2 -2
- package/dist/bundle/{chunk-EU4J6GCJ.js → chunk-NQSKI7XK.js} +4 -4
- package/dist/bundle/{chunk-YRAJFTFU.js → chunk-OWPRJLHV.js} +8 -8
- package/dist/bundle/{chunk-V4O47JV6.js → chunk-OZKZT3ZI.js} +10 -3
- package/dist/bundle/{chunk-CDGVYQXG.js → chunk-Q7ICVP25.js} +1 -1
- package/dist/bundle/{chunk-Q5U2HIBJ.js → chunk-QLJGYDWG.js} +7 -7
- package/dist/bundle/{chunk-W4JYGMTU.js → chunk-R44KVISE.js} +12 -12
- package/dist/bundle/{chunk-MCJYJIH5.js → chunk-R73VWPNL.js} +8 -8
- package/dist/bundle/{chunk-YTI533XF.js → chunk-RRTMPSQR.js} +2 -2
- package/dist/bundle/{chunk-HM6AMYHR.js → chunk-S6JG4YUH.js} +2 -2
- package/dist/bundle/{chunk-AXKIXVQA.js → chunk-TMJLGR4A.js} +61 -61
- package/dist/bundle/{chunk-HVXOA4FO.js → chunk-TXDR6YSF.js} +1 -1
- package/dist/bundle/{chunk-CFQQTDSA.js → chunk-TY7NDMFY.js} +1 -1
- package/dist/bundle/{chunk-ODQCRZX5.js → chunk-UDSL3MUU.js} +8 -8
- package/dist/bundle/{chunk-ZYEU35MB.js → chunk-UTS5NMR3.js} +2 -2
- package/dist/bundle/{chunk-RBV2AM52.js → chunk-VB7FZOYX.js} +1 -1
- package/dist/bundle/{chunk-RQHWSNX4.js → chunk-VK24UQSD.js} +4 -4
- package/dist/bundle/{chunk-TP2BCK2Z.js → chunk-VYCB5EVI.js} +8 -8
- package/dist/bundle/{chunk-EHAXFDDP.js → chunk-VZ5PPYDG.js} +3 -4
- package/dist/bundle/chunk-WOPVBRPV.js +29 -0
- package/dist/bundle/{chunk-3ACF6TIV.js → chunk-XEQQJBBO.js} +1 -1
- package/dist/bundle/{chunk-J5ULUTWE.js → chunk-XWBTD2WP.js} +4 -4
- package/dist/bundle/chunk-XXPJF2VD.js +2 -0
- package/dist/bundle/{chunk-OTP2HJ67.js → chunk-YODGIMMM.js} +9 -9
- package/dist/bundle/{chunk-NEDS4ORI.js → chunk-YWDFYQOU.js} +2 -2
- package/dist/bundle/{chunk-EX4Z7CCO.js → chunk-Z4BLNAWI.js} +15062 -11852
- package/dist/bundle/{chunk-WZKM5I7B.js → chunk-ZSAPOC7B.js} +27 -176
- package/dist/bundle/{chunk-RQJGX7F7.js → chunk-ZTWTEXB2.js} +3 -3
- package/dist/bundle/command-contract-UC6IGCCM.js +39 -0
- package/dist/bundle/{command-server-entry-TPJ47FYS.js → command-server-entry-RA3ZX2KV.js} +28 -28
- package/dist/bundle/{decode-XHUASXQK.js → decode-QVKRSRVF.js} +5 -5
- package/dist/bundle/{dispatch-MQZHGGVP.js → dispatch-USKS7J74.js} +8 -8
- package/dist/bundle/{dist-BAE4IQ52.js → dist-ITIXJAXK.js} +20 -18
- package/dist/bundle/{echarts-U7Z2PKIG.js → echarts-O3TNDAXJ.js} +2 -2
- package/dist/bundle/{embed-W7GPB6EI.js → embed-2HOODFQT.js} +6 -6
- package/dist/bundle/{embedder-T72XLFQ5.js → embedder-22AJGCZX.js} +9 -9
- package/dist/bundle/{failure-MP6VKL5Y.js → failure-D4FGOIWF.js} +2 -2
- package/dist/bundle/{first-run-C44TJXRI.js → first-run-FU4MFXOA.js} +12 -12
- package/dist/bundle/first-screen-A7SEI2ON.js +40 -0
- package/dist/bundle/{instructions-WGMWQNPP.js → instructions-AMH5RWVJ.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-YGOAUNC3.js → mcp-5HFPWC3W.js} +2 -2
- package/dist/bundle/meeting-combined-KC6YGWA7.js +24 -0
- package/dist/bundle/{meeting-model-QVHLD4WI.js → meeting-model-QWGAOQHL.js} +11 -11
- package/dist/bundle/{meeting-semantic-QKQHUHXX.js → meeting-semantic-7PVO6RNB.js} +6 -6
- package/dist/bundle/{node-WANDMJJQ.js → node-EGMCBAO7.js} +2 -2
- package/dist/bundle/{node-sqlite-NM5XA4DR.js → node-sqlite-JXUELLMP.js} +7 -7
- package/dist/bundle/{oauth-6E63ELEE.js → oauth-OYAYWH4K.js} +7 -7
- package/dist/bundle/{open-5542RTLE.js → open-GLEUJGNA.js} +5 -5
- package/dist/bundle/{openai-NOYNPFB5.js → openai-PYTVNB6L.js} +15 -15
- package/dist/bundle/{process-7AEXXSBX.js → process-SGHEN6MQ.js} +1 -1
- package/dist/bundle/{program-VMA5CGNR.js → program-7CFNZ2DF.js} +2227 -2291
- package/dist/bundle/{prompt-WYYO4AJL.js → prompt-CYTILD7N.js} +5 -5
- package/dist/bundle/public-XWMXEGEF.js +196 -0
- package/dist/bundle/{recognize-UGCCOMAS.js → recognize-26UNETSQ.js} +4 -4
- package/dist/bundle/{remote-VZS6BNQB.js → remote-PKXBQA5N.js} +9 -9
- package/dist/bundle/{rerank-O46D5GJ2.js → rerank-LLKP7M6Q.js} +7 -7
- package/dist/bundle/{serve-QAAF2LCW.js → serve-ZRJEAPJI.js} +9 -9
- package/dist/bundle/{server-Q3PUZLLX.js → server-4OQ4G5JY.js} +61 -59
- package/dist/bundle/server-VVRQ4A34.js +86 -0
- package/dist/bundle/{sqlite-runtime-EQBCDO2U.js → sqlite-runtime-667VV4VY.js} +6 -6
- package/dist/bundle/{state-XIOHYXCR.js → state-V3CAAJBE.js} +6 -6
- package/dist/bundle/{store-VJBL5XKR.js → store-BJCIMIAH.js} +31 -24
- package/dist/bundle/{store-OXJZZUR7.js → store-GLBBY4OZ.js} +22 -22
- package/dist/bundle/store-maintenance-command-N7L5OVUE.js +73 -0
- package/dist/bundle/surface-26EUQNDT.js +72 -0
- package/dist/commands/import.js +2 -2
- package/dist/commands/import.js.map +1 -1
- package/dist/commands/messages.js +3 -3
- package/dist/commands/messages.js.map +1 -1
- package/dist/commands/read.js +2 -2
- package/dist/commands/read.js.map +1 -1
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +1 -0
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/session-start.js +1 -1
- package/dist/commands/session-start.js.map +1 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +2 -2
- package/dist/commands/session.js.map +1 -1
- package/dist/commands/sync.js +1 -1
- package/dist/commands/sync.js.map +1 -1
- package/dist/commands/tags.d.ts.map +1 -1
- package/dist/commands/tags.js.map +1 -1
- package/dist/commands/words.js +1 -1
- package/dist/commands/words.js.map +1 -1
- package/dist/config.d.ts +2 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +7 -0
- package/dist/config.js.map +1 -1
- package/dist/mail/imap/account.d.ts.map +1 -1
- package/dist/mail/imap/account.js +2 -1
- package/dist/mail/imap/account.js.map +1 -1
- package/dist/mail/send.d.ts +2 -0
- package/dist/mail/send.d.ts.map +1 -1
- package/dist/mail/send.js +1 -1
- package/dist/mail/send.js.map +1 -1
- package/dist/oauth.d.ts.map +1 -1
- package/dist/oauth.js +2 -1
- package/dist/oauth.js.map +1 -1
- package/dist/profile.js +1 -1
- package/dist/profile.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +4 -4
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +0 -1
- package/dist/reasons.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/agent-KWLCQCSC.js +0 -39
- package/dist/bundle/chunk-DZHEVVXA.js +0 -1264
- package/dist/bundle/command-contract-D5UXWHMS.js +0 -39
- package/dist/bundle/first-screen-IESI7DAU.js +0 -39
- package/dist/bundle/meeting-combined-XGZBSWIQ.js +0 -24
- package/dist/bundle/server-456MYK3X.js +0 -84
- package/dist/bundle/store-maintenance-command-D7XYIX52.js +0 -71
- package/dist/bundle/surface-N7LK7PKN.js +0 -70
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YWDFYQOU.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-S6JG4YUH.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@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
|
|
16
16
|
import { createInterface } from "node:readline";
|
|
17
17
|
import { Writable } from "node:stream";
|
|
18
18
|
var EMPTY_TRIES = 3;
|
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
fieldsOf,
|
|
6
6
|
processStreams,
|
|
7
7
|
projectFields
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2YO3PLOE.js";
|
|
9
9
|
import {
|
|
10
10
|
COMPACT_FLAG
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KP5JDYY6.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError,
|
|
14
14
|
singleLine
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-S6JG4YUH.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
18
|
} from "./chunk-ZVVMGPBJ.js";
|
|
19
19
|
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
21
21
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
22
22
|
var DANGEROUS = /* @__PURE__ */ new Set([
|
|
23
23
|
"messages.delete",
|
|
@@ -453,7 +453,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
453
453
|
}
|
|
454
454
|
}, "assertRetentionEvidenceRead");
|
|
455
455
|
|
|
456
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
456
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
457
457
|
var named = /* @__PURE__ */ __name((work) => {
|
|
458
458
|
try {
|
|
459
459
|
return work();
|
|
@@ -480,7 +480,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
480
480
|
return projectFields(value, fields);
|
|
481
481
|
}), "projectFields");
|
|
482
482
|
|
|
483
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
483
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
484
484
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
485
485
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
486
486
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -516,7 +516,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
516
516
|
return value;
|
|
517
517
|
}, "atDetail");
|
|
518
518
|
|
|
519
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
519
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/output.js
|
|
520
520
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
521
521
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
522
522
|
if (other)
|
|
@@ -2,26 +2,26 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
isCliFailure
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JLXXUEAM.js";
|
|
6
6
|
import {
|
|
7
7
|
secretNamed,
|
|
8
8
|
withoutSecrets
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XEQQJBBO.js";
|
|
10
10
|
import {
|
|
11
11
|
isContentKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2YO3PLOE.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
18
18
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
19
19
|
import { createHash } from "node:crypto";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
22
22
|
import { homedir } from "node:os";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/runs/events.js
|
|
25
25
|
var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
|
|
26
26
|
var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
27
27
|
if (event.event === "store")
|
|
@@ -73,7 +73,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
|
|
|
73
73
|
var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
|
|
74
74
|
var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
|
|
75
75
|
|
|
76
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
76
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
77
77
|
var MESSAGE_AT_MOST = 500;
|
|
78
78
|
var CAUSES_AT_MOST = 5;
|
|
79
79
|
var FRAMES_AT_MOST = 15;
|
|
@@ -185,7 +185,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
|
|
|
185
185
|
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
186
186
|
}, "redactText");
|
|
187
187
|
|
|
188
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
188
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
189
189
|
var REDACTED = "[redacted]";
|
|
190
190
|
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
191
191
|
if (!record)
|
|
@@ -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-S6JG4YUH.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@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
|
|
11
11
|
import { constants } from "node:fs";
|
|
12
12
|
import { lstat, open } from "node:fs/promises";
|
|
13
13
|
var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
|
|
@@ -73,7 +73,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
|
|
|
73
73
|
}
|
|
74
74
|
}, "syncDirectory");
|
|
75
75
|
|
|
76
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
76
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
|
|
77
77
|
import { randomUUID } from "node:crypto";
|
|
78
78
|
import { constants as constants2 } from "node:fs";
|
|
79
79
|
import { link, open as open2, realpath, rename, unlink } from "node:fs/promises";
|
|
@@ -111,7 +111,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
|
|
|
111
111
|
}
|
|
112
112
|
}, "writeFileAtomic");
|
|
113
113
|
|
|
114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
114
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
|
|
115
115
|
var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
116
116
|
if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
|
|
117
117
|
throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
|
|
@@ -140,21 +140,21 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
|
140
140
|
}
|
|
141
141
|
}, "readBoundedUtf8File");
|
|
142
142
|
|
|
143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
143
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
144
144
|
import { mkdir as mkdir2 } from "node:fs/promises";
|
|
145
145
|
import { basename as basename2, dirname as dirname2 } from "node:path";
|
|
146
146
|
|
|
147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
147
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
148
148
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
149
149
|
import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
|
|
150
150
|
import { hostname as hostname2 } from "node:os";
|
|
151
151
|
import { join as join3 } from "node:path";
|
|
152
152
|
|
|
153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
153
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
154
154
|
import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
|
|
155
155
|
import { join as join2 } from "node:path";
|
|
156
156
|
|
|
157
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
157
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
|
|
158
158
|
import { hostname } from "node:os";
|
|
159
159
|
var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
|
|
160
160
|
var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
|
|
@@ -199,7 +199,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
|
|
|
199
199
|
}
|
|
200
200
|
}, "leaseOwnerStatus");
|
|
201
201
|
|
|
202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
202
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
203
203
|
var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
204
204
|
const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
|
|
205
205
|
options.signal?.throwIfAborted();
|
|
@@ -258,7 +258,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
|
258
258
|
return { inspect, recover };
|
|
259
259
|
}, "leaseInspection");
|
|
260
260
|
|
|
261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
261
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
|
|
262
262
|
import { rmdir, unlink as unlink3 } from "node:fs/promises";
|
|
263
263
|
var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
|
|
264
264
|
let releasing;
|
|
@@ -283,7 +283,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
|
|
|
283
283
|
};
|
|
284
284
|
}, "ownedNativeLease");
|
|
285
285
|
|
|
286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
286
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
287
287
|
var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
|
|
288
288
|
var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
289
289
|
const { markerDirectory, legacyMarker } = layout;
|
|
@@ -354,7 +354,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
|
354
354
|
};
|
|
355
355
|
}, "nativeWriterLeaseStore");
|
|
356
356
|
|
|
357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
357
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
358
358
|
var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
359
359
|
const folder = dirname2(path);
|
|
360
360
|
await mkdir2(folder, { recursive: true, mode: 448 });
|
|
@@ -369,7 +369,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
|
369
369
|
});
|
|
370
370
|
}, "acquireLock");
|
|
371
371
|
|
|
372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
372
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/safe-name.js
|
|
373
373
|
import { basename as basename3, extname } from "node:path";
|
|
374
374
|
var MOST_NAME_BYTES = 200;
|
|
375
375
|
var bytesOf = /* @__PURE__ */ __name((text) => Buffer.byteLength(text, "utf8"), "bytesOf");
|
|
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
CliError,
|
|
5
5
|
errorCodes
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-S6JG4YUH.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@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/errors/failures.js
|
|
12
12
|
var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
|
|
13
13
|
var isCommanderFailure = /* @__PURE__ */ __name((value) => {
|
|
14
14
|
const { code, exitCode } = value ?? {};
|
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
UNTRUSTED_NEUTRAL,
|
|
6
6
|
agentArguments,
|
|
7
7
|
agentJson
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-R73VWPNL.js";
|
|
9
9
|
import {
|
|
10
10
|
failureContext
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HCRUGAIN.js";
|
|
12
12
|
import {
|
|
13
13
|
onlineDeps,
|
|
14
14
|
refuseLacking,
|
|
15
15
|
servicesFor,
|
|
16
16
|
storeModeDeps
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-KUX54EGR.js";
|
|
18
18
|
import {
|
|
19
19
|
callerOf
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KZD3H5QA.js";
|
|
21
21
|
import {
|
|
22
22
|
DEFAULT_OUTPUT_BYTES,
|
|
23
23
|
ENTITIES,
|
|
@@ -30,32 +30,32 @@ import {
|
|
|
30
30
|
refuseStoreChange,
|
|
31
31
|
sealed,
|
|
32
32
|
startRecording
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-NAOLBEFX.js";
|
|
34
34
|
import {
|
|
35
35
|
fetchesAt,
|
|
36
36
|
keyForCommand,
|
|
37
37
|
levelFor,
|
|
38
38
|
readKeysForCommand
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-IUJDWEGJ.js";
|
|
40
40
|
import {
|
|
41
41
|
currentCaller,
|
|
42
42
|
keepsSuccess,
|
|
43
43
|
runContextOf,
|
|
44
44
|
withCaller
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-IWFWWO37.js";
|
|
46
46
|
import {
|
|
47
47
|
MAX_BUFFERED_INPUT
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-YWDFYQOU.js";
|
|
49
49
|
import {
|
|
50
50
|
inRun,
|
|
51
51
|
newRunId
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-K4DEQAEW.js";
|
|
53
53
|
import {
|
|
54
54
|
storeDamaged
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-JLXXUEAM.js";
|
|
56
56
|
import {
|
|
57
57
|
traceIdOf
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-2YO3PLOE.js";
|
|
59
59
|
import {
|
|
60
60
|
array,
|
|
61
61
|
boolean,
|
|
@@ -82,19 +82,19 @@ import {
|
|
|
82
82
|
toJsonSchema,
|
|
83
83
|
toStandardJsonSchema,
|
|
84
84
|
unknown
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-KP5JDYY6.js";
|
|
86
86
|
import {
|
|
87
87
|
CliError,
|
|
88
88
|
errorCodes
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-S6JG4YUH.js";
|
|
90
90
|
import {
|
|
91
91
|
__name
|
|
92
92
|
} from "./chunk-ZVVMGPBJ.js";
|
|
93
93
|
|
|
94
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
94
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
95
95
|
import { randomUUID } from "node:crypto";
|
|
96
96
|
|
|
97
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
97
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
98
98
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
99
99
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
100
100
|
var message = pipe(
|
|
@@ -353,7 +353,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
353
353
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
|
|
354
354
|
}, "failed");
|
|
355
355
|
|
|
356
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
356
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
357
357
|
var MATCHES = 8;
|
|
358
358
|
var ANSWER = answerSchema();
|
|
359
359
|
var agentAnswer = /* @__PURE__ */ __name((prefix, writes) => {
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
QUERY_LIMITS,
|
|
5
5
|
exhausted,
|
|
6
6
|
searchError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OZKZT3ZI.js";
|
|
8
8
|
import {
|
|
9
9
|
fold
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2JHVQMVC.js";
|
|
11
11
|
import {
|
|
12
12
|
CATALOG_KINDS,
|
|
13
13
|
CONTRACT_KINDS,
|
|
@@ -26,16 +26,16 @@ import {
|
|
|
26
26
|
parseReference,
|
|
27
27
|
providerLabel,
|
|
28
28
|
providerNamed
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-G4VJN75G.js";
|
|
30
30
|
import {
|
|
31
31
|
CliError,
|
|
32
32
|
singleLine
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-S6JG4YUH.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@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
|
|
39
39
|
var PHONE_PLANS = [
|
|
40
40
|
{
|
|
41
41
|
country: "us",
|
|
@@ -415,7 +415,7 @@ var PHONE_PLANS = [
|
|
|
415
415
|
}
|
|
416
416
|
];
|
|
417
417
|
|
|
418
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
418
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/phones.js
|
|
419
419
|
var PHONE_COUNTRIES = PHONE_PLANS.map((plan) => plan.country);
|
|
420
420
|
var DEFAULT_PHONE_COUNTRIES = ["ru"];
|
|
421
421
|
var parsePhoneCountries = /* @__PURE__ */ __name((value) => {
|
|
@@ -490,7 +490,7 @@ var storedPhone = /* @__PURE__ */ __name((raw, provider) => {
|
|
|
490
490
|
return found ? `+${found[1]}` : void 0;
|
|
491
491
|
}, "storedPhone");
|
|
492
492
|
|
|
493
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
493
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/record-fields.js
|
|
494
494
|
var DECIMAL_PATTERN = "^[0-9]{1,16}(\\.[0-9]{1,6})?$";
|
|
495
495
|
var SIGNED_DECIMAL = "^-?[0-9]{1,16}(\\.[0-9]{1,6})?$";
|
|
496
496
|
var DAY = "^[0-9]{4}-[0-9]{2}-[0-9]{2}$";
|
|
@@ -540,7 +540,7 @@ var arrayOf = /* @__PURE__ */ __name((item, maxItems, description) => ({
|
|
|
540
540
|
}), "arrayOf");
|
|
541
541
|
var isObject = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isObject");
|
|
542
542
|
|
|
543
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
543
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/record-types.js
|
|
544
544
|
var kept = /* @__PURE__ */ __name((description) => ({ description }), "kept");
|
|
545
545
|
var PARTY = ["person", "organization"];
|
|
546
546
|
var ORGANIZATION = ["organization"];
|
|
@@ -935,7 +935,7 @@ var hasV1Roles = /* @__PURE__ */ __name((type) => rolesOf(type).some(([, role])
|
|
|
935
935
|
var IDENTITY_TYPES = RECORD_ENTITY_TYPES.filter((type) => RECORD_TYPES[type].review === "identity");
|
|
936
936
|
var article = /* @__PURE__ */ __name((word) => /^[aeiou]/.test(word) ? "an" : "a", "article");
|
|
937
937
|
|
|
938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
938
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/ref-arguments.js
|
|
939
939
|
var TAKES = {
|
|
940
940
|
chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
|
|
941
941
|
message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
|
|
@@ -995,7 +995,7 @@ var ensureAccount = /* @__PURE__ */ __name(async (reference, scope, profilesOn)
|
|
|
995
995
|
throw wrongAccount(reference, scope, profiles);
|
|
996
996
|
}, "ensureAccount");
|
|
997
997
|
|
|
998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
998
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
|
|
999
999
|
var any = { kind: "char", ranges: [[0, 1114111]], negate: false };
|
|
1000
1000
|
var literal = /* @__PURE__ */ __name((c) => ({
|
|
1001
1001
|
kind: "char",
|
|
@@ -1395,7 +1395,7 @@ var foldRegex = /* @__PURE__ */ __name((pattern, span) => {
|
|
|
1395
1395
|
return out;
|
|
1396
1396
|
}, "foldRegex");
|
|
1397
1397
|
|
|
1398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1398
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/search/trigrams.js
|
|
1399
1399
|
var trigrams = /* @__PURE__ */ __name((term) => {
|
|
1400
1400
|
const padded = ` ${term} `;
|
|
1401
1401
|
const pieces = /* @__PURE__ */ new Set();
|
|
@@ -1404,7 +1404,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
|
|
|
1404
1404
|
return [...pieces];
|
|
1405
1405
|
}, "trigrams");
|
|
1406
1406
|
|
|
1407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1407
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
1408
1408
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
1409
1409
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase().replaceAll("\u0451", "\u0435"), "foldName");
|
|
1410
1410
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -1475,7 +1475,7 @@ ${lines}`, { candidates });
|
|
|
1475
1475
|
}, "ambiguous");
|
|
1476
1476
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
1477
1477
|
|
|
1478
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1478
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/addresses.js
|
|
1479
1479
|
var EMAIL_ADDRESS = /^[^\s@]+@[^\s@]+\.[^\s@]+$/u;
|
|
1480
1480
|
var isEmailAddress = /* @__PURE__ */ __name((value) => EMAIL_ADDRESS.test(value), "isEmailAddress");
|
|
1481
1481
|
var ROLE_ADDRESS_WORDS = {
|
|
@@ -1528,16 +1528,29 @@ var ROLE_ADDRESS_WORDS = {
|
|
|
1528
1528
|
var bare = /* @__PURE__ */ __name((word) => word.replace(/[.\-_]/gu, ""), "bare");
|
|
1529
1529
|
var NO_REPLY = new Set(ROLE_ADDRESS_WORDS.noReply.map(bare));
|
|
1530
1530
|
var ROLE = new Set([...ROLE_ADDRESS_WORDS.shared, ...ROLE_ADDRESS_WORDS.noReply].map(bare));
|
|
1531
|
-
var
|
|
1531
|
+
var PART_ONLY = /* @__PURE__ */ new Set(["bounce", "bounces"]);
|
|
1532
|
+
var NOTIFY = /* @__PURE__ */ new Set(["notify", "notification", "notifications", "alert", "alerts"]);
|
|
1533
|
+
var localPart = /* @__PURE__ */ __name((address) => {
|
|
1532
1534
|
const local = address.trim().toLowerCase().split("@")[0] ?? "";
|
|
1533
|
-
return
|
|
1534
|
-
}, "
|
|
1535
|
-
var
|
|
1535
|
+
return local.split("+")[0] ?? "";
|
|
1536
|
+
}, "localPart");
|
|
1537
|
+
var localWord = /* @__PURE__ */ __name((address) => bare(localPart(address)), "localWord");
|
|
1538
|
+
var SEPARATORS = /[.\-_]/u;
|
|
1539
|
+
var partsOf = /* @__PURE__ */ __name((address) => localPart(address).split(SEPARATORS), "partsOf");
|
|
1540
|
+
var NO_REPLY_PARTS = ROLE_ADDRESS_WORDS.noReply.map((word) => `.${word.split(SEPARATORS).join(".")}.`);
|
|
1541
|
+
var isNoReplyAddress = /* @__PURE__ */ __name((address) => {
|
|
1542
|
+
const word = localWord(address);
|
|
1543
|
+
const parts = `.${partsOf(address).join(".")}.`;
|
|
1544
|
+
if (NO_REPLY_PARTS.some((one) => parts.includes(one)))
|
|
1545
|
+
return true;
|
|
1546
|
+
return [...NO_REPLY].some((one) => !PART_ONLY.has(one) && (word.startsWith(one) || word.endsWith(one)));
|
|
1547
|
+
}, "isNoReplyAddress");
|
|
1548
|
+
var isRoleAddress = /* @__PURE__ */ __name((address) => ROLE.has(localWord(address)) || isNoReplyAddress(address), "isRoleAddress");
|
|
1536
1549
|
var PERSON_LIKE = /* @__PURE__ */ new Set(["hr"]);
|
|
1537
1550
|
var isPersonLikeRoleAddress = /* @__PURE__ */ __name((address) => PERSON_LIKE.has(localWord(address)), "isPersonLikeRoleAddress");
|
|
1538
|
-
var
|
|
1551
|
+
var isNotificationAddress = /* @__PURE__ */ __name((address) => partsOf(address).some((part) => NOTIFY.has(part)), "isNotificationAddress");
|
|
1539
1552
|
|
|
1540
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1553
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/display-names.js
|
|
1541
1554
|
var QUOTES = [
|
|
1542
1555
|
['"', '"'],
|
|
1543
1556
|
["'", "'"],
|
|
@@ -1595,7 +1608,7 @@ var nameKey = /* @__PURE__ */ __name((name) => {
|
|
|
1595
1608
|
}, "nameKey");
|
|
1596
1609
|
var isReadable = /* @__PURE__ */ __name((shown) => shown !== null && READABLE.test(shown), "isReadable");
|
|
1597
1610
|
|
|
1598
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1611
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/counters.js
|
|
1599
1612
|
var COUNTER_FIELDS = ["views", "reactions", "comments"];
|
|
1600
1613
|
var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
|
|
1601
1614
|
var counterValue = /* @__PURE__ */ __name((message, field) => {
|
|
@@ -1632,7 +1645,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
|
|
|
1632
1645
|
return states.some((one) => one.freshness === "stale") ? "stale" : "fresh";
|
|
1633
1646
|
}, "counterFreshness");
|
|
1634
1647
|
|
|
1635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1648
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
|
|
1636
1649
|
var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
|
|
1637
1650
|
var AUTHOR_MEASURES = [
|
|
1638
1651
|
"messages",
|
|
@@ -1772,7 +1785,7 @@ var withoutUrls = /* @__PURE__ */ __name((text2) => text2.replace(/\S+/gu, (toke
|
|
|
1772
1785
|
var rankingWords = /* @__PURE__ */ __name((text2) => withoutUrls(text2).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
|
|
1773
1786
|
var rankingQuestion = /* @__PURE__ */ __name((text2) => withoutUrls(text2).includes("?"), "rankingQuestion");
|
|
1774
1787
|
|
|
1775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1788
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/records.js
|
|
1776
1789
|
import { createHash } from "node:crypto";
|
|
1777
1790
|
var RECORDS_SCHEMA_VERSION = 1;
|
|
1778
1791
|
var RECORD_OPERATIONS = ["upsert", "delete"];
|
|
@@ -1944,7 +1957,7 @@ var fieldReferences = /* @__PURE__ */ __name((record, options = {}) => {
|
|
|
1944
1957
|
return found;
|
|
1945
1958
|
}, "fieldReferences");
|
|
1946
1959
|
|
|
1947
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1960
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/relation-role-labels.js
|
|
1948
1961
|
var label = /* @__PURE__ */ __name((en, ru, es) => ({ en, ru, es }), "label");
|
|
1949
1962
|
var ROLE_LABELS = {
|
|
1950
1963
|
organization: {
|
|
@@ -2028,9 +2041,10 @@ export {
|
|
|
2028
2041
|
nearest,
|
|
2029
2042
|
isEmailAddress,
|
|
2030
2043
|
ROLE_ADDRESS_WORDS,
|
|
2044
|
+
isNoReplyAddress,
|
|
2031
2045
|
isRoleAddress,
|
|
2032
2046
|
isPersonLikeRoleAddress,
|
|
2033
|
-
|
|
2047
|
+
isNotificationAddress,
|
|
2034
2048
|
displayName,
|
|
2035
2049
|
takeFallbacks,
|
|
2036
2050
|
noFallbacks,
|