@wirecat/mail-cli 0.14.0 → 0.15.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 +49 -0
- package/README.md +5 -4
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-O7HQNZOF.js → all-profiles-PKXL5TKP.js} +10 -10
- package/dist/bundle/{anthropic-SNA6PTVO.js → anthropic-DFDNZU7C.js} +6 -6
- package/dist/bundle/{app-server-LBKMJMKN.js → app-server-WOZAOCKX.js} +47 -47
- package/dist/bundle/{bun-KF5QK2YN.js → bun-DKZAL6ML.js} +2 -2
- package/dist/bundle/{bun-sqlite-2DKMM2PT.js → bun-sqlite-2A7FS5GD.js} +5 -5
- package/dist/bundle/{chunk-KLLKDOO2.js → chunk-2A4Z3WOC.js} +476 -304
- package/dist/bundle/{chunk-VERSKGJV.js → chunk-2BHY4GFP.js} +2 -2
- package/dist/bundle/{chunk-P62Z3Q35.js → chunk-3MKCLPQV.js} +14 -14
- package/dist/bundle/{chunk-FTGCXIQA.js → chunk-4DGOI6JB.js} +47 -33
- package/dist/bundle/{chunk-BP3TZ4EY.js → chunk-4HVY3QPF.js} +1 -1
- package/dist/bundle/{chunk-NGZW2JPK.js → chunk-4TPNRJER.js} +7 -7
- package/dist/bundle/{chunk-W643XZIR.js → chunk-4XRIALMN.js} +2 -2
- package/dist/bundle/{chunk-B5XAETYU.js → chunk-4YECCESG.js} +2 -2
- package/dist/bundle/{chunk-IPKXRW6W.js → chunk-5C3L2QER.js} +26 -25
- package/dist/bundle/{chunk-V5ZID7KC.js → chunk-5W7D5H2R.js} +1 -1
- package/dist/bundle/{chunk-E7BTD4P6.js → chunk-6AYJDBHT.js} +6 -6
- package/dist/bundle/{chunk-I7EWIIBC.js → chunk-6Z7VBDFR.js} +2 -3
- package/dist/bundle/{chunk-P547HU26.js → chunk-73SQQXSU.js} +10 -10
- package/dist/bundle/{chunk-ER6PJAPK.js → chunk-A6O3WHBD.js} +3 -3
- package/dist/bundle/{chunk-MQK2UNG4.js → chunk-BIKMEGC7.js} +8 -8
- package/dist/bundle/{chunk-AOVOIXGR.js → chunk-BKF7XIJ5.js} +10 -10
- package/dist/bundle/{chunk-NVQUK2DH.js → chunk-BY5S3JEZ.js} +47 -47
- package/dist/bundle/{chunk-CCHHEMPM.js → chunk-EB2IULWB.js} +3 -2
- package/dist/bundle/{chunk-2F7D6YMB.js → chunk-EDJQDR5X.js} +4 -4
- package/dist/bundle/{chunk-3YGYB3LJ.js → chunk-ENZTLYTS.js} +23 -5
- package/dist/bundle/{chunk-UHHARH5X.js → chunk-FEWWBU2I.js} +147 -73
- package/dist/bundle/{chunk-IVDUR5Y4.js → chunk-G6RG2AZV.js} +15 -8
- package/dist/bundle/{chunk-DIP3ENSY.js → chunk-HGOYQUT7.js} +1 -1
- package/dist/bundle/{chunk-XRJIQC6P.js → chunk-IA6U76ZY.js} +2 -2
- package/dist/bundle/{chunk-7LDC275M.js → chunk-JQTIB4WJ.js} +7 -7
- package/dist/bundle/{chunk-M2YIJDBL.js → chunk-K4N5UG64.js} +6 -6
- package/dist/bundle/{chunk-2A4BAMNF.js → chunk-KJYCA6IC.js} +4 -4
- package/dist/bundle/{chunk-ILHTNOIV.js → chunk-KV4267S4.js} +1 -1
- package/dist/bundle/{chunk-QZXHMQCM.js → chunk-LARQTWIL.js} +1 -1
- package/dist/bundle/{chunk-Q5EYTU3Q.js → chunk-LRBAQSU3.js} +3 -3
- package/dist/bundle/{chunk-UMWR5PKA.js → chunk-M5DF6QNT.js} +13 -13
- package/dist/bundle/{chunk-G53HRGTK.js → chunk-M5VHTDJZ.js} +17 -17
- package/dist/bundle/{chunk-RE5SEGSR.js → chunk-NDZK466U.js} +4 -4
- package/dist/bundle/{chunk-2KVR7FF3.js → chunk-NNLYS4IR.js} +9 -9
- package/dist/bundle/{chunk-WBJQEB6E.js → chunk-OJEIUOMW.js} +12 -12
- package/dist/bundle/{chunk-X5XIFNTI.js → chunk-OZVGHHFZ.js} +2 -2
- package/dist/bundle/{chunk-VA3JKERH.js → chunk-P4SV3VKP.js} +2 -2
- package/dist/bundle/{chunk-5C74F7XX.js → chunk-PI5P457W.js} +4 -4
- package/dist/bundle/{chunk-XPREXN3W.js → chunk-PXLVTHMH.js} +3 -3
- package/dist/bundle/{chunk-3EAAEF5U.js → chunk-QCNK3YUZ.js} +95 -36
- package/dist/bundle/{chunk-6EZ7XGRG.js → chunk-QJQV6KG2.js} +2 -2
- package/dist/bundle/{chunk-KQ5P5NLL.js → chunk-QSGT4ZH4.js} +1 -1
- package/dist/bundle/{chunk-OGK7LMYT.js → chunk-QTD3BVS5.js} +6 -6
- package/dist/bundle/{chunk-WVWNKZI4.js → chunk-R6UG66IM.js} +465 -280
- package/dist/bundle/{chunk-I62OTHDE.js → chunk-RBNL3DBQ.js} +3 -3
- package/dist/bundle/{chunk-7GSE57K3.js → chunk-RFDP45QO.js} +3 -3
- package/dist/bundle/{chunk-YG4OI3HJ.js → chunk-SPQY3PJX.js} +232 -180
- package/dist/bundle/{chunk-H7OQ4YZV.js → chunk-SRHKHE4C.js} +47 -28
- package/dist/bundle/{chunk-DPKHVBP3.js → chunk-U3VX3UUC.js} +5 -5
- package/dist/bundle/{chunk-6CZQJ5XR.js → chunk-VQQFOA4O.js} +8 -8
- package/dist/bundle/{chunk-UJEO3VWA.js → chunk-WIU733D2.js} +1 -1
- package/dist/bundle/{chunk-F5SZVO3A.js → chunk-WOV3ABQR.js} +4 -4
- package/dist/bundle/{chunk-KBFIKUCA.js → chunk-WTDYN3TQ.js} +28 -28
- package/dist/bundle/{chunk-EW3XTUPB.js → chunk-XBIPSSKI.js} +4 -4
- package/dist/bundle/{chunk-QWRBAQZ7.js → chunk-XGNC5OJG.js} +1 -1
- package/dist/bundle/{chunk-MXG4L7NH.js → chunk-XKUAEYJV.js} +10 -10
- package/dist/bundle/{chunk-PQLBPYJR.js → chunk-YPF6OS37.js} +1 -1
- package/dist/bundle/{chunk-H2ZURG7Q.js → chunk-YRHXVXLQ.js} +2 -2
- package/dist/bundle/{chunk-ZCPUKUST.js → chunk-YWIU4HOT.js} +1 -1
- package/dist/bundle/command-contract-4E4NYRR7.js +34 -0
- package/dist/bundle/{decode-X7Y2VSYZ.js → decode-LX4FPSI7.js} +5 -5
- package/dist/bundle/{dispatch-OWNO2CMC.js → dispatch-3ILCYZ4Q.js} +8 -8
- package/dist/bundle/{dist-L7FNC74Q.js → dist-HQIZDYNQ.js} +14 -14
- package/dist/bundle/{echarts-5AB3LFVD.js → echarts-BGBPRGR5.js} +2 -2
- package/dist/bundle/{embed-VBS5LRCE.js → embed-ASAE3H5I.js} +6 -6
- package/dist/bundle/{embedder-VFSYBDKK.js → embedder-QYDZRKBX.js} +9 -9
- package/dist/bundle/{failure-E534GZDF.js → failure-UDL5QZRZ.js} +2 -2
- package/dist/bundle/{first-run-NO2ODH2W.js → first-run-EFNNGFCB.js} +11 -11
- package/dist/bundle/first-screen-XHM3TT6G.js +32 -0
- package/dist/bundle/{instructions-52W6ZQTU.js → instructions-6LPDSKAD.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-MNI62HHE.js → mcp-PPVOM4SE.js} +2 -2
- package/dist/bundle/{node-TL2PBNKO.js → node-IB246NCQ.js} +2 -2
- package/dist/bundle/{node-sqlite-757HNQAD.js → node-sqlite-UROXM4VR.js} +6 -6
- package/dist/bundle/{oauth-VDRNJ7KN.js → oauth-VSCKHS4T.js} +7 -7
- package/dist/bundle/{open-NUWYOKPO.js → open-R4LVB63T.js} +5 -5
- package/dist/bundle/{openai-YLBFVK5X.js → openai-MKCEOFKL.js} +14 -14
- package/dist/bundle/{process-PWAGP6YY.js → process-SWPJGPQC.js} +1 -1
- package/dist/bundle/{program-PPUPVL7O.js → program-CJ2YDRUY.js} +11358 -10374
- package/dist/bundle/{prompt-M5U66RVJ.js → prompt-TWWJ5VAM.js} +5 -5
- package/dist/bundle/{recognize-DCMDZA2U.js → recognize-XMO5ETQU.js} +4 -4
- package/dist/bundle/{remote-4SHI5WJG.js → remote-N6VAWJWE.js} +7 -7
- package/dist/bundle/{rerank-DYMZMNPQ.js → rerank-XNAMC6FH.js} +7 -7
- package/dist/bundle/{serve-HO3WME4G.js → serve-IJ32WEBH.js} +9 -9
- package/dist/bundle/server-CRVR4L2E.js +64 -0
- package/dist/bundle/{server-R3TIPRZN.js → server-KEYSE5OL.js} +39 -39
- package/dist/bundle/{sqlite-runtime-DWRITUIH.js → sqlite-runtime-NFBRN7OF.js} +6 -6
- package/dist/bundle/{state-QOMUDOGF.js → state-7WPJEW2Z.js} +6 -6
- package/dist/bundle/{store-LHHMOE5V.js → store-KHVHOGQR.js} +21 -19
- package/dist/bundle/{store-RGO6IABA.js → store-PKQCNACC.js} +15 -15
- package/dist/bundle/store-maintenance-command-5MODJN6R.js +54 -0
- package/dist/commands/account.d.ts.map +1 -1
- package/dist/commands/account.js +149 -3
- package/dist/commands/account.js.map +1 -1
- package/dist/commands/context.d.ts +2 -0
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +2 -2
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/import.d.ts +3 -0
- package/dist/commands/import.d.ts.map +1 -0
- package/dist/commands/import.js +92 -0
- package/dist/commands/import.js.map +1 -0
- package/dist/commands/read.d.ts.map +1 -1
- package/dist/commands/read.js +29 -3
- package/dist/commands/read.js.map +1 -1
- package/dist/commands/session-start.d.ts.map +1 -1
- package/dist/commands/session-start.js +9 -7
- package/dist/commands/session-start.js.map +1 -1
- package/dist/commands/stats.d.ts.map +1 -1
- package/dist/commands/stats.js +49 -2
- package/dist/commands/stats.js.map +1 -1
- package/dist/commands/sync.d.ts +2 -0
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +38 -4
- package/dist/commands/sync.js.map +1 -1
- package/dist/config.d.ts +9 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +17 -0
- package/dist/config.js.map +1 -1
- package/dist/mail/doctor.d.ts +3 -2
- package/dist/mail/doctor.d.ts.map +1 -1
- package/dist/mail/doctor.js +14 -16
- package/dist/mail/doctor.js.map +1 -1
- package/dist/mail/domain-age.d.ts +29 -0
- package/dist/mail/domain-age.d.ts.map +1 -0
- package/dist/mail/domain-age.js +157 -0
- package/dist/mail/domain-age.js.map +1 -0
- package/dist/mail/mbox.d.ts +9 -0
- package/dist/mail/mbox.d.ts.map +1 -0
- package/dist/mail/mbox.js +230 -0
- package/dist/mail/mbox.js.map +1 -0
- package/dist/oauth.d.ts +13 -9
- package/dist/oauth.d.ts.map +1 -1
- package/dist/oauth.js +12 -25
- package/dist/oauth.js.map +1 -1
- package/dist/profile.d.ts +4 -1
- package/dist/profile.d.ts.map +1 -1
- package/dist/profile.js +6 -1
- package/dist/profile.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +10 -1
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts +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 +4 -4
- package/skills/mail-cli/SKILL.md +2 -0
- package/dist/bundle/command-contract-B3OGAIDB.js +0 -34
- package/dist/bundle/first-screen-7VJLGMJJ.js +0 -32
- package/dist/bundle/server-244FHPY4.js +0 -64
- package/dist/bundle/store-maintenance-command-LU2ZBDUY.js +0 -54
- /package/dist/bundle/{chunk-NUN6OGOV.js → chunk-LU3WKZBA.js} +0 -0
|
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
renderMessages
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4XRIALMN.js";
|
|
6
6
|
import {
|
|
7
7
|
answerOf,
|
|
8
8
|
messengerContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5C3L2QER.js";
|
|
10
10
|
import {
|
|
11
11
|
FETCHING,
|
|
12
12
|
RULES_VERSION,
|
|
@@ -26,19 +26,19 @@ import {
|
|
|
26
26
|
syncsOneChat,
|
|
27
27
|
typedQuery,
|
|
28
28
|
withQuery
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-R6UG66IM.js";
|
|
30
30
|
import {
|
|
31
31
|
checkedOptions,
|
|
32
32
|
range
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-RBNL3DBQ.js";
|
|
34
34
|
import {
|
|
35
35
|
messagesFor,
|
|
36
36
|
systemFor,
|
|
37
37
|
validateImages
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-QJQV6KG2.js";
|
|
39
39
|
import {
|
|
40
40
|
readSecret
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-PXLVTHMH.js";
|
|
42
42
|
import {
|
|
43
43
|
Command,
|
|
44
44
|
LOCAL_READ,
|
|
@@ -66,23 +66,23 @@ import {
|
|
|
66
66
|
snakeKeys,
|
|
67
67
|
storeTable,
|
|
68
68
|
withoutProviderRefs
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-SPQY3PJX.js";
|
|
70
70
|
import {
|
|
71
71
|
levelFor
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-JQTIB4WJ.js";
|
|
73
73
|
import {
|
|
74
74
|
failureKey
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-NNLYS4IR.js";
|
|
76
76
|
import {
|
|
77
77
|
holdLock,
|
|
78
78
|
lockPath,
|
|
79
79
|
releaseLock,
|
|
80
80
|
servingProfiles,
|
|
81
81
|
takeLock
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-LRBAQSU3.js";
|
|
83
83
|
import {
|
|
84
84
|
holdersOf
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-WIU733D2.js";
|
|
86
86
|
import {
|
|
87
87
|
MIGRATIONS,
|
|
88
88
|
drainNoteIndex,
|
|
@@ -109,26 +109,26 @@ import {
|
|
|
109
109
|
storeClients,
|
|
110
110
|
storeContents,
|
|
111
111
|
vectorIndexCounts
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-2A4Z3WOC.js";
|
|
113
113
|
import {
|
|
114
114
|
formatLocator,
|
|
115
115
|
parseLocator
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-XKUAEYJV.js";
|
|
117
117
|
import {
|
|
118
118
|
queryFieldsOf
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-FEWWBU2I.js";
|
|
120
120
|
import {
|
|
121
121
|
storePath
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-OZVGHHFZ.js";
|
|
123
123
|
import {
|
|
124
124
|
openCache
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-6AYJDBHT.js";
|
|
126
126
|
import {
|
|
127
127
|
Credentials,
|
|
128
128
|
pathsAreOverridden,
|
|
129
129
|
resolvePaths,
|
|
130
130
|
writeSecurely
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-QCNK3YUZ.js";
|
|
132
132
|
import {
|
|
133
133
|
array,
|
|
134
134
|
boolean,
|
|
@@ -152,10 +152,10 @@ import {
|
|
|
152
152
|
transform,
|
|
153
153
|
trim,
|
|
154
154
|
union
|
|
155
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-G6RG2AZV.js";
|
|
156
156
|
import {
|
|
157
157
|
CliError
|
|
158
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-EB2IULWB.js";
|
|
159
159
|
import {
|
|
160
160
|
__commonJS,
|
|
161
161
|
__name,
|
|
@@ -5495,11 +5495,11 @@ var require_liquid_node = __commonJS({
|
|
|
5495
5495
|
}
|
|
5496
5496
|
});
|
|
5497
5497
|
|
|
5498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5499
5499
|
import { chmodSync, constants, copyFileSync, existsSync as existsSync7, mkdirSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync3, writeFileSync } from "node:fs";
|
|
5500
5500
|
import { dirname, resolve } from "node:path";
|
|
5501
5501
|
|
|
5502
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5502
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5503
5503
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5504
5504
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5505
5505
|
import { Transform } from "node:stream";
|
|
@@ -5606,7 +5606,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5606
5606
|
renameSync(pending, to);
|
|
5607
5607
|
}, "unsealFile");
|
|
5608
5608
|
|
|
5609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5609
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5610
5610
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5611
5611
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5612
5612
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5630,7 +5630,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5630
5630
|
};
|
|
5631
5631
|
}, "compatibilityOf");
|
|
5632
5632
|
|
|
5633
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5634
5634
|
import { createHash as createHash2 } from "node:crypto";
|
|
5635
5635
|
var COPY_MARK = "__repair_";
|
|
5636
5636
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5884,7 +5884,7 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5884
5884
|
return found;
|
|
5885
5885
|
}, "deleteCopy");
|
|
5886
5886
|
|
|
5887
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5887
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5888
5888
|
import { existsSync as existsSync2, statSync as statSync2 } from "node:fs";
|
|
5889
5889
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
5890
5890
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync2(path) ? statSync2(path).size : 0, "bytesOf");
|
|
@@ -5931,7 +5931,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
5931
5931
|
renderAnswer(this, outputFor(this), itemOf(answer));
|
|
5932
5932
|
}), "storeInfoCommand");
|
|
5933
5933
|
|
|
5934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5934
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
5935
5935
|
var ENCRYPT_OPTION = [
|
|
5936
5936
|
"--encrypt",
|
|
5937
5937
|
"compress and encrypt with a password, typed at a hidden prompt or piped on stdin; it is never kept \u2014 lose it and the file cannot be opened"
|
|
@@ -5950,7 +5950,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
5950
5950
|
return password;
|
|
5951
5951
|
}, "passwordOf");
|
|
5952
5952
|
|
|
5953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
5954
5954
|
import { existsSync as existsSync3, readFileSync } from "node:fs";
|
|
5955
5955
|
import { join } from "node:path";
|
|
5956
5956
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6121,7 +6121,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6121
6121
|
}, "problem");
|
|
6122
6122
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6123
6123
|
|
|
6124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6125
6125
|
import { existsSync as existsSync4, readFileSync as readFileSync2 } from "node:fs";
|
|
6126
6126
|
import { join as join2 } from "node:path";
|
|
6127
6127
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6174,7 +6174,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6174
6174
|
}, "recordReply");
|
|
6175
6175
|
var broken2 = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply state ${path} cannot be read (${why}) \u2014 fix or move the file`), "broken");
|
|
6176
6176
|
|
|
6177
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6177
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6178
6178
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6179
6179
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6180
6180
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -6280,7 +6280,7 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
6280
6280
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
6281
6281
|
}, "filled");
|
|
6282
6282
|
|
|
6283
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
6284
6284
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
6285
6285
|
var TEMPLATE_LIMITS = {
|
|
6286
6286
|
parse: 32768,
|
|
@@ -6440,7 +6440,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
6440
6440
|
}
|
|
6441
6441
|
}, "renderReplyTemplate");
|
|
6442
6442
|
|
|
6443
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6443
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
6444
6444
|
var DRY_RUN_DAYS = 7;
|
|
6445
6445
|
var PAGE = 500;
|
|
6446
6446
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -6554,7 +6554,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
6554
6554
|
}
|
|
6555
6555
|
}, "storedSince");
|
|
6556
6556
|
|
|
6557
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6557
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
6558
6558
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
6559
6559
|
const host = new URL(baseUrl).host;
|
|
6560
6560
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -6585,7 +6585,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
6585
6585
|
};
|
|
6586
6586
|
}, "embeddingKeys");
|
|
6587
6587
|
|
|
6588
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6588
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
6589
6589
|
var options = strictObject({
|
|
6590
6590
|
temperature: range(0, 2),
|
|
6591
6591
|
top_p: range(0, 1),
|
|
@@ -6634,7 +6634,7 @@ var openai = {
|
|
|
6634
6634
|
}, "complete")
|
|
6635
6635
|
};
|
|
6636
6636
|
|
|
6637
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6637
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
6638
6638
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
6639
6639
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
6640
6640
|
if (deps.signal?.aborted)
|
|
@@ -6649,7 +6649,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6649
6649
|
if (!adapter && target.provider === "openai")
|
|
6650
6650
|
adapter = openai;
|
|
6651
6651
|
if (!adapter && target.provider === "anthropic")
|
|
6652
|
-
adapter = (await import("./anthropic-
|
|
6652
|
+
adapter = (await import("./anthropic-DFDNZU7C.js")).anthropic;
|
|
6653
6653
|
if (!adapter)
|
|
6654
6654
|
throw new CliError("validation_error", `no model adapter for ${target.provider}`);
|
|
6655
6655
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -6690,7 +6690,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6690
6690
|
}, "complete")
|
|
6691
6691
|
}), "modelGateway");
|
|
6692
6692
|
|
|
6693
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6693
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
6694
6694
|
import { existsSync as existsSync5, readFileSync as readFileSync3 } from "node:fs";
|
|
6695
6695
|
import { join as join3 } from "node:path";
|
|
6696
6696
|
var shape = strictObject({
|
|
@@ -6715,7 +6715,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
6715
6715
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
6716
6716
|
}, "mayModelReply");
|
|
6717
6717
|
|
|
6718
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6718
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
6719
6719
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options2 = {
|
|
6720
6720
|
ai: true
|
|
6721
6721
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -6762,7 +6762,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
6762
6762
|
return result2;
|
|
6763
6763
|
}, "replyRenderer");
|
|
6764
6764
|
|
|
6765
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6765
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
6766
6766
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
6767
6767
|
var NO_RULES = "no rules";
|
|
6768
6768
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -6855,7 +6855,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
6855
6855
|
return { skip: why };
|
|
6856
6856
|
}, "replyTo");
|
|
6857
6857
|
|
|
6858
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
|
|
6859
6859
|
var START_SYNC_DELAY_MS = 3e4;
|
|
6860
6860
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
6861
6861
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -6932,7 +6932,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch: fetch2, note
|
|
|
6932
6932
|
};
|
|
6933
6933
|
}, "startSync");
|
|
6934
6934
|
|
|
6935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
6936
6936
|
var FIRST_FETCH_MS = 6e4;
|
|
6937
6937
|
var DAY_MS = 864e5;
|
|
6938
6938
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -6986,7 +6986,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, fi
|
|
|
6986
6986
|
};
|
|
6987
6987
|
}, "memberFetches");
|
|
6988
6988
|
|
|
6989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6989
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
6990
6990
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
6991
6991
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
6992
6992
|
if (context.format === "pretty") {
|
|
@@ -7019,7 +7019,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7019
7019
|
return context;
|
|
7020
7020
|
}, "recordDiagnostics");
|
|
7021
7021
|
|
|
7022
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
7023
7023
|
var STEMS_EVERY_MS = 3e4;
|
|
7024
7024
|
var STEMS_SLICE_MS = 2e3;
|
|
7025
7025
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -7059,7 +7059,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
7059
7059
|
};
|
|
7060
7060
|
}, "stemFills");
|
|
7061
7061
|
|
|
7062
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7062
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
7063
7063
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
7064
7064
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
7065
7065
|
kind: attachment.kind,
|
|
@@ -7154,7 +7154,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
7154
7154
|
locale: messenger.app.locale
|
|
7155
7155
|
}), "viewOf");
|
|
7156
7156
|
|
|
7157
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
7158
7158
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
7159
7159
|
value: value.value,
|
|
7160
7160
|
observed_at: value.observedAt,
|
|
@@ -7221,7 +7221,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
7221
7221
|
}
|
|
7222
7222
|
}, "watchEventItem");
|
|
7223
7223
|
|
|
7224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
7225
7225
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
7226
7226
|
output: { entity: "watch_item" },
|
|
7227
7227
|
effects: REMOTE_READ,
|
|
@@ -7376,7 +7376,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
7376
7376
|
}
|
|
7377
7377
|
}, "describe");
|
|
7378
7378
|
|
|
7379
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7379
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
7380
7380
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
7381
7381
|
const command = annotate(new Command("serve"), {
|
|
7382
7382
|
output: { entity: "serve_summary" },
|
|
@@ -7640,7 +7640,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
7640
7640
|
};
|
|
7641
7641
|
}, "tasking");
|
|
7642
7642
|
|
|
7643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7643
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
7644
7644
|
import { existsSync as existsSync6 } from "node:fs";
|
|
7645
7645
|
var PATH = "store tables list";
|
|
7646
7646
|
var STORE_TABLES_QUERY = {
|
|
@@ -7683,7 +7683,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
|
|
|
7683
7683
|
return tables;
|
|
7684
7684
|
}, "storeTablesCommand");
|
|
7685
7685
|
|
|
7686
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7686
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
7687
7687
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
7688
7688
|
var WORD_INDEX = "message_words";
|
|
7689
7689
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -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.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/errors.js
|
|
8
8
|
var errorCodes = [
|
|
9
9
|
"validation_error",
|
|
10
10
|
"configuration_error",
|
|
@@ -19,6 +19,7 @@ var errorCodes = [
|
|
|
19
19
|
"provider_unavailable",
|
|
20
20
|
"invalid_response",
|
|
21
21
|
"outcome_unknown",
|
|
22
|
+
"conflict",
|
|
22
23
|
"cancelled"
|
|
23
24
|
];
|
|
24
25
|
var BRAND = /* @__PURE__ */ Symbol.for("@wirecat/cli-base/CliError");
|
|
@@ -38,7 +39,7 @@ var CliError = class extends Error {
|
|
|
38
39
|
};
|
|
39
40
|
var isCliError = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && value[BRAND] === true, "isCliError");
|
|
40
41
|
|
|
41
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
42
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
|
|
42
43
|
var CONTROL = (
|
|
43
44
|
// biome-ignore lint/suspicious/noControlCharactersInRegex: matching them is the whole point
|
|
44
45
|
/[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u200B\u200E\u200F\u202A-\u202E\u2066-\u2069\uFEFF\u{E0000}-\u{E007F}]/gu
|
|
@@ -3,26 +3,26 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
executableEnvironment,
|
|
5
5
|
executableOnPath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YPF6OS37.js";
|
|
7
7
|
import {
|
|
8
8
|
require_cross_spawn
|
|
9
9
|
} from "./chunk-D72URWJE.js";
|
|
10
10
|
import {
|
|
11
11
|
loadConfigFile,
|
|
12
12
|
saveConfigFile
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-QCNK3YUZ.js";
|
|
14
14
|
import {
|
|
15
15
|
number,
|
|
16
16
|
object,
|
|
17
17
|
optional,
|
|
18
18
|
string
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-G6RG2AZV.js";
|
|
20
20
|
import {
|
|
21
21
|
__name,
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-ZVVMGPBJ.js";
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/update/index.js
|
|
26
26
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
27
27
|
import { existsSync } from "node:fs";
|
|
28
28
|
var updateCommand = /* @__PURE__ */ __name((installer, packageName) => {
|
|
@@ -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-FEWWBU2I.js";
|
|
6
6
|
import {
|
|
7
7
|
defineReasons
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-G6RG2AZV.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.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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"],
|
|
@@ -40,7 +40,19 @@ var SIGN_IN = [
|
|
|
40
40
|
["oauth.invalid", "authentication_error", "the saved sign-in cannot be read"],
|
|
41
41
|
["oauth.not-saved", "configuration_error", "the sign-in cannot be saved or read where it is kept"],
|
|
42
42
|
["sign-in.client-file-open", "configuration_error", "other users of this computer can read the client file"],
|
|
43
|
-
["sign-in.client-file-invalid", "configuration_error", "the file is not a Desktop app OAuth client JSON"]
|
|
43
|
+
["sign-in.client-file-invalid", "configuration_error", "the file is not a Desktop app OAuth client JSON"],
|
|
44
|
+
["oauth.scope-missing", "permission_error", "the sign-in lacks a permission this command needs"],
|
|
45
|
+
["sign-in.client-rejected", "configuration_error", "the provider rejected the OAuth client"],
|
|
46
|
+
["sign-in.secret-without-id", "configuration_error", "an OAuth client secret is set without its client id"]
|
|
47
|
+
];
|
|
48
|
+
var PROVIDER_API = [
|
|
49
|
+
["offline.refused", "permission_error", "this command needs the provider; --offline was given"],
|
|
50
|
+
validation("api.unknown-method", "the provider has no method by this name"),
|
|
51
|
+
["api.disabled", "configuration_error", "the provider's API is turned off for this OAuth project"],
|
|
52
|
+
["provider.usage-limit", "rate_limited", "the account's usage limit at the provider is reached; wait, do not retry"],
|
|
53
|
+
["file.not-found", "not_found", "the file named, or its folder, does not exist"],
|
|
54
|
+
validation("file.not-a-file", "the path names a folder or another thing that is not a file"),
|
|
55
|
+
["file.denied", "permission_error", "the file cannot be opened: permission denied"]
|
|
44
56
|
];
|
|
45
57
|
var OTHERS = [
|
|
46
58
|
["query.time-limit", "timeout", "the search took longer than its time limit; the query itself is valid"],
|
|
@@ -65,6 +77,11 @@ var OTHERS = [
|
|
|
65
77
|
validation("file.locked", "another process holds the file's lock"),
|
|
66
78
|
["mail.source-failed", "provider_error", "the mail server refused or did not complete a request"],
|
|
67
79
|
["mail.search-refused", "provider_error", "the mail server refused to search a folder"],
|
|
80
|
+
[
|
|
81
|
+
"mail.attachments-unread",
|
|
82
|
+
"provider_unavailable",
|
|
83
|
+
"the email could not be read again, so its skipped attachments have no text"
|
|
84
|
+
],
|
|
68
85
|
["mirror.partial", "provider_error", "some mirrored files were not synced"],
|
|
69
86
|
["profile.wrong-account", "authentication_error", "the signed-in source account does not match this profile"],
|
|
70
87
|
validation("push.too-many-files", "the folder holds more files than one push takes"),
|
|
@@ -92,6 +109,7 @@ var OTHERS = [
|
|
|
92
109
|
validation("event.repeat-split", "the series cannot be split at this occurrence, or was split there already"),
|
|
93
110
|
validation("event.repeat-count", "a COUNT series is split only with a rule for its new part"),
|
|
94
111
|
validation("event.unmovable", "the provider keeps this kind of event on its calendar"),
|
|
112
|
+
validation("event.quick-add-ambiguous", "more than one event could be the one a lost quick add made"),
|
|
95
113
|
validation("event.text-with-fields", "--text takes the whole event from its line, so no field option goes with it"),
|
|
96
114
|
validation("calendar.ambiguous", "two or more calendars have this name; name one by its id"),
|
|
97
115
|
validation("export.too-many", "the query finds more events than one export writes"),
|
|
@@ -262,7 +280,7 @@ var INPUT_FIELD_REASONS = defineReasons([
|
|
|
262
280
|
var REASONS = defineReasons([
|
|
263
281
|
...QUERY_REASONS,
|
|
264
282
|
...INPUT_FIELD_REASONS,
|
|
265
|
-
...[...QUERY, ...SIGN_IN, ...OTHERS].map(([reason, code, message]) => ({
|
|
283
|
+
...[...QUERY, ...SIGN_IN, ...PROVIDER_API, ...OTHERS].map(([reason, code, message]) => ({
|
|
266
284
|
reason,
|
|
267
285
|
code,
|
|
268
286
|
message,
|