@wirecat/mail-cli 0.16.3 → 0.18.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 +100 -0
- package/README.md +7 -4
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-TUDREUUW.js → all-profiles-4CVOXA5Y.js} +10 -10
- package/dist/bundle/{anthropic-KQOVSP6C.js → anthropic-5VIKYINO.js} +6 -6
- package/dist/bundle/{app-server-QK7PKVT7.js → app-server-LTSQBDPF.js} +53 -50
- package/dist/bundle/{bun-2NMWL5YB.js → bun-C7DBRUW2.js} +2 -2
- package/dist/bundle/{bun-sqlite-Y4FP6SDX.js → bun-sqlite-Y5JKT62B.js} +5 -5
- package/dist/bundle/{chunk-MLWN27HF.js → chunk-23HWKHPZ.js} +326 -288
- package/dist/bundle/{chunk-4IEDXIUN.js → chunk-2NWOYXPJ.js} +240 -64
- package/dist/bundle/{chunk-YPF6OS37.js → chunk-3DQYO7FB.js} +1 -1
- package/dist/bundle/{chunk-I3K6JG4I.js → chunk-3W5H4TM7.js} +182 -60
- package/dist/bundle/{chunk-CGH6UH3T.js → chunk-3YRE6DNM.js} +8 -8
- package/dist/bundle/{chunk-LMN7SYX4.js → chunk-43I5XD7S.js} +1 -1
- package/dist/bundle/{chunk-KMZRXGTF.js → chunk-5S6Q3SWU.js} +4 -2
- package/dist/bundle/{chunk-XEIGKPYU.js → chunk-6RO5RDNR.js} +50 -3
- package/dist/bundle/{chunk-OYB3FUYQ.js → chunk-7P4ICYJT.js} +1 -1
- package/dist/bundle/{chunk-XBIPSSKI.js → chunk-7SWWVDEZ.js} +4 -4
- package/dist/bundle/{chunk-4IIH5PXR.js → chunk-A5OMARL4.js} +28 -28
- package/dist/bundle/{chunk-ZNW4E3SG.js → chunk-ACLILULA.js} +3 -3
- package/dist/bundle/{chunk-EZIJPXDZ.js → chunk-AOMSP4EI.js} +6 -6
- package/dist/bundle/{chunk-G6RG2AZV.js → chunk-BHNBWFT5.js} +55 -8
- package/dist/bundle/{chunk-FHY664YS.js → chunk-BMFPCW6Q.js} +4 -4
- package/dist/bundle/{chunk-PWTEWT4M.js → chunk-BMGVKULS.js} +4 -4
- package/dist/bundle/{chunk-QCNK3YUZ.js → chunk-BMV56JCL.js} +19 -19
- package/dist/bundle/{chunk-B2NDDA2W.js → chunk-C4RUKMDT.js} +16 -10
- package/dist/bundle/{chunk-XAANQN4R.js → chunk-C5T5K7HW.js} +208 -83
- package/dist/bundle/{chunk-7LMTWOTP.js → chunk-CPEN6BZZ.js} +2 -2
- package/dist/bundle/{chunk-EB2IULWB.js → chunk-DALBYUPC.js} +2 -2
- package/dist/bundle/{chunk-6DVPPLAN.js → chunk-DPSH46NO.js} +5 -5
- package/dist/bundle/{chunk-VTJ5TMGN.js → chunk-EFP5NN7I.js} +3 -3
- package/dist/bundle/{chunk-KJV3BI7S.js → chunk-ERBEBORA.js} +23 -21
- package/dist/bundle/{chunk-RPEW7E3S.js → chunk-FLOOPXOT.js} +12 -12
- package/dist/bundle/{chunk-R6SBRHVG.js → chunk-GLLLYACZ.js} +6 -6
- package/dist/bundle/{chunk-WKHHCCJE.js → chunk-GRP67IQ4.js} +56 -47
- package/dist/bundle/{chunk-5KPPP3QN.js → chunk-HFUS33UT.js} +14 -2
- package/dist/bundle/{chunk-TTOKDZQX.js → chunk-HTFBXGJF.js} +2 -2
- package/dist/bundle/{chunk-N7DLDEFU.js → chunk-IANOK5SE.js} +2 -2
- package/dist/bundle/{chunk-3CVDHJER.js → chunk-ITUC5WAV.js} +1 -1
- package/dist/bundle/{chunk-POS35G6D.js → chunk-JO3BIMYK.js} +3 -3
- package/dist/bundle/{chunk-EBEYU7RW.js → chunk-KVSC657S.js} +44 -143
- package/dist/bundle/{chunk-DDQXDX4U.js → chunk-L3YX7A5M.js} +7 -7
- package/dist/bundle/{chunk-VP5FL5JQ.js → chunk-M7C4IGJ6.js} +8 -8
- package/dist/bundle/{chunk-ZS6YKNYS.js → chunk-MCR43SWG.js} +4 -4
- package/dist/bundle/{chunk-UBLFUQ7O.js → chunk-N5VEJ3E7.js} +97 -12
- package/dist/bundle/{chunk-IJYYD2JU.js → chunk-NDJZQCF3.js} +467 -231
- package/dist/bundle/{chunk-HN3EDDVX.js → chunk-OLJDZTHB.js} +13 -13
- package/dist/bundle/{chunk-3ZJE5TIG.js → chunk-OMKPALMX.js} +2 -2
- package/dist/bundle/{chunk-X7EBOXBY.js → chunk-OUGGAAXI.js} +13235 -1228
- package/dist/bundle/{chunk-YGJO5VNR.js → chunk-P6WCG6X2.js} +36 -30
- package/dist/bundle/{chunk-K2OQCQ2N.js → chunk-QPF4LTK5.js} +6 -6
- package/dist/bundle/{chunk-ARDUJR5Z.js → chunk-RIO3TD3I.js} +1 -1
- package/dist/bundle/{chunk-5FPQGUJA.js → chunk-RQSF7X22.js} +1 -1
- package/dist/bundle/{chunk-GAYW2JRW.js → chunk-SIYT2BBI.js} +10 -10
- package/dist/bundle/chunk-SMS5YNPB.js +64 -0
- package/dist/bundle/{chunk-PYX6K527.js → chunk-SW2KERUB.js} +648 -130
- package/dist/bundle/{chunk-Q4T2HBZP.js → chunk-TVZ77ZOV.js} +2 -2
- package/dist/bundle/{chunk-DKIAHQRN.js → chunk-U43HUE35.js} +9 -9
- package/dist/bundle/{chunk-CT2MIWXY.js → chunk-UEGABYXI.js} +3 -3
- package/dist/bundle/{chunk-KV4267S4.js → chunk-UHC5I3JV.js} +1 -1
- package/dist/bundle/{chunk-EDJQDR5X.js → chunk-UWL2IOII.js} +4 -4
- package/dist/bundle/{chunk-M6O4DH5F.js → chunk-UXD5JMS5.js} +1 -1
- package/dist/bundle/{chunk-ANFIIXBL.js → chunk-WA3DQSAZ.js} +2 -2
- package/dist/bundle/{chunk-FROWEHK7.js → chunk-XGTW3GRX.js} +2 -2
- package/dist/bundle/{chunk-VD6GZ3W2.js → chunk-YA2JPMYX.js} +2 -2
- package/dist/bundle/{chunk-CRYWPLJP.js → chunk-ZLH465EU.js} +1 -1
- package/dist/bundle/{chunk-HVAXTTOT.js → chunk-ZT2Y267T.js} +3 -3
- package/dist/bundle/command-contract-Y3GIKCPB.js +34 -0
- package/dist/bundle/{decode-WCS4KOHV.js → decode-WVIDLK4E.js} +5 -5
- package/dist/bundle/{dispatch-3ILCYZ4Q.js → dispatch-R5OF2FVZ.js} +8 -8
- package/dist/bundle/{dist-FL422DTA.js → dist-KGQWS3XL.js} +41 -23
- package/dist/bundle/{echarts-45D6USAX.js → echarts-VMKACZBF.js} +2 -2
- package/dist/bundle/{embed-4B4ATLCN.js → embed-EQINOOST.js} +6 -6
- package/dist/bundle/{embedder-ASWGJXNV.js → embedder-LM52TDRN.js} +9 -9
- package/dist/bundle/{failure-UDL5QZRZ.js → failure-WYKVF6RH.js} +2 -2
- package/dist/bundle/{first-run-5K3UD4BU.js → first-run-H4VXZAAF.js} +11 -11
- package/dist/bundle/first-screen-ZP74TJLK.js +32 -0
- package/dist/bundle/{instructions-6EFSPC7C.js → instructions-NLSME663.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-PPVOM4SE.js → mcp-CFVG2OUS.js} +2 -2
- package/dist/bundle/{node-OXC26QXO.js → node-FGMSXLTA.js} +2 -2
- package/dist/bundle/{node-sqlite-PXHZAG7Y.js → node-sqlite-K3T3ZRBY.js} +6 -6
- package/dist/bundle/{oauth-YK2QLC7U.js → oauth-OJKJ6JLH.js} +7 -7
- package/dist/bundle/{open-SABDXZ4B.js → open-DCYIXHXS.js} +5 -5
- package/dist/bundle/{openai-DPURPXEU.js → openai-C4H4W57J.js} +14 -14
- package/dist/bundle/{process-YWPAOI6G.js → process-MN4NSYGA.js} +1 -1
- package/dist/bundle/{program-4ILOQHLO.js → program-ZZZOKWCX.js} +4026 -12667
- package/dist/bundle/{prompt-GKVNFGFE.js → prompt-ELEJUDAU.js} +5 -5
- package/dist/bundle/{recognize-344YDSLX.js → recognize-G2FVMI5M.js} +4 -4
- package/dist/bundle/{remote-53UZUJJU.js → remote-F4YVSEYM.js} +7 -7
- package/dist/bundle/{rerank-PAIRND6R.js → rerank-7VM5R5N6.js} +7 -7
- package/dist/bundle/{serve-DZSO7LJK.js → serve-A7NRFPRN.js} +9 -9
- package/dist/bundle/{server-EGG3V67I.js → server-7R2BEIRY.js} +39 -39
- package/dist/bundle/server-DFJA2HBO.js +64 -0
- package/dist/bundle/{sqlite-runtime-ZQ6F3VYZ.js → sqlite-runtime-4SKUB4EN.js} +6 -6
- package/dist/bundle/{state-LXPOWLZ5.js → state-S2FKK2XB.js} +6 -6
- package/dist/bundle/{store-PHT75I6S.js → store-4HAARQVR.js} +34 -26
- package/dist/bundle/{store-4ZMSK5R5.js → store-FLHO3UMA.js} +17 -15
- package/dist/bundle/store-maintenance-command-BINJIQ6F.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.js +2 -2
- 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-QZLK2ISN.js} +0 -0
- /package/dist/{mail → commands}/doctor.d.ts +0 -0
|
@@ -2,17 +2,18 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
formatMeetingReference,
|
|
5
|
+
moneyLabel,
|
|
5
6
|
parseMeetingReference
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2NWOYXPJ.js";
|
|
7
8
|
import {
|
|
8
9
|
CliError,
|
|
9
10
|
singleLine
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-DALBYUPC.js";
|
|
11
12
|
import {
|
|
12
13
|
__name
|
|
13
14
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
15
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
16
17
|
var SCHEME = "msg:";
|
|
17
18
|
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
|
|
18
19
|
var isLocator = /* @__PURE__ */ __name((reference) => reference.trim().startsWith(SCHEME), "isLocator");
|
|
@@ -26,7 +27,7 @@ var parseLocator = /* @__PURE__ */ __name((reference) => {
|
|
|
26
27
|
return { provider, account, chat, message };
|
|
27
28
|
}, "parseLocator");
|
|
28
29
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
30
31
|
var SIMPLE_REFERENCES = [
|
|
31
32
|
"note",
|
|
32
33
|
"document",
|
|
@@ -40,6 +41,10 @@ var SIMPLE_REFERENCES = [
|
|
|
40
41
|
"event",
|
|
41
42
|
"invoice",
|
|
42
43
|
"payment",
|
|
44
|
+
"order",
|
|
45
|
+
"deal",
|
|
46
|
+
"lead",
|
|
47
|
+
"pipeline",
|
|
43
48
|
"entity"
|
|
44
49
|
];
|
|
45
50
|
var malformed = /* @__PURE__ */ __name((text, shape) => new CliError("validation_error", `"${singleLine(text)}" is not a reference \u2014 expected ${shape}`, {
|
|
@@ -173,9 +178,10 @@ var looksLikeReference = /* @__PURE__ */ __name((text) => {
|
|
|
173
178
|
return match !== null && byPrefix.has(match[1]);
|
|
174
179
|
}, "looksLikeReference");
|
|
175
180
|
|
|
176
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
177
|
-
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events"];
|
|
181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/providers.js
|
|
182
|
+
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm"];
|
|
178
183
|
var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
|
|
184
|
+
var CRM_OPENS = { deal: "deals show", lead: "leads show", pipeline: "pipelines show" };
|
|
179
185
|
var PROVIDERS = [
|
|
180
186
|
{ name: "telegram", kind: "messages", aliases: ["tg"], command: "tg", opens: MESSENGER_OPENS },
|
|
181
187
|
{ name: "telegram-bot", kind: "messages", aliases: ["tg-bot"] },
|
|
@@ -292,7 +298,7 @@ var providerNamed = /* @__PURE__ */ __name((word) => {
|
|
|
292
298
|
var kindIn = /* @__PURE__ */ __name((provider) => isFolderProvider(provider) ? "notes" : registry.find(({ name }) => name === provider)?.kind, "kindIn");
|
|
293
299
|
var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
|
|
294
300
|
|
|
295
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
301
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/counters.js
|
|
296
302
|
var COUNTER_FIELDS = ["views", "reactions", "comments"];
|
|
297
303
|
var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
|
|
298
304
|
var counterValue = /* @__PURE__ */ __name((message, field) => {
|
|
@@ -329,121 +335,17 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
|
|
|
329
335
|
return states.some((one) => one.freshness === "stale") ? "stale" : "fresh";
|
|
330
336
|
}, "counterFreshness");
|
|
331
337
|
|
|
332
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
333
|
-
var
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
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.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/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");
|
|
338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/deals.js
|
|
339
|
+
var DEAL_KINDS = ["deal", "lead"];
|
|
340
|
+
var DEAL_STATUSES = ["open", "won", "lost"];
|
|
341
|
+
var STAGE_OUTCOMES = DEAL_STATUSES;
|
|
342
|
+
var DEAL_ROLES = ["owner", "contact", "decision-maker"];
|
|
343
|
+
var dealLine = /* @__PURE__ */ __name((deal) => {
|
|
344
|
+
const money = deal.amount === null || deal.currency === null ? "" : `, ${moneyLabel(deal.amount, deal.currency)}`;
|
|
345
|
+
return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
|
|
346
|
+
}, "dealLine");
|
|
445
347
|
|
|
446
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
348
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
|
|
447
349
|
var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
|
|
448
350
|
var AUTHOR_MEASURES = [
|
|
449
351
|
"messages",
|
|
@@ -583,7 +485,7 @@ var withoutUrls = /* @__PURE__ */ __name((text) => text.replace(/\S+/gu, (token)
|
|
|
583
485
|
var rankingWords = /* @__PURE__ */ __name((text) => withoutUrls(text).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
|
|
584
486
|
var rankingQuestion = /* @__PURE__ */ __name((text) => withoutUrls(text).includes("?"), "rankingQuestion");
|
|
585
487
|
|
|
586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
488
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/records.js
|
|
587
489
|
import { createHash } from "node:crypto";
|
|
588
490
|
var RECORDS_SCHEMA_VERSION = 1;
|
|
589
491
|
var RECORD_OPERATIONS = ["upsert", "delete"];
|
|
@@ -592,6 +494,7 @@ var WORD2 = "^[a-z0-9][a-z0-9_-]{0,62}$";
|
|
|
592
494
|
var TYPE = "^(invoice|payment|person|organization|project|custom:[a-z0-9][a-z0-9_-]{0,62})$";
|
|
593
495
|
var MAX_ID = 512;
|
|
594
496
|
var MAX_RELATIONS = 100;
|
|
497
|
+
var DECIMAL = "^[0-9]{1,16}(\\.[0-9]{1,6})?$";
|
|
595
498
|
var RECORDS_ENVELOPE_SCHEMA = {
|
|
596
499
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
597
500
|
title: "WireCat records envelope, version 1",
|
|
@@ -639,13 +542,19 @@ var RECORDS_ENVELOPE_SCHEMA = {
|
|
|
639
542
|
properties: {
|
|
640
543
|
role: { type: "string", pattern: WORD2 },
|
|
641
544
|
type: { type: "string", pattern: TYPE },
|
|
642
|
-
external_id: { type: "string", minLength: 1, maxLength: MAX_ID }
|
|
545
|
+
external_id: { type: "string", minLength: 1, maxLength: MAX_ID },
|
|
546
|
+
amount: {
|
|
547
|
+
type: "string",
|
|
548
|
+
pattern: DECIMAL,
|
|
549
|
+
description: "A settles relation's share of the payment, a decimal in its currency"
|
|
550
|
+
}
|
|
643
551
|
}
|
|
644
552
|
}
|
|
645
553
|
}
|
|
646
554
|
};
|
|
647
555
|
var wordPattern = new RegExp(WORD2);
|
|
648
556
|
var typePattern = new RegExp(TYPE);
|
|
557
|
+
var decimalPattern = new RegExp(DECIMAL);
|
|
649
558
|
var isObject = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isObject");
|
|
650
559
|
var escapePointer = /* @__PURE__ */ __name((segment) => String(segment).replaceAll("~", "~0").replaceAll("/", "~1"), "escapePointer");
|
|
651
560
|
var pointerOf = /* @__PURE__ */ __name((...segments) => segments.map((s) => `/${escapePointer(s)}`).join(""), "pointerOf");
|
|
@@ -658,7 +567,12 @@ var canonical = /* @__PURE__ */ __name((value) => {
|
|
|
658
567
|
}, "canonical");
|
|
659
568
|
var recordFingerprint = /* @__PURE__ */ __name((fields, relations) => createHash("sha256").update(JSON.stringify(canonical({
|
|
660
569
|
fields,
|
|
661
|
-
relations: relations.map((relation) => [
|
|
570
|
+
relations: relations.map((relation) => [
|
|
571
|
+
relation.role,
|
|
572
|
+
relation.type,
|
|
573
|
+
relation.external_id,
|
|
574
|
+
...relation.amount === void 0 ? [] : [relation.amount]
|
|
575
|
+
]).sort((a, b) => a.join("\0").localeCompare(b.join("\0")))
|
|
662
576
|
}))).digest("hex"), "recordFingerprint");
|
|
663
577
|
var envelopeOfJsonl = /* @__PURE__ */ __name((text) => {
|
|
664
578
|
const lines = text.split(/\r?\n/);
|
|
@@ -692,6 +606,7 @@ export {
|
|
|
692
606
|
canonicalReference,
|
|
693
607
|
looksLikeReference,
|
|
694
608
|
KINDS,
|
|
609
|
+
CRM_OPENS,
|
|
695
610
|
PROVIDERS,
|
|
696
611
|
providerLabel,
|
|
697
612
|
FOLDER_PROVIDERS,
|
|
@@ -718,25 +633,11 @@ export {
|
|
|
718
633
|
counterObservationTime,
|
|
719
634
|
observedCounters,
|
|
720
635
|
counterFreshness,
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
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,
|
|
636
|
+
DEAL_KINDS,
|
|
637
|
+
DEAL_STATUSES,
|
|
638
|
+
STAGE_OUTCOMES,
|
|
639
|
+
DEAL_ROLES,
|
|
640
|
+
dealLine,
|
|
740
641
|
MESSAGE_MEASURES,
|
|
741
642
|
AUTHOR_MEASURES,
|
|
742
643
|
needsRankingContext,
|
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
fieldsOf,
|
|
6
6
|
processStreams,
|
|
7
7
|
projectFields
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BMV56JCL.js";
|
|
9
9
|
import {
|
|
10
10
|
COMPACT_FLAG
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-BHNBWFT5.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError,
|
|
14
14
|
singleLine
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DALBYUPC.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
18
|
} from "./chunk-ZVVMGPBJ.js";
|
|
19
19
|
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
21
21
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
22
22
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
23
23
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -413,7 +413,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
413
413
|
}
|
|
414
414
|
}, "assertRetentionEvidenceRead");
|
|
415
415
|
|
|
416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
416
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
417
417
|
var named = /* @__PURE__ */ __name((work) => {
|
|
418
418
|
try {
|
|
419
419
|
return work();
|
|
@@ -440,7 +440,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
440
440
|
return projectFields(value, fields);
|
|
441
441
|
}), "projectFields");
|
|
442
442
|
|
|
443
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
443
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
444
444
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
445
445
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
446
446
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -476,7 +476,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
476
476
|
return value;
|
|
477
477
|
}, "atDetail");
|
|
478
478
|
|
|
479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
479
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/output.js
|
|
480
480
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
481
481
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
482
482
|
if (other)
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
commandPathOf,
|
|
5
5
|
findCommand,
|
|
6
6
|
outputOf
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DPSH46NO.js";
|
|
8
8
|
import {
|
|
9
9
|
wrapAnsi
|
|
10
10
|
} from "./chunk-HTQTIKWP.js";
|
|
@@ -18,18 +18,18 @@ import {
|
|
|
18
18
|
environmentOf,
|
|
19
19
|
metaOf,
|
|
20
20
|
takesProfile
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-NDJZQCF3.js";
|
|
22
22
|
import {
|
|
23
23
|
writes
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-BHNBWFT5.js";
|
|
25
25
|
import {
|
|
26
26
|
CliError
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-DALBYUPC.js";
|
|
28
28
|
import {
|
|
29
29
|
__name
|
|
30
30
|
} from "./chunk-ZVVMGPBJ.js";
|
|
31
31
|
|
|
32
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
|
|
33
33
|
var SECTIONS = {
|
|
34
34
|
read: "Read",
|
|
35
35
|
write: "Write",
|
|
@@ -90,7 +90,7 @@ var CORE_SECTIONS = {
|
|
|
90
90
|
upgrade: "setup"
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
93
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
|
|
94
94
|
var DESCRIPTION = 90;
|
|
95
95
|
var COLUMN = 52;
|
|
96
96
|
var short = /* @__PURE__ */ __name((text) => {
|
|
@@ -129,7 +129,7 @@ var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
|
|
|
129
129
|
`;
|
|
130
130
|
}, "commandsText");
|
|
131
131
|
|
|
132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
|
|
133
133
|
var ARGUMENT_KINDS = {
|
|
134
134
|
chat: "chat",
|
|
135
135
|
chats: "chat",
|
|
@@ -321,7 +321,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
|
|
|
321
321
|
command.addHelpText("after", () => commandHelpText(command));
|
|
322
322
|
}, "installCommandHelp");
|
|
323
323
|
|
|
324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
|
|
325
325
|
var WIRECAT_TOOLS = [
|
|
326
326
|
{
|
|
327
327
|
command: "tg",
|
|
@@ -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-HTFBXGJF.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DALBYUPC.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.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/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.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/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";
|
|
@@ -1,13 +1,32 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
array,
|
|
5
|
+
boolean,
|
|
6
|
+
integer,
|
|
7
|
+
isoTime,
|
|
8
|
+
isoTimestamp,
|
|
9
|
+
minLength,
|
|
10
|
+
minValue,
|
|
11
|
+
nullable,
|
|
12
|
+
number,
|
|
13
|
+
optional,
|
|
14
|
+
picklist,
|
|
15
|
+
pipe,
|
|
16
|
+
record,
|
|
17
|
+
reference,
|
|
18
|
+
strictObject,
|
|
19
|
+
string,
|
|
20
|
+
unknown
|
|
21
|
+
} from "./chunk-BHNBWFT5.js";
|
|
3
22
|
import {
|
|
4
23
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-DALBYUPC.js";
|
|
6
25
|
import {
|
|
7
26
|
__name
|
|
8
27
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
28
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
11
30
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
12
31
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
13
32
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -22,7 +41,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
22
41
|
}
|
|
23
42
|
__name(closeTask, "closeTask");
|
|
24
43
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
26
45
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
27
46
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
28
47
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -51,12 +70,12 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
51
70
|
}, "priorityOf");
|
|
52
71
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
53
72
|
|
|
54
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
73
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
55
74
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
56
|
-
async function find(
|
|
57
|
-
const task = await store.get(
|
|
75
|
+
async function find(id2) {
|
|
76
|
+
const task = await store.get(id2);
|
|
58
77
|
if (!task)
|
|
59
|
-
throw new CliError("not_found", `no task ${
|
|
78
|
+
throw new CliError("not_found", `no task ${id2}`);
|
|
60
79
|
return task;
|
|
61
80
|
}
|
|
62
81
|
__name(find, "find");
|
|
@@ -78,8 +97,8 @@ function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PUR
|
|
|
78
97
|
return { task, created: true };
|
|
79
98
|
return { task, created: true, review: await store.reviewDuplicates(task.id) };
|
|
80
99
|
},
|
|
81
|
-
async close(
|
|
82
|
-
const task = closeTask(await find(
|
|
100
|
+
async close(id2, { as, by, reason }) {
|
|
101
|
+
const task = closeTask(await find(id2), as, by, now(), reason);
|
|
83
102
|
await store.update(task);
|
|
84
103
|
return task;
|
|
85
104
|
},
|
|
@@ -111,13 +130,13 @@ function median(values) {
|
|
|
111
130
|
}
|
|
112
131
|
__name(median, "median");
|
|
113
132
|
|
|
114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
133
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
115
134
|
function matches(task, filter) {
|
|
116
135
|
return (filter.account === void 0 || task.account === filter.account) && (filter.state === void 0 || task.state === filter.state) && (filter.group === void 0 || task.group === filter.group) && (filter.kind === void 0 || task.kind === filter.kind) && (filter.createdBefore === void 0 || task.createdAt < filter.createdBefore);
|
|
117
136
|
}
|
|
118
137
|
__name(matches, "matches");
|
|
119
138
|
|
|
120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
121
140
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
122
141
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
123
142
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
@@ -125,7 +144,61 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
125
144
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
126
145
|
var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
127
146
|
|
|
128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
148
|
+
var text = string();
|
|
149
|
+
var id = pipe(string(), minLength(1));
|
|
150
|
+
var time = isoTime;
|
|
151
|
+
var zonedTime = pipe(string(), isoTimestamp("an ISO 8601 time with a zone"));
|
|
152
|
+
var count = pipe(number(), integer(), minValue(0));
|
|
153
|
+
var untrusted = optional(array(text));
|
|
154
|
+
var providerMetadata = optional(record(string(), unknown()));
|
|
155
|
+
var evidenceSource = strictObject({
|
|
156
|
+
ref: nullable(reference),
|
|
157
|
+
kind: text,
|
|
158
|
+
title: nullable(text),
|
|
159
|
+
sender: nullable(text),
|
|
160
|
+
at: nullable(time),
|
|
161
|
+
excerpt: nullable(text),
|
|
162
|
+
tool: nullable(text),
|
|
163
|
+
missing: boolean()
|
|
164
|
+
});
|
|
165
|
+
var author = strictObject({
|
|
166
|
+
type: picklist(["person", "bot"]),
|
|
167
|
+
id,
|
|
168
|
+
name: nullable(text)
|
|
169
|
+
});
|
|
170
|
+
|
|
171
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
172
|
+
var organization = strictObject({
|
|
173
|
+
id,
|
|
174
|
+
ref: reference,
|
|
175
|
+
kind: picklist(["company", "team", "family", "community"]),
|
|
176
|
+
name: text,
|
|
177
|
+
scope: picklist(["personal", "work"]),
|
|
178
|
+
created_at: time
|
|
179
|
+
});
|
|
180
|
+
var project = strictObject({
|
|
181
|
+
id,
|
|
182
|
+
ref: reference,
|
|
183
|
+
key: text,
|
|
184
|
+
name: text,
|
|
185
|
+
kind: picklist(["project", "inbox"]),
|
|
186
|
+
type: picklist(["work", "client", "personal", "oss", "other"]),
|
|
187
|
+
organization_id: nullable(id),
|
|
188
|
+
scope: picklist(["personal", "work"]),
|
|
189
|
+
created_at: time
|
|
190
|
+
});
|
|
191
|
+
var reminder = strictObject({
|
|
192
|
+
id,
|
|
193
|
+
task: text,
|
|
194
|
+
due_at: time,
|
|
195
|
+
timezone: text,
|
|
196
|
+
state: picklist(["pending", "leased", "delivered", "cancelled"]),
|
|
197
|
+
revision: number(),
|
|
198
|
+
receipt: nullable(text)
|
|
199
|
+
});
|
|
200
|
+
|
|
201
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
129
202
|
var LINK_KINDS = [
|
|
130
203
|
"links-to",
|
|
131
204
|
"blocked-by",
|
|
@@ -147,6 +220,15 @@ var RELATION_KINDS = ["member-of", "related-to"];
|
|
|
147
220
|
var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
|
|
148
221
|
|
|
149
222
|
export {
|
|
223
|
+
text,
|
|
224
|
+
id,
|
|
225
|
+
time,
|
|
226
|
+
zonedTime,
|
|
227
|
+
count,
|
|
228
|
+
untrusted,
|
|
229
|
+
providerMetadata,
|
|
230
|
+
evidenceSource,
|
|
231
|
+
author,
|
|
150
232
|
TASK_KINDS,
|
|
151
233
|
TASK_STATES,
|
|
152
234
|
CLOSED_STATES,
|
|
@@ -168,6 +250,9 @@ export {
|
|
|
168
250
|
MEMORY_SCOPES,
|
|
169
251
|
WORK_TASK_TYPES,
|
|
170
252
|
TASK_TYPES,
|
|
253
|
+
organization,
|
|
254
|
+
project,
|
|
255
|
+
reminder,
|
|
171
256
|
LINK_KINDS,
|
|
172
257
|
LINK_ORIGINS,
|
|
173
258
|
LINK_SOURCES,
|