@wirecat/mail-cli 0.33.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 +16 -0
- package/contracts/wirecat.json +2 -2
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-W3CGXEEJ.js → all-profiles-2KUKROHY.js} +10 -10
- package/dist/bundle/{anthropic-UMDO5AKP.js → anthropic-E5KRCEVC.js} +8 -8
- package/dist/bundle/{app-server-4SICQ5RP.js → app-server-HIQ3QO5K.js} +60 -52
- package/dist/bundle/{bun-QVVCH4MJ.js → bun-KARJPE5D.js} +2 -2
- package/dist/bundle/{bun-sqlite-CHD4AIUK.js → bun-sqlite-NHGX6ZUN.js} +6 -6
- package/dist/bundle/{chunk-TK77DCE5.js → chunk-26DYRMXE.js} +1 -1
- package/dist/bundle/{chunk-JADBHKBP.js → chunk-2GDLJKPT.js} +1 -1
- package/dist/bundle/{chunk-JUYUWMTG.js → chunk-2SCQ7Z4I.js} +4 -4
- package/dist/bundle/{chunk-Y2P2LC5R.js → chunk-2VBEBPGX.js} +9 -9
- package/dist/bundle/{chunk-OOYIPK4F.js → chunk-4SKE5GYA.js} +1 -1
- package/dist/bundle/{chunk-H46MANPR.js → chunk-4URI6EAV.js} +3 -3
- package/dist/bundle/chunk-4VHK5UBM.js +170 -0
- package/dist/bundle/{chunk-L3MKFI3Y.js → chunk-4VM3UCSO.js} +2 -2
- package/dist/bundle/chunk-5GANGHQI.js +721 -0
- package/dist/bundle/{chunk-AEKWEYIG.js → chunk-6G4VQFVX.js} +19 -19
- package/dist/bundle/{chunk-KLLT572M.js → chunk-6GGMFL7J.js} +3 -3
- package/dist/bundle/{chunk-UYZDH5LK.js → chunk-6LFRZDPV.js} +1 -1
- package/dist/bundle/{chunk-LB5FTCPZ.js → chunk-A2Y2RFNW.js} +75 -10
- package/dist/bundle/{chunk-35AH33VJ.js → chunk-AGZ7SNFF.js} +1 -1
- package/dist/bundle/chunk-CKVWAUBW.js +787 -0
- package/dist/bundle/{chunk-QN423PC6.js → chunk-DYQGEZA2.js} +3 -3
- package/dist/bundle/{chunk-BF73DBAA.js → chunk-DZRP4UCK.js} +13 -13
- package/dist/bundle/{chunk-CZ6ZXDSO.js → chunk-EGQJDEFY.js} +74 -36
- package/dist/bundle/{chunk-BRRHYXUP.js → chunk-EZAX77SM.js} +20 -20
- package/dist/bundle/{chunk-47YNANPZ.js → chunk-FNYWC6A3.js} +2 -2
- package/dist/bundle/chunk-FORAOCZ3.js +334 -0
- package/dist/bundle/{chunk-EW3JFV7J.js → chunk-H77ALM2Y.js} +4 -4
- package/dist/bundle/{chunk-OWAJN74H.js → chunk-HH647UBC.js} +23 -23
- package/dist/bundle/{chunk-74BYHR44.js → chunk-HRDCH2VB.js} +620 -622
- package/dist/bundle/{chunk-SDWYOYGN.js → chunk-I3MS74OF.js} +4 -4
- package/dist/bundle/{chunk-FSMCXQH2.js → chunk-IMQ4CVZJ.js} +2 -2
- package/dist/bundle/{chunk-XN5KH24X.js → chunk-JVGVLRBA.js} +5 -5
- package/dist/bundle/{chunk-MNJ3BMPZ.js → chunk-KF6O4RZO.js} +3 -3
- package/dist/bundle/{chunk-UX76GMQM.js → chunk-KGYK3OI3.js} +6 -6
- package/dist/bundle/{chunk-BZY5W35X.js → chunk-KLI5FKZ2.js} +7 -7
- package/dist/bundle/chunk-KNVTBDTE.js +72 -0
- package/dist/bundle/{chunk-SW7YGW3T.js → chunk-LKTDW5LH.js} +7 -7
- package/dist/bundle/{chunk-UWF3SSRL.js → chunk-LOSYDRJU.js} +28 -8
- package/dist/bundle/{chunk-MT7T5N2N.js → chunk-MDISZMK4.js} +4 -4
- package/dist/bundle/{chunk-CIG4UVP6.js → chunk-MGXYIVVJ.js} +14 -13
- package/dist/bundle/{chunk-2BFXHCZW.js → chunk-NAENYLIO.js} +2 -2
- package/dist/bundle/{chunk-LXAX6AZU.js → chunk-NHD5BOJU.js} +6 -6
- package/dist/bundle/{chunk-IPSLQX64.js → chunk-NI4GCP2T.js} +2 -2
- package/dist/bundle/{chunk-CHNNKHLL.js → chunk-NJVJH5MH.js} +1206 -1544
- package/dist/bundle/{chunk-S6CHYNFE.js → chunk-NWD7AFOR.js} +2 -2
- package/dist/bundle/{chunk-7OYZU5SP.js → chunk-NXERDBEK.js} +4 -4
- package/dist/bundle/{chunk-2L6D54BR.js → chunk-OG5QO5RR.js} +8 -8
- package/dist/bundle/{chunk-2P44S7XK.js → chunk-OJ3BI2U4.js} +26 -24
- package/dist/bundle/chunk-OOYRMTX5.js +374 -0
- package/dist/bundle/{chunk-I3UAD4EI.js → chunk-OX5MCGXL.js} +40 -40
- package/dist/bundle/{chunk-LACMDMDI.js → chunk-PA4GEJXQ.js} +9 -9
- package/dist/bundle/{chunk-RENCSP47.js → chunk-PC3N3LH3.js} +3 -3
- package/dist/bundle/{chunk-UG2QDGAH.js → chunk-PRDKEVUL.js} +1 -1
- package/dist/bundle/{chunk-2X344EUT.js → chunk-PVZMN3UZ.js} +8 -8
- package/dist/bundle/{chunk-GZYICXO4.js → chunk-QFJC6POK.js} +1 -1
- package/dist/bundle/{chunk-OFMYFFEF.js → chunk-QOQF2TX3.js} +487 -1144
- package/dist/bundle/{chunk-BI5P7JWM.js → chunk-QQGPV3QN.js} +2 -2
- package/dist/bundle/{chunk-LXUHYDNE.js → chunk-QXLYLVEC.js} +1 -1
- package/dist/bundle/chunk-QXYNDMA6.js +259 -0
- package/dist/bundle/{chunk-HFFHL7SV.js → chunk-R2GS3GBJ.js} +61 -59
- package/dist/bundle/{chunk-LFBD6RTX.js → chunk-RPNQXWRS.js} +4 -4
- package/dist/bundle/{chunk-6IS4BEN4.js → chunk-SK3N4CK5.js} +4 -4
- package/dist/bundle/{chunk-JCQ47WR4.js → chunk-T2EE5M7O.js} +5 -5
- package/dist/bundle/{chunk-XQXYAOBV.js → chunk-TZJC4AOK.js} +26 -26
- package/dist/bundle/{chunk-LKGJMM6W.js → chunk-V43KEZYA.js} +9 -9
- package/dist/bundle/{chunk-SYUIAMVA.js → chunk-VBVR6JRC.js} +260 -516
- package/dist/bundle/{chunk-QO7BK4WD.js → chunk-VRGEDK4T.js} +8 -8
- package/dist/bundle/{chunk-DI74RP6R.js → chunk-WYGDALB3.js} +31 -85
- package/dist/bundle/{chunk-IBIFX2LK.js → chunk-X6IGETU6.js} +2 -2
- package/dist/bundle/{chunk-6VCQ4CTK.js → chunk-XIF75Z7D.js} +1 -1
- package/dist/bundle/chunk-XWU3A7H6.js +29 -0
- package/dist/bundle/{chunk-TBZLGT7R.js → chunk-YWX5X5RI.js} +19 -117
- package/dist/bundle/{chunk-RXUVXAMM.js → chunk-Z6A6QPPW.js} +1 -1
- package/dist/bundle/{chunk-UAV74EY4.js → chunk-ZGZADWD7.js} +1 -1
- package/dist/bundle/{chunk-MJ7DUSHT.js → chunk-ZZEWQR43.js} +18 -14
- package/dist/bundle/command-contract-PZ7VOOXP.js +39 -0
- package/dist/bundle/{command-server-entry-G2ZHCN5J.js → command-server-entry-NF45UPEV.js} +28 -25
- package/dist/bundle/decode-DUZA3EHC.js +296 -0
- package/dist/bundle/{dispatch-RHIK22OA.js → dispatch-CDJZAMVP.js} +8 -8
- package/dist/bundle/{dist-X5G2IMYG.js → dist-RH7EMC4J.js} +29 -24
- package/dist/bundle/{echarts-UZJ6AREV.js → echarts-GZHZBNRA.js} +2 -2
- package/dist/bundle/{embed-FEXLUH3T.js → embed-VE3CSJN4.js} +6 -6
- package/dist/bundle/{embedder-NHQARKFJ.js → embedder-DSJ77DX5.js} +9 -9
- package/dist/bundle/{failure-7DIA4OET.js → failure-YH6HAGFT.js} +2 -2
- package/dist/bundle/{first-run-PS5NR2QG.js → first-run-3L7HLYTI.js} +12 -12
- package/dist/bundle/first-screen-MY5KID77.js +37 -0
- package/dist/bundle/{instructions-SDDUBGH4.js → instructions-OZK3BLIO.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-GN4FTJX5.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-ELCNUOCE.js → node-OS3VWBUZ.js} +2 -2
- package/dist/bundle/{node-sqlite-2E5MKZMH.js → node-sqlite-RQ623VFA.js} +7 -7
- package/dist/bundle/{oauth-JGPEIY3M.js → oauth-CBPAG734.js} +7 -7
- package/dist/bundle/{open-6DEMCZAB.js → open-H4DGOMBC.js} +5 -5
- package/dist/bundle/{openai-IVKDU5AH.js → openai-EMWRGR54.js} +28 -26
- package/dist/bundle/{process-67DAKAAQ.js → process-3TOIYASI.js} +1 -1
- package/dist/bundle/{program-ESJDQMAJ.js → program-WA6RGAJL.js} +3075 -2024
- package/dist/bundle/{prompt-ZBWOT5KG.js → prompt-22KNCMBI.js} +5 -5
- package/dist/bundle/{recognize-UUBH2DOH.js → recognize-UWD4RSCZ.js} +4 -4
- package/dist/bundle/{remote-UYTNWNOB.js → remote-LJY7MF2E.js} +9 -9
- package/dist/bundle/{rerank-X2633CQN.js → rerank-JJ6KNJFB.js} +7 -7
- package/dist/bundle/{serve-CP7Q4OVW.js → serve-3EPLJYVZ.js} +9 -9
- package/dist/bundle/{server-I7MXRSAG.js → server-5JOFO4V4.js} +52 -44
- package/dist/bundle/server-EOQNS7B7.js +75 -0
- package/dist/bundle/{sqlite-runtime-BX55LI5G.js → sqlite-runtime-MGJA5E27.js} +6 -6
- package/dist/bundle/{state-LLNJQXFH.js → state-UCRDOWOP.js} +6 -6
- package/dist/bundle/{store-K4KU5N75.js → store-265VRRQV.js} +25 -20
- package/dist/bundle/{store-N27XI3VV.js → store-HS272YSA.js} +21 -17
- package/dist/bundle/store-maintenance-command-IKZM5NRP.js +66 -0
- 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/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-NRNQAFFE.js +0 -36
- package/dist/bundle/decode-U6V6D6XH.js +0 -162
- package/dist/bundle/first-screen-C2WTLOG2.js +0 -34
- package/dist/bundle/server-QGTMJ7SF.js +0 -67
- package/dist/bundle/store-maintenance-command-VPAFQCNA.js +0 -58
- /package/dist/bundle/{chunk-BDCC2J2Z.js → chunk-FEBUZHU3.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-NAENYLIO.js";
|
|
6
6
|
import {
|
|
7
7
|
answerOf,
|
|
8
8
|
messengerContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YWX5X5RI.js";
|
|
10
10
|
import {
|
|
11
11
|
FETCHING,
|
|
12
12
|
RULES_VERSION,
|
|
@@ -31,17 +31,14 @@ import {
|
|
|
31
31
|
typedQuery,
|
|
32
32
|
withQuery,
|
|
33
33
|
withTimeLimit
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-HRDCH2VB.js";
|
|
35
35
|
import {
|
|
36
36
|
holdLock,
|
|
37
37
|
lockPath,
|
|
38
38
|
releaseLock,
|
|
39
39
|
servingProfiles,
|
|
40
40
|
takeLock
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import {
|
|
43
|
-
readSecret
|
|
44
|
-
} from "./chunk-QN423PC6.js";
|
|
41
|
+
} from "./chunk-PC3N3LH3.js";
|
|
45
42
|
import {
|
|
46
43
|
Command,
|
|
47
44
|
LOCAL_READ,
|
|
@@ -68,13 +65,16 @@ import {
|
|
|
68
65
|
snakeKeys,
|
|
69
66
|
storeTable,
|
|
70
67
|
withoutProviderRefs
|
|
71
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-VBVR6JRC.js";
|
|
72
69
|
import {
|
|
73
70
|
levelFor
|
|
74
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-LKTDW5LH.js";
|
|
75
72
|
import {
|
|
76
73
|
holdersOf
|
|
77
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-PRDKEVUL.js";
|
|
75
|
+
import {
|
|
76
|
+
readSecret
|
|
77
|
+
} from "./chunk-DYQGEZA2.js";
|
|
78
78
|
import {
|
|
79
79
|
QUICK_HEALTH_CHECKS,
|
|
80
80
|
fts5Tables,
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
lossUnknown,
|
|
83
83
|
storeDamageReport,
|
|
84
84
|
storeHealth
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-6G4VQFVX.js";
|
|
86
86
|
import {
|
|
87
87
|
CORPORA,
|
|
88
88
|
MIGRATIONS,
|
|
@@ -117,44 +117,46 @@ import {
|
|
|
117
117
|
storeClients,
|
|
118
118
|
storeContents,
|
|
119
119
|
vectorIndexCounts
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-NJVJH5MH.js";
|
|
121
121
|
import {
|
|
122
122
|
currentRun,
|
|
123
123
|
readDamageMark,
|
|
124
124
|
readHealthMark,
|
|
125
125
|
readJournalMark,
|
|
126
126
|
recordDeepCheck
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-TZJC4AOK.js";
|
|
128
128
|
import {
|
|
129
129
|
formatLocator,
|
|
130
|
-
parseLocator
|
|
131
|
-
|
|
132
|
-
} from "./chunk-OFMYFFEF.js";
|
|
130
|
+
parseLocator
|
|
131
|
+
} from "./chunk-CKVWAUBW.js";
|
|
133
132
|
import {
|
|
134
133
|
failureKey,
|
|
135
134
|
isStoreDamage
|
|
136
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-4VM3UCSO.js";
|
|
136
|
+
import {
|
|
137
|
+
queryFieldsOf
|
|
138
|
+
} from "./chunk-QOQF2TX3.js";
|
|
137
139
|
import {
|
|
138
140
|
modelAddressAllowed,
|
|
139
141
|
onThisComputer
|
|
140
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-T2EE5M7O.js";
|
|
141
143
|
import {
|
|
142
144
|
readSharedSection,
|
|
143
145
|
sharedConfigPath,
|
|
144
146
|
writeSharedSection
|
|
145
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-KLI5FKZ2.js";
|
|
146
148
|
import {
|
|
147
149
|
storePath
|
|
148
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-NI4GCP2T.js";
|
|
149
151
|
import {
|
|
150
152
|
openCache
|
|
151
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-NHD5BOJU.js";
|
|
152
154
|
import {
|
|
153
155
|
Credentials,
|
|
154
156
|
isMovedRun,
|
|
155
157
|
resolvePaths,
|
|
156
158
|
writeSecurely
|
|
157
|
-
} from "./chunk-
|
|
159
|
+
} from "./chunk-EZAX77SM.js";
|
|
158
160
|
import {
|
|
159
161
|
array,
|
|
160
162
|
boolean,
|
|
@@ -176,10 +178,10 @@ import {
|
|
|
176
178
|
string,
|
|
177
179
|
transform,
|
|
178
180
|
trim
|
|
179
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-LOSYDRJU.js";
|
|
180
182
|
import {
|
|
181
183
|
CliError
|
|
182
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-QQGPV3QN.js";
|
|
183
185
|
import {
|
|
184
186
|
__commonJS,
|
|
185
187
|
__name,
|
|
@@ -5519,11 +5521,11 @@ var require_liquid_node = __commonJS({
|
|
|
5519
5521
|
}
|
|
5520
5522
|
});
|
|
5521
5523
|
|
|
5522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5524
|
+
// 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/cli/messenger/store-maintenance-command.js
|
|
5523
5525
|
import { chmodSync, constants, copyFileSync, existsSync as existsSync10, mkdirSync, realpathSync as realpathSync3, renameSync as renameSync3, rmSync as rmSync3, statfsSync as statfsSync2, statSync as statSync4, writeFileSync as writeFileSync2 } from "node:fs";
|
|
5524
5526
|
import { dirname as dirname3, resolve } from "node:path";
|
|
5525
5527
|
|
|
5526
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5528
|
+
// 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/sealed.js
|
|
5527
5529
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5528
5530
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5529
5531
|
import { Transform } from "node:stream";
|
|
@@ -5630,7 +5632,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5630
5632
|
renameSync(pending, to);
|
|
5631
5633
|
}, "unsealFile");
|
|
5632
5634
|
|
|
5633
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5635
|
+
// 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/compatibility.js
|
|
5634
5636
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5635
5637
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5636
5638
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5654,7 +5656,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5654
5656
|
};
|
|
5655
5657
|
}, "compatibilityOf");
|
|
5656
5658
|
|
|
5657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5659
|
+
// 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/repair.js
|
|
5658
5660
|
import { createHash as createHash2 } from "node:crypto";
|
|
5659
5661
|
var COPY_MARK = "__repair_";
|
|
5660
5662
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5908,19 +5910,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5908
5910
|
return found;
|
|
5909
5911
|
}, "deleteCopy");
|
|
5910
5912
|
|
|
5911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5913
|
+
// 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/cli/store-info.js
|
|
5912
5914
|
import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
|
|
5913
5915
|
|
|
5914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5916
|
+
// 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/cli/store-recover.js
|
|
5915
5917
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5916
5918
|
|
|
5917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5919
|
+
// 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/recover.js
|
|
5918
5920
|
import { execFileSync, spawn } from "node:child_process";
|
|
5919
5921
|
import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
|
|
5920
5922
|
import { basename, dirname, join } from "node:path";
|
|
5921
5923
|
import { Transform as Transform2 } from "node:stream";
|
|
5922
5924
|
|
|
5923
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5925
|
+
// 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/refill.js
|
|
5924
5926
|
var REFILL_MARGIN_MS = 864e5;
|
|
5925
5927
|
var TIME_KEYS = 1e12;
|
|
5926
5928
|
var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
|
|
@@ -6000,7 +6002,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
|
|
|
6000
6002
|
return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
|
|
6001
6003
|
}, "forgetMail");
|
|
6002
6004
|
|
|
6003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6005
|
+
// 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/recover.js
|
|
6004
6006
|
var SQLITE3_MINIMUM = [3, 43, 0];
|
|
6005
6007
|
var STORE_PARTS = ["", "-wal", "-shm"];
|
|
6006
6008
|
var RECOVER_LOCK = ".recover-lock";
|
|
@@ -6528,7 +6530,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
|
|
|
6528
6530
|
}
|
|
6529
6531
|
}, "recoverLocked");
|
|
6530
6532
|
|
|
6531
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6533
|
+
// 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/cli/store-recover.js
|
|
6532
6534
|
var COUNTED = [
|
|
6533
6535
|
"accounts",
|
|
6534
6536
|
"chats",
|
|
@@ -6684,7 +6686,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
|
6684
6686
|
return recover;
|
|
6685
6687
|
}, "storeRecoverCommand");
|
|
6686
6688
|
|
|
6687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6689
|
+
// 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/cli/store-info.js
|
|
6688
6690
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
6689
6691
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
|
|
6690
6692
|
var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
|
|
@@ -6730,7 +6732,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
6730
6732
|
renderAnswer(this, outputFor(this), itemOf(answer));
|
|
6731
6733
|
}), "storeInfoCommand");
|
|
6732
6734
|
|
|
6733
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6735
|
+
// 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/cli/messenger/password.js
|
|
6734
6736
|
var ENCRYPT_OPTION = [
|
|
6735
6737
|
"--encrypt",
|
|
6736
6738
|
"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"
|
|
@@ -6749,7 +6751,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
6749
6751
|
return password;
|
|
6750
6752
|
}, "passwordOf");
|
|
6751
6753
|
|
|
6752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6754
|
+
// 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/replies/rules.js
|
|
6753
6755
|
import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
|
|
6754
6756
|
import { join as join2 } from "node:path";
|
|
6755
6757
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6920,7 +6922,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6920
6922
|
}, "problem");
|
|
6921
6923
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6922
6924
|
|
|
6923
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6925
|
+
// 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/replies/state.js
|
|
6924
6926
|
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
6925
6927
|
import { join as join3 } from "node:path";
|
|
6926
6928
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6973,7 +6975,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6973
6975
|
}, "recordReply");
|
|
6974
6976
|
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");
|
|
6975
6977
|
|
|
6976
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6978
|
+
// 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/replies/decide.js
|
|
6977
6979
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6978
6980
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6979
6981
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -7079,10 +7081,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
7079
7081
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
7080
7082
|
}, "filled");
|
|
7081
7083
|
|
|
7082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7084
|
+
// 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/replies/template.js
|
|
7083
7085
|
var import_liquidjs2 = __toESM(require_liquid_node(), 1);
|
|
7084
7086
|
|
|
7085
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7087
|
+
// 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/render/liquid.js
|
|
7086
7088
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
7087
7089
|
var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
7088
7090
|
const engine = new import_liquidjs.Liquid({
|
|
@@ -7109,7 +7111,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
|
7109
7111
|
return engine;
|
|
7110
7112
|
}, "safeLiquid");
|
|
7111
7113
|
|
|
7112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7114
|
+
// 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/replies/template.js
|
|
7113
7115
|
var TEMPLATE_LIMITS = {
|
|
7114
7116
|
parse: 32768,
|
|
7115
7117
|
renders: 2e3,
|
|
@@ -7248,7 +7250,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
7248
7250
|
}
|
|
7249
7251
|
}, "renderReplyTemplate");
|
|
7250
7252
|
|
|
7251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7253
|
+
// 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/replies/dry-run.js
|
|
7252
7254
|
var DRY_RUN_DAYS = 7;
|
|
7253
7255
|
var PAGE = 500;
|
|
7254
7256
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -7362,7 +7364,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
7362
7364
|
}
|
|
7363
7365
|
}, "storedSince");
|
|
7364
7366
|
|
|
7365
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7367
|
+
// 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/models/ai.js
|
|
7366
7368
|
var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
|
|
7367
7369
|
var DEFAULT_BASE_URL = {
|
|
7368
7370
|
anthropic: "https://api.anthropic.com",
|
|
@@ -7512,7 +7514,7 @@ var checkAi = /* @__PURE__ */ __name(async (deps) => {
|
|
|
7512
7514
|
}
|
|
7513
7515
|
}, "checkAi");
|
|
7514
7516
|
|
|
7515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7517
|
+
// 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/models/purpose.js
|
|
7516
7518
|
var HOSTED = {
|
|
7517
7519
|
openai: "https://api.openai.com/v1",
|
|
7518
7520
|
anthropic: "https://api.anthropic.com"
|
|
@@ -7533,7 +7535,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
|
|
|
7533
7535
|
return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
|
|
7534
7536
|
}, "purposeModel");
|
|
7535
7537
|
|
|
7536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7538
|
+
// 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/replies/consents.js
|
|
7537
7539
|
import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
|
|
7538
7540
|
import { join as join4 } from "node:path";
|
|
7539
7541
|
var shape = strictObject({
|
|
@@ -7558,7 +7560,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
7558
7560
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
7559
7561
|
}, "mayModelReply");
|
|
7560
7562
|
|
|
7561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7563
|
+
// 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/replies/rendering.js
|
|
7562
7564
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
|
|
7563
7565
|
ai: true
|
|
7564
7566
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -7606,7 +7608,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
7606
7608
|
return result2;
|
|
7607
7609
|
}, "replyRenderer");
|
|
7608
7610
|
|
|
7609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7611
|
+
// 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/replies/serve.js
|
|
7610
7612
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
7611
7613
|
var NO_RULES = "no rules";
|
|
7612
7614
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -7699,7 +7701,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
7699
7701
|
return { skip: why };
|
|
7700
7702
|
}, "replyTo");
|
|
7701
7703
|
|
|
7702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7704
|
+
// 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/cli/messenger/serve-catch-up.js
|
|
7703
7705
|
var START_SYNC_DELAY_MS = 3e4;
|
|
7704
7706
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
7705
7707
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -7776,7 +7778,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
|
|
|
7776
7778
|
};
|
|
7777
7779
|
}, "startSync");
|
|
7778
7780
|
|
|
7779
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7781
|
+
// 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/cli/messenger/serve-members.js
|
|
7780
7782
|
var FIRST_FETCH_MS = 6e4;
|
|
7781
7783
|
var DAY_MS = 864e5;
|
|
7782
7784
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -7830,7 +7832,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
|
|
|
7830
7832
|
};
|
|
7831
7833
|
}, "memberFetches");
|
|
7832
7834
|
|
|
7833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7835
|
+
// 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/cli/messenger/serve-notice.js
|
|
7834
7836
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
7835
7837
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
7836
7838
|
if (context.format === "pretty") {
|
|
@@ -7863,7 +7865,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7863
7865
|
return context;
|
|
7864
7866
|
}, "recordDiagnostics");
|
|
7865
7867
|
|
|
7866
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7868
|
+
// 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/cli/messenger/serve-outdated.js
|
|
7867
7869
|
import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
|
|
7868
7870
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
7869
7871
|
var OUTDATED_CHECK_MS = 6e4;
|
|
@@ -7949,7 +7951,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
|
|
|
7949
7951
|
};
|
|
7950
7952
|
}, "watchOutdated");
|
|
7951
7953
|
|
|
7952
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7954
|
+
// 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/cli/messenger/serve-stems.js
|
|
7953
7955
|
var STEMS_EVERY_MS = 3e4;
|
|
7954
7956
|
var STEMS_SLICE_MS = 2e3;
|
|
7955
7957
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -7989,7 +7991,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
7989
7991
|
};
|
|
7990
7992
|
}, "stemFills");
|
|
7991
7993
|
|
|
7992
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7994
|
+
// 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/cli/messenger/message-items.js
|
|
7993
7995
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
7994
7996
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
7995
7997
|
kind: attachment.kind,
|
|
@@ -8085,7 +8087,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
8085
8087
|
locale: messenger.app.locale
|
|
8086
8088
|
}), "viewOf");
|
|
8087
8089
|
|
|
8088
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8090
|
+
// 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/cli/messenger/watch-answers.js
|
|
8089
8091
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
8090
8092
|
value: value.value,
|
|
8091
8093
|
observed_at: value.observedAt,
|
|
@@ -8152,7 +8154,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
8152
8154
|
}
|
|
8153
8155
|
}, "watchEventItem");
|
|
8154
8156
|
|
|
8155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8157
|
+
// 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/cli/messenger/watch-command.js
|
|
8156
8158
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
8157
8159
|
output: { entity: "watch_item" },
|
|
8158
8160
|
effects: REMOTE_READ,
|
|
@@ -8307,7 +8309,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
8307
8309
|
}
|
|
8308
8310
|
}, "describe");
|
|
8309
8311
|
|
|
8310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8312
|
+
// 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/cli/messenger/serve-command.js
|
|
8311
8313
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
8312
8314
|
const command = annotate(new Command("serve"), {
|
|
8313
8315
|
output: { entity: "serve_summary" },
|
|
@@ -8593,7 +8595,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
8593
8595
|
};
|
|
8594
8596
|
}, "tasking");
|
|
8595
8597
|
|
|
8596
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8598
|
+
// 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/cli/messenger/store-tables-command.js
|
|
8597
8599
|
import { existsSync as existsSync9 } from "node:fs";
|
|
8598
8600
|
var PATH = "store tables list";
|
|
8599
8601
|
var STORE_TABLES_QUERY = {
|
|
@@ -8636,7 +8638,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
|
|
|
8636
8638
|
return tables;
|
|
8637
8639
|
}, "storeTablesCommand");
|
|
8638
8640
|
|
|
8639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8641
|
+
// 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/cli/messenger/store-maintenance-command.js
|
|
8640
8642
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
8641
8643
|
var WORD_INDEX = "message_words";
|
|
8642
8644
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -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-LOSYDRJU.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.34.0";
|
|
62
62
|
|
|
63
63
|
// dist/identity.js
|
|
64
64
|
var PACKAGE = "@wirecat/mail-cli";
|
|
@@ -102,9 +102,9 @@ var DESKTOP = {
|
|
|
102
102
|
],
|
|
103
103
|
userHosts: "the mail server you sign in to, your domain's autoconfig file, and each sender domain's registry from IANA's list",
|
|
104
104
|
tagline: "Your mailbox over IMAP, searchable on your computer",
|
|
105
|
-
syncs: "mail
|
|
105
|
+
syncs: "mail",
|
|
106
106
|
signIn: {
|
|
107
|
-
gives: "Lets your agent read,
|
|
107
|
+
gives: "Lets your agent read and search your mail, and sort and send it as far as your settings allow. A Microsoft sign-in may not grant sending.",
|
|
108
108
|
asks: "Your mail address and an app password, or a Microsoft or Google sign-in in the browser."
|
|
109
109
|
}
|
|
110
110
|
};
|
|
@@ -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-Z6A6QPPW.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-EZAX77SM.js";
|
|
14
14
|
import {
|
|
15
15
|
number,
|
|
16
16
|
object,
|
|
17
17
|
optional,
|
|
18
18
|
string
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-LOSYDRJU.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.103.0_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) => {
|
|
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
CliError,
|
|
5
5
|
isCliError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QQGPV3QN.js";
|
|
7
7
|
import {
|
|
8
8
|
__name
|
|
9
9
|
} from "./chunk-ZVVMGPBJ.js";
|
|
10
10
|
|
|
11
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
11
|
+
// 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/http/hosts.js
|
|
12
12
|
var LABEL = "[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?";
|
|
13
13
|
var HOST_PATTERN = new RegExp(`^(?:${LABEL}(?:\\.${LABEL})*|\\*\\.${LABEL}(?:\\.${LABEL})+)$`);
|
|
14
14
|
var hostProblems = /* @__PURE__ */ __name((hosts) => [
|
|
@@ -20,7 +20,7 @@ var hostCovered = /* @__PURE__ */ __name((hostname, hosts) => {
|
|
|
20
20
|
return hosts.some((host) => host.startsWith("*.") ? name.endsWith(host.slice(1)) : name === host);
|
|
21
21
|
}, "hostCovered");
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
23
|
+
// 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/http/fetch.js
|
|
24
24
|
var HOST_FETCH_TIMEOUT_MS = 3e4;
|
|
25
25
|
var REDIRECTS = 5;
|
|
26
26
|
var REDIRECT_STATUSES = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
|
|
@@ -108,7 +108,7 @@ var hostFetch = /* @__PURE__ */ __name((options) => {
|
|
|
108
108
|
};
|
|
109
109
|
}, "hostFetch");
|
|
110
110
|
|
|
111
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
111
|
+
// 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/http/index.js
|
|
112
112
|
var parseRetryAfter = /* @__PURE__ */ __name((header, now) => {
|
|
113
113
|
if (!header)
|
|
114
114
|
return void 0;
|
|
@@ -132,7 +132,7 @@ var parseRateLimitReset = /* @__PURE__ */ __name((header, now) => {
|
|
|
132
132
|
}, "parseRateLimitReset");
|
|
133
133
|
var providerWaitMs = /* @__PURE__ */ __name((headers, now) => parseRetryAfter(headers.get("retry-after"), now) ?? parseRateLimitReset(headers.get("x-ratelimit-reset"), now), "providerWaitMs");
|
|
134
134
|
|
|
135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
135
|
+
// 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/models/endpoint.js
|
|
136
136
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
137
137
|
try {
|
|
138
138
|
const url = new URL(value);
|