@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
|
@@ -30,18 +30,18 @@ import {
|
|
|
30
30
|
string,
|
|
31
31
|
union,
|
|
32
32
|
variant
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-BHNBWFT5.js";
|
|
34
34
|
import {
|
|
35
35
|
CliError,
|
|
36
36
|
isCliError,
|
|
37
37
|
singleLine,
|
|
38
38
|
visibleControls
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-DALBYUPC.js";
|
|
40
40
|
import {
|
|
41
41
|
__name
|
|
42
42
|
} from "./chunk-ZVVMGPBJ.js";
|
|
43
43
|
|
|
44
|
-
// 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/meetings/reference.js
|
|
45
45
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
|
|
46
46
|
var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
|
|
47
47
|
if (!Number.isSafeInteger(value) || value < minimum)
|
|
@@ -78,7 +78,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text5) => {
|
|
|
78
78
|
}, "parseMeetingReference");
|
|
79
79
|
var canonicalMeetingReference = /* @__PURE__ */ __name((text5) => formatMeetingReference(parseMeetingReference(text5)), "canonicalMeetingReference");
|
|
80
80
|
|
|
81
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
81
|
+
// 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/meetings/payment.js
|
|
82
82
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
83
83
|
var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
|
|
84
84
|
var PAYMENT_STATES = ["expected", "paid", "cancelled"];
|
|
@@ -172,7 +172,7 @@ var paymentTitle = /* @__PURE__ */ __name((fact) => {
|
|
|
172
172
|
return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
|
|
173
173
|
}, "paymentTitle");
|
|
174
174
|
|
|
175
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
175
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/types.js
|
|
176
176
|
var QUERY_LIMITS = {
|
|
177
177
|
bytes: 8192,
|
|
178
178
|
depth: 32,
|
|
@@ -216,7 +216,7 @@ function queryError(reason, span, alternative, context3 = {}, details = {}) {
|
|
|
216
216
|
__name(queryError, "queryError");
|
|
217
217
|
var walkQuery = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => walkQuery(node2)), "walkQuery");
|
|
218
218
|
|
|
219
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
219
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/dates.js
|
|
220
220
|
var timezoneOf = /* @__PURE__ */ __name((given) => {
|
|
221
221
|
const zone = given ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? "UTC";
|
|
222
222
|
try {
|
|
@@ -361,7 +361,7 @@ var dateRange = /* @__PURE__ */ __name((lower, upper, lowerInclusive, upperInclu
|
|
|
361
361
|
};
|
|
362
362
|
}, "dateRange");
|
|
363
363
|
|
|
364
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
364
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/evaluate.js
|
|
365
365
|
var wordsOf = /* @__PURE__ */ __name((text5) => text5.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
|
|
366
366
|
var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
|
|
367
367
|
var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
|
|
@@ -416,7 +416,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
|
|
|
416
416
|
}, "matches");
|
|
417
417
|
var evaluate = /* @__PURE__ */ __name((ast, fields, item, options = {}) => matches(ast.root, item, new Map(fields.map((field) => [field.name, field])), options), "evaluate");
|
|
418
418
|
|
|
419
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
419
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/fields.js
|
|
420
420
|
var FIELD_TYPES = ["kw", "txt", "enum", "num", "time", "bool", "ref"];
|
|
421
421
|
var OPERATORS_BY_TYPE = {
|
|
422
422
|
kw: ["term", "phrase", "wildcard"],
|
|
@@ -495,7 +495,7 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
|
|
|
495
495
|
return [...own, ...relations, ...states];
|
|
496
496
|
}, "queryFieldsOf");
|
|
497
497
|
|
|
498
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
498
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/help.js
|
|
499
499
|
var shownOf = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "shownOf");
|
|
500
500
|
var leftOut = /* @__PURE__ */ __name((fields) => fields.filter((field) => field.negatable).map((field) => field.name), "leftOut");
|
|
501
501
|
var has = /* @__PURE__ */ __name((fields, operator) => fields.some((field) => field.operators.includes(operator)), "has");
|
|
@@ -532,7 +532,7 @@ var queryDescription = /* @__PURE__ */ __name((registry) => {
|
|
|
532
532
|
return `${terms}; fields: ${fields.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
|
|
533
533
|
}, "queryDescription");
|
|
534
534
|
|
|
535
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
535
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/parser.js
|
|
536
536
|
var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
|
|
537
537
|
var reserved = /* @__PURE__ */ new Set([
|
|
538
538
|
"+",
|
|
@@ -841,7 +841,7 @@ var implicitTextTerms = /* @__PURE__ */ __name((text5) => {
|
|
|
841
841
|
return new Set(tokens.flatMap((token, index) => (token.kind === "term" || token.kind === "number") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index - 1]?.kind ?? "") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index + 1]?.kind ?? "") ? [token.span.start] : []));
|
|
842
842
|
}, "implicitTextTerms");
|
|
843
843
|
|
|
844
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
844
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/validate.js
|
|
845
845
|
var inContext = /* @__PURE__ */ __name((context3, run2) => {
|
|
846
846
|
try {
|
|
847
847
|
run2();
|
|
@@ -916,7 +916,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry, options = {}) => {
|
|
|
916
916
|
}, "validateQuery");
|
|
917
917
|
var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
|
|
918
918
|
|
|
919
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
919
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/registry.js
|
|
920
920
|
var describeQuery = /* @__PURE__ */ __name((registry) => ({
|
|
921
921
|
entity: registry.entity,
|
|
922
922
|
backend: registry.backend,
|
|
@@ -987,7 +987,7 @@ var QUERY_REASONS = defineReasons([
|
|
|
987
987
|
details: [...SPAN, ...details]
|
|
988
988
|
})));
|
|
989
989
|
|
|
990
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
990
|
+
// 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/meetings/item.js
|
|
991
991
|
var text = string();
|
|
992
992
|
var count = pipe(number(), integer(), minValue(0));
|
|
993
993
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -1052,7 +1052,7 @@ var MEETING_QUERY = {
|
|
|
1052
1052
|
})
|
|
1053
1053
|
};
|
|
1054
1054
|
|
|
1055
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1055
|
+
// 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/meetings/answers.js
|
|
1056
1056
|
var text2 = string();
|
|
1057
1057
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
1058
1058
|
var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
@@ -1287,7 +1287,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
1287
1287
|
};
|
|
1288
1288
|
}, "meetingHitsList");
|
|
1289
1289
|
|
|
1290
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1290
|
+
// 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/meetings/join-key.js
|
|
1291
1291
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
1292
1292
|
const parsed = urlOf(url);
|
|
1293
1293
|
if (!parsed)
|
|
@@ -1321,7 +1321,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
1321
1321
|
}
|
|
1322
1322
|
}, "urlOf");
|
|
1323
1323
|
|
|
1324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1324
|
+
// 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/meetings/calendar-text.js
|
|
1325
1325
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
1326
1326
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
1327
1327
|
var htmlToText = /* @__PURE__ */ __name((html) => html.replace(/<\s*br\s*\/?>/giu, "\n").replace(/<\/\s*(p|div|li|tr|h[1-6])\s*>/giu, "\n").replace(/<a\s[^>]*href\s*=\s*"([^"]*)"[^>]*>/giu, " $1 ").replace(/<[^>]+>/gu, "").replace(/&(amp|lt|gt|quot|#39|apos|nbsp);/gu, (_, name) => ENTITIES[name] ?? ""), "htmlToText");
|
|
@@ -1354,7 +1354,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
1354
1354
|
return kept;
|
|
1355
1355
|
}, "entryMetadata");
|
|
1356
1356
|
|
|
1357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1357
|
+
// 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/meetings/cue-fingerprint.js
|
|
1358
1358
|
import { createHash } from "node:crypto";
|
|
1359
1359
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
1360
1360
|
reference: cue2.reference,
|
|
@@ -1368,7 +1368,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
1368
1368
|
text: cue2.text
|
|
1369
1369
|
})).digest("hex"), "meetingCueFingerprint");
|
|
1370
1370
|
|
|
1371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1371
|
+
// 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/meetings/event-query.js
|
|
1372
1372
|
var EVENT_QUERY = defineQuery({
|
|
1373
1373
|
entity: "event",
|
|
1374
1374
|
backend: "sql",
|
|
@@ -1384,7 +1384,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
1384
1384
|
]
|
|
1385
1385
|
});
|
|
1386
1386
|
|
|
1387
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1387
|
+
// 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/meetings/event-store.js
|
|
1388
1388
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
1389
1389
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
1390
1390
|
if (entry.recurrenceEndsAt !== null)
|
|
@@ -1407,7 +1407,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
1407
1407
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
1408
1408
|
}, "entryInWindow");
|
|
1409
1409
|
|
|
1410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1410
|
+
// 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/meetings/events.js
|
|
1411
1411
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
|
|
1412
1412
|
const current = await store.meeting(details.meeting.id);
|
|
1413
1413
|
if (!current)
|
|
@@ -1450,7 +1450,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
1450
1450
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
1451
1451
|
}, "linkEvent");
|
|
1452
1452
|
|
|
1453
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1453
|
+
// 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/meetings/participant-search.js
|
|
1454
1454
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text5) => text5.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
1455
1455
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
1456
1456
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -1474,7 +1474,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
1474
1474
|
};
|
|
1475
1475
|
}, "validateMeetingParticipantSearch");
|
|
1476
1476
|
|
|
1477
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1477
|
+
// 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/meetings/reads.js
|
|
1478
1478
|
var MeetingError = class extends CliError {
|
|
1479
1479
|
static {
|
|
1480
1480
|
__name(this, "MeetingError");
|
|
@@ -1606,7 +1606,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id3, accountId)
|
|
|
1606
1606
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
1607
1607
|
}, "meetingSummaryAnswer");
|
|
1608
1608
|
|
|
1609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1609
|
+
// 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/meetings/export.js
|
|
1610
1610
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
1611
1611
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
1612
1612
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -1702,13 +1702,13 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id3, options) => {
|
|
|
1702
1702
|
};
|
|
1703
1703
|
}, "exportMeeting");
|
|
1704
1704
|
|
|
1705
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1705
|
+
// 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/meetings/findings-rules.js
|
|
1706
1706
|
import { createHash as createHash2 } from "node:crypto";
|
|
1707
1707
|
|
|
1708
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1708
|
+
// 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/meetings/timestamp.js
|
|
1709
1709
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
1710
1710
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
1711
|
-
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone`);
|
|
1711
|
+
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone, such as 2026-11-09T09:00:00Z`);
|
|
1712
1712
|
const date = value.slice(0, 10);
|
|
1713
1713
|
const instant = Date.parse(`${date}T00:00:00Z`);
|
|
1714
1714
|
if (!Number.isFinite(instant) || new Date(instant).toISOString().slice(0, 10) !== date)
|
|
@@ -1716,7 +1716,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
1716
1716
|
return new Date(value).toISOString();
|
|
1717
1717
|
}, "meetingTimestamp");
|
|
1718
1718
|
|
|
1719
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1719
|
+
// 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/meetings/findings-rules.js
|
|
1720
1720
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
1721
1721
|
var invalid3 = /* @__PURE__ */ __name((message) => {
|
|
1722
1722
|
throw new CliError("validation_error", message);
|
|
@@ -1727,10 +1727,33 @@ var findingText = /* @__PURE__ */ __name((value, limit) => {
|
|
|
1727
1727
|
return value.trim();
|
|
1728
1728
|
}, "findingText");
|
|
1729
1729
|
var findingHash = /* @__PURE__ */ __name((value) => createHash2("sha256").update(JSON.stringify(value)).digest("hex"), "findingHash");
|
|
1730
|
-
var
|
|
1731
|
-
|
|
1732
|
-
|
|
1730
|
+
var snakeCase = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snakeCase");
|
|
1731
|
+
var findingWhere = /* @__PURE__ */ __name((of) => {
|
|
1732
|
+
const id3 = typeof of.id === "string" ? of.id : null;
|
|
1733
|
+
const kind = typeof of.kind === "string" ? of.kind : null;
|
|
1734
|
+
return {
|
|
1735
|
+
where: id3 || kind ? ` in ${[id3, kind && `(${kind})`].filter(Boolean).join(" ")}` : "",
|
|
1736
|
+
named: { ...id3 ? { finding: id3 } : {}, ...kind ? { kind } : {} }
|
|
1737
|
+
};
|
|
1738
|
+
}, "findingWhere");
|
|
1739
|
+
var findingFields = /* @__PURE__ */ __name((value, allowed, noun, of = value) => {
|
|
1740
|
+
const unknown = Object.keys(value).filter((key) => !allowed.includes(key));
|
|
1741
|
+
if (!unknown.length)
|
|
1742
|
+
return;
|
|
1743
|
+
const fields = unknown.map(snakeCase);
|
|
1744
|
+
const takes = allowed.map(snakeCase);
|
|
1745
|
+
const { where, named } = findingWhere(of);
|
|
1746
|
+
throw new CliError("validation_error", `unknown ${noun} field${fields.length > 1 ? "s" : ""} ${fields.join(", ")}${where}; it takes ${takes.join(", ")}`, { reason: "finding.unknown-field", fields, allowed: takes, ...named });
|
|
1733
1747
|
}, "findingFields");
|
|
1748
|
+
var findingNeeds = /* @__PURE__ */ __name((value, needed, noun) => {
|
|
1749
|
+
const missing = needed.filter((key) => value[key] === void 0);
|
|
1750
|
+
if (!missing.length)
|
|
1751
|
+
return;
|
|
1752
|
+
const fields = missing.map(snakeCase);
|
|
1753
|
+
const needs = needed.map(snakeCase);
|
|
1754
|
+
const { where, named } = findingWhere(value);
|
|
1755
|
+
throw new CliError("validation_error", `missing ${noun} field${fields.length > 1 ? "s" : ""} ${fields.join(", ")}${where}; it needs ${needs.join(", ")}`, { reason: "finding.missing-field", fields, needs, ...named });
|
|
1756
|
+
}, "findingNeeds");
|
|
1734
1757
|
var SUBJECT = /^(person|organization|project):[1-9]\d*$|^task:[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$/;
|
|
1735
1758
|
var validEvidence = /* @__PURE__ */ __name((raw, rules) => {
|
|
1736
1759
|
if (!Array.isArray(raw) || raw.length < 1 || raw.length > 8)
|
|
@@ -1822,8 +1845,10 @@ var validateFinding = /* @__PURE__ */ __name((finding, rules, ids2) => {
|
|
|
1822
1845
|
return invalid3("a task finding type is bug, chore or feature");
|
|
1823
1846
|
if (!["explicit", "inferred"].includes(finding.commitment))
|
|
1824
1847
|
return invalid3("task commitment must be explicit or inferred");
|
|
1825
|
-
if (finding.dueAt === void 0 !== (finding.dueEvidence === void 0)
|
|
1826
|
-
return invalid3(
|
|
1848
|
+
if (finding.dueAt === void 0 !== (finding.dueEvidence === void 0))
|
|
1849
|
+
return invalid3(`due_at comes with due_evidence: the ${rules.cited} references of this finding's evidence that give the date, as a list of strings such as ["<reference>"]`);
|
|
1850
|
+
if (finding.assignee === void 0 !== (finding.assigneeEvidence === void 0))
|
|
1851
|
+
return invalid3(`assignee comes with assignee_evidence: the ${rules.cited} references of this finding's evidence that name them, as a list of strings such as ["<reference>"]`);
|
|
1827
1852
|
if (finding.assignee !== void 0 && (typeof finding.assignee !== "string" || !/^person:[1-9]\d*$/.test(finding.assignee)))
|
|
1828
1853
|
return invalid3("an assignee must be a person reference");
|
|
1829
1854
|
return {
|
|
@@ -1834,15 +1859,18 @@ var validateFinding = /* @__PURE__ */ __name((finding, rules, ids2) => {
|
|
|
1834
1859
|
reason: findingText(finding.reason, 2e3),
|
|
1835
1860
|
commitment: finding.commitment,
|
|
1836
1861
|
...finding.dueAt === void 0 ? {} : {
|
|
1837
|
-
dueAt: meetingTimestamp(finding.dueAt, "
|
|
1838
|
-
dueEvidence: support(finding.dueEvidence, evidence)
|
|
1862
|
+
dueAt: meetingTimestamp(finding.dueAt, "a task's due_at"),
|
|
1863
|
+
dueEvidence: support(finding.dueEvidence, evidence, "due_evidence")
|
|
1839
1864
|
},
|
|
1840
|
-
...finding.assignee === void 0 ? {} : {
|
|
1865
|
+
...finding.assignee === void 0 ? {} : {
|
|
1866
|
+
assignee: finding.assignee,
|
|
1867
|
+
assigneeEvidence: support(finding.assigneeEvidence, evidence, "assignee_evidence")
|
|
1868
|
+
}
|
|
1841
1869
|
};
|
|
1842
1870
|
}, "validateFinding");
|
|
1843
|
-
var support = /* @__PURE__ */ __name((value, evidence) => {
|
|
1871
|
+
var support = /* @__PURE__ */ __name((value, evidence, field) => {
|
|
1844
1872
|
if (!Array.isArray(value) || value.length < 1 || value.length > 8 || value.some((ref) => typeof ref !== "string" || !evidence.some((item) => item.reference === ref)))
|
|
1845
|
-
return invalid3(
|
|
1873
|
+
return invalid3(`${field} lists 1\u20138 references this finding's evidence cites, as plain strings such as ["<reference>"], not evidence objects`);
|
|
1846
1874
|
return [...new Set(value)].sort();
|
|
1847
1875
|
}, "support");
|
|
1848
1876
|
var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
|
|
@@ -1861,7 +1889,7 @@ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
|
|
|
1861
1889
|
var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
|
|
1862
1890
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
1863
1891
|
|
|
1864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1892
|
+
// 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/meetings/findings.js
|
|
1865
1893
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
1866
1894
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
1867
1895
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -1872,7 +1900,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
1872
1900
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
1873
1901
|
var meetingFindingFingerprint = findingFingerprint;
|
|
1874
1902
|
|
|
1875
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1903
|
+
// 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/meetings/hit-query.js
|
|
1876
1904
|
var context = {
|
|
1877
1905
|
command: "search meetings",
|
|
1878
1906
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -1935,7 +1963,7 @@ var MEETING_FIELDS = defineQuery({
|
|
|
1935
1963
|
});
|
|
1936
1964
|
var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
|
|
1937
1965
|
|
|
1938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1966
|
+
// 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/meetings/language.js
|
|
1939
1967
|
var LATIN_WORDS = {
|
|
1940
1968
|
en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
|
|
1941
1969
|
es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
|
|
@@ -1984,7 +2012,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
|
|
|
1984
2012
|
return null;
|
|
1985
2013
|
}, "transcriptLanguage");
|
|
1986
2014
|
|
|
1987
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2015
|
+
// 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/meetings/ingest.js
|
|
1988
2016
|
var contentHash = /* @__PURE__ */ __name(async (text5) => {
|
|
1989
2017
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text5));
|
|
1990
2018
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -2021,7 +2049,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
2021
2049
|
return time;
|
|
2022
2050
|
}, "timestamp");
|
|
2023
2051
|
|
|
2024
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2052
|
+
// 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/meetings/transcript-text.js
|
|
2025
2053
|
var TranscriptTextError = class extends Error {
|
|
2026
2054
|
static {
|
|
2027
2055
|
__name(this, "TranscriptTextError");
|
|
@@ -2076,7 +2104,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
2076
2104
|
return { header, lines };
|
|
2077
2105
|
}, "parseTranscriptText");
|
|
2078
2106
|
|
|
2079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2107
|
+
// 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/meetings/vtt.js
|
|
2080
2108
|
var VttError = class extends Error {
|
|
2081
2109
|
static {
|
|
2082
2110
|
__name(this, "VttError");
|
|
@@ -2128,7 +2156,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
2128
2156
|
return cues;
|
|
2129
2157
|
}, "parseVtt");
|
|
2130
2158
|
|
|
2131
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2159
|
+
// 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/meetings/import.js
|
|
2132
2160
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
2133
2161
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2134
2162
|
for (const file of files) {
|
|
@@ -2161,10 +2189,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2161
2189
|
return report;
|
|
2162
2190
|
}, "importFiles");
|
|
2163
2191
|
|
|
2164
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2192
|
+
// 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/meetings/links.js
|
|
2165
2193
|
var CHAT_MESSAGES_READ = 1e5;
|
|
2166
2194
|
|
|
2167
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2195
|
+
// 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/meetings/meeting-management.js
|
|
2168
2196
|
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
2169
2197
|
if (typeof value !== "string" || !value.trim())
|
|
2170
2198
|
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
@@ -2215,7 +2243,7 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
|
|
|
2215
2243
|
return Object.freeze(result);
|
|
2216
2244
|
}, "validateMeetingChange");
|
|
2217
2245
|
|
|
2218
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2246
|
+
// 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/meetings/passage.js
|
|
2219
2247
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
2220
2248
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
2221
2249
|
if (![before, after].every((value) => Number.isSafeInteger(value) && value >= 0) || before + after > 999 || !Number.isSafeInteger(bytes) || bytes < 2 || bytes > 4194304 || !Number.isSafeInteger(max_read_bytes) || max_read_bytes < 1 || max_read_bytes > 67108864 || expected_fingerprint !== void 0 && (typeof expected_fingerprint !== "string" || !/^[a-f0-9]{64}$/.test(expected_fingerprint)))
|
|
@@ -2228,7 +2256,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
2228
2256
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
2229
2257
|
}, "validateMeetingPassage");
|
|
2230
2258
|
|
|
2231
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2259
|
+
// 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/meetings/preparation-context.js
|
|
2232
2260
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
2233
2261
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2234
2262
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -2253,7 +2281,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
2253
2281
|
return { ...input, limit, maxReadBytes };
|
|
2254
2282
|
}, "validateMeetingPreparationContext");
|
|
2255
2283
|
|
|
2256
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2284
|
+
// 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/meetings/project-evidence-answer.js
|
|
2257
2285
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
2258
2286
|
var id = pipe(string(), minLength(1));
|
|
2259
2287
|
var meetingProjectEvidence = strictObject({
|
|
@@ -2374,7 +2402,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
2374
2402
|
};
|
|
2375
2403
|
}, "meetingProjectEvidenceAnswer");
|
|
2376
2404
|
|
|
2377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2405
|
+
// 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/meetings/search-validation.js
|
|
2378
2406
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
2379
2407
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
2380
2408
|
if (typeof query !== "string" || !query.trim() || query.includes("\0") || new TextEncoder().encode(query).byteLength > 65536 || !integer3(options.limit ?? 100, 1, 1e3) || !integer3(options.maxReadBytes ?? 4194304, 1, 67108864) || [
|
|
@@ -2394,7 +2422,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
2394
2422
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
2395
2423
|
}, "validateMeetingHitSearch");
|
|
2396
2424
|
|
|
2397
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2425
|
+
// 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/meetings/project-evidence-query.js
|
|
2398
2426
|
var ids = {
|
|
2399
2427
|
meeting_id: "meetingId",
|
|
2400
2428
|
identity_id: "participantIdentityId",
|
|
@@ -2485,7 +2513,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
|
|
|
2485
2513
|
return { project: project.trim(), options, query: frozen.join(" AND ") };
|
|
2486
2514
|
}, "prepareMeetingProjectEvidence");
|
|
2487
2515
|
|
|
2488
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2516
|
+
// 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/meetings/project-evidence.js
|
|
2489
2517
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
|
|
2490
2518
|
const prepared = prepareMeetingProjectEvidence(project, request, now);
|
|
2491
2519
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -2493,7 +2521,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
|
|
|
2493
2521
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
2494
2522
|
}, "readMeetingProjectEvidence");
|
|
2495
2523
|
|
|
2496
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2524
|
+
// 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/meetings/pull.js
|
|
2497
2525
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2498
2526
|
const { identityExternalId, ...fields } = p;
|
|
2499
2527
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -2632,7 +2660,7 @@ unlinked`, format)],
|
|
|
2632
2660
|
return report;
|
|
2633
2661
|
}, "pull");
|
|
2634
2662
|
|
|
2635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2663
|
+
// 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/meetings/read-answers.js
|
|
2636
2664
|
var text3 = string();
|
|
2637
2665
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
2638
2666
|
var id2 = pipe(number(), integer(), minValue(1));
|
|
@@ -2826,10 +2854,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
2826
2854
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
2827
2855
|
}), "eventItem");
|
|
2828
2856
|
|
|
2829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2857
|
+
// 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/meetings/recording-transfer.js
|
|
2830
2858
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
2831
2859
|
|
|
2832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2860
|
+
// 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/meetings/related-history.js
|
|
2833
2861
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
2834
2862
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2835
2863
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -2859,7 +2887,7 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
2859
2887
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
2860
2888
|
}, "validateMeetingRelatedHistory");
|
|
2861
2889
|
|
|
2862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2890
|
+
// 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/meetings/result-items.js
|
|
2863
2891
|
var text4 = string();
|
|
2864
2892
|
var identifier = pipe(text4, minLength(1));
|
|
2865
2893
|
var nullableText = nullable(text4);
|
|
@@ -2992,14 +3020,14 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
2992
3020
|
meeting_repair: repair
|
|
2993
3021
|
};
|
|
2994
3022
|
|
|
2995
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3023
|
+
// 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/meetings/review.js
|
|
2996
3024
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
2997
3025
|
|
|
2998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3026
|
+
// 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/meetings/save-hints.js
|
|
2999
3027
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
3000
3028
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
3001
3029
|
|
|
3002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3030
|
+
// 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/meetings/series-history.js
|
|
3003
3031
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
3004
3032
|
input.signal?.throwIfAborted();
|
|
3005
3033
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -3020,10 +3048,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
3020
3048
|
return { ...input, limit, maxReadBytes };
|
|
3021
3049
|
}, "validateMeetingSeriesHistory");
|
|
3022
3050
|
|
|
3023
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3051
|
+
// 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/meetings/upcoming-validation.js
|
|
3024
3052
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
3025
3053
|
|
|
3026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3054
|
+
// 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/meetings/series-inventory-validation.js
|
|
3027
3055
|
function invalid4(field, response = false) {
|
|
3028
3056
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
3029
3057
|
}
|
|
@@ -3052,7 +3080,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
3052
3080
|
cursorDetails(value);
|
|
3053
3081
|
}, "validateMeetingSeriesInventoryCursor");
|
|
3054
3082
|
|
|
3055
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3083
|
+
// 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/meetings/stats.js
|
|
3056
3084
|
var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
|
|
3057
3085
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
3058
3086
|
const zone = timeZone ?? "UTC";
|
|
@@ -3187,7 +3215,131 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
3187
3215
|
};
|
|
3188
3216
|
}, "aggregateMeetingStats");
|
|
3189
3217
|
|
|
3190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3218
|
+
// 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/money.js
|
|
3219
|
+
var CURRENCY_SCALES = {
|
|
3220
|
+
AED: 2,
|
|
3221
|
+
AMD: 2,
|
|
3222
|
+
AUD: 2,
|
|
3223
|
+
BHD: 3,
|
|
3224
|
+
BYN: 2,
|
|
3225
|
+
CAD: 2,
|
|
3226
|
+
CHF: 2,
|
|
3227
|
+
CLP: 0,
|
|
3228
|
+
CNY: 2,
|
|
3229
|
+
CZK: 2,
|
|
3230
|
+
DKK: 2,
|
|
3231
|
+
EUR: 2,
|
|
3232
|
+
GBP: 2,
|
|
3233
|
+
GEL: 2,
|
|
3234
|
+
HUF: 2,
|
|
3235
|
+
ILS: 2,
|
|
3236
|
+
INR: 2,
|
|
3237
|
+
ISK: 0,
|
|
3238
|
+
JPY: 0,
|
|
3239
|
+
KGS: 2,
|
|
3240
|
+
KRW: 0,
|
|
3241
|
+
KWD: 3,
|
|
3242
|
+
KZT: 2,
|
|
3243
|
+
NOK: 2,
|
|
3244
|
+
PLN: 2,
|
|
3245
|
+
RSD: 2,
|
|
3246
|
+
RUB: 2,
|
|
3247
|
+
SEK: 2,
|
|
3248
|
+
THB: 2,
|
|
3249
|
+
TRY: 2,
|
|
3250
|
+
UAH: 2,
|
|
3251
|
+
USD: 2,
|
|
3252
|
+
UZS: 2,
|
|
3253
|
+
VND: 0
|
|
3254
|
+
};
|
|
3255
|
+
var refuse = /* @__PURE__ */ __name((message, reason) => {
|
|
3256
|
+
throw new CliError("validation_error", message, { reason });
|
|
3257
|
+
}, "refuse");
|
|
3258
|
+
var DECIMAL = /^(\d{1,15})(?:\.(\d+))?$/;
|
|
3259
|
+
var parseDecimal = /* @__PURE__ */ __name((text5, scale) => {
|
|
3260
|
+
const match = DECIMAL.exec(text5.trim());
|
|
3261
|
+
if (!match || (match[2] ?? "").length > scale)
|
|
3262
|
+
return void 0;
|
|
3263
|
+
return BigInt(`${match[1]}${(match[2] ?? "").padEnd(scale, "0")}`);
|
|
3264
|
+
}, "parseDecimal");
|
|
3265
|
+
var formatDecimal = /* @__PURE__ */ __name((units, scale) => {
|
|
3266
|
+
const digits = BigInt(units).toString().padStart(scale + 1, "0");
|
|
3267
|
+
return scale === 0 ? digits : `${digits.slice(0, -scale)}.${digits.slice(-scale)}`;
|
|
3268
|
+
}, "formatDecimal");
|
|
3269
|
+
var groupDigits = /* @__PURE__ */ __name((decimal) => {
|
|
3270
|
+
const [whole = "0", fraction] = decimal.split(".");
|
|
3271
|
+
const grouped2 = whole.replace(/\B(?=(\d{3})+(?!\d))/g, " ");
|
|
3272
|
+
return fraction === void 0 ? grouped2 : `${grouped2}.${fraction}`;
|
|
3273
|
+
}, "groupDigits");
|
|
3274
|
+
var currencyOf = /* @__PURE__ */ __name((text5) => {
|
|
3275
|
+
const code = typeof text5 === "string" ? text5.trim().toUpperCase() : "";
|
|
3276
|
+
if (CURRENCY_SCALES[code] === void 0)
|
|
3277
|
+
return refuse(`${typeof text5 === "string" && text5.trim() ? text5.trim() : "an empty currency"} is not a currency the store keeps; use one of ${Object.keys(CURRENCY_SCALES).join(", ")}`, "money.currency");
|
|
3278
|
+
return code;
|
|
3279
|
+
}, "currencyOf");
|
|
3280
|
+
var scaleOf = /* @__PURE__ */ __name((currency) => CURRENCY_SCALES[currencyOf(currency)], "scaleOf");
|
|
3281
|
+
var minorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
|
|
3282
|
+
const scale = scaleOf(currency);
|
|
3283
|
+
const units = typeof amount === "string" ? parseDecimal(amount, scale) : void 0;
|
|
3284
|
+
if (units === void 0 || units > BigInt(Number.MAX_SAFE_INTEGER))
|
|
3285
|
+
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");
|
|
3286
|
+
return Number(units);
|
|
3287
|
+
}, "minorUnits");
|
|
3288
|
+
var moneyOf = /* @__PURE__ */ __name((units, currency) => ({
|
|
3289
|
+
amount: formatDecimal(units, scaleOf(currency)),
|
|
3290
|
+
currency
|
|
3291
|
+
}), "moneyOf");
|
|
3292
|
+
var moneyLabel = /* @__PURE__ */ __name((units, currency) => `${groupDigits(formatDecimal(units, scaleOf(currency)))} ${currency}`, "moneyLabel");
|
|
3293
|
+
var QUANTITY_SCALE = 3;
|
|
3294
|
+
var quantityOf = /* @__PURE__ */ __name((text5) => {
|
|
3295
|
+
const thousandths = typeof text5 === "string" ? parseDecimal(text5, QUANTITY_SCALE) : void 0;
|
|
3296
|
+
if (thousandths === void 0 || thousandths === 0n)
|
|
3297
|
+
return refuse('a quantity is a decimal string above 0 with at most 3 decimals, such as "1.5"', "money.quantity");
|
|
3298
|
+
const plain = formatDecimal(thousandths, QUANTITY_SCALE).replace(/\.?0+$/, "");
|
|
3299
|
+
return { text: plain, thousandths };
|
|
3300
|
+
}, "quantityOf");
|
|
3301
|
+
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
3302
|
+
|
|
3303
|
+
// 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/finance.js
|
|
3304
|
+
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
3305
|
+
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
3306
|
+
var MONEY_DIRECTIONS = ["in", "out"];
|
|
3307
|
+
var FINANCE_REVIEWS = ["proposed", "confirmed", "rejected"];
|
|
3308
|
+
var settledStatus = /* @__PURE__ */ __name((current, total, paid) => {
|
|
3309
|
+
if (current === "draft" || current === "void")
|
|
3310
|
+
return current;
|
|
3311
|
+
if (paid <= 0)
|
|
3312
|
+
return "issued";
|
|
3313
|
+
return paid < total ? "partly_paid" : "paid";
|
|
3314
|
+
}, "settledStatus");
|
|
3315
|
+
var dayMonth = /* @__PURE__ */ __name((date) => date === null ? null : `${date.slice(8, 10)}.${date.slice(5, 7)}`, "dayMonth");
|
|
3316
|
+
var notes = /* @__PURE__ */ __name((...words2) => {
|
|
3317
|
+
const kept = words2.filter((word) => word !== null);
|
|
3318
|
+
return kept.length === 0 ? "" : ` (${kept.join(", ")})`;
|
|
3319
|
+
}, "notes");
|
|
3320
|
+
var invoiceLine = /* @__PURE__ */ __name((invoice) => {
|
|
3321
|
+
const party = invoice.counterpartyName === null ? "" : `${invoice.direction === "receivable" ? " to" : " from"} ${invoice.counterpartyName}`;
|
|
3322
|
+
const due = invoice.dueDate === null ? "" : `, due ${dayMonth(invoice.dueDate)}`;
|
|
3323
|
+
return `${invoice.number ?? `#${invoice.id}`} \xB7 ${moneyLabel(invoice.total, invoice.currency)}${party}${due}` + notes(invoice.status.replace("_", " "), invoice.review === "confirmed" ? null : invoice.review);
|
|
3324
|
+
}, "invoiceLine");
|
|
3325
|
+
var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
3326
|
+
const party = payment.partyName === null ? "" : `${payment.direction === "in" ? " from" : " to"} ${payment.partyName}`;
|
|
3327
|
+
return `${moneyLabel(payment.amount, payment.currency)}${party}, ${dayMonth(payment.date)}` + notes(payment.review === "confirmed" ? null : payment.review);
|
|
3328
|
+
}, "paymentLine");
|
|
3329
|
+
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
3330
|
+
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
3331
|
+
|
|
3332
|
+
// 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/orders.js
|
|
3333
|
+
var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
|
|
3334
|
+
var ORDER_PURPOSES = ["personal", "business", "client", "other"];
|
|
3335
|
+
var orderLine = /* @__PURE__ */ __name((order) => {
|
|
3336
|
+
const money = order.total === null || order.currency === null ? "" : `, ${moneyLabel(order.total, order.currency)}`;
|
|
3337
|
+
const notes2 = [order.status, order.review === "confirmed" ? null : order.review].filter(Boolean).join(", ");
|
|
3338
|
+
return `${order.number ?? `#${order.id}`} \xB7 ${order.supplierName}${money} (${notes2})`;
|
|
3339
|
+
}, "orderLine");
|
|
3340
|
+
var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
|
|
3341
|
+
|
|
3342
|
+
// 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/tags.js
|
|
3191
3343
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
3192
3344
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
3193
3345
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -3262,6 +3414,7 @@ export {
|
|
|
3262
3414
|
findingText,
|
|
3263
3415
|
findingHash,
|
|
3264
3416
|
findingFields,
|
|
3417
|
+
findingNeeds,
|
|
3265
3418
|
validEvidence,
|
|
3266
3419
|
findingId,
|
|
3267
3420
|
validateFinding,
|
|
@@ -3303,6 +3456,29 @@ export {
|
|
|
3303
3456
|
validateMeetingSeriesInventoryCursor,
|
|
3304
3457
|
aggregateMeetingCounts,
|
|
3305
3458
|
aggregateMeetingStats,
|
|
3459
|
+
CURRENCY_SCALES,
|
|
3460
|
+
parseDecimal,
|
|
3461
|
+
formatDecimal,
|
|
3462
|
+
currencyOf,
|
|
3463
|
+
scaleOf,
|
|
3464
|
+
minorUnits,
|
|
3465
|
+
moneyOf,
|
|
3466
|
+
moneyLabel,
|
|
3467
|
+
quantityOf,
|
|
3468
|
+
lineUnits,
|
|
3469
|
+
INVOICE_DIRECTIONS,
|
|
3470
|
+
INVOICE_STATUSES,
|
|
3471
|
+
MONEY_DIRECTIONS,
|
|
3472
|
+
FINANCE_REVIEWS,
|
|
3473
|
+
settledStatus,
|
|
3474
|
+
invoiceLine,
|
|
3475
|
+
paymentLine,
|
|
3476
|
+
invoiceTitle,
|
|
3477
|
+
paymentEntryTitle,
|
|
3478
|
+
ORDER_STATUSES,
|
|
3479
|
+
ORDER_PURPOSES,
|
|
3480
|
+
orderLine,
|
|
3481
|
+
orderTitle,
|
|
3306
3482
|
TAG_TYPES,
|
|
3307
3483
|
tagOf,
|
|
3308
3484
|
normalizeTag
|