@wirecat/mail-cli 0.16.2 → 0.17.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 +93 -0
- package/README.md +7 -4
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-TUDREUUW.js → all-profiles-55AU2Q2N.js} +10 -10
- package/dist/bundle/{anthropic-KQOVSP6C.js → anthropic-I7RI7YPK.js} +6 -6
- package/dist/bundle/{app-server-QK7PKVT7.js → app-server-NY72GTQA.js} +47 -47
- package/dist/bundle/{bun-2NMWL5YB.js → bun-C2R7UPM2.js} +2 -2
- package/dist/bundle/{bun-sqlite-Y4FP6SDX.js → bun-sqlite-RNPHH3KC.js} +5 -5
- package/dist/bundle/{chunk-KJV3BI7S.js → chunk-22IKW3TY.js} +23 -21
- package/dist/bundle/{chunk-B2NDDA2W.js → chunk-22WVQJW3.js} +10 -10
- package/dist/bundle/{chunk-4IIH5PXR.js → chunk-24H2KUGW.js} +28 -28
- package/dist/bundle/{chunk-VP5FL5JQ.js → chunk-2CY44MKY.js} +8 -8
- package/dist/bundle/{chunk-CGH6UH3T.js → chunk-2EVM7GV5.js} +8 -8
- package/dist/bundle/{chunk-GAYW2JRW.js → chunk-2ON2PDHC.js} +10 -10
- package/dist/bundle/{chunk-EBEYU7RW.js → chunk-45JQ72CH.js} +36 -142
- package/dist/bundle/{chunk-QCNK3YUZ.js → chunk-4HTTN4NO.js} +19 -19
- package/dist/bundle/{chunk-6DVPPLAN.js → chunk-6NN5ZX5T.js} +5 -5
- package/dist/bundle/{chunk-CRYWPLJP.js → chunk-A3PKKY24.js} +1 -1
- package/dist/bundle/{chunk-I3K6JG4I.js → chunk-B73I6KLW.js} +14 -60
- package/dist/bundle/{chunk-HVAXTTOT.js → chunk-BD7OK4P5.js} +3 -3
- package/dist/bundle/{chunk-Q4T2HBZP.js → chunk-BPDUVWL2.js} +2 -2
- package/dist/bundle/{chunk-XBIPSSKI.js → chunk-BWCYUXF7.js} +4 -4
- package/dist/bundle/{chunk-3ZJE5TIG.js → chunk-CHC2LWKY.js} +2 -2
- package/dist/bundle/{chunk-VTJ5TMGN.js → chunk-CHVHIDNK.js} +3 -3
- package/dist/bundle/{chunk-XEIGKPYU.js → chunk-DG43I7MC.js} +32 -3
- package/dist/bundle/{chunk-R6SBRHVG.js → chunk-F4P3VDJZ.js} +6 -6
- package/dist/bundle/{chunk-ZS6YKNYS.js → chunk-GBM7FFFI.js} +4 -4
- package/dist/bundle/{chunk-K2OQCQ2N.js → chunk-GYCJQGFO.js} +6 -6
- package/dist/bundle/{chunk-PYX6K527.js → chunk-H32SKDF2.js} +55 -54
- package/dist/bundle/{chunk-KMZRXGTF.js → chunk-HZL42476.js} +1 -1
- package/dist/bundle/{chunk-IJYYD2JU.js → chunk-IPFFPD3M.js} +325 -212
- package/dist/bundle/{chunk-M6O4DH5F.js → chunk-ITMGJX7I.js} +1 -1
- package/dist/bundle/{chunk-OYB3FUYQ.js → chunk-J7XH6CJC.js} +1 -1
- package/dist/bundle/{chunk-ANFIIXBL.js → chunk-JI225TBX.js} +2 -2
- package/dist/bundle/{chunk-YPF6OS37.js → chunk-JSB6BTPT.js} +1 -1
- package/dist/bundle/{chunk-7LMTWOTP.js → chunk-KJKRLI2S.js} +2 -2
- package/dist/bundle/{chunk-FHY664YS.js → chunk-LNC7XMEQ.js} +4 -4
- package/dist/bundle/chunk-M6GLFDWV.js +64 -0
- package/dist/bundle/{chunk-PWTEWT4M.js → chunk-MG4NWXWI.js} +4 -4
- package/dist/bundle/{chunk-X7EBOXBY.js → chunk-MRTSDBTN.js} +12178 -1120
- package/dist/bundle/{chunk-N7DLDEFU.js → chunk-MTFTMPB6.js} +2 -2
- package/dist/bundle/{chunk-DDQXDX4U.js → chunk-OFZDCUUJ.js} +7 -7
- package/dist/bundle/{chunk-4IEDXIUN.js → chunk-OHS5CYZI.js} +240 -64
- package/dist/bundle/{chunk-ZNW4E3SG.js → chunk-QDX2O5BN.js} +3 -3
- package/dist/bundle/{chunk-VD6GZ3W2.js → chunk-QEO7MI3E.js} +2 -2
- package/dist/bundle/{chunk-EZIJPXDZ.js → chunk-QRNL5DIS.js} +6 -6
- package/dist/bundle/{chunk-XAANQN4R.js → chunk-QU5TWVG5.js} +108 -83
- package/dist/bundle/{chunk-HN3EDDVX.js → chunk-R3G33QIV.js} +13 -13
- package/dist/bundle/{chunk-TTOKDZQX.js → chunk-RFFE5ACS.js} +2 -2
- package/dist/bundle/{chunk-5FPQGUJA.js → chunk-RIAHISWA.js} +1 -1
- package/dist/bundle/{chunk-CT2MIWXY.js → chunk-RQGTRB73.js} +3 -3
- package/dist/bundle/{chunk-WKHHCCJE.js → chunk-S4NIDBLI.js} +23 -23
- package/dist/bundle/{chunk-YGJO5VNR.js → chunk-SHEVFBZT.js} +24 -24
- package/dist/bundle/{chunk-DKIAHQRN.js → chunk-SQAAOEGI.js} +9 -9
- package/dist/bundle/{chunk-OLKK5V23.js → chunk-T4RRZILQ.js} +14 -2
- package/dist/bundle/{chunk-KV4267S4.js → chunk-TCYLDGRA.js} +1 -1
- package/dist/bundle/{chunk-POS35G6D.js → chunk-VMXMHC6E.js} +3 -3
- package/dist/bundle/{chunk-FROWEHK7.js → chunk-VXBUDZV3.js} +2 -2
- package/dist/bundle/{chunk-3CVDHJER.js → chunk-WHI3LTAW.js} +1 -1
- package/dist/bundle/{chunk-ARDUJR5Z.js → chunk-WOFGEJ6W.js} +1 -1
- package/dist/bundle/{chunk-G6RG2AZV.js → chunk-XJQJ3ZIY.js} +55 -8
- package/dist/bundle/{chunk-EDJQDR5X.js → chunk-XOJ5E777.js} +4 -4
- package/dist/bundle/{chunk-UBLFUQ7O.js → chunk-YB47AQWE.js} +97 -12
- package/dist/bundle/{chunk-RPEW7E3S.js → chunk-YCOBSDZY.js} +12 -12
- package/dist/bundle/{chunk-EB2IULWB.js → chunk-YHUCNI2W.js} +2 -2
- package/dist/bundle/{chunk-LMN7SYX4.js → chunk-YIJRPPF5.js} +1 -1
- package/dist/bundle/{chunk-MLWN27HF.js → chunk-YO7BLBVE.js} +243 -247
- package/dist/bundle/command-contract-AUPKK5Y4.js +34 -0
- package/dist/bundle/{decode-WCS4KOHV.js → decode-5AYG6LLW.js} +5 -5
- package/dist/bundle/{dispatch-3ILCYZ4Q.js → dispatch-EVLWT6N3.js} +8 -8
- package/dist/bundle/{dist-FL422DTA.js → dist-JRTLLLLG.js} +31 -23
- package/dist/bundle/{echarts-45D6USAX.js → echarts-EFAEE4D2.js} +2 -2
- package/dist/bundle/{embed-4B4ATLCN.js → embed-6SSOYGZQ.js} +6 -6
- package/dist/bundle/{embedder-ASWGJXNV.js → embedder-VFSLGHBO.js} +9 -9
- package/dist/bundle/{failure-UDL5QZRZ.js → failure-RBBZ7F3L.js} +2 -2
- package/dist/bundle/{first-run-5K3UD4BU.js → first-run-PVEHOQOD.js} +11 -11
- package/dist/bundle/first-screen-7ONKJ7QW.js +32 -0
- package/dist/bundle/{instructions-6EFSPC7C.js → instructions-EOLC3GYB.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-PPVOM4SE.js → mcp-JYLZR5LQ.js} +2 -2
- package/dist/bundle/{node-OXC26QXO.js → node-2ZRMQAYF.js} +2 -2
- package/dist/bundle/{node-sqlite-PXHZAG7Y.js → node-sqlite-UKWOBONA.js} +6 -6
- package/dist/bundle/{oauth-YK2QLC7U.js → oauth-HFD46WAY.js} +7 -7
- package/dist/bundle/{open-SABDXZ4B.js → open-2DLCQUC4.js} +5 -5
- package/dist/bundle/{openai-DPURPXEU.js → openai-A7YLLQEE.js} +14 -14
- package/dist/bundle/{process-YWPAOI6G.js → process-I3INVLFQ.js} +1 -1
- package/dist/bundle/{program-GVK7TF2N.js → program-4ZCATQND.js} +3380 -12407
- package/dist/bundle/{prompt-GKVNFGFE.js → prompt-R636OFYK.js} +5 -5
- package/dist/bundle/{recognize-344YDSLX.js → recognize-G4WUSU5I.js} +4 -4
- package/dist/bundle/{remote-53UZUJJU.js → remote-BMXVVYTN.js} +7 -7
- package/dist/bundle/{rerank-PAIRND6R.js → rerank-7W3QEZ3Q.js} +7 -7
- package/dist/bundle/{serve-DZSO7LJK.js → serve-JQCPQYOJ.js} +9 -9
- package/dist/bundle/server-GYVOIGF5.js +64 -0
- package/dist/bundle/{server-EGG3V67I.js → server-IMOCOYXH.js} +39 -39
- package/dist/bundle/{sqlite-runtime-ZQ6F3VYZ.js → sqlite-runtime-H2IEHDRZ.js} +6 -6
- package/dist/bundle/{state-LXPOWLZ5.js → state-J5N3Y4LX.js} +6 -6
- package/dist/bundle/{store-PHT75I6S.js → store-C4TIYTGI.js} +25 -25
- package/dist/bundle/{store-4ZMSK5R5.js → store-U5WIT3P4.js} +15 -15
- package/dist/bundle/store-maintenance-command-WRRZ7Q7B.js +54 -0
- package/dist/commands/account.d.ts.map +1 -1
- package/dist/commands/account.js +56 -64
- package/dist/commands/account.js.map +1 -1
- package/dist/commands/attachments.d.ts.map +1 -1
- package/dist/commands/attachments.js +15 -12
- package/dist/commands/attachments.js.map +1 -1
- package/dist/commands/context.d.ts +4 -0
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +12 -1
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/{mail → commands}/doctor.js +1 -1
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/drafts-send.d.ts.map +1 -1
- package/dist/commands/drafts-send.js +12 -10
- package/dist/commands/drafts-send.js.map +1 -1
- package/dist/commands/drafts.d.ts.map +1 -1
- package/dist/commands/drafts.js +28 -14
- package/dist/commands/drafts.js.map +1 -1
- package/dist/commands/export.d.ts.map +1 -1
- package/dist/commands/export.js +194 -195
- package/dist/commands/export.js.map +1 -1
- package/dist/commands/folders.d.ts.map +1 -1
- package/dist/commands/folders.js +19 -32
- package/dist/commands/folders.js.map +1 -1
- package/dist/commands/import.d.ts.map +1 -1
- package/dist/commands/import.js +10 -5
- package/dist/commands/import.js.map +1 -1
- package/dist/commands/messages.d.ts +0 -21
- package/dist/commands/messages.d.ts.map +1 -1
- package/dist/commands/messages.js +10 -278
- package/dist/commands/messages.js.map +1 -1
- package/dist/commands/organising.d.ts +98 -0
- package/dist/commands/organising.d.ts.map +1 -0
- package/dist/commands/organising.js +231 -0
- package/dist/commands/organising.js.map +1 -0
- package/dist/commands/restore.d.ts +3 -0
- package/dist/commands/restore.d.ts.map +1 -0
- package/dist/commands/restore.js +93 -0
- package/dist/commands/restore.js.map +1 -0
- package/dist/commands/rules.d.ts.map +1 -1
- package/dist/commands/rules.js +3 -2
- package/dist/commands/rules.js.map +1 -1
- package/dist/commands/send.d.ts +14 -3
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +18 -11
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/session-start.d.ts.map +1 -1
- package/dist/commands/session-start.js +14 -4
- package/dist/commands/session-start.js.map +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +10 -4
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +136 -141
- package/dist/commands/sync.js.map +1 -1
- package/dist/commands/tags.d.ts.map +1 -1
- package/dist/commands/tags.js +11 -7
- package/dist/commands/tags.js.map +1 -1
- package/dist/commands/words.d.ts +8 -0
- package/dist/commands/words.d.ts.map +1 -0
- package/dist/commands/words.js +52 -0
- package/dist/commands/words.js.map +1 -0
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +2 -1
- package/dist/discovery.js.map +1 -1
- package/dist/export/journal.d.ts +8 -6
- package/dist/export/journal.d.ts.map +1 -1
- package/dist/export/journal.js +39 -14
- package/dist/export/journal.js.map +1 -1
- package/dist/mail/changes.d.ts +9 -2
- package/dist/mail/changes.d.ts.map +1 -1
- package/dist/mail/changes.js +45 -17
- package/dist/mail/changes.js.map +1 -1
- package/dist/mail/cleanup.d.ts.map +1 -1
- package/dist/mail/cleanup.js +5 -1
- package/dist/mail/cleanup.js.map +1 -1
- package/dist/mail/domain-age.d.ts.map +1 -1
- package/dist/mail/domain-age.js +24 -6
- package/dist/mail/domain-age.js.map +1 -1
- package/dist/mail/drafts.d.ts.map +1 -1
- package/dist/mail/drafts.js +9 -7
- package/dist/mail/drafts.js.map +1 -1
- package/dist/mail/imap/connection.d.ts.map +1 -1
- package/dist/mail/imap/connection.js +8 -9
- package/dist/mail/imap/connection.js.map +1 -1
- package/dist/mail/imap/errors.d.ts.map +1 -1
- package/dist/mail/imap/errors.js +2 -2
- package/dist/mail/imap/errors.js.map +1 -1
- package/dist/mail/imap/read.d.ts.map +1 -1
- package/dist/mail/imap/read.js +8 -5
- package/dist/mail/imap/read.js.map +1 -1
- package/dist/mail/imap/write.d.ts.map +1 -1
- package/dist/mail/imap/write.js +2 -1
- package/dist/mail/imap/write.js.map +1 -1
- package/dist/mail/locate.d.ts +32 -0
- package/dist/mail/locate.d.ts.map +1 -0
- package/dist/mail/locate.js +99 -0
- package/dist/mail/locate.js.map +1 -0
- package/dist/mail/mbox.d.ts.map +1 -1
- package/dist/mail/mbox.js +7 -5
- package/dist/mail/mbox.js.map +1 -1
- package/dist/mail/organise.d.ts +35 -50
- package/dist/mail/organise.d.ts.map +1 -1
- package/dist/mail/organise.js +44 -279
- package/dist/mail/organise.js.map +1 -1
- package/dist/mail/restore.d.ts +22 -0
- package/dist/mail/restore.d.ts.map +1 -0
- package/dist/mail/restore.js +193 -0
- package/dist/mail/restore.js.map +1 -0
- package/dist/mail/rules/apply.d.ts.map +1 -1
- package/dist/mail/rules/apply.js +5 -4
- package/dist/mail/rules/apply.js.map +1 -1
- package/dist/mail/rules/file.d.ts.map +1 -1
- package/dist/mail/rules/file.js +37 -8
- package/dist/mail/rules/file.js.map +1 -1
- package/dist/mail/rules/filters.d.ts.map +1 -1
- package/dist/mail/rules/filters.js +13 -7
- package/dist/mail/rules/filters.js.map +1 -1
- package/dist/mail/rules/query.d.ts.map +1 -1
- package/dist/mail/rules/query.js +7 -7
- package/dist/mail/rules/query.js.map +1 -1
- package/dist/mail/save.js +1 -1
- package/dist/mail/save.js.map +1 -1
- package/dist/mail/send.d.ts +4 -3
- package/dist/mail/send.d.ts.map +1 -1
- package/dist/mail/send.js +8 -8
- package/dist/mail/send.js.map +1 -1
- package/dist/mail/smtp.js +1 -1
- package/dist/mail/smtp.js.map +1 -1
- package/dist/oauth.d.ts +3 -2
- package/dist/oauth.d.ts.map +1 -1
- package/dist/oauth.js +16 -7
- package/dist/oauth.js.map +1 -1
- package/dist/profile.d.ts.map +1 -1
- package/dist/profile.js +3 -2
- package/dist/profile.js.map +1 -1
- package/dist/program.js +1 -1
- package/dist/program.js.map +1 -1
- package/dist/providers.js +3 -3
- package/dist/providers.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +12 -0
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -4
- package/skills/mail-cli/SKILL.md +3 -3
- package/dist/bundle/chunk-GIKNAOER.js +0 -132
- package/dist/bundle/command-contract-GVNLRXWS.js +0 -34
- package/dist/bundle/first-screen-NNX54MYC.js +0 -32
- package/dist/bundle/server-SGGMRV2K.js +0 -64
- package/dist/bundle/store-maintenance-command-C6ONZNRX.js +0 -54
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -3
- package/dist/index.js.map +0 -1
- package/dist/mail/doctor.d.ts.map +0 -1
- package/dist/mail/doctor.js.map +0 -1
- /package/dist/bundle/{chunk-LU3WKZBA.js → chunk-CNMSF5QU.js} +0 -0
- /package/dist/{mail → commands}/doctor.d.ts +0 -0
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
unit
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-F4P3VDJZ.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YHUCNI2W.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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
|
|
14
14
|
import { setTimeout } from "node:timers/promises";
|
|
15
15
|
var OPENAI_URL = "https://api.openai.com/v1";
|
|
16
16
|
var OPENAI_MODELS = {
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
agentOf,
|
|
30
30
|
clientHash,
|
|
31
31
|
currentCaller
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-SQAAOEGI.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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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")
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
singleLine
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YHUCNI2W.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
|
|
11
11
|
var FIRST_PARTY_TOOLS = [
|
|
12
12
|
{ name: "tg", package: "@wirecat/tg-cli" },
|
|
13
13
|
{ name: "max", package: "@wirecat/max-cli" },
|
|
@@ -30,7 +30,7 @@ var PROGRAM_PREFIX = "wcat-";
|
|
|
30
30
|
var DESCRIBE_FLAG = "--wcat-describe";
|
|
31
31
|
var DISPATCH_FLAG = "--wcat-dispatch";
|
|
32
32
|
|
|
33
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
33
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
|
|
34
34
|
var DESCRIBE_FORMAT = 1;
|
|
35
35
|
var describeAnswer = /* @__PURE__ */ __name((tool) => ({
|
|
36
36
|
wcat_describe: DESCRIBE_FORMAT,
|
|
@@ -59,7 +59,7 @@ var parseDescribe = /* @__PURE__ */ __name((text) => {
|
|
|
59
59
|
};
|
|
60
60
|
}, "parseDescribe");
|
|
61
61
|
|
|
62
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
62
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
|
|
63
63
|
import { lstatSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
64
64
|
import { join } from "node:path";
|
|
65
65
|
var SHIM_FORMAT = 1;
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YHUCNI2W.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/models/types.js
|
|
11
11
|
var MAX_MODEL_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
12
12
|
var validateImages = /* @__PURE__ */ __name((images) => {
|
|
13
13
|
if (images === void 0)
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JI225TBX.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YHUCNI2W.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
|
|
16
16
|
import { createInterface } from "node:readline";
|
|
17
17
|
import { Writable } from "node:stream";
|
|
18
18
|
var readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin, output = process.stderr, echo = false, signal: givenSignal } = {}) => {
|
|
@@ -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-OHS5CYZI.js";
|
|
6
6
|
import {
|
|
7
7
|
defineReasons
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XJQJ3ZIY.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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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"],
|
|
@@ -71,6 +71,10 @@ var OTHERS = [
|
|
|
71
71
|
validation("mail-findings.partial", "a cited email is not stored whole yet; cite it once it is"),
|
|
72
72
|
validation("evidence-findings.dedicated-review", "review evidence findings through the dedicated findings command"),
|
|
73
73
|
validation("mail-findings.dedicated-review", "review mail findings through the dedicated findings command"),
|
|
74
|
+
validation("mail-findings.invalid", "a checked mail findings batch would be refused; details.problems names why, finding by finding"),
|
|
75
|
+
validation("mail-findings.key-used", "the findings batch key was already used for different input"),
|
|
76
|
+
validation("finding.unknown-field", "a finding has a field its kind does not take"),
|
|
77
|
+
validation("finding.missing-field", "a finding leaves out a field its kind needs"),
|
|
74
78
|
validation("document.changed", "the document changed while it was read; nothing was saved"),
|
|
75
79
|
["document.not-imported", "not_found", "the document is not imported in this source account"],
|
|
76
80
|
["extraction.invalid-proposals", "invalid_response", "the model's memory proposals could not be used"],
|
|
@@ -78,6 +82,8 @@ var OTHERS = [
|
|
|
78
82
|
validation("file.locked", "another process holds the file's lock"),
|
|
79
83
|
validation("mail.cursor-ahead", "an acknowledge cursor is past the newest stored email"),
|
|
80
84
|
["mail.holder-not-yours", "permission_error", "a run moves only the mark of the holder its schedule names"],
|
|
85
|
+
["mail.no-mark", "not_found", "the holder has no mark in the mailbox yet; its first review starts it"],
|
|
86
|
+
["mail.reset-owner-only", "permission_error", "only the owner moves a holder's mark back"],
|
|
81
87
|
["mail.source-failed", "provider_error", "the mail server refused or did not complete a request"],
|
|
82
88
|
["mail.search-refused", "provider_error", "the mail server refused to search a folder"],
|
|
83
89
|
[
|
|
@@ -173,12 +179,16 @@ var OTHERS = [
|
|
|
173
179
|
validation("input.required", "the command needs an answer and cannot ask for one"),
|
|
174
180
|
validation("input.too-large", "the input is over its size limit"),
|
|
175
181
|
["meeting-project.stale", "configuration_error", "the meeting's project changed meanwhile"],
|
|
182
|
+
validation("fact.not-accepted", "only an accepted fact can be revoked"),
|
|
183
|
+
validation("fact.owner-written", "the owner wrote this fact; it was never proposed, so it cannot be revoked"),
|
|
176
184
|
validation("fact.payment-retired", "a payment is a payments row in store.finance, not a fact"),
|
|
185
|
+
validation("fact.revoke-correction", "an accepted correction cannot be revoked; its superseded fact stays"),
|
|
177
186
|
validation("finance.allocate", "the invoice or payment cannot take an allocation in its state"),
|
|
178
187
|
validation("finance.currency", "the payment and the invoice are in different currencies; nothing is converted"),
|
|
179
188
|
validation("finance.field", "a field of the invoice or payment is not valid"),
|
|
180
189
|
validation("finance.line-amount", "the line's amount is not its quantity times its unit price"),
|
|
181
190
|
validation("finance.lines", "the invoice's lines are not valid"),
|
|
191
|
+
["finance.not-allocated", "not_found", "the payment is not allocated to that invoice"],
|
|
182
192
|
validation("finance.over-invoice", "the allocation would settle more than the invoice's total"),
|
|
183
193
|
validation("finance.over-payment", "the allocation would use more than the payment's amount"),
|
|
184
194
|
["finance.owner-only", "permission_error", "only the owner does this with money"],
|
|
@@ -186,10 +196,12 @@ var OTHERS = [
|
|
|
186
196
|
validation("finance.ref", "the reference names no invoice or payment"),
|
|
187
197
|
validation("finance.status", "the invoice's status does not allow this"),
|
|
188
198
|
validation("finance.total", "the invoice's total is not the sum of its lines"),
|
|
199
|
+
validation("finance.unallocate", "a rejected or deleted payment's allocations are not taken back"),
|
|
189
200
|
validation("record.entity", "the invoice or payment the record stands for was refused"),
|
|
190
201
|
["record.map-owner-only", "permission_error", "only the owner says which entity a source record is"],
|
|
191
202
|
validation("record.map-type", "a record maps only to an entity of its own type"),
|
|
192
203
|
validation("record.mapped", "the record already stands for another entity"),
|
|
204
|
+
validation("record.over-payment", "the record's settles amounts add up to more than the payment"),
|
|
193
205
|
validation("record.not-found", "the store holds no such record to delete"),
|
|
194
206
|
validation("record.invalid", "a field of the record is not the kind the entity needs"),
|
|
195
207
|
validation("record.reference-not-found", "a reference in the record's fields is not in the store"),
|
|
@@ -200,6 +212,21 @@ var OTHERS = [
|
|
|
200
212
|
validation("money.amount", "the amount is not a decimal string in the currency's scale"),
|
|
201
213
|
validation("money.currency", "the currency is not one the store keeps money in"),
|
|
202
214
|
validation("money.quantity", "the quantity is not a decimal above 0"),
|
|
215
|
+
validation("deal.closed", "a won, lost, rejected or deleted deal does not move or close again"),
|
|
216
|
+
validation("deal.field", "a field of the deal is not valid"),
|
|
217
|
+
["deal.owner-only", "permission_error", "only the owner moves or closes a deal, or makes a pipeline"],
|
|
218
|
+
validation("deal.ref", "the reference names no deal"),
|
|
219
|
+
validation("deal.stage", "no stage of that name, or a stage name more than one pipeline has"),
|
|
220
|
+
validation("pipeline.duplicate", "a pipeline of that name is already stored"),
|
|
221
|
+
validation("pipeline.field", "a pipeline needs a name and at least one stage, each named once"),
|
|
222
|
+
["pipeline.not-found", "not_found", "no stored pipeline has that name"],
|
|
223
|
+
validation("order.duplicate", "the shop's order with this number is already stored; change its status instead"),
|
|
224
|
+
validation("order.proposed", "the shop's order with this number already waits for the owner in a findings batch"),
|
|
225
|
+
validation("order.field", "a field of the order is not valid"),
|
|
226
|
+
validation("order.source-url", "an order's source URL is not an http or https address"),
|
|
227
|
+
["order.not-found", "not_found", "no stored order of that shop has that number"],
|
|
228
|
+
validation("order.ref", "the reference names no order, or a shop's number names more than one"),
|
|
229
|
+
validation("order.status", "a rejected or deleted order's status does not change"),
|
|
203
230
|
["model.not-downloaded", "not_found", "the model is not downloaded on this machine"],
|
|
204
231
|
["person.no-owner", "not_found", "no person is marked as the owner in the store"],
|
|
205
232
|
["transcription.no-key", "authentication_error", "no OpenAI key is set for transcription"],
|
|
@@ -244,6 +271,8 @@ var OTHERS = [
|
|
|
244
271
|
validation("tag.invalid", "the tag is not valid"),
|
|
245
272
|
["reactions.list-hidden", "permission_error", "the chat does not let its members see who reacted"],
|
|
246
273
|
["reactions.broadcast", "permission_error", "a channel does not show who reacted to its posts"],
|
|
274
|
+
validation("task.external-id", "an external id is <service>:<id>, such as avito:4512345678"),
|
|
275
|
+
validation("task.source-url", "a task's source URL is not an http or https address"),
|
|
247
276
|
validation("task.category-unknown", "the category is not in the task category list"),
|
|
248
277
|
validation("task.claimed", "someone else holds the task"),
|
|
249
278
|
validation("task.closed", "the task is already closed"),
|
|
@@ -5,23 +5,23 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GBM7FFFI.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YHUCNI2W.js";
|
|
15
15
|
import {
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
20
20
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
21
21
|
import { availableParallelism } from "node:os";
|
|
22
22
|
import { basename, join as join2 } from "node:path";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
25
25
|
import { createHash } from "node:crypto";
|
|
26
26
|
import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
27
27
|
import { join } from "node:path";
|
|
@@ -678,7 +678,7 @@ var Unzip = /* @__PURE__ */ (function() {
|
|
|
678
678
|
return Unzip2;
|
|
679
679
|
})();
|
|
680
680
|
|
|
681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
682
682
|
var ONNX_RUNTIME_VERSION = "1.30.0";
|
|
683
683
|
var release = /* @__PURE__ */ __name((name, sha256, bytes) => ({
|
|
684
684
|
name,
|
|
@@ -858,7 +858,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
|
|
|
858
858
|
return { ort, session: await ort.InferenceSession.create(bytes, options) };
|
|
859
859
|
}, "openSession");
|
|
860
860
|
|
|
861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
862
862
|
var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
|
|
863
863
|
var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
|
|
864
864
|
var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
wirecatDirectory
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RFFE5ACS.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YHUCNI2W.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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/speech/models.js
|
|
14
14
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
15
15
|
var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
|
|
16
16
|
var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
|
|
@@ -137,7 +137,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
|
|
|
137
137
|
return model;
|
|
138
138
|
}, "speechModel");
|
|
139
139
|
|
|
140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/speech/install.js
|
|
141
141
|
import { createHash, randomUUID } from "node:crypto";
|
|
142
142
|
import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
|
|
143
143
|
import { rename, rm } from "node:fs/promises";
|
|
@@ -2,23 +2,23 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
storePath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RFFE5ACS.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4HTTN4NO.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError,
|
|
11
11
|
singleLine
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YHUCNI2W.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
18
18
|
import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname, join, resolve } from "node:path";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
22
22
|
var DEFAULT_TASK_CATEGORIES = [
|
|
23
23
|
{
|
|
24
24
|
name: "taxes",
|
|
@@ -773,7 +773,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
773
773
|
}
|
|
774
774
|
}, "storedTaskCategories");
|
|
775
775
|
|
|
776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
777
777
|
var SECTION = "task_categories";
|
|
778
778
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
779
779
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|