@wirecat/mail-cli 0.22.0 → 0.23.1
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 +34 -0
- package/README.md +2 -1
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-DTUWUCQQ.js → all-profiles-FJHJCGRU.js} +9 -9
- package/dist/bundle/{anthropic-YJAEQSNT.js → anthropic-AFL7NKVZ.js} +9 -7
- package/dist/bundle/{app-server-3ZXSTBA3.js → app-server-WKCBJMHI.js} +46 -46
- package/dist/bundle/{bun-34VBM7C5.js → bun-HQATAQJQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-GCT7ROCK.js → bun-sqlite-4ECAV7OU.js} +4 -4
- package/dist/bundle/{chunk-RFB27ACZ.js → chunk-2HXHAFRP.js} +2 -2
- package/dist/bundle/{chunk-MD64ITYO.js → chunk-34743C4C.js} +1 -1
- package/dist/bundle/{chunk-Z75WYAX6.js → chunk-3OZKDC6Y.js} +8 -7
- package/dist/bundle/{chunk-UWL2IOII.js → chunk-3QVGB2CI.js} +2 -2
- package/dist/bundle/{chunk-3HDQVTND.js → chunk-3UFD76IR.js} +5 -5
- package/dist/bundle/{chunk-SCIC2CJS.js → chunk-4IFX4HV2.js} +4 -4
- package/dist/bundle/{chunk-QE72KTS7.js → chunk-4IWJARFA.js} +1 -1
- package/dist/bundle/{chunk-ZZSHGCRC.js → chunk-4YJJQNNJ.js} +4 -4
- package/dist/bundle/{chunk-RPCKBXKN.js → chunk-5UKBUI4I.js} +2 -2
- package/dist/bundle/{chunk-J4UZXBEV.js → chunk-76RTQYJQ.js} +1 -1
- package/dist/bundle/{chunk-I2SDXWLR.js → chunk-7YRKUEYE.js} +118 -54
- package/dist/bundle/{chunk-ZKLXSVIO.js → chunk-AGNAT7CM.js} +1 -1
- package/dist/bundle/{chunk-HSBGNVEL.js → chunk-B6QMMRIM.js} +361 -188
- package/dist/bundle/{chunk-WBAA2X3E.js → chunk-BVJQBAGL.js} +11 -11
- package/dist/bundle/{chunk-TCCN5TON.js → chunk-CBWA2T3N.js} +24 -2
- package/dist/bundle/{chunk-P6FT6YYT.js → chunk-CCYHBNRL.js} +16 -16
- package/dist/bundle/{chunk-B74SOC4R.js → chunk-CUOCDJFI.js} +8 -8
- package/dist/bundle/{chunk-RY7PBP4F.js → chunk-CYQVWITQ.js} +16 -16
- package/dist/bundle/{chunk-566MEXK5.js → chunk-E7ZVKQHG.js} +3 -3
- package/dist/bundle/{chunk-HJ2CXDKJ.js → chunk-EXPR6QAX.js} +26 -12
- package/dist/bundle/{chunk-LTXYJAJK.js → chunk-FWFNUJQD.js} +24 -63
- package/dist/bundle/{chunk-VINSQR4X.js → chunk-GJNFNC76.js} +7 -7
- package/dist/bundle/{chunk-BHNBWFT5.js → chunk-GOMJNH56.js} +44 -0
- package/dist/bundle/{chunk-7XLOWYGD.js → chunk-HOKGIYUO.js} +39 -4
- package/dist/bundle/{chunk-FTI73RLC.js → chunk-KKGX7JMX.js} +2 -2
- package/dist/bundle/{chunk-BMV56JCL.js → chunk-LLYVBO3R.js} +1 -1
- package/dist/bundle/{chunk-QTMVGOSF.js → chunk-LQDMUMA2.js} +1336 -796
- package/dist/bundle/{chunk-VQZCIDSO.js → chunk-M7RGG3UU.js} +3 -3
- package/dist/bundle/{chunk-R3WPMQYZ.js → chunk-MBKNL5TX.js} +632 -435
- package/dist/bundle/{chunk-AF62BPIW.js → chunk-MUDHCYN4.js} +5 -5
- package/dist/bundle/{chunk-25PD6FZY.js → chunk-NKBAZ4VC.js} +2 -2
- package/dist/bundle/{chunk-2PPEDB67.js → chunk-NMGF3UOZ.js} +30 -30
- package/dist/bundle/{chunk-KMQAHDBM.js → chunk-NOA6E6MM.js} +2173 -1297
- package/dist/bundle/{chunk-J2U6LUT5.js → chunk-OJCUSHZG.js} +3 -3
- package/dist/bundle/{chunk-T3DTYJTG.js → chunk-OU5CWCG2.js} +1 -1
- package/dist/bundle/{chunk-OKO2Q6H6.js → chunk-PMIKRELC.js} +2 -2
- package/dist/bundle/{chunk-RT6SLZBI.js → chunk-QR7JZM3D.js} +1 -1
- package/dist/bundle/{chunk-O3M2S62X.js → chunk-QUKD5SO2.js} +3 -3
- package/dist/bundle/{chunk-SFC46MP2.js → chunk-QV3M2MHG.js} +10 -10
- package/dist/bundle/{chunk-SYEICLTR.js → chunk-R554W7ZO.js} +1 -1
- package/dist/bundle/{chunk-NOVBK4SY.js → chunk-R5MYOLQP.js} +12 -12
- package/dist/bundle/{chunk-4FWJNIPH.js → chunk-ROKTS7WM.js} +1 -1
- package/dist/bundle/{chunk-GAPQENMY.js → chunk-S5OTP7XS.js} +22 -4
- package/dist/bundle/{chunk-HRRSTIGP.js → chunk-SBGXKM4U.js} +10 -6
- package/dist/bundle/{chunk-ODFHIXMA.js → chunk-SNTLN2QT.js} +1 -1
- package/dist/bundle/{chunk-VDUGE6TH.js → chunk-SR3ADLGX.js} +2 -2
- package/dist/bundle/{chunk-4WIEVQ2Q.js → chunk-UMXVQIGD.js} +137 -9
- package/dist/bundle/{chunk-HN43G27G.js → chunk-V3TDQUXD.js} +45 -27
- package/dist/bundle/{chunk-3DSYLE5N.js → chunk-V7CFZ773.js} +2 -2
- package/dist/bundle/{chunk-LF5XM4HE.js → chunk-VAMCRP47.js} +1 -1
- package/dist/bundle/{chunk-Z7N4MGOQ.js → chunk-VFKX5UMJ.js} +5 -5
- package/dist/bundle/{chunk-72N26BQM.js → chunk-VYHIX3OP.js} +88 -88
- package/dist/bundle/{chunk-P2QJA7S5.js → chunk-VYIIX6VN.js} +1 -1
- package/dist/bundle/{chunk-V6OIIVH3.js → chunk-WN4HP7IZ.js} +11 -11
- package/dist/bundle/{chunk-MDDB7M7Z.js → chunk-ZXIPJF3Y.js} +1 -1
- package/dist/bundle/command-contract-IIHBNF7J.js +35 -0
- package/dist/bundle/{decode-BIOOL5E4.js → decode-QXKTMOTH.js} +4 -4
- package/dist/bundle/{dispatch-R5OF2FVZ.js → dispatch-G4CYFWQ2.js} +1 -1
- package/dist/bundle/{dist-TJVIRLE5.js → dist-5FX36DAW.js} +44 -22
- package/dist/bundle/{echarts-ECPGMKXO.js → echarts-HHUM43TU.js} +2 -2
- package/dist/bundle/{embed-F7JFSLHN.js → embed-SRZSDZVI.js} +5 -5
- package/dist/bundle/{embedder-U4G74HV3.js → embedder-WZIZCWLX.js} +8 -8
- package/dist/bundle/{failure-WYKVF6RH.js → failure-FFPK2WYB.js} +1 -1
- package/dist/bundle/{first-run-JTYPUYQP.js → first-run-6DVWZ3JQ.js} +8 -8
- package/dist/bundle/first-screen-SRZ7NYHZ.js +33 -0
- package/dist/bundle/{instructions-WNCGZ7OJ.js → instructions-UWONE6UT.js} +1 -1
- package/dist/bundle/mail.js +5 -5
- package/dist/bundle/{node-UIRGGMGT.js → node-HLAOYJDB.js} +2 -2
- package/dist/bundle/{node-sqlite-4ZM7OPRF.js → node-sqlite-RO66I7W6.js} +5 -5
- package/dist/bundle/{oauth-5RAJZPBW.js → oauth-VNLB2TET.js} +6 -6
- package/dist/bundle/{open-7ORCHOAI.js → open-QQSG343L.js} +4 -4
- package/dist/bundle/{openai-XSJNXJA7.js → openai-JTFC7OGF.js} +12 -12
- package/dist/bundle/{process-ZLO72UVZ.js → process-3CZAXR6P.js} +1 -1
- package/dist/bundle/{program-MXGQFQJG.js → program-XTOS4RAM.js} +4528 -2579
- package/dist/bundle/{prompt-IDUPCUGM.js → prompt-HGQ6GPYL.js} +6 -4
- package/dist/bundle/{recognize-OS3EZKIM.js → recognize-2SHMNEIZ.js} +3 -3
- package/dist/bundle/{remote-PF4LZR65.js → remote-GBQC3433.js} +6 -6
- package/dist/bundle/{rerank-CQNZF3JI.js → rerank-FQHQXFNR.js} +6 -6
- package/dist/bundle/{serve-Y2DDLGBT.js → serve-THU67QUZ.js} +8 -8
- package/dist/bundle/{server-TVRT7YEY.js → server-LOT3CLYX.js} +36 -36
- package/dist/bundle/server-VKMUX7ZT.js +65 -0
- package/dist/bundle/{sqlite-runtime-5343C3OE.js → sqlite-runtime-NOOUMBC4.js} +5 -5
- package/dist/bundle/{state-4GBTMPIV.js → state-KSKZCV2U.js} +5 -5
- package/dist/bundle/{store-QA6QJ5BB.js → store-BAKSHTKF.js} +37 -14
- package/dist/bundle/{store-OLBLTQPT.js → store-OHNZOQ7U.js} +30 -18
- package/dist/bundle/store-maintenance-command-ROQHJVEA.js +54 -0
- package/dist/commands/account-remove.d.ts +3 -0
- package/dist/commands/account-remove.d.ts.map +1 -0
- package/dist/commands/account-remove.js +65 -0
- package/dist/commands/account-remove.js.map +1 -0
- package/dist/commands/account.d.ts.map +1 -1
- package/dist/commands/account.js +3 -1
- package/dist/commands/account.js.map +1 -1
- package/dist/commands/context.d.ts +3 -1
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/rules.d.ts.map +1 -1
- package/dist/commands/rules.js +29 -7
- package/dist/commands/rules.js.map +1 -1
- package/dist/commands/sync.d.ts +0 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +8 -2
- package/dist/commands/sync.js.map +1 -1
- package/dist/mail/changes.d.ts +1 -0
- package/dist/mail/changes.d.ts.map +1 -1
- package/dist/mail/changes.js +1 -1
- package/dist/mail/changes.js.map +1 -1
- package/dist/providers.js +2 -2
- package/dist/providers.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-QPRXTLMD.js +0 -33
- package/dist/bundle/command-contract-Y4ZQAJEC.js +0 -35
- package/dist/bundle/first-screen-W6RWTAU7.js +0 -33
- package/dist/bundle/server-I3IALQMC.js +0 -65
- package/dist/bundle/store-maintenance-command-LB6CMGP4.js +0 -55
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
string,
|
|
31
31
|
union,
|
|
32
32
|
variant
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-GOMJNH56.js";
|
|
34
34
|
import {
|
|
35
35
|
CliError,
|
|
36
36
|
isCliError,
|
|
@@ -41,7 +41,7 @@ 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.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/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.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/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"];
|
|
@@ -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.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/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.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/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");
|
|
@@ -1255,10 +1255,10 @@ var meetingHitItem = /* @__PURE__ */ __name((hit) => ({
|
|
|
1255
1255
|
var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search meetings", args = {}, meta = {}) => {
|
|
1256
1256
|
const items = found.items.map(meetingHitItem);
|
|
1257
1257
|
const cursor = found.hasMore && found.nextCursor !== null ? found.nextCursor : void 0;
|
|
1258
|
-
const
|
|
1258
|
+
const pending2 = found.coverage.indexing === "pending";
|
|
1259
1259
|
const next = [
|
|
1260
1260
|
...cursor === void 0 ? [] : [stepOf(PAGE_NEXT, { command, args: { ...args, cursor, limit }, values: { shown: items.length } })],
|
|
1261
|
-
...
|
|
1261
|
+
...pending2 ? [
|
|
1262
1262
|
stepOf(SEARCH_AGAIN, {
|
|
1263
1263
|
command,
|
|
1264
1264
|
args: Object.fromEntries(Object.entries(args).filter(([key]) => key !== "cursor"))
|
|
@@ -1274,7 +1274,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
1274
1274
|
...cursor === void 0 ? {} : { next_cursor: cursor }
|
|
1275
1275
|
},
|
|
1276
1276
|
...next.length > 0 ? { next } : {},
|
|
1277
|
-
...
|
|
1277
|
+
...pending2 ? {
|
|
1278
1278
|
missing: [
|
|
1279
1279
|
{
|
|
1280
1280
|
field: "excerpt",
|
|
@@ -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.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/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.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/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");
|
|
@@ -1358,7 +1358,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
1358
1358
|
return kept;
|
|
1359
1359
|
}, "entryMetadata");
|
|
1360
1360
|
|
|
1361
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1361
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
1362
1362
|
import { createHash } from "node:crypto";
|
|
1363
1363
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
1364
1364
|
reference: cue2.reference,
|
|
@@ -1372,7 +1372,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
1372
1372
|
text: cue2.text
|
|
1373
1373
|
})).digest("hex"), "meetingCueFingerprint");
|
|
1374
1374
|
|
|
1375
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
1376
1376
|
var EVENT_QUERY = defineQuery({
|
|
1377
1377
|
entity: "event",
|
|
1378
1378
|
backend: "sql",
|
|
@@ -1388,7 +1388,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
1388
1388
|
]
|
|
1389
1389
|
});
|
|
1390
1390
|
|
|
1391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
1392
1392
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
1393
1393
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
1394
1394
|
if (entry.recurrenceEndsAt !== null)
|
|
@@ -1411,7 +1411,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
1411
1411
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
1412
1412
|
}, "entryInWindow");
|
|
1413
1413
|
|
|
1414
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1414
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
1415
1415
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
|
|
1416
1416
|
const current = await store.meeting(details.meeting.id);
|
|
1417
1417
|
if (!current)
|
|
@@ -1454,7 +1454,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
1454
1454
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
1455
1455
|
}, "linkEvent");
|
|
1456
1456
|
|
|
1457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
1458
1458
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text5) => text5.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
1459
1459
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
1460
1460
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -1478,7 +1478,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
1478
1478
|
};
|
|
1479
1479
|
}, "validateMeetingParticipantSearch");
|
|
1480
1480
|
|
|
1481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1481
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
1482
1482
|
var MeetingError = class extends CliError {
|
|
1483
1483
|
static {
|
|
1484
1484
|
__name(this, "MeetingError");
|
|
@@ -1610,7 +1610,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id3, accountId)
|
|
|
1610
1610
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
1611
1611
|
}, "meetingSummaryAnswer");
|
|
1612
1612
|
|
|
1613
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1613
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
1614
1614
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
1615
1615
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
1616
1616
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -1706,10 +1706,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id3, options) => {
|
|
|
1706
1706
|
};
|
|
1707
1707
|
}, "exportMeeting");
|
|
1708
1708
|
|
|
1709
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1709
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1710
1710
|
import { createHash as createHash2 } from "node:crypto";
|
|
1711
1711
|
|
|
1712
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1712
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
1713
1713
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
1714
1714
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
1715
1715
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone, such as 2026-11-09T09:00:00Z`);
|
|
@@ -1720,7 +1720,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
1720
1720
|
return new Date(value).toISOString();
|
|
1721
1721
|
}, "meetingTimestamp");
|
|
1722
1722
|
|
|
1723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1724
1724
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
1725
1725
|
var invalid3 = /* @__PURE__ */ __name((message) => {
|
|
1726
1726
|
throw new CliError("validation_error", message);
|
|
@@ -1893,7 +1893,7 @@ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
|
|
|
1893
1893
|
var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
|
|
1894
1894
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
1895
1895
|
|
|
1896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
1897
1897
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
1898
1898
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
1899
1899
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -1904,7 +1904,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
1904
1904
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
1905
1905
|
var meetingFindingFingerprint = findingFingerprint;
|
|
1906
1906
|
|
|
1907
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
1908
1908
|
var context = {
|
|
1909
1909
|
command: "search meetings",
|
|
1910
1910
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -1968,7 +1968,7 @@ var MEETING_FIELDS = defineQuery({
|
|
|
1968
1968
|
var MEETING_FIELD_NAMES = new Set(MEETING_FIELDS.fields.map(({ name }) => name));
|
|
1969
1969
|
var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
|
|
1970
1970
|
|
|
1971
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/language.js
|
|
1972
1972
|
var LATIN_WORDS = {
|
|
1973
1973
|
en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
|
|
1974
1974
|
es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
|
|
@@ -2017,7 +2017,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
|
|
|
2017
2017
|
return null;
|
|
2018
2018
|
}, "transcriptLanguage");
|
|
2019
2019
|
|
|
2020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
2021
2021
|
var contentHash = /* @__PURE__ */ __name(async (text5) => {
|
|
2022
2022
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text5));
|
|
2023
2023
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -2054,7 +2054,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
2054
2054
|
return time;
|
|
2055
2055
|
}, "timestamp");
|
|
2056
2056
|
|
|
2057
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2057
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
2058
2058
|
var TranscriptTextError = class extends Error {
|
|
2059
2059
|
static {
|
|
2060
2060
|
__name(this, "TranscriptTextError");
|
|
@@ -2109,7 +2109,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
2109
2109
|
return { header, lines };
|
|
2110
2110
|
}, "parseTranscriptText");
|
|
2111
2111
|
|
|
2112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
2113
2113
|
var VttError = class extends Error {
|
|
2114
2114
|
static {
|
|
2115
2115
|
__name(this, "VttError");
|
|
@@ -2161,7 +2161,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
2161
2161
|
return cues;
|
|
2162
2162
|
}, "parseVtt");
|
|
2163
2163
|
|
|
2164
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
2165
2165
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
2166
2166
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2167
2167
|
for (const file of files) {
|
|
@@ -2194,10 +2194,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2194
2194
|
return report;
|
|
2195
2195
|
}, "importFiles");
|
|
2196
2196
|
|
|
2197
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2197
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
2198
2198
|
var CHAT_MESSAGES_READ = 1e5;
|
|
2199
2199
|
|
|
2200
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2200
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
2201
2201
|
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
2202
2202
|
if (typeof value !== "string" || !value.trim())
|
|
2203
2203
|
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
@@ -2248,7 +2248,7 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
|
|
|
2248
2248
|
return Object.freeze(result);
|
|
2249
2249
|
}, "validateMeetingChange");
|
|
2250
2250
|
|
|
2251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
2252
2252
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
2253
2253
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
2254
2254
|
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)))
|
|
@@ -2261,7 +2261,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
2261
2261
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
2262
2262
|
}, "validateMeetingPassage");
|
|
2263
2263
|
|
|
2264
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
2265
2265
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
2266
2266
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2267
2267
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -2286,7 +2286,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
2286
2286
|
return { ...input, limit, maxReadBytes };
|
|
2287
2287
|
}, "validateMeetingPreparationContext");
|
|
2288
2288
|
|
|
2289
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2289
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
2290
2290
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
2291
2291
|
var id = pipe(string(), minLength(1));
|
|
2292
2292
|
var meetingProjectEvidence = strictObject({
|
|
@@ -2407,7 +2407,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
2407
2407
|
};
|
|
2408
2408
|
}, "meetingProjectEvidenceAnswer");
|
|
2409
2409
|
|
|
2410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
2411
2411
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
2412
2412
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
2413
2413
|
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) || [
|
|
@@ -2427,7 +2427,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
2427
2427
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
2428
2428
|
}, "validateMeetingHitSearch");
|
|
2429
2429
|
|
|
2430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
2431
2431
|
var ids = {
|
|
2432
2432
|
meeting_id: "meetingId",
|
|
2433
2433
|
identity_id: "participantIdentityId",
|
|
@@ -2518,7 +2518,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
|
|
|
2518
2518
|
return { project: project.trim(), options, query: frozen.join(" AND ") };
|
|
2519
2519
|
}, "prepareMeetingProjectEvidence");
|
|
2520
2520
|
|
|
2521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2521
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
2522
2522
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
|
|
2523
2523
|
const prepared = prepareMeetingProjectEvidence(project, request, now);
|
|
2524
2524
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -2526,7 +2526,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
|
|
|
2526
2526
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
2527
2527
|
}, "readMeetingProjectEvidence");
|
|
2528
2528
|
|
|
2529
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
2530
2530
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2531
2531
|
const { identityExternalId, ...fields } = p;
|
|
2532
2532
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -2688,7 +2688,7 @@ unlinked`, format)],
|
|
|
2688
2688
|
return report;
|
|
2689
2689
|
}, "pull");
|
|
2690
2690
|
|
|
2691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2691
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
2692
2692
|
var text3 = string();
|
|
2693
2693
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
2694
2694
|
var id2 = pipe(number(), integer(), minValue(1));
|
|
@@ -2882,10 +2882,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
2882
2882
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
2883
2883
|
}), "eventItem");
|
|
2884
2884
|
|
|
2885
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
2886
2886
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
2887
2887
|
|
|
2888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
2889
2889
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
2890
2890
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2891
2891
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -2915,7 +2915,7 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
2915
2915
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
2916
2916
|
}, "validateMeetingRelatedHistory");
|
|
2917
2917
|
|
|
2918
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2918
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
2919
2919
|
var text4 = string();
|
|
2920
2920
|
var identifier = pipe(text4, minLength(1));
|
|
2921
2921
|
var nullableText = nullable(text4);
|
|
@@ -3048,14 +3048,14 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
3048
3048
|
meeting_repair: repair
|
|
3049
3049
|
};
|
|
3050
3050
|
|
|
3051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3051
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
3052
3052
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
3053
3053
|
|
|
3054
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3054
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
3055
3055
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
3056
3056
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
3057
3057
|
|
|
3058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
3059
3059
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
3060
3060
|
input.signal?.throwIfAborted();
|
|
3061
3061
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -3076,10 +3076,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
3076
3076
|
return { ...input, limit, maxReadBytes };
|
|
3077
3077
|
}, "validateMeetingSeriesHistory");
|
|
3078
3078
|
|
|
3079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3079
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
3080
3080
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
3081
3081
|
|
|
3082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3082
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
3083
3083
|
function invalid4(field, response = false) {
|
|
3084
3084
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
3085
3085
|
}
|
|
@@ -3108,7 +3108,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
3108
3108
|
cursorDetails(value);
|
|
3109
3109
|
}, "validateMeetingSeriesInventoryCursor");
|
|
3110
3110
|
|
|
3111
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3111
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
3112
3112
|
var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
|
|
3113
3113
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
3114
3114
|
const zone = timeZone ?? "UTC";
|
|
@@ -3243,7 +3243,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
3243
3243
|
};
|
|
3244
3244
|
}, "aggregateMeetingStats");
|
|
3245
3245
|
|
|
3246
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3246
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/money.js
|
|
3247
3247
|
var CURRENCY_SCALES = {
|
|
3248
3248
|
AED: 2,
|
|
3249
3249
|
AMD: 2,
|
|
@@ -3337,7 +3337,7 @@ var quantityOf = /* @__PURE__ */ __name((text5) => {
|
|
|
3337
3337
|
}, "quantityOf");
|
|
3338
3338
|
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
3339
3339
|
|
|
3340
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/finance.js
|
|
3341
3341
|
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
3342
3342
|
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
3343
3343
|
var MONEY_DIRECTIONS = ["in", "out"];
|
|
@@ -3366,7 +3366,7 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
|
3366
3366
|
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
3367
3367
|
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
3368
3368
|
|
|
3369
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/orders.js
|
|
3370
3370
|
var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
|
|
3371
3371
|
var ORDER_PURPOSES = ["personal", "business", "client", "other"];
|
|
3372
3372
|
var orderLine = /* @__PURE__ */ __name((order) => {
|
|
@@ -3376,7 +3376,7 @@ var orderLine = /* @__PURE__ */ __name((order) => {
|
|
|
3376
3376
|
}, "orderLine");
|
|
3377
3377
|
var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
|
|
3378
3378
|
|
|
3379
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3379
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/deals.js
|
|
3380
3380
|
var DEAL_KINDS = ["deal", "lead"];
|
|
3381
3381
|
var DEAL_STATUSES = ["open", "won", "lost"];
|
|
3382
3382
|
var STAGE_OUTCOMES = DEAL_STATUSES;
|
|
@@ -3386,7 +3386,36 @@ var dealLine = /* @__PURE__ */ __name((deal) => {
|
|
|
3386
3386
|
return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
|
|
3387
3387
|
}, "dealLine");
|
|
3388
3388
|
|
|
3389
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3389
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/business.js
|
|
3390
|
+
var CATALOG_KINDS = ["product", "service"];
|
|
3391
|
+
var BUSINESS_KINDS = ["invoice", "payment", "order", "contract", "subscription", "product", "wallet"];
|
|
3392
|
+
var CONTRACT_KINDS = ["sale", "purchase", "service", "lease", "employment", "nda", "license", "other"];
|
|
3393
|
+
var CONTRACT_STATUSES = ["draft", "active", "ended", "terminated"];
|
|
3394
|
+
var PERIOD_UNITS = ["day", "week", "month", "year"];
|
|
3395
|
+
var SUBSCRIPTION_STATUSES = ["trial", "active", "paused", "cancelled", "ended"];
|
|
3396
|
+
var WALLET_KINDS = ["bank", "card", "cash", "wallet", "other"];
|
|
3397
|
+
var TRANSACTION_STATUSES = ["pending", "booked"];
|
|
3398
|
+
var ORDER_DIRECTIONS = ["purchase", "sale"];
|
|
3399
|
+
var intervalOf = /* @__PURE__ */ __name((text5, reason = "subscription.interval") => {
|
|
3400
|
+
const match = typeof text5 === "string" ? /^(?:([1-9]\d{0,2})-)?(day|week|month|year)$/.exec(text5.trim()) : null;
|
|
3401
|
+
if (!match)
|
|
3402
|
+
throw new CliError("validation_error", "an interval is a count and a unit, such as 1-month or 2-week", { reason });
|
|
3403
|
+
return { count: match[1] === void 0 ? 1 : Number(match[1]), unit: match[2] };
|
|
3404
|
+
}, "intervalOf");
|
|
3405
|
+
var intervalText = /* @__PURE__ */ __name(({ count: count6, unit }) => `${count6}-${unit}`, "intervalText");
|
|
3406
|
+
var priced = /* @__PURE__ */ __name((units, currency) => units === null || currency === null ? "" : `, ${moneyLabel(units, currency)}`, "priced");
|
|
3407
|
+
var pending = /* @__PURE__ */ __name((review) => review === "confirmed" ? null : review, "pending");
|
|
3408
|
+
var productLine = /* @__PURE__ */ __name((product) => {
|
|
3409
|
+
const price = product.unitPrice === null || product.currency === null ? "" : moneyLabel(product.unitPrice, product.currency);
|
|
3410
|
+
const per = price && product.unit !== null ? ` per ${product.unit}` : "";
|
|
3411
|
+
return `${product.name}${price ? ` \xB7 ${price}${per}` : ""}${notes(product.kind, product.archived ? "archived" : null)}`;
|
|
3412
|
+
}, "productLine");
|
|
3413
|
+
var contractLine = /* @__PURE__ */ __name((contract) => `${contract.number ?? `#${contract.id}`} \xB7 ${contract.name}${priced(contract.value, contract.currency)}` + notes(contract.status, pending(contract.review)), "contractLine");
|
|
3414
|
+
var subscriptionLine = /* @__PURE__ */ __name((subscription) => `${subscription.name}${priced(subscription.price, subscription.currency)} every ${intervalText(subscription.interval)}` + notes(subscription.status, pending(subscription.review)), "subscriptionLine");
|
|
3415
|
+
var walletLine = /* @__PURE__ */ __name((wallet) => `${wallet.name} \xB7 ${wallet.kind}, ${wallet.currency}${wallet.numberHint === null ? "" : `, \u2026${wallet.numberHint}`}` + notes(wallet.closed ? "closed" : null), "walletLine");
|
|
3416
|
+
var transactionLine = /* @__PURE__ */ __name((transaction) => `${moneyLabel(transaction.amount, transaction.currency)} ${transaction.direction}${transaction.label === null ? "" : ` \xB7 ${transaction.label}`}, ${dayMonth(transaction.date)}` + notes(transaction.status === "pending" ? "pending" : null, pending(transaction.review)), "transactionLine");
|
|
3417
|
+
|
|
3418
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/relations.js
|
|
3390
3419
|
var ORGANIZATION_ROLES = [
|
|
3391
3420
|
"employee",
|
|
3392
3421
|
"contractor",
|
|
@@ -3397,6 +3426,22 @@ var ORGANIZATION_ROLES = [
|
|
|
3397
3426
|
"contact"
|
|
3398
3427
|
];
|
|
3399
3428
|
var PROJECT_ROLES = ["owner", "manager", "contributor", "client-contact", "approver"];
|
|
3429
|
+
var ENGAGEMENT_LEVELS = ["none", "low", "medium", "high"];
|
|
3430
|
+
var isEngagement = /* @__PURE__ */ __name((value) => typeof value === "string" && ENGAGEMENT_LEVELS.includes(value), "isEngagement");
|
|
3431
|
+
var checkEngagement = /* @__PURE__ */ __name((kind, from, to, level) => {
|
|
3432
|
+
if (kind !== "member-of" || from !== "person" || to !== "project")
|
|
3433
|
+
throw new CliError("validation_error", "an engagement level is set only on a person's member-of a project", {
|
|
3434
|
+
reason: "relationship.engagement-ends"
|
|
3435
|
+
});
|
|
3436
|
+
if (!isEngagement(level))
|
|
3437
|
+
throw new CliError("validation_error", `an engagement level is one of ${ENGAGEMENT_LEVELS.join(", ")}`, {
|
|
3438
|
+
reason: "relationship.engagement-unknown"
|
|
3439
|
+
});
|
|
3440
|
+
return level;
|
|
3441
|
+
}, "checkEngagement");
|
|
3442
|
+
var ENGAGEMENT_ORDER = { high: 0, medium: 1, unknown: 2, low: 3, none: 4 };
|
|
3443
|
+
var engagementRank = /* @__PURE__ */ __name((level) => ENGAGEMENT_ORDER[level ?? "unknown"], "engagementRank");
|
|
3444
|
+
var byEngagement = /* @__PURE__ */ __name((items) => items.map((item, index) => ({ item, index })).sort((a, b) => engagementRank(a.item.engagement) - engagementRank(b.item.engagement) || a.index - b.index).map(({ item }) => item), "byEngagement");
|
|
3400
3445
|
var RELATIONS = {
|
|
3401
3446
|
"member-of": {
|
|
3402
3447
|
from: ["person", "organization", "project", "chat", "email_thread"],
|
|
@@ -3462,7 +3507,7 @@ var usableLink = /* @__PURE__ */ __name((link, now) => isUsable(standingOf(link,
|
|
|
3462
3507
|
var notOverriddenSql = /* @__PURE__ */ __name((alias) => `NOT EXISTS (SELECT 1 FROM links override WHERE override.kind = ${alias}.kind AND override.from_type = ${alias}.from_type AND override.from_id = ${alias}.from_id AND override.to_type = ${alias}.to_type AND override.to_id = ${alias}.to_id AND json_extract(override.metadata, '$.overrides') = ${alias}.id)`, "notOverriddenSql");
|
|
3463
3508
|
var usableLinkSql = /* @__PURE__ */ __name((alias, now) => `(${alias}.confirmed = 1 OR (${alias}.account_id IS NOT NULL AND ${alias}.deleted_at IS NULL))` + (now === void 0 ? "" : ` AND (${alias}.ends_at IS NULL OR ${alias}.ends_at > ${Math.trunc(now)})`), "usableLinkSql");
|
|
3464
3509
|
|
|
3465
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3510
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
3466
3511
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
3467
3512
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
3468
3513
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -3596,8 +3641,6 @@ export {
|
|
|
3596
3641
|
MONEY_DIRECTIONS,
|
|
3597
3642
|
FINANCE_REVIEWS,
|
|
3598
3643
|
settledStatus,
|
|
3599
|
-
dayMonth,
|
|
3600
|
-
notes,
|
|
3601
3644
|
invoiceLine,
|
|
3602
3645
|
paymentLine,
|
|
3603
3646
|
invoiceTitle,
|
|
@@ -3611,8 +3654,29 @@ export {
|
|
|
3611
3654
|
STAGE_OUTCOMES,
|
|
3612
3655
|
DEAL_ROLES,
|
|
3613
3656
|
dealLine,
|
|
3657
|
+
CATALOG_KINDS,
|
|
3658
|
+
BUSINESS_KINDS,
|
|
3659
|
+
CONTRACT_KINDS,
|
|
3660
|
+
CONTRACT_STATUSES,
|
|
3661
|
+
PERIOD_UNITS,
|
|
3662
|
+
SUBSCRIPTION_STATUSES,
|
|
3663
|
+
WALLET_KINDS,
|
|
3664
|
+
TRANSACTION_STATUSES,
|
|
3665
|
+
ORDER_DIRECTIONS,
|
|
3666
|
+
intervalOf,
|
|
3667
|
+
intervalText,
|
|
3668
|
+
productLine,
|
|
3669
|
+
contractLine,
|
|
3670
|
+
subscriptionLine,
|
|
3671
|
+
walletLine,
|
|
3672
|
+
transactionLine,
|
|
3614
3673
|
ORGANIZATION_ROLES,
|
|
3615
3674
|
PROJECT_ROLES,
|
|
3675
|
+
ENGAGEMENT_LEVELS,
|
|
3676
|
+
isEngagement,
|
|
3677
|
+
checkEngagement,
|
|
3678
|
+
engagementRank,
|
|
3679
|
+
byEngagement,
|
|
3616
3680
|
RELATIONS,
|
|
3617
3681
|
RELATION_KINDS,
|
|
3618
3682
|
isRelationKind,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/render/messages.js
|
|
16
16
|
import { styleText } from "node:util";
|
|
17
17
|
var TIME_WIDTH = 8;
|
|
18
18
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|