@wirecat/mail-cli 0.34.0 → 0.35.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 +23 -0
- package/README.md +4 -1
- package/contracts/wirecat.json +52 -2
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/agent-KWLCQCSC.js +39 -0
- package/dist/bundle/{all-profiles-2KUKROHY.js → all-profiles-6BDSMVOO.js} +63 -21
- package/dist/bundle/{anthropic-E5KRCEVC.js → anthropic-C3XUXUCJ.js} +5 -5
- package/dist/bundle/{app-server-HIQ3QO5K.js → app-server-GUHDK4OR.js} +81 -71
- package/dist/bundle/{bun-KARJPE5D.js → bun-FN7AM4AG.js} +2 -2
- package/dist/bundle/{bun-sqlite-NHGX6ZUN.js → bun-sqlite-56IVBF22.js} +6 -6
- package/dist/bundle/{chunk-R2GS3GBJ.js → chunk-2B67TUIF.js} +96 -66
- package/dist/bundle/{chunk-4SKE5GYA.js → chunk-2UNQTKRH.js} +1 -1
- package/dist/bundle/{chunk-QXLYLVEC.js → chunk-3ACF6TIV.js} +1 -1
- package/dist/bundle/chunk-3EV2B7KZ.js +726 -0
- package/dist/bundle/chunk-3KAJCOJP.js +109 -0
- package/dist/bundle/{chunk-NAENYLIO.js → chunk-3WAZKCDF.js} +2 -2
- package/dist/bundle/{chunk-V43KEZYA.js → chunk-46SBNO67.js} +9 -60
- package/dist/bundle/{chunk-A2Y2RFNW.js → chunk-4IASS7NQ.js} +57 -4
- package/dist/bundle/{chunk-OOYRMTX5.js → chunk-4U5ODZO7.js} +12 -26
- package/dist/bundle/{chunk-DYQGEZA2.js → chunk-5WYBI35N.js} +3 -3
- package/dist/bundle/{chunk-QFJC6POK.js → chunk-5XQI7WCJ.js} +1 -1
- package/dist/bundle/{chunk-2SCQ7Z4I.js → chunk-635AFLZO.js} +4 -4
- package/dist/bundle/{chunk-OJ3BI2U4.js → chunk-6B4WZVLN.js} +34 -28
- package/dist/bundle/{chunk-FNYWC6A3.js → chunk-6Q5THDNW.js} +3 -3
- package/dist/bundle/{chunk-CKVWAUBW.js → chunk-6VARUB3J.js} +12 -12
- package/dist/bundle/{chunk-EZAX77SM.js → chunk-7FXZKQAC.js} +86 -75
- package/dist/bundle/{chunk-H77ALM2Y.js → chunk-7JVKQ6NM.js} +4 -4
- package/dist/bundle/{chunk-HH647UBC.js → chunk-7KMI47AP.js} +104 -255
- package/dist/bundle/{chunk-DZRP4UCK.js → chunk-7PXAUMK5.js} +30 -15
- package/dist/bundle/{chunk-KGYK3OI3.js → chunk-7YMLEWTX.js} +43 -64
- package/dist/bundle/{chunk-OG5QO5RR.js → chunk-AISQNKT7.js} +8 -8
- package/dist/bundle/chunk-AV2ZJ4WX.js +7 -0
- package/dist/bundle/{chunk-QOQF2TX3.js → chunk-AXKIXVQA.js} +338 -299
- package/dist/bundle/{chunk-ZGZADWD7.js → chunk-CDGVYQXG.js} +1 -1
- package/dist/bundle/{chunk-Z6A6QPPW.js → chunk-CFQQTDSA.js} +1 -1
- package/dist/bundle/{chunk-QXYNDMA6.js → chunk-CMGZXBJW.js} +6 -6
- package/dist/bundle/{chunk-4URI6EAV.js → chunk-DD2P67NP.js} +3 -3
- package/dist/bundle/{chunk-X6IGETU6.js → chunk-DFHUJTP5.js} +2 -2
- package/dist/bundle/{chunk-WYGDALB3.js → chunk-DREU6TN6.js} +18 -18
- package/dist/bundle/{chunk-TZJC4AOK.js → chunk-DZHEVVXA.js} +53 -33
- package/dist/bundle/{chunk-RPNQXWRS.js → chunk-E6HSSKRX.js} +2 -2
- package/dist/bundle/{chunk-6LFRZDPV.js → chunk-EHAXFDDP.js} +1 -1
- package/dist/bundle/chunk-EU4J6GCJ.js +52 -0
- package/dist/bundle/{chunk-NJVJH5MH.js → chunk-EX4Z7CCO.js} +3245 -1644
- package/dist/bundle/chunk-G662S2M4.js +559 -0
- package/dist/bundle/{chunk-JVGVLRBA.js → chunk-GG634DR3.js} +5 -5
- package/dist/bundle/{chunk-IMQ4CVZJ.js → chunk-GU3PYIV2.js} +2 -2
- package/dist/bundle/{chunk-LKTDW5LH.js → chunk-HF5QWKK2.js} +18 -8
- package/dist/bundle/chunk-HJDIMVFW.js +108 -0
- package/dist/bundle/{chunk-FORAOCZ3.js → chunk-HKWZG7CZ.js} +6 -6
- package/dist/bundle/{chunk-QQGPV3QN.js → chunk-HM6AMYHR.js} +2 -2
- package/dist/bundle/{chunk-AGZ7SNFF.js → chunk-HVXOA4FO.js} +1 -1
- package/dist/bundle/{chunk-NHD5BOJU.js → chunk-I3QZCQJT.js} +6 -6
- package/dist/bundle/{chunk-OX5MCGXL.js → chunk-ILEKGH44.js} +63 -54
- package/dist/bundle/{chunk-I3MS74OF.js → chunk-J5ULUTWE.js} +4 -4
- package/dist/bundle/{chunk-26DYRMXE.js → chunk-L4RCWRWS.js} +1 -1
- package/dist/bundle/chunk-MCJYJIH5.js +192 -0
- package/dist/bundle/{chunk-NWD7AFOR.js → chunk-NEDS4ORI.js} +2 -2
- package/dist/bundle/{chunk-VRGEDK4T.js → chunk-ODQCRZX5.js} +35 -12
- package/dist/bundle/chunk-OO4OKMNB.js +80 -0
- package/dist/bundle/{chunk-T2EE5M7O.js → chunk-OOQFBRNR.js} +144 -10
- package/dist/bundle/{chunk-PA4GEJXQ.js → chunk-OTP2HJ67.js} +9 -9
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-6G4VQFVX.js → chunk-PQDQCCGG.js} +17 -17
- package/dist/bundle/{chunk-KLI5FKZ2.js → chunk-Q5U2HIBJ.js} +7 -7
- package/dist/bundle/{chunk-HRDCH2VB.js → chunk-QFMKCU42.js} +3664 -3339
- package/dist/bundle/{chunk-VBVR6JRC.js → chunk-QYCMB7JY.js} +269 -173
- package/dist/bundle/{chunk-6GGMFL7J.js → chunk-RBV2AM52.js} +2 -100
- package/dist/bundle/{chunk-XIF75Z7D.js → chunk-RJNKM3CQ.js} +1 -1
- package/dist/bundle/{chunk-SK3N4CK5.js → chunk-RQHWSNX4.js} +4 -4
- package/dist/bundle/{chunk-4VHK5UBM.js → chunk-RQJGX7F7.js} +3 -3
- package/dist/bundle/{chunk-PC3N3LH3.js → chunk-TARNPINT.js} +3 -3
- package/dist/bundle/{chunk-5GANGHQI.js → chunk-TP2BCK2Z.js} +9 -9
- package/dist/bundle/{chunk-ZZEWQR43.js → chunk-TP766H4O.js} +14 -14
- package/dist/bundle/{chunk-PVZMN3UZ.js → chunk-UHGKN5US.js} +8 -8
- package/dist/bundle/{chunk-4VM3UCSO.js → chunk-UWDRU3R6.js} +2 -2
- package/dist/bundle/{chunk-KNVTBDTE.js → chunk-V4O47JV6.js} +3 -3
- package/dist/bundle/{chunk-MGXYIVVJ.js → chunk-W4JYGMTU.js} +12 -12
- package/dist/bundle/{chunk-2GDLJKPT.js → chunk-W7ICCFG5.js} +1 -1
- package/dist/bundle/{chunk-KF6O4RZO.js → chunk-WDEVKKAD.js} +3 -3
- package/dist/bundle/{chunk-YWX5X5RI.js → chunk-WZKM5I7B.js} +19 -17
- package/dist/bundle/{chunk-MDISZMK4.js → chunk-XKKYRMGG.js} +4 -4
- package/dist/bundle/chunk-XQNKAM26.js +338 -0
- package/dist/bundle/{chunk-LOSYDRJU.js → chunk-YA44BG3N.js} +38 -9
- package/dist/bundle/{chunk-2VBEBPGX.js → chunk-YCIWSKOH.js} +9 -9
- package/dist/bundle/{chunk-NXERDBEK.js → chunk-YQTRKNZQ.js} +4 -4
- package/dist/bundle/chunk-YRAJFTFU.js +353 -0
- package/dist/bundle/{chunk-XWU3A7H6.js → chunk-YTI533XF.js} +2 -2
- package/dist/bundle/{chunk-PRDKEVUL.js → chunk-ZMYRPMAJ.js} +1 -1
- package/dist/bundle/{chunk-EGQJDEFY.js → chunk-ZX7HZDD6.js} +144 -562
- package/dist/bundle/{chunk-NI4GCP2T.js → chunk-ZYEU35MB.js} +2 -2
- package/dist/bundle/command-contract-D5UXWHMS.js +39 -0
- package/dist/bundle/{command-server-entry-NF45UPEV.js → command-server-entry-TPJ47FYS.js} +28 -28
- package/dist/bundle/{decode-DUZA3EHC.js → decode-XHUASXQK.js} +5 -5
- package/dist/bundle/{dispatch-CDJZAMVP.js → dispatch-MQZHGGVP.js} +8 -8
- package/dist/bundle/{dist-RH7EMC4J.js → dist-BAE4IQ52.js} +23 -23
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/{echarts-GZHZBNRA.js → echarts-U7Z2PKIG.js} +2 -2
- package/dist/bundle/{embed-VE3CSJN4.js → embed-W7GPB6EI.js} +6 -6
- package/dist/bundle/{embedder-DSJ77DX5.js → embedder-T72XLFQ5.js} +9 -9
- package/dist/bundle/{failure-YH6HAGFT.js → failure-MP6VKL5Y.js} +2 -2
- package/dist/bundle/{first-run-3L7HLYTI.js → first-run-C44TJXRI.js} +12 -12
- package/dist/bundle/first-screen-IESI7DAU.js +39 -0
- package/dist/bundle/{instructions-OZK3BLIO.js → instructions-WGMWQNPP.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-YUG4YR4R.js → mcp-YGOAUNC3.js} +2 -2
- package/dist/bundle/meeting-combined-XGZBSWIQ.js +24 -0
- package/dist/bundle/{meeting-model-U7LW5WEN.js → meeting-model-QVHLD4WI.js} +11 -11
- package/dist/bundle/{meeting-semantic-64IOIQRR.js → meeting-semantic-QKQHUHXX.js} +6 -6
- package/dist/bundle/{node-OS3VWBUZ.js → node-WANDMJJQ.js} +2 -2
- package/dist/bundle/{node-sqlite-RQ623VFA.js → node-sqlite-NM5XA4DR.js} +7 -7
- package/dist/bundle/{oauth-CBPAG734.js → oauth-6E63ELEE.js} +8 -8
- package/dist/bundle/{open-H4DGOMBC.js → open-5542RTLE.js} +5 -5
- package/dist/bundle/{openai-EMWRGR54.js → openai-NOYNPFB5.js} +15 -15
- package/dist/bundle/{process-3TOIYASI.js → process-7AEXXSBX.js} +1 -1
- package/dist/bundle/{program-WA6RGAJL.js → program-VMA5CGNR.js} +3184 -2163
- package/dist/bundle/{prompt-22KNCMBI.js → prompt-WYYO4AJL.js} +5 -5
- package/dist/bundle/{recognize-UWD4RSCZ.js → recognize-UGCCOMAS.js} +4 -4
- package/dist/bundle/{remote-LJY7MF2E.js → remote-VZS6BNQB.js} +9 -9
- package/dist/bundle/{rerank-JJ6KNJFB.js → rerank-O46D5GJ2.js} +7 -7
- package/dist/bundle/{serve-3EPLJYVZ.js → serve-QAAF2LCW.js} +10 -10
- package/dist/bundle/server-456MYK3X.js +84 -0
- package/dist/bundle/{server-5JOFO4V4.js → server-Q3PUZLLX.js} +75 -64
- package/dist/bundle/{sqlite-runtime-MGJA5E27.js → sqlite-runtime-EQBCDO2U.js} +6 -6
- package/dist/bundle/{state-UCRDOWOP.js → state-XIOHYXCR.js} +6 -6
- package/dist/bundle/{store-HS272YSA.js → store-OXJZZUR7.js} +34 -21
- package/dist/bundle/{store-265VRRQV.js → store-VJBL5XKR.js} +28 -23
- package/dist/bundle/store-maintenance-command-D7XYIX52.js +71 -0
- package/dist/bundle/surface-N7LK7PKN.js +70 -0
- package/dist/commands/read.d.ts +2 -2
- package/dist/commands/read.d.ts.map +1 -1
- package/dist/commands/read.js +5 -4
- package/dist/commands/read.js.map +1 -1
- package/dist/commands/sync.d.ts +2 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +16 -9
- package/dist/commands/sync.js.map +1 -1
- package/dist/config.d.ts +5 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +16 -1
- package/dist/config.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/chunk-FEBUZHU3.js +0 -2
- package/dist/bundle/command-contract-PZ7VOOXP.js +0 -39
- package/dist/bundle/first-screen-MY5KID77.js +0 -37
- package/dist/bundle/meeting-combined-RYMUPY54.js +0 -24
- package/dist/bundle/server-EOQNS7B7.js +0 -75
- package/dist/bundle/store-maintenance-command-IKZM5NRP.js +0 -66
|
@@ -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.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/stdin-field.js
|
|
8
8
|
var fields = /* @__PURE__ */ new WeakMap();
|
|
9
9
|
var readsStdin = /* @__PURE__ */ __name((command, field) => {
|
|
10
10
|
fields.set(command, field);
|
|
@@ -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.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
|
|
8
8
|
import { existsSync } from "node:fs";
|
|
9
9
|
import { win32 } from "node:path";
|
|
10
10
|
var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
|
|
@@ -3,29 +3,29 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
textModel,
|
|
5
5
|
vectorModelKey
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HKWZG7CZ.js";
|
|
7
7
|
import {
|
|
8
8
|
OPENAI_URL,
|
|
9
9
|
openRemote,
|
|
10
10
|
remoteKey,
|
|
11
11
|
remoteModel
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OTP2HJ67.js";
|
|
13
13
|
import {
|
|
14
14
|
endpointFetch
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OOQFBRNR.js";
|
|
16
16
|
import {
|
|
17
17
|
isTextModelInstalled,
|
|
18
18
|
openEmbedder,
|
|
19
19
|
textModelsDirectory
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-7YMLEWTX.js";
|
|
21
21
|
import {
|
|
22
22
|
CliError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-HM6AMYHR.js";
|
|
24
24
|
import {
|
|
25
25
|
__name
|
|
26
26
|
} from "./chunk-ZVVMGPBJ.js";
|
|
27
27
|
|
|
28
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/services/meeting-model.js
|
|
29
29
|
var integer = /* @__PURE__ */ __name((value, name, max) => {
|
|
30
30
|
if (!Number.isSafeInteger(value) || value < 1 || value > max)
|
|
31
31
|
throw new CliError("validation_error", `Invalid ${name}`);
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
id,
|
|
6
6
|
text,
|
|
7
7
|
time
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DZHEVVXA.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-YA44BG3N.js";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/note.js
|
|
22
22
|
var link = {
|
|
23
23
|
target_text: nullable(text),
|
|
24
24
|
kind: text,
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
} from "./chunk-Y5E2WNWB.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HM6AMYHR.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
|
|
14
14
|
import { readFileSync } from "node:fs";
|
|
15
15
|
var musl = /* @__PURE__ */ __name(() => {
|
|
16
16
|
if (process.platform !== "linux")
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
QUERY_LIMITS,
|
|
5
5
|
exhausted,
|
|
6
6
|
searchError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-V4O47JV6.js";
|
|
8
8
|
import {
|
|
9
9
|
fold
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-L4RCWRWS.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-6VARUB3J.js";
|
|
30
30
|
import {
|
|
31
31
|
CliError,
|
|
32
32
|
singleLine
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-HM6AMYHR.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.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/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@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/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@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/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@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/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@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/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@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/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@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/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@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/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@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/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 = {
|
|
@@ -1537,7 +1537,7 @@ var PERSON_LIKE = /* @__PURE__ */ new Set(["hr"]);
|
|
|
1537
1537
|
var isPersonLikeRoleAddress = /* @__PURE__ */ __name((address) => PERSON_LIKE.has(localWord(address)), "isPersonLikeRoleAddress");
|
|
1538
1538
|
var isNoReplyAddress = /* @__PURE__ */ __name((address) => NO_REPLY.has(localWord(address)), "isNoReplyAddress");
|
|
1539
1539
|
|
|
1540
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1540
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/domain/display-names.js
|
|
1541
1541
|
var QUOTES = [
|
|
1542
1542
|
['"', '"'],
|
|
1543
1543
|
["'", "'"],
|
|
@@ -1595,7 +1595,7 @@ var nameKey = /* @__PURE__ */ __name((name) => {
|
|
|
1595
1595
|
}, "nameKey");
|
|
1596
1596
|
var isReadable = /* @__PURE__ */ __name((shown) => shown !== null && READABLE.test(shown), "isReadable");
|
|
1597
1597
|
|
|
1598
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1598
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/domain/counters.js
|
|
1599
1599
|
var COUNTER_FIELDS = ["views", "reactions", "comments"];
|
|
1600
1600
|
var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
|
|
1601
1601
|
var counterValue = /* @__PURE__ */ __name((message, field) => {
|
|
@@ -1632,7 +1632,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
|
|
|
1632
1632
|
return states.some((one) => one.freshness === "stale") ? "stale" : "fresh";
|
|
1633
1633
|
}, "counterFreshness");
|
|
1634
1634
|
|
|
1635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
|
|
1636
1636
|
var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
|
|
1637
1637
|
var AUTHOR_MEASURES = [
|
|
1638
1638
|
"messages",
|
|
@@ -1772,7 +1772,7 @@ var withoutUrls = /* @__PURE__ */ __name((text2) => text2.replace(/\S+/gu, (toke
|
|
|
1772
1772
|
var rankingWords = /* @__PURE__ */ __name((text2) => withoutUrls(text2).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
|
|
1773
1773
|
var rankingQuestion = /* @__PURE__ */ __name((text2) => withoutUrls(text2).includes("?"), "rankingQuestion");
|
|
1774
1774
|
|
|
1775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1775
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/domain/records.js
|
|
1776
1776
|
import { createHash } from "node:crypto";
|
|
1777
1777
|
var RECORDS_SCHEMA_VERSION = 1;
|
|
1778
1778
|
var RECORD_OPERATIONS = ["upsert", "delete"];
|
|
@@ -1944,7 +1944,7 @@ var fieldReferences = /* @__PURE__ */ __name((record, options = {}) => {
|
|
|
1944
1944
|
return found;
|
|
1945
1945
|
}, "fieldReferences");
|
|
1946
1946
|
|
|
1947
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/domain/relation-role-labels.js
|
|
1948
1948
|
var label = /* @__PURE__ */ __name((en, ru, es) => ({ en, ru, es }), "label");
|
|
1949
1949
|
var ROLE_LABELS = {
|
|
1950
1950
|
organization: {
|
|
@@ -13,20 +13,20 @@ import {
|
|
|
13
13
|
kindsIn,
|
|
14
14
|
providerNamed,
|
|
15
15
|
providers
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-6VARUB3J.js";
|
|
17
17
|
import {
|
|
18
18
|
isCliFailure,
|
|
19
19
|
isStoreDamage
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-UWDRU3R6.js";
|
|
21
21
|
import {
|
|
22
22
|
refuseOwnerStoreInTests
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ZYEU35MB.js";
|
|
24
24
|
import {
|
|
25
25
|
createRecordLog,
|
|
26
26
|
resolvePaths,
|
|
27
27
|
traceIdOf,
|
|
28
28
|
writeSecurely
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-7FXZKQAC.js";
|
|
30
30
|
import {
|
|
31
31
|
array,
|
|
32
32
|
boolean,
|
|
@@ -46,25 +46,21 @@ import {
|
|
|
46
46
|
strictObject,
|
|
47
47
|
string,
|
|
48
48
|
unknown
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-YA44BG3N.js";
|
|
50
50
|
import {
|
|
51
51
|
CliError
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-HM6AMYHR.js";
|
|
53
53
|
import {
|
|
54
54
|
__name
|
|
55
55
|
} from "./chunk-ZVVMGPBJ.js";
|
|
56
56
|
|
|
57
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
58
|
-
import { AsyncLocalStorage } from "node:async_hooks";
|
|
59
|
-
import { randomBytes } from "node:crypto";
|
|
60
|
-
|
|
61
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
57
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
62
58
|
import { randomUUID } from "node:crypto";
|
|
63
59
|
import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
64
60
|
import { userInfo } from "node:os";
|
|
65
61
|
import { join, sep } from "node:path";
|
|
66
62
|
|
|
67
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
63
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
68
64
|
var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
69
65
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
70
66
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -77,7 +73,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
77
73
|
error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
|
|
78
74
|
}), "snakeLogger");
|
|
79
75
|
|
|
80
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
76
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
81
77
|
var diagnostic = {
|
|
82
78
|
event: true,
|
|
83
79
|
operation: true,
|
|
@@ -151,7 +147,7 @@ var LOG_ATTRIBUTES = [
|
|
|
151
147
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
152
148
|
].sort();
|
|
153
149
|
|
|
154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
150
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
155
151
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
156
152
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
157
153
|
var KEEP_STORE_RUNS_FOR_DAYS = 3;
|
|
@@ -518,7 +514,9 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
518
514
|
};
|
|
519
515
|
}, "metadataOf");
|
|
520
516
|
|
|
521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
518
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
519
|
+
import { randomBytes } from "node:crypto";
|
|
522
520
|
var scopes = new AsyncLocalStorage();
|
|
523
521
|
var processScope;
|
|
524
522
|
var ownProcesses = new AsyncLocalStorage();
|
|
@@ -569,7 +567,7 @@ var attempts = new AsyncLocalStorage();
|
|
|
569
567
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
570
568
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
571
569
|
|
|
572
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
573
571
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
574
572
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
575
573
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -584,7 +582,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
584
582
|
}
|
|
585
583
|
__name(closeTask, "closeTask");
|
|
586
584
|
|
|
587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
585
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
588
586
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
589
587
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
590
588
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -613,7 +611,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
613
611
|
}, "priorityOf");
|
|
614
612
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
615
613
|
|
|
616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
614
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
617
615
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
618
616
|
async function find(id2) {
|
|
619
617
|
const task = await store.get(id2);
|
|
@@ -673,20 +671,20 @@ function median(values) {
|
|
|
673
671
|
}
|
|
674
672
|
__name(median, "median");
|
|
675
673
|
|
|
676
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
674
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
677
675
|
function matches(task, filter) {
|
|
678
676
|
return (filter.account === void 0 || task.account === filter.account) && (filter.state === void 0 || task.state === filter.state) && (filter.group === void 0 || task.group === filter.group) && (filter.kind === void 0 || task.kind === filter.kind) && (filter.createdBefore === void 0 || task.createdAt < filter.createdBefore);
|
|
679
677
|
}
|
|
680
678
|
__name(matches, "matches");
|
|
681
679
|
|
|
682
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
680
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/store/source-review.js
|
|
683
681
|
var SOURCE_REVIEW_KIND = "memory_source_review";
|
|
684
682
|
var SOURCE_REVIEW_CAUSES = ["changed", "outdated", "deleted", "contradicted"];
|
|
685
683
|
var ERASED_TEXT = "[source erased]";
|
|
686
684
|
var severity = /* @__PURE__ */ __name((cause) => SOURCE_REVIEW_CAUSES.indexOf(cause), "severity");
|
|
687
685
|
var graver = /* @__PURE__ */ __name((a, b) => severity(b) > severity(a) ? b : a, "graver");
|
|
688
686
|
|
|
689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
687
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
690
688
|
var text = string();
|
|
691
689
|
var id = pipe(string(), minLength(1));
|
|
692
690
|
var time = isoTime;
|
|
@@ -711,7 +709,7 @@ var author = strictObject({
|
|
|
711
709
|
name: nullable(text)
|
|
712
710
|
});
|
|
713
711
|
|
|
714
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
712
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
715
713
|
var organization = strictObject({
|
|
716
714
|
id,
|
|
717
715
|
ref: reference,
|
|
@@ -741,7 +739,7 @@ var reminder = strictObject({
|
|
|
741
739
|
receipt: nullable(text)
|
|
742
740
|
});
|
|
743
741
|
|
|
744
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
742
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/store/marks.js
|
|
745
743
|
import { readFileSync as readFileSync2, rmSync as rmSync2, statSync as statSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
746
744
|
var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
|
|
747
745
|
var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
|
|
@@ -862,7 +860,7 @@ var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, sch
|
|
|
862
860
|
return { previous, cleared };
|
|
863
861
|
}, "recordDeepCheck");
|
|
864
862
|
|
|
865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
863
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
866
864
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
867
865
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
868
866
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
@@ -870,7 +868,7 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
870
868
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
871
869
|
var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
872
870
|
|
|
873
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
871
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
|
|
874
872
|
var REPORTER_SQL = "(SELECT provider || ':' || external_id FROM accounts r WHERE r.id = links.account_id) AS reporter";
|
|
875
873
|
var sourceOf = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
876
874
|
const reporter = row.account_id == null ? void 0 : "reporter" in row ? row.reporter : database.prepare("SELECT provider || ':' || external_id AS key FROM accounts WHERE id = ?").get(Number(row.account_id))?.key;
|
|
@@ -880,7 +878,7 @@ var sourceOf = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
|
880
878
|
};
|
|
881
879
|
}, "sourceOf");
|
|
882
880
|
|
|
883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
881
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
884
882
|
var LINK_KINDS = [
|
|
885
883
|
"links-to",
|
|
886
884
|
"blocked-by",
|
|
@@ -904,7 +902,7 @@ var LINK_SOURCES = [...LINK_ORIGINS, "calendar", "meeting"];
|
|
|
904
902
|
var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
|
|
905
903
|
var COUNTERPART_ROLE = "counterpart";
|
|
906
904
|
|
|
907
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
905
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
908
906
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
909
907
|
var inSource = /* @__PURE__ */ __name((source, provider) => source === "all" || source === "bots" && isBotProvider(provider) || source === "personal" && !isBotProvider(provider) || source === provider || providerNamed(source)?.name === provider || isKind(source) && holdsKindOf(provider, source), "inSource");
|
|
910
908
|
var fail = /* @__PURE__ */ __name((message) => {
|
|
@@ -927,7 +925,7 @@ var sourceOf2 = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
927
925
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
928
926
|
}, "sourceOf");
|
|
929
927
|
|
|
930
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
931
929
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
932
930
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
933
931
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
@@ -1038,6 +1036,8 @@ var accountsOfWord = /* @__PURE__ */ __name((word, held, context) => {
|
|
|
1038
1036
|
return [...held];
|
|
1039
1037
|
if (wanted === "personal" || wanted === "bots")
|
|
1040
1038
|
return held.filter((one) => listedHolds(one, "messages") && isBotProvider(one.provider) === (wanted === "bots"));
|
|
1039
|
+
if (wanted === "documents")
|
|
1040
|
+
return held.filter((one) => listedHolds(one, "documents") || isDocumentAccount(one));
|
|
1041
1041
|
if (isKind(wanted))
|
|
1042
1042
|
return held.filter((one) => listedHolds(one, wanted));
|
|
1043
1043
|
const recorded = context.profiles[wanted];
|
|
@@ -1048,6 +1048,22 @@ var accountsOfWord = /* @__PURE__ */ __name((word, held, context) => {
|
|
|
1048
1048
|
return storedAs(held, { provider, account: "" });
|
|
1049
1049
|
return held.filter((one) => one.provider === provider);
|
|
1050
1050
|
}, "accountsOfWord");
|
|
1051
|
+
var isDocumentAccount = /* @__PURE__ */ __name(({ stored }) => stored !== void 0 && isDocumentAccountProvider(stored.provider), "isDocumentAccount");
|
|
1052
|
+
var choices = /* @__PURE__ */ __name((held) => {
|
|
1053
|
+
const kinds = held.flatMap((one) => one.kinds ?? (one.kind ? [one.kind] : []));
|
|
1054
|
+
const messengers = held.filter((one) => listedHolds(one, "messages"));
|
|
1055
|
+
const providers2 = held.flatMap(({ stored, provider }) => stored?.provider === ADDED_PROVIDER ? [] : [stored?.provider ?? provider]);
|
|
1056
|
+
return [
|
|
1057
|
+
.../* @__PURE__ */ new Set([
|
|
1058
|
+
"all",
|
|
1059
|
+
...messengers.some((one) => !isBotProvider(one.provider)) ? ["personal"] : [],
|
|
1060
|
+
...messengers.some((one) => isBotProvider(one.provider)) ? ["bots"] : [],
|
|
1061
|
+
...kinds,
|
|
1062
|
+
...held.some(isDocumentAccount) ? ["documents"] : [],
|
|
1063
|
+
...providers2
|
|
1064
|
+
])
|
|
1065
|
+
].join(", ");
|
|
1066
|
+
}, "choices");
|
|
1051
1067
|
var keyOf = /* @__PURE__ */ __name(({ provider, account }) => `${provider}\0${account}`, "keyOf");
|
|
1052
1068
|
var sourceOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "sourceOf");
|
|
1053
1069
|
var sameAs = /* @__PURE__ */ __name((key) => (one) => one.provider === key.provider && one.account === key.account, "sameAs");
|
|
@@ -1058,7 +1074,8 @@ var entriesOfList = /* @__PURE__ */ __name((value, context) => {
|
|
|
1058
1074
|
const colon = item.indexOf(":");
|
|
1059
1075
|
if (colon === -1) {
|
|
1060
1076
|
try {
|
|
1061
|
-
|
|
1077
|
+
const accounts = accountsOfWord(item, held, context);
|
|
1078
|
+
entries.push({ entry: item, accounts, ...accounts.length === 0 && !group ? { holds: choices(held) } : {} });
|
|
1062
1079
|
} catch (error) {
|
|
1063
1080
|
if (!group || !(error instanceof CliError))
|
|
1064
1081
|
throw error;
|
|
@@ -1087,8 +1104,9 @@ var entriesOfList = /* @__PURE__ */ __name((value, context) => {
|
|
|
1087
1104
|
for (const item of itemsOf(value))
|
|
1088
1105
|
entry(item);
|
|
1089
1106
|
const { only } = context;
|
|
1090
|
-
return entries.map(({ entry: entry2, accounts }) => ({
|
|
1107
|
+
return entries.map(({ entry: entry2, accounts, holds }) => ({
|
|
1091
1108
|
entry: entry2,
|
|
1109
|
+
...holds === void 0 ? {} : { holds },
|
|
1092
1110
|
accounts: accounts.filter((one) => only === void 0 || only.has(keyOf(one))).map(({ provider, account, kind, kinds }) => ({
|
|
1093
1111
|
provider,
|
|
1094
1112
|
account,
|
|
@@ -1132,12 +1150,14 @@ var fitting = /* @__PURE__ */ __name((entries, kinds, what, reasonOf = (kind) =>
|
|
|
1132
1150
|
const other = known[0];
|
|
1133
1151
|
skipped.push(other?.kind ? { source: entry, code: "validation_error", reason: reasonOf(other.kind) } : unknown2.length ? { source: entry, code: "not_found", reason: UNKNOWN_PROVIDER } : { source: entry, code: "not_found", reason: "no account in the store" });
|
|
1134
1152
|
}
|
|
1135
|
-
if (chosen.size === 0)
|
|
1136
|
-
|
|
1153
|
+
if (chosen.size === 0) {
|
|
1154
|
+
const words = entries.length === 1 ? entries[0]?.holds : void 0;
|
|
1155
|
+
fail2(`--source names nothing ${what} reads: ${skipped.map(({ source, reason }) => `${source} (${reason})`).join(", ")}` + (words === void 0 ? "" : ` \u2014 the store holds ${words}`));
|
|
1156
|
+
}
|
|
1137
1157
|
return { accounts: [...chosen.values()], skipped };
|
|
1138
1158
|
}, "fitting");
|
|
1139
1159
|
|
|
1140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1160
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/domain/categories.js
|
|
1141
1161
|
var CATEGORIES = ["client", "supplier", "partner", "employer"];
|
|
1142
1162
|
|
|
1143
1163
|
export {
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
defineReasons
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YA44BG3N.js";
|
|
6
6
|
|
|
7
7
|
// dist/reasons.js
|
|
8
8
|
var ENTRIES = [
|
|
@@ -58,7 +58,7 @@ var ENTRIES = [
|
|
|
58
58
|
var REASONS = defineReasons(ENTRIES.map(([reason, code, message]) => ({ reason, code, message, details: [] })));
|
|
59
59
|
|
|
60
60
|
// dist/version.js
|
|
61
|
-
var VERSION = "0.
|
|
61
|
+
var VERSION = "0.35.0";
|
|
62
62
|
|
|
63
63
|
// dist/identity.js
|
|
64
64
|
var PACKAGE = "@wirecat/mail-cli";
|
|
@@ -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.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/http/listen.js
|
|
8
8
|
import { createServer } from "node:http";
|
|
9
9
|
import { Readable } from "node:stream";
|
|
10
10
|
var MAX_BODY = 4 * 1024 * 1024;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
changesMessenger
|
|
5
|
+
} from "./chunk-QYCMB7JY.js";
|
|
6
|
+
import {
|
|
7
|
+
AUTHORITY_KEY,
|
|
8
|
+
BOT_API_KEY,
|
|
9
|
+
authorityAllowed,
|
|
10
|
+
botApiAllowed,
|
|
11
|
+
isBotApi,
|
|
12
|
+
keyForCommand,
|
|
13
|
+
levelFor,
|
|
14
|
+
readKeysForCommand
|
|
15
|
+
} from "./chunk-HF5QWKK2.js";
|
|
16
|
+
import {
|
|
17
|
+
writes
|
|
18
|
+
} from "./chunk-YA44BG3N.js";
|
|
19
|
+
import {
|
|
20
|
+
__name
|
|
21
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
22
|
+
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/command-availability.js
|
|
24
|
+
var commandAvailability = /* @__PURE__ */ __name((info, levels, keyOf, authority, readOnly = false, mcp = true, declared, fetches) => {
|
|
25
|
+
const declaredKey = declared?.keyOf(info.path);
|
|
26
|
+
const key = declared ? declaredKey : keyOf?.(info.path) ?? keyForCommand(info.path);
|
|
27
|
+
const { level } = key ? levelFor(levels, key, declared?.defaults) : { level: "allow" };
|
|
28
|
+
const judged = { ...key ? { permission: key } : {}, level };
|
|
29
|
+
const blocked = /* @__PURE__ */ __name((reason, permission) => ({
|
|
30
|
+
available: false,
|
|
31
|
+
reason,
|
|
32
|
+
...judged,
|
|
33
|
+
...permission && permission !== judged.permission ? { permission, level: levelFor(levels, permission).level } : {}
|
|
34
|
+
}), "blocked");
|
|
35
|
+
const declaredChange = Boolean(declaredKey) && (info.effects === void 0 || info.effects.remote === "write");
|
|
36
|
+
if (readOnly && (changesMessenger(info) || declaredChange || authority?.(info.path)))
|
|
37
|
+
return blocked("the read-only lock blocks this change");
|
|
38
|
+
if (mcp && authority?.(info.path) && !authorityAllowed(levels))
|
|
39
|
+
return blocked(`the profile keeps ${AUTHORITY_KEY} off`, AUTHORITY_KEY);
|
|
40
|
+
if (mcp && isBotApi(info.path) && !botApiAllowed(levels))
|
|
41
|
+
return blocked(`the profile requires ${BOT_API_KEY}: allow`, BOT_API_KEY);
|
|
42
|
+
if (level === "deny")
|
|
43
|
+
return blocked(`the profile denies ${key}`);
|
|
44
|
+
if (level === "readonly" && writes(info.effects) && fetches?.(info.path) !== true)
|
|
45
|
+
return blocked(`${key} is readonly in this profile`);
|
|
46
|
+
const denied = (declared ? [] : readKeysForCommand(info.path)).find((read) => levelFor(levels, read).level === "deny");
|
|
47
|
+
return denied ? blocked(`the profile denies ${denied}`, denied) : { available: true, ...judged };
|
|
48
|
+
}, "commandAvailability");
|
|
49
|
+
|
|
50
|
+
export {
|
|
51
|
+
commandAvailability
|
|
52
|
+
};
|