@wirecat/mail-cli 0.13.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 +67 -0
- package/README.md +9 -4
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-EEOMFTKE.js → all-profiles-PKXL5TKP.js} +10 -9
- package/dist/bundle/{anthropic-FPSVNB3F.js → anthropic-DFDNZU7C.js} +6 -6
- package/dist/bundle/{app-server-3T6UVR7B.js → app-server-WOZAOCKX.js} +47 -46
- package/dist/bundle/{bun-MSNAKMDK.js → bun-DKZAL6ML.js} +2 -2
- package/dist/bundle/{bun-sqlite-GIBBI5DV.js → bun-sqlite-2A7FS5GD.js} +5 -5
- package/dist/bundle/{chunk-7D7AKYQ2.js → chunk-2A4Z3WOC.js} +3132 -1229
- package/dist/bundle/{chunk-AXWTELO4.js → chunk-2BHY4GFP.js} +2 -2
- package/dist/bundle/{chunk-XLCFCOT4.js → chunk-3MKCLPQV.js} +14 -14
- package/dist/bundle/{chunk-3BC2XSNX.js → chunk-4DGOI6JB.js} +68 -34
- package/dist/bundle/chunk-4HVY3QPF.js +91 -0
- package/dist/bundle/{chunk-NHVOJHHD.js → chunk-4TPNRJER.js} +7 -7
- package/dist/bundle/{chunk-6O6CM2ML.js → chunk-4XRIALMN.js} +2 -2
- package/dist/bundle/{chunk-VSHQITKC.js → chunk-4YECCESG.js} +2 -2
- package/dist/bundle/{chunk-YMNF4QLY.js → chunk-5C3L2QER.js} +26 -25
- package/dist/bundle/{chunk-XPBRNJ2V.js → chunk-5W7D5H2R.js} +1 -1
- package/dist/bundle/{chunk-HANGU5HI.js → chunk-6AYJDBHT.js} +6 -6
- package/dist/bundle/{chunk-CSJYZEFR.js → chunk-6Z7VBDFR.js} +2 -3
- package/dist/bundle/{chunk-BZBNBPCR.js → chunk-73SQQXSU.js} +10 -10
- package/dist/bundle/{chunk-H5XCD6OG.js → chunk-A6O3WHBD.js} +3 -3
- package/dist/bundle/{chunk-6KDFUPBT.js → chunk-BIKMEGC7.js} +8 -8
- package/dist/bundle/{chunk-OHDDGTCH.js → chunk-BKF7XIJ5.js} +10 -10
- package/dist/bundle/{chunk-GQGJV53E.js → chunk-BY5S3JEZ.js} +47 -47
- package/dist/bundle/{chunk-CCHHEMPM.js → chunk-EB2IULWB.js} +3 -2
- package/dist/bundle/{chunk-7FCPLSSM.js → chunk-EDJQDR5X.js} +4 -4
- package/dist/bundle/{chunk-2Y3RKROM.js → chunk-ENZTLYTS.js} +53 -8
- package/dist/bundle/{chunk-VMLGER4M.js → chunk-FEWWBU2I.js} +295 -177
- package/dist/bundle/{chunk-M7JREJFC.js → chunk-G6RG2AZV.js} +27 -8
- package/dist/bundle/{chunk-V25TCQ3Z.js → chunk-HGOYQUT7.js} +1 -1
- package/dist/bundle/{chunk-ZSS22YHM.js → chunk-IA6U76ZY.js} +2 -2
- package/dist/bundle/{chunk-UFWCJUGA.js → chunk-JQTIB4WJ.js} +7 -7
- package/dist/bundle/{chunk-SOCALLW5.js → chunk-K4N5UG64.js} +6 -6
- package/dist/bundle/{chunk-URC4ATBD.js → chunk-KJYCA6IC.js} +4 -4
- package/dist/bundle/{chunk-ILHTNOIV.js → chunk-KV4267S4.js} +1 -1
- package/dist/bundle/{chunk-3QEYHTCQ.js → chunk-LARQTWIL.js} +1 -1
- package/dist/bundle/{chunk-YHSXNUFQ.js → chunk-LRBAQSU3.js} +3 -3
- package/dist/bundle/{chunk-JYZCISN7.js → chunk-M5DF6QNT.js} +13 -13
- package/dist/bundle/{chunk-7L26RKOS.js → chunk-M5VHTDJZ.js} +17 -17
- package/dist/bundle/{chunk-7CSK47S2.js → chunk-NDZK466U.js} +4 -4
- package/dist/bundle/{chunk-FVZST7ZH.js → chunk-NNLYS4IR.js} +12 -89
- package/dist/bundle/{chunk-GIZILLRJ.js → chunk-OJEIUOMW.js} +12 -12
- package/dist/bundle/chunk-OZVGHHFZ.js +35 -0
- package/dist/bundle/{chunk-MBWVZINS.js → chunk-P4SV3VKP.js} +2 -2
- package/dist/bundle/{chunk-OHFSAYZG.js → chunk-PI5P457W.js} +4 -4
- package/dist/bundle/{chunk-TBG3FRS6.js → chunk-PXLVTHMH.js} +3 -3
- package/dist/bundle/{chunk-Y2O3DACO.js → chunk-QCNK3YUZ.js} +95 -36
- package/dist/bundle/{chunk-3CBK26T2.js → chunk-QJQV6KG2.js} +2 -2
- package/dist/bundle/{chunk-UGXTDYUY.js → chunk-QSGT4ZH4.js} +1 -1
- package/dist/bundle/{chunk-VNBQHV5H.js → chunk-QTD3BVS5.js} +6 -6
- package/dist/bundle/{chunk-UUBAWUUI.js → chunk-R6UG66IM.js} +807 -464
- package/dist/bundle/{chunk-XV66LQXV.js → chunk-RBNL3DBQ.js} +3 -3
- package/dist/bundle/{chunk-EFA7FRFJ.js → chunk-RFDP45QO.js} +3 -3
- package/dist/bundle/{chunk-5XTJUQZ5.js → chunk-SPQY3PJX.js} +542 -235
- package/dist/bundle/{chunk-CJPEL2N5.js → chunk-SRHKHE4C.js} +47 -28
- package/dist/bundle/{chunk-WBI7J5B7.js → chunk-U3VX3UUC.js} +5 -5
- package/dist/bundle/{chunk-ZXLJ5EKZ.js → chunk-VQQFOA4O.js} +8 -8
- package/dist/bundle/{chunk-LO66SLGD.js → chunk-WIU733D2.js} +1 -1
- package/dist/bundle/{chunk-JBLZ5XQG.js → chunk-WOV3ABQR.js} +4 -4
- package/dist/bundle/{chunk-H3XWM2VA.js → chunk-WTDYN3TQ.js} +28 -28
- package/dist/bundle/{chunk-EW3XTUPB.js → chunk-XBIPSSKI.js} +4 -4
- package/dist/bundle/{chunk-VD5UJUNR.js → chunk-XGNC5OJG.js} +1 -1
- package/dist/bundle/{chunk-VNXCWZDW.js → chunk-XKUAEYJV.js} +249 -8
- package/dist/bundle/{chunk-PQLBPYJR.js → chunk-YPF6OS37.js} +1 -1
- package/dist/bundle/{chunk-H6Y2A4JA.js → chunk-YRHXVXLQ.js} +2 -2
- package/dist/bundle/{chunk-IGSHWMWC.js → chunk-YWIU4HOT.js} +1 -1
- package/dist/bundle/command-contract-4E4NYRR7.js +34 -0
- package/dist/bundle/{decode-YRTMNHC6.js → decode-LX4FPSI7.js} +5 -5
- package/dist/bundle/{dispatch-BCS2RDF4.js → dispatch-3ILCYZ4Q.js} +8 -8
- package/dist/bundle/{dist-NOBSXRL2.js → dist-HQIZDYNQ.js} +42 -13
- package/dist/bundle/{echarts-5UKZVIF6.js → echarts-BGBPRGR5.js} +2 -2
- package/dist/bundle/{embed-G62XY6BJ.js → embed-ASAE3H5I.js} +6 -6
- package/dist/bundle/{embedder-SCHGLA74.js → embedder-QYDZRKBX.js} +9 -9
- package/dist/bundle/{failure-N5S6ZS62.js → failure-UDL5QZRZ.js} +2 -2
- package/dist/bundle/{first-run-DPF2BBQN.js → first-run-EFNNGFCB.js} +11 -11
- package/dist/bundle/first-screen-XHM3TT6G.js +32 -0
- package/dist/bundle/{instructions-7RP5OKLE.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-ENCKD6SS.js → node-IB246NCQ.js} +2 -2
- package/dist/bundle/{node-sqlite-4ICXMPYY.js → node-sqlite-UROXM4VR.js} +6 -6
- package/dist/bundle/{oauth-CX2WYMGN.js → oauth-VSCKHS4T.js} +7 -7
- package/dist/bundle/{open-HQZYHMVE.js → open-R4LVB63T.js} +5 -5
- package/dist/bundle/{openai-3ONJIA3F.js → openai-MKCEOFKL.js} +14 -14
- package/dist/bundle/{process-OK3HRPMD.js → process-SWPJGPQC.js} +1 -1
- package/dist/bundle/{program-FLKUE6LL.js → program-CJ2YDRUY.js} +11741 -10648
- package/dist/bundle/{prompt-ZWKUQ42Y.js → prompt-TWWJ5VAM.js} +5 -5
- package/dist/bundle/{recognize-PHDYO6DC.js → recognize-XMO5ETQU.js} +4 -4
- package/dist/bundle/{remote-4CX7GFMU.js → remote-N6VAWJWE.js} +7 -7
- package/dist/bundle/{rerank-ZCZTGXDQ.js → rerank-XNAMC6FH.js} +7 -7
- package/dist/bundle/{serve-3LBS7CPR.js → serve-IJ32WEBH.js} +9 -9
- package/dist/bundle/server-CRVR4L2E.js +64 -0
- package/dist/bundle/{server-2BKI2OQP.js → server-KEYSE5OL.js} +39 -38
- package/dist/bundle/{sqlite-runtime-J5T7SR5W.js → sqlite-runtime-NFBRN7OF.js} +6 -6
- package/dist/bundle/{state-TIRNYVEL.js → state-7WPJEW2Z.js} +6 -6
- package/dist/bundle/{store-F7ZXMIAP.js → store-KHVHOGQR.js} +27 -18
- package/dist/bundle/{store-NGE2E7KZ.js → store-PKQCNACC.js} +15 -14
- 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 +11 -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/chunk-72CGQMAZ.js +0 -18
- package/dist/bundle/command-contract-6QSZ5QHQ.js +0 -33
- package/dist/bundle/first-screen-4MRKF6RQ.js +0 -31
- package/dist/bundle/server-X5F7VD2E.js +0 -63
- package/dist/bundle/store-maintenance-command-QZV76KAH.js +0 -53
- /package/dist/bundle/{chunk-NUN6OGOV.js → chunk-LU3WKZBA.js} +0 -0
|
@@ -3,16 +3,16 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
formatMeetingReference,
|
|
5
5
|
parseMeetingReference
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FEWWBU2I.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError,
|
|
9
9
|
singleLine
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EB2IULWB.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.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
16
16
|
var SCHEME = "msg:";
|
|
17
17
|
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
|
|
18
18
|
var isLocator = /* @__PURE__ */ __name((reference) => reference.trim().startsWith(SCHEME), "isLocator");
|
|
@@ -26,7 +26,7 @@ var parseLocator = /* @__PURE__ */ __name((reference) => {
|
|
|
26
26
|
return { provider, account, chat, message };
|
|
27
27
|
}, "parseLocator");
|
|
28
28
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// 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/domain/references.js
|
|
30
30
|
var SIMPLE_REFERENCES = [
|
|
31
31
|
"note",
|
|
32
32
|
"document",
|
|
@@ -38,6 +38,8 @@ var SIMPLE_REFERENCES = [
|
|
|
38
38
|
"fact",
|
|
39
39
|
"bot",
|
|
40
40
|
"event",
|
|
41
|
+
"invoice",
|
|
42
|
+
"payment",
|
|
41
43
|
"entity"
|
|
42
44
|
];
|
|
43
45
|
var malformed = /* @__PURE__ */ __name((text, shape) => new CliError("validation_error", `"${singleLine(text)}" is not a reference \u2014 expected ${shape}`, {
|
|
@@ -171,7 +173,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text) => {
|
|
|
171
173
|
return match !== null && byPrefix.has(match[1]);
|
|
172
174
|
}, "looksLikeReference");
|
|
173
175
|
|
|
174
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
176
|
+
// 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/domain/providers.js
|
|
175
177
|
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events"];
|
|
176
178
|
var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
|
|
177
179
|
var PROVIDERS = [
|
|
@@ -290,7 +292,7 @@ var providerNamed = /* @__PURE__ */ __name((word) => {
|
|
|
290
292
|
var kindIn = /* @__PURE__ */ __name((provider) => isFolderProvider(provider) ? "notes" : registry.find(({ name }) => name === provider)?.kind, "kindIn");
|
|
291
293
|
var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
|
|
292
294
|
|
|
293
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
295
|
+
// 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/domain/counters.js
|
|
294
296
|
var COUNTER_FIELDS = ["views", "reactions", "comments"];
|
|
295
297
|
var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
|
|
296
298
|
var counterValue = /* @__PURE__ */ __name((message, field) => {
|
|
@@ -327,7 +329,121 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
|
|
|
327
329
|
return states.some((one) => one.freshness === "stale") ? "stale" : "fresh";
|
|
328
330
|
}, "counterFreshness");
|
|
329
331
|
|
|
330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
332
|
+
// 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/domain/money.js
|
|
333
|
+
var CURRENCY_SCALES = {
|
|
334
|
+
AED: 2,
|
|
335
|
+
AMD: 2,
|
|
336
|
+
AUD: 2,
|
|
337
|
+
BHD: 3,
|
|
338
|
+
BYN: 2,
|
|
339
|
+
CAD: 2,
|
|
340
|
+
CHF: 2,
|
|
341
|
+
CLP: 0,
|
|
342
|
+
CNY: 2,
|
|
343
|
+
CZK: 2,
|
|
344
|
+
DKK: 2,
|
|
345
|
+
EUR: 2,
|
|
346
|
+
GBP: 2,
|
|
347
|
+
GEL: 2,
|
|
348
|
+
HUF: 2,
|
|
349
|
+
ILS: 2,
|
|
350
|
+
INR: 2,
|
|
351
|
+
ISK: 0,
|
|
352
|
+
JPY: 0,
|
|
353
|
+
KGS: 2,
|
|
354
|
+
KRW: 0,
|
|
355
|
+
KWD: 3,
|
|
356
|
+
KZT: 2,
|
|
357
|
+
NOK: 2,
|
|
358
|
+
PLN: 2,
|
|
359
|
+
RSD: 2,
|
|
360
|
+
RUB: 2,
|
|
361
|
+
SEK: 2,
|
|
362
|
+
THB: 2,
|
|
363
|
+
TRY: 2,
|
|
364
|
+
UAH: 2,
|
|
365
|
+
USD: 2,
|
|
366
|
+
UZS: 2,
|
|
367
|
+
VND: 0
|
|
368
|
+
};
|
|
369
|
+
var refuse = /* @__PURE__ */ __name((message, reason) => {
|
|
370
|
+
throw new CliError("validation_error", message, { reason });
|
|
371
|
+
}, "refuse");
|
|
372
|
+
var DECIMAL = /^(\d{1,15})(?:\.(\d+))?$/;
|
|
373
|
+
var parseDecimal = /* @__PURE__ */ __name((text, scale) => {
|
|
374
|
+
const match = DECIMAL.exec(text.trim());
|
|
375
|
+
if (!match || (match[2] ?? "").length > scale)
|
|
376
|
+
return void 0;
|
|
377
|
+
return BigInt(`${match[1]}${(match[2] ?? "").padEnd(scale, "0")}`);
|
|
378
|
+
}, "parseDecimal");
|
|
379
|
+
var formatDecimal = /* @__PURE__ */ __name((units, scale) => {
|
|
380
|
+
const digits = BigInt(units).toString().padStart(scale + 1, "0");
|
|
381
|
+
return scale === 0 ? digits : `${digits.slice(0, -scale)}.${digits.slice(-scale)}`;
|
|
382
|
+
}, "formatDecimal");
|
|
383
|
+
var groupDigits = /* @__PURE__ */ __name((decimal) => {
|
|
384
|
+
const [whole = "0", fraction] = decimal.split(".");
|
|
385
|
+
const grouped = whole.replace(/\B(?=(\d{3})+(?!\d))/g, " ");
|
|
386
|
+
return fraction === void 0 ? grouped : `${grouped}.${fraction}`;
|
|
387
|
+
}, "groupDigits");
|
|
388
|
+
var currencyOf = /* @__PURE__ */ __name((text) => {
|
|
389
|
+
const code = typeof text === "string" ? text.trim().toUpperCase() : "";
|
|
390
|
+
if (CURRENCY_SCALES[code] === void 0)
|
|
391
|
+
return refuse(`${typeof text === "string" && text.trim() ? text.trim() : "an empty currency"} is not a currency the store keeps; use one of ${Object.keys(CURRENCY_SCALES).join(", ")}`, "money.currency");
|
|
392
|
+
return code;
|
|
393
|
+
}, "currencyOf");
|
|
394
|
+
var scaleOf = /* @__PURE__ */ __name((currency) => CURRENCY_SCALES[currencyOf(currency)], "scaleOf");
|
|
395
|
+
var minorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
|
|
396
|
+
const scale = scaleOf(currency);
|
|
397
|
+
const units = typeof amount === "string" ? parseDecimal(amount, scale) : void 0;
|
|
398
|
+
if (units === void 0 || units > BigInt(Number.MAX_SAFE_INTEGER))
|
|
399
|
+
return refuse(`${what} is a decimal string with at most ${scale} decimal${scale === 1 ? "" : "s"} for ${currency}, such as "${formatDecimal(5e3 * 10 ** scale, scale)}"`, "money.amount");
|
|
400
|
+
return Number(units);
|
|
401
|
+
}, "minorUnits");
|
|
402
|
+
var moneyOf = /* @__PURE__ */ __name((units, currency) => ({
|
|
403
|
+
amount: formatDecimal(units, scaleOf(currency)),
|
|
404
|
+
currency
|
|
405
|
+
}), "moneyOf");
|
|
406
|
+
var moneyLabel = /* @__PURE__ */ __name((units, currency) => `${groupDigits(formatDecimal(units, scaleOf(currency)))} ${currency}`, "moneyLabel");
|
|
407
|
+
var QUANTITY_SCALE = 3;
|
|
408
|
+
var quantityOf = /* @__PURE__ */ __name((text) => {
|
|
409
|
+
const thousandths = typeof text === "string" ? parseDecimal(text, QUANTITY_SCALE) : void 0;
|
|
410
|
+
if (thousandths === void 0 || thousandths === 0n)
|
|
411
|
+
return refuse('a quantity is a decimal string above 0 with at most 3 decimals, such as "1.5"', "money.quantity");
|
|
412
|
+
const plain = formatDecimal(thousandths, QUANTITY_SCALE).replace(/\.?0+$/, "");
|
|
413
|
+
return { text: plain, thousandths };
|
|
414
|
+
}, "quantityOf");
|
|
415
|
+
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
416
|
+
|
|
417
|
+
// 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/domain/finance.js
|
|
418
|
+
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
419
|
+
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
420
|
+
var MONEY_DIRECTIONS = ["in", "out"];
|
|
421
|
+
var FINANCE_REVIEWS = ["proposed", "confirmed", "rejected"];
|
|
422
|
+
var settledStatus = /* @__PURE__ */ __name((current, total, paid) => {
|
|
423
|
+
if (current === "draft" || current === "void")
|
|
424
|
+
return current;
|
|
425
|
+
if (paid <= 0)
|
|
426
|
+
return "issued";
|
|
427
|
+
return paid < total ? "partly_paid" : "paid";
|
|
428
|
+
}, "settledStatus");
|
|
429
|
+
var dayMonth = /* @__PURE__ */ __name((date) => date === null ? null : `${date.slice(8, 10)}.${date.slice(5, 7)}`, "dayMonth");
|
|
430
|
+
var notes = /* @__PURE__ */ __name((...words) => {
|
|
431
|
+
const kept = words.filter((word) => word !== null);
|
|
432
|
+
return kept.length === 0 ? "" : ` (${kept.join(", ")})`;
|
|
433
|
+
}, "notes");
|
|
434
|
+
var invoiceLine = /* @__PURE__ */ __name((invoice) => {
|
|
435
|
+
const party = invoice.counterpartyName === null ? "" : `${invoice.direction === "receivable" ? " to" : " from"} ${invoice.counterpartyName}`;
|
|
436
|
+
const due = invoice.dueDate === null ? "" : `, due ${dayMonth(invoice.dueDate)}`;
|
|
437
|
+
return `${invoice.number ?? `#${invoice.id}`} \xB7 ${moneyLabel(invoice.total, invoice.currency)}${party}${due}` + notes(invoice.status.replace("_", " "), invoice.review === "confirmed" ? null : invoice.review);
|
|
438
|
+
}, "invoiceLine");
|
|
439
|
+
var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
440
|
+
const party = payment.partyName === null ? "" : `${payment.direction === "in" ? " from" : " to"} ${payment.partyName}`;
|
|
441
|
+
return `${moneyLabel(payment.amount, payment.currency)}${party}, ${dayMonth(payment.date)}` + notes(payment.review === "confirmed" ? null : payment.review);
|
|
442
|
+
}, "paymentLine");
|
|
443
|
+
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
444
|
+
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
445
|
+
|
|
446
|
+
// 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/domain/rankings-options.js
|
|
331
447
|
var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
|
|
332
448
|
var AUTHOR_MEASURES = [
|
|
333
449
|
"messages",
|
|
@@ -467,6 +583,105 @@ var withoutUrls = /* @__PURE__ */ __name((text) => text.replace(/\S+/gu, (token)
|
|
|
467
583
|
var rankingWords = /* @__PURE__ */ __name((text) => withoutUrls(text).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
|
|
468
584
|
var rankingQuestion = /* @__PURE__ */ __name((text) => withoutUrls(text).includes("?"), "rankingQuestion");
|
|
469
585
|
|
|
586
|
+
// 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/domain/records.js
|
|
587
|
+
import { createHash } from "node:crypto";
|
|
588
|
+
var RECORDS_SCHEMA_VERSION = 1;
|
|
589
|
+
var RECORD_OPERATIONS = ["upsert", "delete"];
|
|
590
|
+
var RECORD_ENTITY_TYPES = ["invoice", "payment", "person", "organization", "project"];
|
|
591
|
+
var WORD2 = "^[a-z0-9][a-z0-9_-]{0,62}$";
|
|
592
|
+
var TYPE = "^(invoice|payment|person|organization|project|custom:[a-z0-9][a-z0-9_-]{0,62})$";
|
|
593
|
+
var MAX_ID = 512;
|
|
594
|
+
var MAX_RELATIONS = 100;
|
|
595
|
+
var RECORDS_ENVELOPE_SCHEMA = {
|
|
596
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
597
|
+
title: "WireCat records envelope, version 1",
|
|
598
|
+
description: "Records one source sends to the store. JSONL is the same model: the first line holds schema_version and source, each further line one record.",
|
|
599
|
+
type: "object",
|
|
600
|
+
required: ["schema_version", "source", "records"],
|
|
601
|
+
additionalProperties: false,
|
|
602
|
+
properties: {
|
|
603
|
+
schema_version: { const: RECORDS_SCHEMA_VERSION },
|
|
604
|
+
source: { $ref: "#/$defs/source" },
|
|
605
|
+
records: { type: "array", items: { $ref: "#/$defs/record" } }
|
|
606
|
+
},
|
|
607
|
+
$defs: {
|
|
608
|
+
source: {
|
|
609
|
+
type: "object",
|
|
610
|
+
required: ["provider", "account", "batch_id"],
|
|
611
|
+
additionalProperties: false,
|
|
612
|
+
properties: {
|
|
613
|
+
provider: { type: "string", pattern: WORD2, description: "The system the records come from" },
|
|
614
|
+
account: { type: "string", minLength: 1, maxLength: MAX_ID, description: "The account in that system" },
|
|
615
|
+
batch_id: { type: "string", minLength: 1, maxLength: MAX_ID, description: "This import, for the receipt" }
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
record: {
|
|
619
|
+
type: "object",
|
|
620
|
+
required: ["key", "type", "external_id", "operation"],
|
|
621
|
+
additionalProperties: false,
|
|
622
|
+
properties: {
|
|
623
|
+
key: { type: "string", minLength: 1, maxLength: MAX_ID },
|
|
624
|
+
type: { type: "string", pattern: TYPE },
|
|
625
|
+
external_id: { type: "string", minLength: 1, maxLength: MAX_ID },
|
|
626
|
+
operation: { enum: [...RECORD_OPERATIONS] },
|
|
627
|
+
fields: {
|
|
628
|
+
type: "object",
|
|
629
|
+
description: "What the source says, as data: never secrets, never instructions"
|
|
630
|
+
},
|
|
631
|
+
revision: { type: "integer", minimum: 0, maximum: Number.MAX_SAFE_INTEGER },
|
|
632
|
+
relations: { type: "array", maxItems: MAX_RELATIONS, items: { $ref: "#/$defs/relation" } }
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
relation: {
|
|
636
|
+
type: "object",
|
|
637
|
+
required: ["role", "type", "external_id"],
|
|
638
|
+
additionalProperties: false,
|
|
639
|
+
properties: {
|
|
640
|
+
role: { type: "string", pattern: WORD2 },
|
|
641
|
+
type: { type: "string", pattern: TYPE },
|
|
642
|
+
external_id: { type: "string", minLength: 1, maxLength: MAX_ID }
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
};
|
|
647
|
+
var wordPattern = new RegExp(WORD2);
|
|
648
|
+
var typePattern = new RegExp(TYPE);
|
|
649
|
+
var isObject = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isObject");
|
|
650
|
+
var escapePointer = /* @__PURE__ */ __name((segment) => String(segment).replaceAll("~", "~0").replaceAll("/", "~1"), "escapePointer");
|
|
651
|
+
var pointerOf = /* @__PURE__ */ __name((...segments) => segments.map((s) => `/${escapePointer(s)}`).join(""), "pointerOf");
|
|
652
|
+
var canonical = /* @__PURE__ */ __name((value) => {
|
|
653
|
+
if (Array.isArray(value))
|
|
654
|
+
return value.map(canonical);
|
|
655
|
+
if (!isObject(value))
|
|
656
|
+
return value;
|
|
657
|
+
return Object.fromEntries(Object.keys(value).sort().map((key) => [key, canonical(value[key])]));
|
|
658
|
+
}, "canonical");
|
|
659
|
+
var recordFingerprint = /* @__PURE__ */ __name((fields, relations) => createHash("sha256").update(JSON.stringify(canonical({
|
|
660
|
+
fields,
|
|
661
|
+
relations: relations.map((relation) => [relation.role, relation.type, relation.external_id]).sort((a, b) => a.join("\0").localeCompare(b.join("\0")))
|
|
662
|
+
}))).digest("hex"), "recordFingerprint");
|
|
663
|
+
var envelopeOfJsonl = /* @__PURE__ */ __name((text) => {
|
|
664
|
+
const lines = text.split(/\r?\n/);
|
|
665
|
+
const first = lines.findIndex((line) => line.trim() !== "");
|
|
666
|
+
if (first < 0)
|
|
667
|
+
return {};
|
|
668
|
+
const parse = /* @__PURE__ */ __name((line) => {
|
|
669
|
+
try {
|
|
670
|
+
return JSON.parse(line);
|
|
671
|
+
} catch {
|
|
672
|
+
return line;
|
|
673
|
+
}
|
|
674
|
+
}, "parse");
|
|
675
|
+
const header = parse(lines[first]);
|
|
676
|
+
const records = [];
|
|
677
|
+
for (let at = first + 1; at < lines.length; at++) {
|
|
678
|
+
const line = lines[at];
|
|
679
|
+
if (line.trim() !== "")
|
|
680
|
+
records.push(parse(line));
|
|
681
|
+
}
|
|
682
|
+
return isObject(header) ? { ...header, records } : header;
|
|
683
|
+
}, "envelopeOfJsonl");
|
|
684
|
+
|
|
470
685
|
export {
|
|
471
686
|
formatLocator,
|
|
472
687
|
isLocator,
|
|
@@ -503,6 +718,25 @@ export {
|
|
|
503
718
|
counterObservationTime,
|
|
504
719
|
observedCounters,
|
|
505
720
|
counterFreshness,
|
|
721
|
+
CURRENCY_SCALES,
|
|
722
|
+
parseDecimal,
|
|
723
|
+
formatDecimal,
|
|
724
|
+
currencyOf,
|
|
725
|
+
scaleOf,
|
|
726
|
+
minorUnits,
|
|
727
|
+
moneyOf,
|
|
728
|
+
moneyLabel,
|
|
729
|
+
quantityOf,
|
|
730
|
+
lineUnits,
|
|
731
|
+
INVOICE_DIRECTIONS,
|
|
732
|
+
INVOICE_STATUSES,
|
|
733
|
+
MONEY_DIRECTIONS,
|
|
734
|
+
FINANCE_REVIEWS,
|
|
735
|
+
settledStatus,
|
|
736
|
+
invoiceLine,
|
|
737
|
+
paymentLine,
|
|
738
|
+
invoiceTitle,
|
|
739
|
+
paymentEntryTitle,
|
|
506
740
|
MESSAGE_MEASURES,
|
|
507
741
|
AUTHOR_MEASURES,
|
|
508
742
|
needsRankingContext,
|
|
@@ -510,5 +744,12 @@ export {
|
|
|
510
744
|
rankingScore,
|
|
511
745
|
RANKING_TOKENIZER_VERSION,
|
|
512
746
|
rankingWords,
|
|
513
|
-
rankingQuestion
|
|
747
|
+
rankingQuestion,
|
|
748
|
+
RECORDS_SCHEMA_VERSION,
|
|
749
|
+
RECORD_OPERATIONS,
|
|
750
|
+
RECORD_ENTITY_TYPES,
|
|
751
|
+
RECORDS_ENVELOPE_SCHEMA,
|
|
752
|
+
pointerOf,
|
|
753
|
+
recordFingerprint,
|
|
754
|
+
envelopeOfJsonl
|
|
514
755
|
};
|
|
@@ -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/executable.js
|
|
8
8
|
import { existsSync } from "node:fs";
|
|
9
9
|
import { win32 } from "node:path";
|
|
10
10
|
var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
|
|
@@ -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-EB2IULWB.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.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/input-policy.js
|
|
11
11
|
var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
|
|
12
12
|
var MAX_SECRET_INPUT = 64 * 1024;
|
|
13
13
|
var policies = /* @__PURE__ */ new WeakMap();
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
|
|
8
8
|
var instructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => {
|
|
9
9
|
const all = typeof profile !== "string";
|
|
10
10
|
const offers = /* @__PURE__ */ __name((key) => all || writes.includes(key), "offers");
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
SCHEMA_DIALECT,
|
|
5
|
+
commandContract,
|
|
6
|
+
commandPathOf,
|
|
7
|
+
findCommand,
|
|
8
|
+
outputOf
|
|
9
|
+
} from "./chunk-U3VX3UUC.js";
|
|
10
|
+
import "./chunk-SPQY3PJX.js";
|
|
11
|
+
import "./chunk-JQTIB4WJ.js";
|
|
12
|
+
import "./chunk-NNLYS4IR.js";
|
|
13
|
+
import "./chunk-A6O3WHBD.js";
|
|
14
|
+
import "./chunk-WIU733D2.js";
|
|
15
|
+
import "./chunk-WOV3ABQR.js";
|
|
16
|
+
import "./chunk-KJYCA6IC.js";
|
|
17
|
+
import "./chunk-4TPNRJER.js";
|
|
18
|
+
import "./chunk-FEWWBU2I.js";
|
|
19
|
+
import "./chunk-4HVY3QPF.js";
|
|
20
|
+
import "./chunk-K4N5UG64.js";
|
|
21
|
+
import "./chunk-OZVGHHFZ.js";
|
|
22
|
+
import "./chunk-LU3WKZBA.js";
|
|
23
|
+
import "./chunk-QCNK3YUZ.js";
|
|
24
|
+
import "./chunk-G6RG2AZV.js";
|
|
25
|
+
import "./chunk-Y5E2WNWB.js";
|
|
26
|
+
import "./chunk-EB2IULWB.js";
|
|
27
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
28
|
+
export {
|
|
29
|
+
SCHEMA_DIALECT,
|
|
30
|
+
commandContract,
|
|
31
|
+
commandPathOf,
|
|
32
|
+
findCommand,
|
|
33
|
+
outputOf
|
|
34
|
+
};
|
|
@@ -3,20 +3,20 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
SAMPLE_RATE,
|
|
5
5
|
decodeOgg
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-NDZK466U.js";
|
|
7
|
+
import "./chunk-QCNK3YUZ.js";
|
|
8
|
+
import "./chunk-G6RG2AZV.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-EB2IULWB.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.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/speech/decode.js
|
|
20
20
|
import { spawn } from "node:child_process";
|
|
21
21
|
import { mkdtemp, rm, writeFile } from "node:fs/promises";
|
|
22
22
|
import { createRequire } from "node:module";
|
|
@@ -13,22 +13,22 @@ import {
|
|
|
13
13
|
parseDescribe,
|
|
14
14
|
shimFiles,
|
|
15
15
|
writeShim
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XBIPSSKI.js";
|
|
17
17
|
import "./chunk-Y5E2WNWB.js";
|
|
18
18
|
import {
|
|
19
19
|
CliError
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-EB2IULWB.js";
|
|
21
21
|
import {
|
|
22
22
|
__name,
|
|
23
23
|
__toESM
|
|
24
24
|
} from "./chunk-ZVVMGPBJ.js";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
26
|
+
// 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/wcat/dispatch.js
|
|
27
27
|
var import_cross_spawn2 = __toESM(require_cross_spawn(), 1);
|
|
28
28
|
import { randomUUID } from "node:crypto";
|
|
29
29
|
import { constants } from "node:os";
|
|
30
30
|
|
|
31
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
31
|
+
// 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/wcat/path.js
|
|
32
32
|
import { readdirSync, statSync } from "node:fs";
|
|
33
33
|
import { join } from "node:path";
|
|
34
34
|
var variable = /* @__PURE__ */ __name((env, name, platform) => platform === "win32" ? Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1] : env[name], "variable");
|
|
@@ -100,7 +100,7 @@ var findTools = /* @__PURE__ */ __name((search) => {
|
|
|
100
100
|
}, "findTools");
|
|
101
101
|
var isBuiltIn = /* @__PURE__ */ __name((name) => name === "wcat" || BUILT_IN_COMMANDS.includes(name), "isBuiltIn");
|
|
102
102
|
|
|
103
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
103
|
+
// 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/wcat/probe.js
|
|
104
104
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
105
105
|
import { readFileSync } from "node:fs";
|
|
106
106
|
var MAX_ANSWER_BYTES = 64 * 1024;
|
|
@@ -149,7 +149,7 @@ var baseVersion = /* @__PURE__ */ __name(() => {
|
|
|
149
149
|
}
|
|
150
150
|
}, "baseVersion");
|
|
151
151
|
|
|
152
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
152
|
+
// 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/wcat/shortcuts.js
|
|
153
153
|
import { closeSync, openSync, readSync, realpathSync, rmSync } from "node:fs";
|
|
154
154
|
import { basename, dirname } from "node:path";
|
|
155
155
|
var WIRECAT_PACKAGE = /node_modules[\\/]+@wirecat[\\/]/;
|
|
@@ -241,7 +241,7 @@ var removeShortcuts = /* @__PURE__ */ __name((search, names) => listShortcuts(se
|
|
|
241
241
|
return { ...statusOf(shortcut.name, shortcut.program, search), changed: true };
|
|
242
242
|
}), "removeShortcuts");
|
|
243
243
|
|
|
244
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
244
|
+
// 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/wcat/dispatch.js
|
|
245
245
|
var DEFAULT_DESCRIBE_TIMEOUT_MS = 2e3;
|
|
246
246
|
var listTools = /* @__PURE__ */ __name(async (context) => {
|
|
247
247
|
const installed = installedPrograms(context);
|
|
@@ -338,7 +338,7 @@ var runTool = /* @__PURE__ */ __name((path, args, context) => new Promise((resol
|
|
|
338
338
|
});
|
|
339
339
|
}), "runTool");
|
|
340
340
|
var fail = /* @__PURE__ */ __name(async (error, json, context) => {
|
|
341
|
-
const { errorObjectOf, exitCodeOfError, renderError } = await import("./failure-
|
|
341
|
+
const { errorObjectOf, exitCodeOfError, renderError } = await import("./failure-UDL5QZRZ.js");
|
|
342
342
|
const object = errorObjectOf(error);
|
|
343
343
|
context.stderr.write(`${renderError(object, { cli: "wcat", interactive: !json })}
|
|
344
344
|
`);
|
|
@@ -11,17 +11,17 @@ import {
|
|
|
11
11
|
parseMarkdownSpans,
|
|
12
12
|
plainQr,
|
|
13
13
|
terminalQr
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BKF7XIJ5.js";
|
|
15
15
|
import {
|
|
16
16
|
DETAILS,
|
|
17
17
|
REASONS,
|
|
18
18
|
failureContext
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ENZTLYTS.js";
|
|
20
20
|
import {
|
|
21
21
|
pollLines,
|
|
22
22
|
renderMessage,
|
|
23
23
|
renderMessages
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-4XRIALMN.js";
|
|
25
25
|
import {
|
|
26
26
|
ModerationRules,
|
|
27
27
|
act,
|
|
@@ -32,24 +32,35 @@ import {
|
|
|
32
32
|
pickChat,
|
|
33
33
|
pickPerson,
|
|
34
34
|
validateFormattedText
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-73SQQXSU.js";
|
|
36
36
|
import {
|
|
37
37
|
readSecret
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-PXLVTHMH.js";
|
|
39
|
+
import "./chunk-YRHXVXLQ.js";
|
|
40
40
|
import "./chunk-HTQTIKWP.js";
|
|
41
41
|
import {
|
|
42
42
|
resolveOutput
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-JQTIB4WJ.js";
|
|
44
44
|
import {
|
|
45
45
|
COUNTER_FIELDS,
|
|
46
|
+
CURRENCY_SCALES,
|
|
47
|
+
FINANCE_REVIEWS,
|
|
46
48
|
FOLDER_PROVIDERS,
|
|
49
|
+
INVOICE_DIRECTIONS,
|
|
50
|
+
INVOICE_STATUSES,
|
|
47
51
|
KINDS,
|
|
52
|
+
MONEY_DIRECTIONS,
|
|
48
53
|
PROVIDERS,
|
|
54
|
+
RECORDS_ENVELOPE_SCHEMA,
|
|
55
|
+
RECORDS_SCHEMA_VERSION,
|
|
56
|
+
RECORD_ENTITY_TYPES,
|
|
57
|
+
RECORD_OPERATIONS,
|
|
49
58
|
REF_KINDS,
|
|
50
59
|
UNKNOWN_PROVIDER,
|
|
51
60
|
canonicalReference,
|
|
52
61
|
counterValue,
|
|
62
|
+
currencyOf,
|
|
63
|
+
envelopeOfJsonl,
|
|
53
64
|
formatLocator,
|
|
54
65
|
formatReference,
|
|
55
66
|
isFolderProvider,
|
|
@@ -58,6 +69,9 @@ import {
|
|
|
58
69
|
kindIn,
|
|
59
70
|
kindOf,
|
|
60
71
|
looksLikeReference,
|
|
72
|
+
minorUnits,
|
|
73
|
+
moneyLabel,
|
|
74
|
+
moneyOf,
|
|
61
75
|
observedCounters,
|
|
62
76
|
parseLocator,
|
|
63
77
|
parseReference,
|
|
@@ -65,29 +79,39 @@ import {
|
|
|
65
79
|
providers,
|
|
66
80
|
rankingOptions,
|
|
67
81
|
useProviders
|
|
68
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-XKUAEYJV.js";
|
|
69
83
|
import {
|
|
70
84
|
TAG_TYPES,
|
|
71
85
|
canonicalMeetingReference,
|
|
72
86
|
formatMeetingReference,
|
|
73
87
|
normalizeTag,
|
|
74
88
|
parseMeetingReference
|
|
75
|
-
} from "./chunk-
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
89
|
+
} from "./chunk-FEWWBU2I.js";
|
|
90
|
+
import "./chunk-4HVY3QPF.js";
|
|
91
|
+
import "./chunk-LU3WKZBA.js";
|
|
92
|
+
import "./chunk-QCNK3YUZ.js";
|
|
93
|
+
import "./chunk-G6RG2AZV.js";
|
|
79
94
|
import "./chunk-Y5E2WNWB.js";
|
|
80
|
-
import "./chunk-
|
|
95
|
+
import "./chunk-EB2IULWB.js";
|
|
81
96
|
import "./chunk-ZVVMGPBJ.js";
|
|
82
97
|
export {
|
|
83
98
|
DETAILS as CORE_DETAILS,
|
|
84
99
|
REASONS as CORE_REASONS,
|
|
85
100
|
COUNTER_FIELDS,
|
|
101
|
+
CURRENCY_SCALES,
|
|
102
|
+
FINANCE_REVIEWS,
|
|
86
103
|
FOLDER_PROVIDERS,
|
|
104
|
+
INVOICE_DIRECTIONS,
|
|
105
|
+
INVOICE_STATUSES,
|
|
87
106
|
KINDS,
|
|
107
|
+
MONEY_DIRECTIONS,
|
|
88
108
|
ModerationRules,
|
|
89
109
|
PASTE_QR,
|
|
90
110
|
PROVIDERS,
|
|
111
|
+
RECORDS_ENVELOPE_SCHEMA,
|
|
112
|
+
RECORDS_SCHEMA_VERSION,
|
|
113
|
+
RECORD_ENTITY_TYPES,
|
|
114
|
+
RECORD_OPERATIONS,
|
|
91
115
|
REF_KINDS,
|
|
92
116
|
TAG_TYPES,
|
|
93
117
|
UNKNOWN_PROVIDER,
|
|
@@ -99,7 +123,9 @@ export {
|
|
|
99
123
|
checkWords,
|
|
100
124
|
countedPoll,
|
|
101
125
|
counterValue,
|
|
126
|
+
currencyOf,
|
|
102
127
|
defaultRules,
|
|
128
|
+
envelopeOfJsonl,
|
|
103
129
|
failureContext,
|
|
104
130
|
formatLocator,
|
|
105
131
|
formatMeetingReference,
|
|
@@ -113,7 +139,10 @@ export {
|
|
|
113
139
|
kindOf,
|
|
114
140
|
loginQr,
|
|
115
141
|
looksLikeReference,
|
|
142
|
+
minorUnits,
|
|
116
143
|
moderationPathFor,
|
|
144
|
+
moneyLabel,
|
|
145
|
+
moneyOf,
|
|
117
146
|
normalizeTag,
|
|
118
147
|
observedCounters,
|
|
119
148
|
parseLocator,
|
|
@@ -42399,7 +42399,7 @@ function install11(registers) {
|
|
|
42399
42399
|
}
|
|
42400
42400
|
__name(install11, "install");
|
|
42401
42401
|
|
|
42402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42402
|
+
// 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/charts/echarts-option.js
|
|
42403
42403
|
var echartsOption = /* @__PURE__ */ __name((chart) => ({
|
|
42404
42404
|
animation: false,
|
|
42405
42405
|
backgroundColor: "#111827",
|
|
@@ -42447,7 +42447,7 @@ var echartsOption = /* @__PURE__ */ __name((chart) => ({
|
|
|
42447
42447
|
} : {}
|
|
42448
42448
|
}), "echartsOption");
|
|
42449
42449
|
|
|
42450
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42450
|
+
// 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/charts/echarts.js
|
|
42451
42451
|
use([install2, install, install6, install5, install10, install7, install11]);
|
|
42452
42452
|
var echartsRenderer = {
|
|
42453
42453
|
render: /* @__PURE__ */ __name(async (chart, size) => {
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
truncated,
|
|
14
14
|
unit,
|
|
15
15
|
warmEmbedders
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-QTD3BVS5.js";
|
|
17
|
+
import "./chunk-WOV3ABQR.js";
|
|
18
|
+
import "./chunk-OZVGHHFZ.js";
|
|
19
|
+
import "./chunk-QCNK3YUZ.js";
|
|
20
|
+
import "./chunk-G6RG2AZV.js";
|
|
21
21
|
import "./chunk-Y5E2WNWB.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-EB2IULWB.js";
|
|
23
23
|
import "./chunk-ZVVMGPBJ.js";
|
|
24
24
|
export {
|
|
25
25
|
WARM_IDLE_MS,
|