@wirecat/mail-cli 0.32.0 → 0.34.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 +31 -0
- package/contracts/wirecat.json +2 -2
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-OTCWJSJS.js → all-profiles-2KUKROHY.js} +10 -10
- package/dist/bundle/{anthropic-GUXHDK32.js → anthropic-E5KRCEVC.js} +8 -8
- package/dist/bundle/{app-server-GX7DOE4O.js → app-server-HIQ3QO5K.js} +60 -52
- package/dist/bundle/{bun-V5QLYBZU.js → bun-KARJPE5D.js} +2 -2
- package/dist/bundle/{bun-sqlite-AXD5CCO3.js → bun-sqlite-NHGX6ZUN.js} +6 -6
- package/dist/bundle/{chunk-4YNUQGDP.js → chunk-26DYRMXE.js} +1 -1
- package/dist/bundle/{chunk-3URYKAJP.js → chunk-2GDLJKPT.js} +1 -1
- package/dist/bundle/{chunk-JUS4Y4BW.js → chunk-2SCQ7Z4I.js} +4 -4
- package/dist/bundle/{chunk-LVJWN2PR.js → chunk-2VBEBPGX.js} +21 -11
- package/dist/bundle/{chunk-OUM4ZO53.js → chunk-4SKE5GYA.js} +1 -1
- package/dist/bundle/{chunk-WNGMI6AZ.js → chunk-4URI6EAV.js} +3 -3
- package/dist/bundle/chunk-4VHK5UBM.js +170 -0
- package/dist/bundle/{chunk-O7OP5NQO.js → chunk-4VM3UCSO.js} +2 -2
- package/dist/bundle/chunk-5GANGHQI.js +721 -0
- package/dist/bundle/{chunk-SWXKS7JK.js → chunk-6G4VQFVX.js} +19 -19
- package/dist/bundle/{chunk-TDTCCHAI.js → chunk-6GGMFL7J.js} +3 -3
- package/dist/bundle/{chunk-6XNTELM5.js → chunk-6LFRZDPV.js} +1 -1
- package/dist/bundle/{chunk-CD3TAITM.js → chunk-A2Y2RFNW.js} +75 -11
- package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-AGZ7SNFF.js} +1 -1
- package/dist/bundle/chunk-CKVWAUBW.js +787 -0
- package/dist/bundle/{chunk-SZZJOSIS.js → chunk-DYQGEZA2.js} +3 -3
- package/dist/bundle/{chunk-JRGPPS6H.js → chunk-DZRP4UCK.js} +13 -13
- package/dist/bundle/{chunk-7GW4D3OW.js → chunk-EGQJDEFY.js} +85 -39
- package/dist/bundle/{chunk-7MEVD5PI.js → chunk-EZAX77SM.js} +20 -20
- package/dist/bundle/{chunk-2IYAZRTC.js → chunk-FNYWC6A3.js} +2 -2
- package/dist/bundle/chunk-FORAOCZ3.js +334 -0
- package/dist/bundle/{chunk-IX3GUNGV.js → chunk-H77ALM2Y.js} +4 -4
- package/dist/bundle/{chunk-MENP3FF5.js → chunk-HH647UBC.js} +23 -23
- package/dist/bundle/{chunk-HUWQ7LXZ.js → chunk-HRDCH2VB.js} +947 -953
- package/dist/bundle/{chunk-ZDP6A2VL.js → chunk-I3MS74OF.js} +4 -4
- package/dist/bundle/{chunk-TWHIZJAZ.js → chunk-IMQ4CVZJ.js} +2 -2
- package/dist/bundle/{chunk-NMN5JUYL.js → chunk-JVGVLRBA.js} +5 -5
- package/dist/bundle/{chunk-U57QRUP7.js → chunk-KF6O4RZO.js} +3 -3
- package/dist/bundle/{chunk-LVFI3TCG.js → chunk-KGYK3OI3.js} +6 -6
- package/dist/bundle/{chunk-PALY5PGE.js → chunk-KLI5FKZ2.js} +7 -7
- package/dist/bundle/chunk-KNVTBDTE.js +72 -0
- package/dist/bundle/{chunk-PCWAZVAD.js → chunk-LKTDW5LH.js} +7 -7
- package/dist/bundle/{chunk-ECZSYLSL.js → chunk-LOSYDRJU.js} +45 -8
- package/dist/bundle/{chunk-HFA6AZWA.js → chunk-MDISZMK4.js} +4 -4
- package/dist/bundle/{chunk-GPOTPA3S.js → chunk-MGXYIVVJ.js} +14 -13
- package/dist/bundle/{chunk-KLGZX6QT.js → chunk-NAENYLIO.js} +2 -2
- package/dist/bundle/{chunk-SDAYOJLL.js → chunk-NHD5BOJU.js} +6 -6
- package/dist/bundle/{chunk-FA3B2DHZ.js → chunk-NI4GCP2T.js} +2 -2
- package/dist/bundle/{chunk-ZAD7K4TI.js → chunk-NJVJH5MH.js} +8053 -8240
- package/dist/bundle/{chunk-IVD3JTN5.js → chunk-NWD7AFOR.js} +2 -2
- package/dist/bundle/{chunk-U346WBJ5.js → chunk-NXERDBEK.js} +4 -4
- package/dist/bundle/{chunk-AJY2IT25.js → chunk-OG5QO5RR.js} +8 -8
- package/dist/bundle/{chunk-RNBG75HW.js → chunk-OJ3BI2U4.js} +29 -30
- package/dist/bundle/chunk-OOYRMTX5.js +374 -0
- package/dist/bundle/{chunk-GSXCMQWV.js → chunk-OX5MCGXL.js} +40 -40
- package/dist/bundle/{chunk-T577U52I.js → chunk-PA4GEJXQ.js} +9 -9
- package/dist/bundle/{chunk-2UMEZY6D.js → chunk-PC3N3LH3.js} +3 -3
- package/dist/bundle/{chunk-WQOGHND4.js → chunk-PRDKEVUL.js} +1 -1
- package/dist/bundle/{chunk-Z6OKVD3R.js → chunk-PVZMN3UZ.js} +8 -8
- package/dist/bundle/{chunk-SEJBS7SI.js → chunk-QFJC6POK.js} +1 -1
- package/dist/bundle/{chunk-MVMNZ3Q3.js → chunk-QOQF2TX3.js} +893 -1491
- package/dist/bundle/{chunk-7KCBPAQS.js → chunk-QQGPV3QN.js} +2 -2
- package/dist/bundle/{chunk-6SJ7HHAE.js → chunk-QXLYLVEC.js} +1 -1
- package/dist/bundle/chunk-QXYNDMA6.js +259 -0
- package/dist/bundle/{chunk-QHXOXYAT.js → chunk-R2GS3GBJ.js} +61 -59
- package/dist/bundle/{chunk-6TRKNME5.js → chunk-RPNQXWRS.js} +4 -4
- package/dist/bundle/{chunk-7C6FGWDH.js → chunk-SK3N4CK5.js} +4 -4
- package/dist/bundle/{chunk-GDDCKTBR.js → chunk-T2EE5M7O.js} +5 -5
- package/dist/bundle/{chunk-U7RLFLTM.js → chunk-TZJC4AOK.js} +30 -29
- package/dist/bundle/{chunk-PCMQYGEM.js → chunk-V43KEZYA.js} +9 -9
- package/dist/bundle/{chunk-MSK7RNOM.js → chunk-VBVR6JRC.js} +283 -515
- package/dist/bundle/{chunk-KLFF54AF.js → chunk-VRGEDK4T.js} +8 -8
- package/dist/bundle/{chunk-ANYADN3S.js → chunk-WYGDALB3.js} +31 -85
- package/dist/bundle/{chunk-IBCGCYRU.js → chunk-X6IGETU6.js} +2 -2
- package/dist/bundle/{chunk-CAQ5GW3A.js → chunk-XIF75Z7D.js} +1 -1
- package/dist/bundle/chunk-XWU3A7H6.js +29 -0
- package/dist/bundle/{chunk-XXXVVNGI.js → chunk-YWX5X5RI.js} +19 -117
- package/dist/bundle/{chunk-FIVFP53N.js → chunk-Z6A6QPPW.js} +1 -1
- package/dist/bundle/{chunk-MHXZ62CU.js → chunk-ZGZADWD7.js} +1 -1
- package/dist/bundle/{chunk-MT2WDBG2.js → chunk-ZZEWQR43.js} +18 -14
- package/dist/bundle/command-contract-PZ7VOOXP.js +39 -0
- package/dist/bundle/{command-server-entry-BVXOPKXH.js → command-server-entry-NF45UPEV.js} +28 -25
- package/dist/bundle/decode-DUZA3EHC.js +296 -0
- package/dist/bundle/{dispatch-DSVN7MNG.js → dispatch-CDJZAMVP.js} +8 -8
- package/dist/bundle/{dist-B2JWWTNN.js → dist-RH7EMC4J.js} +29 -24
- package/dist/bundle/{echarts-QIXLXS3G.js → echarts-GZHZBNRA.js} +2 -2
- package/dist/bundle/{embed-4NC4ELYP.js → embed-VE3CSJN4.js} +6 -6
- package/dist/bundle/{embedder-HBRDIFQC.js → embedder-DSJ77DX5.js} +9 -9
- package/dist/bundle/{failure-COTPFUP4.js → failure-YH6HAGFT.js} +2 -2
- package/dist/bundle/{first-run-6QF67AAZ.js → first-run-3L7HLYTI.js} +12 -12
- package/dist/bundle/first-screen-MY5KID77.js +37 -0
- package/dist/bundle/{instructions-MD2RZT5Z.js → instructions-OZK3BLIO.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-TDKGDB4V.js → mcp-YUG4YR4R.js} +2 -2
- package/dist/bundle/meeting-combined-RYMUPY54.js +24 -0
- package/dist/bundle/meeting-model-U7LW5WEN.js +24 -0
- package/dist/bundle/meeting-semantic-64IOIQRR.js +21 -0
- package/dist/bundle/{node-IEVT2FSJ.js → node-OS3VWBUZ.js} +2 -2
- package/dist/bundle/{node-sqlite-EOTTDMOG.js → node-sqlite-RQ623VFA.js} +7 -7
- package/dist/bundle/{oauth-A5BEFGCI.js → oauth-CBPAG734.js} +7 -7
- package/dist/bundle/{open-HWN2EZYG.js → open-H4DGOMBC.js} +5 -5
- package/dist/bundle/{openai-PJKJ4CIU.js → openai-EMWRGR54.js} +28 -26
- package/dist/bundle/{process-6Q23D3TO.js → process-3TOIYASI.js} +1 -1
- package/dist/bundle/{program-WR43NPAV.js → program-WA6RGAJL.js} +3151 -2105
- package/dist/bundle/{prompt-E7Q2662O.js → prompt-22KNCMBI.js} +5 -5
- package/dist/bundle/{recognize-4F4PIL4B.js → recognize-UWD4RSCZ.js} +4 -4
- package/dist/bundle/{remote-RGJXO7XK.js → remote-LJY7MF2E.js} +9 -9
- package/dist/bundle/{rerank-EDY7PHMG.js → rerank-JJ6KNJFB.js} +7 -7
- package/dist/bundle/{serve-Q4XF6ID2.js → serve-3EPLJYVZ.js} +9 -9
- package/dist/bundle/{server-5I72DSDF.js → server-5JOFO4V4.js} +52 -44
- package/dist/bundle/server-EOQNS7B7.js +75 -0
- package/dist/bundle/{sqlite-runtime-PU3Z2H7C.js → sqlite-runtime-MGJA5E27.js} +6 -6
- package/dist/bundle/{state-CWSXJBU2.js → state-UCRDOWOP.js} +6 -6
- package/dist/bundle/{store-KQPKS3PX.js → store-265VRRQV.js} +25 -20
- package/dist/bundle/{store-ZAMKKM2A.js → store-HS272YSA.js} +21 -17
- package/dist/bundle/store-maintenance-command-IKZM5NRP.js +66 -0
- package/dist/commands/messages.js +1 -1
- package/dist/commands/messages.js.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +2 -2
- package/dist/identity.js.map +1 -1
- package/dist/mail/cleanup.d.ts.map +1 -1
- package/dist/mail/cleanup.js +4 -3
- package/dist/mail/cleanup.js.map +1 -1
- package/dist/mail/rules/apply.js +1 -1
- package/dist/mail/rules/apply.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-DZ6XRIOI.js +0 -36
- package/dist/bundle/decode-STN3EHT7.js +0 -162
- package/dist/bundle/first-screen-LXSZMK2P.js +0 -34
- package/dist/bundle/server-2Y5NSP2U.js +0 -67
- package/dist/bundle/store-maintenance-command-PMTTDR6J.js +0 -58
- /package/dist/bundle/{chunk-XWBPP2HX.js → chunk-FEBUZHU3.js} +0 -0
|
@@ -23,28 +23,28 @@ import {
|
|
|
23
23
|
tagMemberIds,
|
|
24
24
|
thingOf,
|
|
25
25
|
write
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-NJVJH5MH.js";
|
|
27
|
+
import {
|
|
28
|
+
fold
|
|
29
|
+
} from "./chunk-26DYRMXE.js";
|
|
27
30
|
import {
|
|
28
31
|
ADDED_PROVIDER,
|
|
29
32
|
filesAccountSql,
|
|
30
33
|
folderProviderOf,
|
|
31
34
|
folderProviderSql,
|
|
32
35
|
isDocumentAccountProvider
|
|
33
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-CKVWAUBW.js";
|
|
34
37
|
import {
|
|
35
38
|
damagedFile
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import {
|
|
38
|
-
fold
|
|
39
|
-
} from "./chunk-4YNUQGDP.js";
|
|
39
|
+
} from "./chunk-4VM3UCSO.js";
|
|
40
40
|
import {
|
|
41
41
|
CliError
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-QQGPV3QN.js";
|
|
43
43
|
import {
|
|
44
44
|
__name
|
|
45
45
|
} from "./chunk-ZVVMGPBJ.js";
|
|
46
46
|
|
|
47
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47
|
+
// 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/store/damage.js
|
|
48
48
|
var DERIVED = /* @__PURE__ */ new Set(["mentions", "involvements", "embeddings"]);
|
|
49
49
|
var named = /* @__PURE__ */ __name((tables) => tables.length <= 5 ? tables.join(", ") : `${tables.slice(0, 5).join(", ")} and ${tables.length - 5} more`, "named");
|
|
50
50
|
var isDerivedTable = /* @__PURE__ */ __name((table, searchIndexes) => DERIVED.has(table) || table.startsWith("vector_index_") || searchIndexes.some((index) => table === index || table.startsWith(`${index}_`)), "isDerivedTable");
|
|
@@ -147,11 +147,11 @@ var storeDamageReport = /* @__PURE__ */ __name(({ health, command, mark = null,
|
|
|
147
147
|
};
|
|
148
148
|
}, "storeDamageReport");
|
|
149
149
|
|
|
150
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
150
|
+
// 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/store/document-transfer/index.js
|
|
151
151
|
import { realpathSync, statSync } from "node:fs";
|
|
152
152
|
import { resolve } from "node:path";
|
|
153
153
|
|
|
154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
154
|
+
// 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/store/sqlite/document-transfer/people.js
|
|
155
155
|
var planPeople = /* @__PURE__ */ __name((database, snapshot, mappings, bindings, conflicts) => {
|
|
156
156
|
const creatable = /* @__PURE__ */ new Set();
|
|
157
157
|
let people = 0, identities = 0;
|
|
@@ -214,11 +214,11 @@ var copyPeople = /* @__PURE__ */ __name((database, snapshot, mappings, now) => {
|
|
|
214
214
|
}
|
|
215
215
|
}, "copyPeople");
|
|
216
216
|
|
|
217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
217
|
+
// 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/store/document-transfer/digest.js
|
|
218
218
|
import { createHash } from "node:crypto";
|
|
219
219
|
var digest = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "digest");
|
|
220
220
|
|
|
221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
221
|
+
// 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/store/sqlite/document-transfer/collection.js
|
|
222
222
|
var documentsKeyOf = /* @__PURE__ */ __name((collection) => {
|
|
223
223
|
const colon = collection.indexOf(":");
|
|
224
224
|
const provider = collection.slice(0, colon);
|
|
@@ -262,7 +262,7 @@ var currentCollection = /* @__PURE__ */ __name((row) => {
|
|
|
262
262
|
};
|
|
263
263
|
}, "currentCollection");
|
|
264
264
|
|
|
265
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
265
|
+
// 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/store/sqlite/document-transfer/plan.js
|
|
266
266
|
var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindings) => {
|
|
267
267
|
const mappings = /* @__PURE__ */ new Map();
|
|
268
268
|
const missing = /* @__PURE__ */ new Set(), conflicts = /* @__PURE__ */ new Set();
|
|
@@ -429,7 +429,7 @@ var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindin
|
|
|
429
429
|
};
|
|
430
430
|
}, "planTransfer");
|
|
431
431
|
|
|
432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
432
|
+
// 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/store/sqlite/document-transfer/snapshot.js
|
|
433
433
|
var TRANSFER_TABLES = { document: "documents", note: "notes", memory: "memories", fact: "facts" };
|
|
434
434
|
var MAX_ENTITIES = 1e3;
|
|
435
435
|
var MAX_AUXILIARY = 1e4;
|
|
@@ -591,7 +591,7 @@ var transferSnapshot = /* @__PURE__ */ __name((database, collection) => read(dat
|
|
|
591
591
|
};
|
|
592
592
|
}), "transferSnapshot");
|
|
593
593
|
|
|
594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
594
|
+
// 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/store/sqlite/document-transfer/apply.js
|
|
595
595
|
var providerHere = /* @__PURE__ */ __name(({ provider, name, settings }) => {
|
|
596
596
|
if (provider !== "folder" || String(name ?? "").startsWith("google-drive:"))
|
|
597
597
|
return provider ?? null;
|
|
@@ -763,7 +763,7 @@ var remapEntity = /* @__PURE__ */ __name((database, entity, id, mappings) => {
|
|
|
763
763
|
database.prepare(`UPDATE ${TRANSFER_TABLES[entity.kind]} SET ${columns.join(",")} WHERE id=?`).run(...values, id);
|
|
764
764
|
}, "remapEntity");
|
|
765
765
|
|
|
766
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
766
|
+
// 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/store/document-transfer/index.js
|
|
767
767
|
var locations = /* @__PURE__ */ __name((options) => {
|
|
768
768
|
for (const value of [options.source, options.destination, options.collection])
|
|
769
769
|
if (typeof value !== "string" || !value.trim())
|
|
@@ -865,7 +865,7 @@ var applyWith = /* @__PURE__ */ __name(async (location, options) => {
|
|
|
865
865
|
}
|
|
866
866
|
}, "applyWith");
|
|
867
867
|
|
|
868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
868
|
+
// 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/store/health.js
|
|
869
869
|
import { existsSync, statSync as statSync2 } from "node:fs";
|
|
870
870
|
var JSON_COLUMNS = {
|
|
871
871
|
accounts: ["settings"],
|
|
@@ -1007,7 +1007,7 @@ var storeHealth = /* @__PURE__ */ __name(async (path, { deep = false } = {}) =>
|
|
|
1007
1007
|
}
|
|
1008
1008
|
}, "storeHealth");
|
|
1009
1009
|
|
|
1010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1010
|
+
// 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/store/project-transfer/preview.js
|
|
1011
1011
|
var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
|
|
1012
1012
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
1013
1013
|
throw new CliError("validation_error", "project preview options are required");
|
|
@@ -1033,7 +1033,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
|
|
|
1033
1033
|
});
|
|
1034
1034
|
}, "previewProjectAnnotationSnapshot");
|
|
1035
1035
|
|
|
1036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1036
|
+
// 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/store/project-transfer/snapshot.js
|
|
1037
1037
|
var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
1038
1038
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
1039
1039
|
throw new CliError("validation_error", "snapshot options are required");
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
agentOf,
|
|
30
30
|
clientHash,
|
|
31
31
|
currentCaller
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-PVZMN3UZ.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.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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")
|
|
@@ -629,7 +629,7 @@ var passedOn = /* @__PURE__ */ __name((value, tool) => {
|
|
|
629
629
|
};
|
|
630
630
|
}, "passedOn");
|
|
631
631
|
|
|
632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
632
|
+
// 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/mcp/stdio-wire.js
|
|
633
633
|
import { PassThrough, Writable } from "node:stream";
|
|
634
634
|
var lineReader = /* @__PURE__ */ __name((onMessage) => {
|
|
635
635
|
let rest = "";
|
|
@@ -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.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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;
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
QUERY_REASONS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QOQF2TX3.js";
|
|
6
6
|
import {
|
|
7
7
|
defineReasons
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LOSYDRJU.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.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/errors/reasons.js
|
|
14
14
|
var validation = /* @__PURE__ */ __name((reason, message) => [reason, "validation_error", message], "validation");
|
|
15
15
|
var QUERY = [
|
|
16
16
|
["query.aborted", "the search was stopped before it finished"],
|
|
@@ -32,10 +32,16 @@ var SIGN_IN = [
|
|
|
32
32
|
["oauth.timeout", "timeout", "the sign-in was not finished in time"],
|
|
33
33
|
["oauth.mismatch", "authentication_error", "the pasted sign-in result belongs to another sign-in"],
|
|
34
34
|
["session.missing", "authentication_error", "this profile is not signed in: no saved sign-in or API token"],
|
|
35
|
+
["session.unreadable", "configuration_error", "the profile's stored secrets cannot be read; sign in again"],
|
|
35
36
|
["oauth.locked", "provider_unavailable", "another process holds this sign-in's lock"],
|
|
36
37
|
["oauth.no-response", "outcome_unknown", "the token request did not finish"],
|
|
37
38
|
["oauth.unavailable", "provider_unavailable", "the provider's token endpoint is unavailable"],
|
|
38
39
|
["oauth.expired", "authentication_error", "the provider refused the saved sign-in; sign in again"],
|
|
40
|
+
[
|
|
41
|
+
"oauth.moved-rotating",
|
|
42
|
+
"authentication_error",
|
|
43
|
+
"a run with moved folders cannot refresh a sign-in whose refresh token rotates"
|
|
44
|
+
],
|
|
39
45
|
["oauth.invalid-response", "invalid_response", "the provider's token response could not be used"],
|
|
40
46
|
["oauth.failed", "authentication_error", "the provider returned no offline refresh token"],
|
|
41
47
|
["oauth.revoke-failed", "outcome_unknown", "the provider did not confirm the revoke"],
|
|
@@ -48,6 +54,7 @@ var SIGN_IN = [
|
|
|
48
54
|
["sign-in.secret-without-id", "configuration_error", "an OAuth client secret is set without its client id"],
|
|
49
55
|
validation("account-remove.no-choice", "account remove needs --keep-data or --delete-data, one of them"),
|
|
50
56
|
["account-remove.unknown-profile", "not_found", "no profile by this name on this computer"],
|
|
57
|
+
validation("profile.missing", "no profile named, and none is picked for the owner; details.profiles lists the ones here"),
|
|
51
58
|
["profile.unknown", "not_found", "no profile by this name on this computer; details.profiles lists the ones here"],
|
|
52
59
|
["account-remove.busy", "conflict", "a serve or a sync runs for this profile; stop it first"],
|
|
53
60
|
["account-remove.unconfirmed", "confirmation_required", "removing an account asks first; add --yes"],
|
|
@@ -67,7 +74,8 @@ var PROVIDER_API = [
|
|
|
67
74
|
["item.not-found", "not_found", "the provider has no item by this id, or this account cannot see it"],
|
|
68
75
|
["file.not-found", "not_found", "the file named, or its folder, does not exist"],
|
|
69
76
|
validation("file.not-a-file", "the path names a folder or another thing that is not a file"),
|
|
70
|
-
["file.denied", "permission_error", "the file cannot be opened: permission denied"]
|
|
77
|
+
["file.denied", "permission_error", "the file cannot be opened: permission denied"],
|
|
78
|
+
validation("file.too-large", "the file is larger than the limit set for this read")
|
|
71
79
|
];
|
|
72
80
|
var SFTP = [
|
|
73
81
|
["sftp.host-key-missing", "configuration_error", "no host key is pinned for the SFTP server"],
|
|
@@ -77,7 +85,21 @@ var SFTP = [
|
|
|
77
85
|
["sftp.library-missing", "configuration_error", "SFTP needs the ssh2 package in the CLI's dependencies"],
|
|
78
86
|
["sftp.timeout", "timeout", "the SFTP server did not answer in time"],
|
|
79
87
|
validation("sftp.too-large", "the file is larger than the read's byte limit"),
|
|
80
|
-
validation("sftp.closed", "the SFTP connection was closed before the operation")
|
|
88
|
+
validation("sftp.closed", "the SFTP connection was closed before the operation"),
|
|
89
|
+
validation("sftp.file-changed", "the file changed on the server while a stream read it; read it again"),
|
|
90
|
+
["ssh.forward-refused", "permission_error", "the SSH server does not allow forwarding to that address"],
|
|
91
|
+
["ssh.forward-failed", "network_error", "the SSH server could not reach the address behind it"]
|
|
92
|
+
];
|
|
93
|
+
var SQL = [
|
|
94
|
+
validation("sql.bad-identifier", "a table or column name is not a plain identifier"),
|
|
95
|
+
["sql.library-missing", "configuration_error", "this database needs the mysql2 or pg package in the CLI"],
|
|
96
|
+
["db.refused", "authentication_error", "the database server refused the user or password"],
|
|
97
|
+
["db.no-database", "not_found", "the database server has no such database"],
|
|
98
|
+
["db.no-table", "not_found", "the database has no such table"],
|
|
99
|
+
["db.no-select", "permission_error", "the database user may not read the table; grant it SELECT"],
|
|
100
|
+
["db.read-only", "permission_error", "the database refused a write: the connection only reads"],
|
|
101
|
+
["db.timeout", "timeout", "the database server did not answer in time"],
|
|
102
|
+
["db.failed", "provider_error", "the database server failed the query"]
|
|
81
103
|
];
|
|
82
104
|
var OTHERS = [
|
|
83
105
|
validation("doctor.report-exists", "the report's file exists; a problem report never overwrites a file"),
|
|
@@ -109,6 +131,13 @@ var OTHERS = [
|
|
|
109
131
|
["ai.images-not-allowed", "permission_error", "the AI model may not read pictures; models ai set --allow-remote"],
|
|
110
132
|
["picture-reading.off", "permission_error", "picture reading is never; models picture-reading set request"],
|
|
111
133
|
["picture-reading.owner-only", "permission_error", "only the owner turns picture reading on, not an agent"],
|
|
134
|
+
[
|
|
135
|
+
"chat-sending.denied",
|
|
136
|
+
"permission_error",
|
|
137
|
+
"models chats is denied: chat text never goes to a model off this computer, even with --yes"
|
|
138
|
+
],
|
|
139
|
+
["chat-sending.ask", "confirmation_required", "models chats is ask: pass --yes, or the owner sets it to allowed"],
|
|
140
|
+
["chat-sending.owner-only", "permission_error", "only the owner makes models chats less strict, not an agent"],
|
|
112
141
|
validation("picture-reading.agent-missing", "choose the agent that reads: --agent claude or --agent codex"),
|
|
113
142
|
validation("picture-reading.not-a-picture", "the file is not a PNG, JPEG or WebP picture"),
|
|
114
143
|
["picture-reading.unavailable-file", "not_found", "the picture could not be fetched, or is over the size limit"],
|
|
@@ -164,6 +193,7 @@ var OTHERS = [
|
|
|
164
193
|
["document.not-imported", "not_found", "the document is not imported in this source account"],
|
|
165
194
|
["document.not-found", "not_found", "no listed document has that reference"],
|
|
166
195
|
["meeting.not-found", "not_found", "no meeting row has that event or meeting reference"],
|
|
196
|
+
["listing.too-large", "provider_error", "the listing is over its bound; the checkpoint was kept"],
|
|
167
197
|
["listing.source-not-found", "not_found", "a source: term names no account holding what is listed"],
|
|
168
198
|
validation("query.empty-window", "the time window ends before it starts, so no row can fall in it"),
|
|
169
199
|
["extraction.invalid-proposals", "invalid_response", "the model's memory proposals could not be used"],
|
|
@@ -181,6 +211,15 @@ var OTHERS = [
|
|
|
181
211
|
"the email could not be read again, so its skipped attachments have no text"
|
|
182
212
|
],
|
|
183
213
|
["mirror.partial", "provider_error", "some mirrored files were not synced"],
|
|
214
|
+
["mirror.none", "not_found", "the profile has no mirrors; add one with mirrors add"],
|
|
215
|
+
["mirror.not-found", "not_found", "no such mirror in this profile; see mirrors list"],
|
|
216
|
+
validation("mirror.not-folder", "the path to mirror is not a folder"),
|
|
217
|
+
["catalog.unavailable", "configuration_error", "the store has no shared catalog for this account"],
|
|
218
|
+
["catalog.not-found", "not_found", "the file or folder is not in the local catalog; run catalog import or sync"],
|
|
219
|
+
validation("catalog.depth-invalid", "tree depth must be between 0 and 50"),
|
|
220
|
+
["catalog.cycle", "invalid_response", "local folder ancestry contains a cycle"],
|
|
221
|
+
validation("catalog.tree-limit", "the tree is over 10000 entries; name a smaller folder or lower --depth"),
|
|
222
|
+
validation("export.exists", "the output file already exists"),
|
|
184
223
|
["profile.wrong-account", "authentication_error", "the signed-in source account does not match this profile"],
|
|
185
224
|
validation("push.too-many-files", "the folder holds more files than one push takes"),
|
|
186
225
|
validation("push.unreadable", "the folder to push could not be read"),
|
|
@@ -191,7 +230,7 @@ var OTHERS = [
|
|
|
191
230
|
"the settings file's damage has more than one reading; nothing was changed, so it is fixed by hand"
|
|
192
231
|
],
|
|
193
232
|
["state.invalid", "configuration_error", "the saved sync state is unreadable or invalid; it is kept, not reset"],
|
|
194
|
-
["sync.partial", "provider_error", "some
|
|
233
|
+
["sync.partial", "provider_error", "some sources did not sync; the next sync retries them"],
|
|
195
234
|
validation("event.conflict", "the event changed at the provider since the last sync; sync and try again"),
|
|
196
235
|
validation("event.notify-required", "the event has other attendees; say whether to notify them"),
|
|
197
236
|
validation("remind.window", "--due-within is outside 1m to 1d"),
|
|
@@ -202,6 +241,7 @@ var OTHERS = [
|
|
|
202
241
|
"the reminder program failed for some events; the next run retries them"
|
|
203
242
|
],
|
|
204
243
|
["sync.failed", "provider_error", "the sync failed; the answer comes from what the store already holds"],
|
|
244
|
+
validation("event.conference-exists", "the event has a meeting link already, which its attendees use"),
|
|
205
245
|
validation("event.repeat-invalid", "the repeat rule is outside the RFC 5545 subset the calendars take"),
|
|
206
246
|
validation("event.repeat-kind", "the series' rule holds a date or a time of the kind the event is leaving"),
|
|
207
247
|
validation("event.repeat-split", "the series cannot be split at this occurrence, or was split there already"),
|
|
@@ -251,6 +291,7 @@ var OTHERS = [
|
|
|
251
291
|
["meetings.server-unreachable", "network_error", "the meetings service could not be reached"],
|
|
252
292
|
["meetings.server-signed-out", "authentication_error", "the meetings service needs a sign-in"],
|
|
253
293
|
["meetings.server-refused", "permission_error", "the meetings service refused the request"],
|
|
294
|
+
["meetings.server-rate-limited", "rate_limited", "the meetings service asked to wait before more requests"],
|
|
254
295
|
["meetings.server-failed", "provider_error", "the meetings service could not be read, or what it returned kept"],
|
|
255
296
|
[
|
|
256
297
|
"meetings.server-capped",
|
|
@@ -318,13 +359,13 @@ var OTHERS = [
|
|
|
318
359
|
],
|
|
319
360
|
["store.vector-extension-failed", "configuration_error", "the sqlite-vec extension did not load; reinstall the CLI"],
|
|
320
361
|
validation("store.vector-invalid", "a vector to store had a non-finite value"),
|
|
321
|
-
validation("catalog.scope-limit", "the selected catalog exceeds its entry limit"),
|
|
322
362
|
validation("evidence.quote-length", "a quote from the evidence is empty or over 500 characters"),
|
|
323
363
|
validation("evidence.quote-not-found", "the cited source does not say the quoted words"),
|
|
324
364
|
validation("evidence.row-too-large", "one evidence row is over its size limit"),
|
|
325
365
|
validation("index.not-ready", "the search index is still being built"),
|
|
326
366
|
validation("input.closed", "the input closed before the answer"),
|
|
327
367
|
validation("input.empty", "a hidden prompt got an empty answer three times"),
|
|
368
|
+
validation("input.incomplete", "the answers stop before the step that checks them"),
|
|
328
369
|
validation("input.required", "the command needs an answer and cannot ask for one"),
|
|
329
370
|
validation("input.too-large", "the input is over its size limit"),
|
|
330
371
|
["meeting-project.stale", "conflict", "the meeting's project changed meanwhile"],
|
|
@@ -403,16 +444,32 @@ var OTHERS = [
|
|
|
403
444
|
validation("pipeline.field", "a pipeline needs a name and at least one stage, each named once"),
|
|
404
445
|
["pipeline.not-found", "not_found", "no stored pipeline has that name or reference"],
|
|
405
446
|
validation("crm.stage-unknown", "a CRM item stands in a stage the store does not hold; it was not kept"),
|
|
406
|
-
validation("crm.item-invalid", "a CRM item has a field the store refuses, such as a
|
|
447
|
+
validation("crm.item-invalid", "a CRM item has a field the store refuses, such as a status it does not know"),
|
|
448
|
+
validation("crm.amount-unkept", "a CRM deal's amount is in a currency or with decimals the store cannot hold: the deal is kept without it"),
|
|
407
449
|
validation("crm.pipeline-required", "the CRM has more than one pipeline of the kind; the command names one"),
|
|
408
450
|
validation("field.unknown", "no custom field of the kind has that code or label; `fields list` lists them"),
|
|
409
451
|
validation("field.ambiguous", "more than one custom field has that label; name one by its code"),
|
|
410
452
|
validation("field.unknown-option", "the list field has no option with that id or label"),
|
|
453
|
+
validation("crm.record-ambiguous", "more than one contact or company has that name; name one by its id"),
|
|
454
|
+
validation("field.ambiguous-option", "more than one option of the list field has that label; name one by its id"),
|
|
411
455
|
validation("field.unknown-kind", "fields are listed for deals, leads, people and organizations only"),
|
|
456
|
+
[
|
|
457
|
+
"crm.foreign-contacts-spent",
|
|
458
|
+
"permission_error",
|
|
459
|
+
"the day's views of contacts and companies that are not yours are spent"
|
|
460
|
+
],
|
|
461
|
+
[
|
|
462
|
+
"crm.client-reads-admin-only",
|
|
463
|
+
"permission_error",
|
|
464
|
+
"a raw api call that reads contacts or companies is the CRM administrator's"
|
|
465
|
+
],
|
|
466
|
+
validation("field.not-filterable", "the CRM cannot filter a list by that custom field"),
|
|
467
|
+
validation("query.bad-value", "a term's value is not the kind its field takes, such as an id or a number"),
|
|
468
|
+
validation("crm.record-field", "a contact's or company's field is not valid"),
|
|
412
469
|
validation("crm.write-unsupported", "the CRM does not take this write, or does not recognise a repeated one"),
|
|
413
470
|
validation("crm.unlisted-held", "a list of every id would mark most of a kind deleted; nothing was, until --rescan"),
|
|
414
471
|
validation("crm.narrowing-held", "the default scope mine would mark most of a kind's stored rows deleted; none is, until the owner sets the scope"),
|
|
415
|
-
validation("crm.unassigned-dropped", "the CRM does not let this sign-in
|
|
472
|
+
validation("crm.unassigned-dropped", "the CRM does not let this sign-in choose a user in unassigned; that user's deals are not copied"),
|
|
416
473
|
validation("crm.not-reported", "the CRM did not list users or departments; what they would say is unknown, nothing withdrawn"),
|
|
417
474
|
validation("crm.reference-unknown", "a CRM row names a contact, company or user the store does not hold; that link was not made"),
|
|
418
475
|
validation("crm.pending-dropped", "relationships waited too long for an end that never came; they were dropped"),
|
|
@@ -476,6 +533,11 @@ var OTHERS = [
|
|
|
476
533
|
"conflict",
|
|
477
534
|
"the people a merge or a proposed link names changed since; undo the later merge, or propose the link again"
|
|
478
535
|
],
|
|
536
|
+
[
|
|
537
|
+
"identity.merge-conflict",
|
|
538
|
+
"conflict",
|
|
539
|
+
"a row of the renamed identity has no counterpart on the identity it merges into; the pair is left as it was"
|
|
540
|
+
],
|
|
479
541
|
["identity.no-merge", "not_found", "nothing of that person is merged into the other; people show lists the merges"],
|
|
480
542
|
validation("identity.held-elsewhere", "the identity sits on another person than the one named; name that person to take it off them"),
|
|
481
543
|
validation("identity.several-persons", "the identities that leave a person are all of that one person"),
|
|
@@ -613,7 +675,7 @@ var INPUT_FIELD_REASONS = defineReasons([
|
|
|
613
675
|
var REASONS = defineReasons([
|
|
614
676
|
...QUERY_REASONS,
|
|
615
677
|
...INPUT_FIELD_REASONS,
|
|
616
|
-
...[...QUERY, ...SIGN_IN, ...PROVIDER_API, ...SFTP, ...OTHERS].map(([reason, code, message]) => ({
|
|
678
|
+
...[...QUERY, ...SIGN_IN, ...PROVIDER_API, ...SFTP, ...SQL, ...OTHERS].map(([reason, code, message]) => ({
|
|
617
679
|
reason,
|
|
618
680
|
code,
|
|
619
681
|
message,
|
|
@@ -690,6 +752,8 @@ var DETAILS = [
|
|
|
690
752
|
];
|
|
691
753
|
var SHARED = { reasons: REASONS, details: DETAILS };
|
|
692
754
|
var merged = /* @__PURE__ */ new WeakMap();
|
|
755
|
+
var coreCodes = new Map(REASONS.map((entry) => [entry.reason, entry.code]));
|
|
756
|
+
var sameAsCore = /* @__PURE__ */ __name((entry) => coreCodes.get(entry.reason) === entry.code, "sameAsCore");
|
|
693
757
|
var failureContext = /* @__PURE__ */ __name((errors) => {
|
|
694
758
|
if (!errors)
|
|
695
759
|
return SHARED;
|
|
@@ -700,7 +764,7 @@ var failureContext = /* @__PURE__ */ __name((errors) => {
|
|
|
700
764
|
if (unnamed.length > 0)
|
|
701
765
|
throw new Error(`error details must be snake_case: ${unnamed.join(", ")}`);
|
|
702
766
|
const context = {
|
|
703
|
-
reasons: defineReasons([...REASONS, ...errors.reasons ?? []]),
|
|
767
|
+
reasons: defineReasons([...REASONS, ...(errors.reasons ?? []).filter((entry) => !sameAsCore(entry))]),
|
|
704
768
|
details: [.../* @__PURE__ */ new Set([...DETAILS, ...errors.details ?? []])]
|
|
705
769
|
};
|
|
706
770
|
merged.set(errors, context);
|
|
@@ -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.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/installer.js
|
|
8
8
|
var installerOf = /* @__PURE__ */ __name((scriptPath) => {
|
|
9
9
|
const path = scriptPath.replaceAll("\\", "/");
|
|
10
10
|
if (path.includes("/_npx/"))
|