@wirecat/mail-cli 0.1.1 → 0.3.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 +51 -0
- package/README.md +4 -3
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-TKMBELRZ.js → all-profiles-52LCOKSL.js} +5 -5
- package/dist/bundle/{anthropic-7LMUAEIZ.js → anthropic-HPW7PLTT.js} +3 -3
- package/dist/bundle/{app-server-JGMIJDD4.js → app-server-Y7XSPVHJ.js} +39 -39
- package/dist/bundle/{bun-XRO6XJHQ.js → bun-B7YXDIMT.js} +2 -2
- package/dist/bundle/{bun-sqlite-Z54LEHVM.js → bun-sqlite-TTTKY7H2.js} +2 -2
- package/dist/bundle/{chunk-52F5DWS5.js → chunk-37MSU5O6.js} +1 -1
- package/dist/bundle/{chunk-5NYMNSSO.js → chunk-3RDTVH3H.js} +3 -3
- package/dist/bundle/{chunk-4E7BN3TC.js → chunk-4PXWXI2U.js} +2 -2
- package/dist/bundle/{chunk-GN62YOT5.js → chunk-4UOEUEZZ.js} +4 -4
- package/dist/bundle/{chunk-TQFCPUIM.js → chunk-5LY3OS7U.js} +1 -1
- package/dist/bundle/{chunk-QLEUNU6G.js → chunk-5SSFYIFF.js} +4 -4
- package/dist/bundle/{chunk-IK5TH3O7.js → chunk-732GKOLO.js} +10 -10
- package/dist/bundle/{chunk-UH4DDRHA.js → chunk-C2THROZU.js} +42 -42
- package/dist/bundle/{chunk-OTUOZ33L.js → chunk-C6E3VFUX.js} +2 -2
- package/dist/bundle/{chunk-YPQQ5J4X.js → chunk-DKKCQMDM.js} +16 -16
- package/dist/bundle/{chunk-6MAZWSC3.js → chunk-FGNTGLWA.js} +3 -3
- package/dist/bundle/{chunk-GQQJOH7A.js → chunk-FUXSKWWJ.js} +58 -46
- package/dist/bundle/{chunk-3KEVLSNN.js → chunk-FX77WAQL.js} +46 -8
- package/dist/bundle/{chunk-VEIZZRQ5.js → chunk-GX2M3AOO.js} +12 -3
- package/dist/bundle/{chunk-CEW6KIFA.js → chunk-H2JVXO5V.js} +32 -22
- package/dist/bundle/{chunk-ZANYM66S.js → chunk-HS25KDT3.js} +1 -1
- package/dist/bundle/{chunk-KM7Q67Z3.js → chunk-I2ARI6FI.js} +1 -1
- package/dist/bundle/{chunk-TWPDVUBR.js → chunk-IXHLMSHV.js} +2 -2
- package/dist/bundle/{chunk-BTQX2ZSZ.js → chunk-JDOOPGKW.js} +2 -2
- package/dist/bundle/{chunk-GK4M2SUP.js → chunk-JHNLU42I.js} +1 -1
- package/dist/bundle/{chunk-KHTO2Q6E.js → chunk-JXYFIUVX.js} +4 -4
- package/dist/bundle/{chunk-F6D6PJ34.js → chunk-K6SIGXRS.js} +5 -5
- package/dist/bundle/{chunk-QQB7WT7R.js → chunk-KALDYMKJ.js} +3 -3
- package/dist/bundle/{chunk-NK7EB63L.js → chunk-KXVZ373I.js} +960 -496
- package/dist/bundle/{chunk-GAH7N7HO.js → chunk-LCA5KC34.js} +44 -44
- package/dist/bundle/{chunk-TVREDYX4.js → chunk-LJDOPCPW.js} +100 -91
- package/dist/bundle/{chunk-3KOA73LS.js → chunk-MHNEMDH3.js} +14 -14
- package/dist/bundle/{chunk-MS53RALV.js → chunk-MXUUQXMA.js} +5 -5
- package/dist/bundle/{chunk-YO4CUH5E.js → chunk-N5WIUNOT.js} +1 -1
- package/dist/bundle/{chunk-EOEDICIE.js → chunk-O2F54PUO.js} +1 -1
- package/dist/bundle/{chunk-2LLNPNMB.js → chunk-O3DRPTWF.js} +1 -1
- package/dist/bundle/{chunk-FZ5FXIG6.js → chunk-PL6UPJIL.js} +1 -1
- package/dist/bundle/{chunk-75CWWETH.js → chunk-PYIJCWCH.js} +11 -11
- package/dist/bundle/{chunk-GWDCKUBI.js → chunk-QTWIZKUI.js} +30 -29
- package/dist/bundle/{chunk-7SXGLT6T.js → chunk-RMYYKBFW.js} +9 -8
- package/dist/bundle/{chunk-JVMVLITS.js → chunk-RORC2FW7.js} +4 -2
- package/dist/bundle/{chunk-K4FVKPDQ.js → chunk-RVIMMCHF.js} +9 -9
- package/dist/bundle/{chunk-T6464KYA.js → chunk-RZCFEASJ.js} +205 -204
- package/dist/bundle/{chunk-Z34ICZA3.js → chunk-SRMJ6LLC.js} +5 -5
- package/dist/bundle/{chunk-TWTATDM7.js → chunk-TL7PE6JU.js} +6 -6
- package/dist/bundle/{chunk-4FEMINO2.js → chunk-TLZWUADZ.js} +5 -5
- package/dist/bundle/{chunk-3E3WA2L6.js → chunk-TNQOKGJS.js} +21 -21
- package/dist/bundle/{chunk-MNOIRJEO.js → chunk-V7NZTJKU.js} +7 -7
- package/dist/bundle/{chunk-TE5U5OAM.js → chunk-VTJDEWMB.js} +2 -2
- package/dist/bundle/{chunk-J6MSJLIW.js → chunk-X7TFD5SX.js} +1 -1
- package/dist/bundle/{chunk-FDCGTODC.js → chunk-XD3TL4BK.js} +1 -1
- package/dist/bundle/{chunk-WLFLBWNH.js → chunk-XQVGIW4R.js} +2 -2
- package/dist/bundle/{chunk-JBBZCTTF.js → chunk-Y2HGQK7A.js} +1 -1
- package/dist/bundle/{chunk-WXAXYJJ7.js → chunk-YVIX7FHL.js} +5 -5
- package/dist/bundle/{chunk-CH6RXYAX.js → chunk-ZIJJNH47.js} +1 -1
- package/dist/bundle/{command-contract-WU434ZUL.js → command-contract-3HA7CZEQ.js} +13 -13
- package/dist/bundle/{decode-YB3ZDTES.js → decode-VLI3MAXE.js} +2 -2
- package/dist/bundle/{dist-A6GKSKFC.js → dist-C7LAAMNF.js} +14 -14
- package/dist/bundle/{echarts-YNGCOYHW.js → echarts-POTU3SHN.js} +2 -2
- package/dist/bundle/{embed-LWNHIRBQ.js → embed-J2DEEEUF.js} +3 -3
- package/dist/bundle/{embedder-2LYD3U37.js → embedder-5N56V7YJ.js} +6 -6
- package/dist/bundle/{first-run-N3HJKGU7.js → first-run-XILZE4PI.js} +5 -5
- package/dist/bundle/{first-screen-4U2DMV3G.js → first-screen-43VLEDWZ.js} +14 -14
- package/dist/bundle/{instructions-GJHHFV64.js → instructions-B7AUZXPL.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-GFOH6FKP.js → node-SZAO6HTA.js} +2 -2
- package/dist/bundle/{node-sqlite-NBXQXBIU.js → node-sqlite-O34FFLRV.js} +2 -2
- package/dist/bundle/{oauth-56EFO5AQ.js → oauth-YYTLIPJT.js} +4 -4
- package/dist/bundle/{open-2V7QZQJP.js → open-SWJGI6H4.js} +1 -1
- package/dist/bundle/{openai-V3SVACVL.js → openai-GYXWCQOV.js} +10 -10
- package/dist/bundle/{process-XVDX4SPD.js → process-GLVWCUMK.js} +1 -1
- package/dist/bundle/{program-JTJB26P3.js → program-HW73TGIF.js} +1725 -1467
- package/dist/bundle/{prompt-YKWAI222.js → prompt-OZLHHGCD.js} +2 -2
- package/dist/bundle/{recognize-PAR66KVM.js → recognize-RDQSGHC5.js} +1 -1
- package/dist/bundle/{remote-CE43TKXC.js → remote-BKU5P3GK.js} +4 -4
- package/dist/bundle/{rerank-M7S7P2TW.js → rerank-EQIXYHKB.js} +4 -4
- package/dist/bundle/{serve-ENPMIV6J.js → serve-S6K5HKWG.js} +6 -6
- package/dist/bundle/{server-MBEZLVKZ.js → server-4VRVHPQC.js} +31 -31
- package/dist/bundle/server-WK6DRJX2.js +63 -0
- package/dist/bundle/{sqlite-runtime-HVGDHBJJ.js → sqlite-runtime-OOE455YM.js} +2 -2
- package/dist/bundle/{state-QZSOSKBD.js → state-OLPOJ2TY.js} +3 -3
- package/dist/bundle/{store-2BUX6LVX.js → store-6AVCPLH4.js} +9 -9
- package/dist/bundle/{store-UJ7SNKXI.js → store-WFV26CWY.js} +30 -12
- package/dist/bundle/store-maintenance-command-S6235I3W.js +52 -0
- package/dist/commands/account.d.ts.map +1 -1
- package/dist/commands/account.js +6 -5
- package/dist/commands/account.js.map +1 -1
- package/dist/commands/context.d.ts +19 -8
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +14 -10
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/folders.js +4 -4
- package/dist/commands/folders.js.map +1 -1
- package/dist/commands/login.d.ts +2 -2
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +3 -5
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/mailbox.d.ts +2 -1
- package/dist/commands/mailbox.d.ts.map +1 -1
- package/dist/commands/mailbox.js.map +1 -1
- package/dist/commands/session-start.d.ts +3 -0
- package/dist/commands/session-start.d.ts.map +1 -0
- package/dist/commands/session-start.js +117 -0
- package/dist/commands/session-start.js.map +1 -0
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +9 -117
- package/dist/commands/session.js.map +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +8 -20
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +49 -26
- package/dist/commands/sync.js.map +1 -1
- package/dist/config.d.ts +2 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +4 -0
- package/dist/config.js.map +1 -1
- package/dist/discovery.d.ts +4 -15
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +19 -92
- package/dist/discovery.js.map +1 -1
- package/dist/mail/backend.d.ts +36 -0
- package/dist/mail/backend.d.ts.map +1 -0
- package/dist/mail/backend.js +2 -0
- package/dist/mail/backend.js.map +1 -0
- package/dist/mail/imap/account.d.ts +5 -0
- package/dist/mail/imap/account.d.ts.map +1 -0
- package/dist/mail/imap/account.js +41 -0
- package/dist/mail/imap/account.js.map +1 -0
- package/dist/mail/imap/connection.d.ts +62 -0
- package/dist/mail/imap/connection.d.ts.map +1 -0
- package/dist/mail/imap/connection.js +188 -0
- package/dist/mail/imap/connection.js.map +1 -0
- package/dist/mail/{imap-errors.d.ts → imap/errors.d.ts} +1 -1
- package/dist/mail/imap/errors.d.ts.map +1 -0
- package/dist/mail/{imap-errors.js → imap/errors.js} +1 -1
- package/dist/mail/imap/errors.js.map +1 -0
- package/dist/mail/imap/index.d.ts +7 -0
- package/dist/mail/imap/index.d.ts.map +1 -0
- package/dist/mail/imap/index.js +11 -0
- package/dist/mail/imap/index.js.map +1 -0
- package/dist/mail/{imap-messages.d.ts → imap/messages.d.ts} +9 -9
- package/dist/mail/imap/messages.d.ts.map +1 -0
- package/dist/mail/imap/messages.js +66 -0
- package/dist/mail/imap/messages.js.map +1 -0
- package/dist/mail/imap/read.d.ts +7 -0
- package/dist/mail/imap/read.d.ts.map +1 -0
- package/dist/mail/imap/read.js +164 -0
- package/dist/mail/imap/read.js.map +1 -0
- package/dist/mail/rethread.d.ts +15 -0
- package/dist/mail/rethread.d.ts.map +1 -0
- package/dist/mail/rethread.js +52 -0
- package/dist/mail/rethread.js.map +1 -0
- package/dist/profile.d.ts +2 -1
- package/dist/profile.d.ts.map +1 -1
- package/dist/profile.js +1 -0
- package/dist/profile.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +8 -1
- package/dist/program.js.map +1 -1
- package/dist/providers.d.ts +126 -26
- package/dist/providers.d.ts.map +1 -1
- package/dist/providers.js +141 -72
- package/dist/providers.js.map +1 -1
- package/dist/secret.d.ts +2 -1
- package/dist/secret.d.ts.map +1 -1
- package/dist/secret.js +1 -0
- package/dist/secret.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -2
- package/skills/mail-cli/SKILL.md +8 -0
- package/dist/bundle/server-JRTHUCVY.js +0 -63
- package/dist/bundle/store-maintenance-command-I7V5C44K.js +0 -52
- package/dist/mail/imap-errors.d.ts.map +0 -1
- package/dist/mail/imap-errors.js.map +0 -1
- package/dist/mail/imap-messages.d.ts.map +0 -1
- package/dist/mail/imap-messages.js +0 -66
- package/dist/mail/imap-messages.js.map +0 -1
- package/dist/mail/imap.d.ts +0 -67
- package/dist/mail/imap.d.ts.map +0 -1
- package/dist/mail/imap.js +0 -348
- package/dist/mail/imap.js.map +0 -1
|
@@ -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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/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)
|
|
@@ -866,7 +866,7 @@ var QUERY_REASONS = defineReasons([
|
|
|
866
866
|
details: [...SPAN, ...details]
|
|
867
867
|
})));
|
|
868
868
|
|
|
869
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
869
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
870
870
|
var text = string();
|
|
871
871
|
var count = pipe(number(), integer(), minValue(0));
|
|
872
872
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -931,7 +931,7 @@ var MEETING_QUERY = {
|
|
|
931
931
|
})
|
|
932
932
|
};
|
|
933
933
|
|
|
934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
934
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
935
935
|
var text2 = string();
|
|
936
936
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
937
937
|
var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
@@ -1158,7 +1158,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
1158
1158
|
};
|
|
1159
1159
|
}, "meetingHitsList");
|
|
1160
1160
|
|
|
1161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1161
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
1162
1162
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
1163
1163
|
const parsed = urlOf(url);
|
|
1164
1164
|
if (!parsed)
|
|
@@ -1192,7 +1192,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
1192
1192
|
}
|
|
1193
1193
|
}, "urlOf");
|
|
1194
1194
|
|
|
1195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
1196
1196
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
1197
1197
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
1198
1198
|
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");
|
|
@@ -1225,7 +1225,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
1225
1225
|
return kept;
|
|
1226
1226
|
}, "entryMetadata");
|
|
1227
1227
|
|
|
1228
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1228
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
1229
1229
|
import { createHash } from "node:crypto";
|
|
1230
1230
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
1231
1231
|
reference: cue2.reference,
|
|
@@ -1239,7 +1239,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
1239
1239
|
text: cue2.text
|
|
1240
1240
|
})).digest("hex"), "meetingCueFingerprint");
|
|
1241
1241
|
|
|
1242
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1242
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
1243
1243
|
var EVENT_QUERY = defineQuery({
|
|
1244
1244
|
entity: "event",
|
|
1245
1245
|
backend: "sql",
|
|
@@ -1255,7 +1255,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
1255
1255
|
]
|
|
1256
1256
|
});
|
|
1257
1257
|
|
|
1258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
1259
1259
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
1260
1260
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
1261
1261
|
if (entry.recurrenceEndsAt !== null)
|
|
@@ -1278,7 +1278,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
1278
1278
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
1279
1279
|
}, "entryInWindow");
|
|
1280
1280
|
|
|
1281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
1282
1282
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
|
|
1283
1283
|
const current = await store.meeting(details.meeting.id);
|
|
1284
1284
|
if (!current)
|
|
@@ -1321,7 +1321,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
1321
1321
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
1322
1322
|
}, "linkEvent");
|
|
1323
1323
|
|
|
1324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
1325
1325
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text6) => text6.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
1326
1326
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
1327
1327
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -1345,7 +1345,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
1345
1345
|
};
|
|
1346
1346
|
}, "validateMeetingParticipantSearch");
|
|
1347
1347
|
|
|
1348
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1348
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
1349
1349
|
var MeetingError = class extends CliError {
|
|
1350
1350
|
static {
|
|
1351
1351
|
__name(this, "MeetingError");
|
|
@@ -1477,7 +1477,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id3, accountId)
|
|
|
1477
1477
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
1478
1478
|
}, "meetingSummaryAnswer");
|
|
1479
1479
|
|
|
1480
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1480
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
1481
1481
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
1482
1482
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
1483
1483
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -1573,10 +1573,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id3, options) => {
|
|
|
1573
1573
|
};
|
|
1574
1574
|
}, "exportMeeting");
|
|
1575
1575
|
|
|
1576
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1576
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1577
1577
|
import { createHash as createHash2 } from "node:crypto";
|
|
1578
1578
|
|
|
1579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1579
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
1580
1580
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
1581
1581
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
1582
1582
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone`);
|
|
@@ -1587,7 +1587,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
1587
1587
|
return new Date(value).toISOString();
|
|
1588
1588
|
}, "meetingTimestamp");
|
|
1589
1589
|
|
|
1590
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1590
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
1591
1591
|
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
1592
1592
|
if (typeof value !== "string" || !value.trim())
|
|
1593
1593
|
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
@@ -1638,10 +1638,10 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
|
|
|
1638
1638
|
return Object.freeze(result);
|
|
1639
1639
|
}, "validateMeetingChange");
|
|
1640
1640
|
|
|
1641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1641
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
|
|
1642
1642
|
var MEETING_FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
1643
1643
|
|
|
1644
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1644
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1645
1645
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
1646
1646
|
var invalid2 = /* @__PURE__ */ __name((message) => {
|
|
1647
1647
|
throw new CliError("validation_error", message);
|
|
@@ -1742,7 +1742,7 @@ var validateFindings = /* @__PURE__ */ __name((input, rules) => {
|
|
|
1742
1742
|
}, "validateFindings");
|
|
1743
1743
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
1744
1744
|
|
|
1745
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1745
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
1746
1746
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
1747
1747
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
1748
1748
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -1753,7 +1753,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
1753
1753
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
1754
1754
|
var meetingFindingFingerprint = findingFingerprint;
|
|
1755
1755
|
|
|
1756
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1756
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
1757
1757
|
var context = {
|
|
1758
1758
|
command: "search meetings",
|
|
1759
1759
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -1816,7 +1816,7 @@ var MEETING_FIELDS = defineQuery({
|
|
|
1816
1816
|
});
|
|
1817
1817
|
var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
|
|
1818
1818
|
|
|
1819
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1819
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
1820
1820
|
var contentHash = /* @__PURE__ */ __name(async (text6) => {
|
|
1821
1821
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text6));
|
|
1822
1822
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -1853,7 +1853,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
1853
1853
|
return time;
|
|
1854
1854
|
}, "timestamp");
|
|
1855
1855
|
|
|
1856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1856
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
1857
1857
|
var TranscriptTextError = class extends Error {
|
|
1858
1858
|
static {
|
|
1859
1859
|
__name(this, "TranscriptTextError");
|
|
@@ -1908,7 +1908,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
1908
1908
|
return { header, lines };
|
|
1909
1909
|
}, "parseTranscriptText");
|
|
1910
1910
|
|
|
1911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
1912
1912
|
var VttError = class extends Error {
|
|
1913
1913
|
static {
|
|
1914
1914
|
__name(this, "VttError");
|
|
@@ -1960,7 +1960,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
1960
1960
|
return cues;
|
|
1961
1961
|
}, "parseVtt");
|
|
1962
1962
|
|
|
1963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1963
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
1964
1964
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
1965
1965
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
1966
1966
|
for (const file of files) {
|
|
@@ -1993,10 +1993,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
1993
1993
|
return report;
|
|
1994
1994
|
}, "importFiles");
|
|
1995
1995
|
|
|
1996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
1997
1997
|
var CHAT_MESSAGES_READ = 1e5;
|
|
1998
1998
|
|
|
1999
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
2000
2000
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
2001
2001
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
2002
2002
|
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)))
|
|
@@ -2009,7 +2009,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
2009
2009
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
2010
2010
|
}, "validateMeetingPassage");
|
|
2011
2011
|
|
|
2012
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2012
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
2013
2013
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
2014
2014
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2015
2015
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -2034,7 +2034,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
2034
2034
|
return { ...input, limit, maxReadBytes };
|
|
2035
2035
|
}, "validateMeetingPreparationContext");
|
|
2036
2036
|
|
|
2037
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2037
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
2038
2038
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
2039
2039
|
var id = pipe(string(), minLength(1));
|
|
2040
2040
|
var meetingProjectEvidence = strictObject({
|
|
@@ -2155,7 +2155,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
2155
2155
|
};
|
|
2156
2156
|
}, "meetingProjectEvidenceAnswer");
|
|
2157
2157
|
|
|
2158
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
2159
2159
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
2160
2160
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
2161
2161
|
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) || [
|
|
@@ -2175,7 +2175,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
2175
2175
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
2176
2176
|
}, "validateMeetingHitSearch");
|
|
2177
2177
|
|
|
2178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
2179
2179
|
var ids = {
|
|
2180
2180
|
meeting_id: "meetingId",
|
|
2181
2181
|
identity_id: "participantIdentityId",
|
|
@@ -2266,7 +2266,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
|
|
|
2266
2266
|
return { project: project.trim(), options, query: frozen.join(" AND ") };
|
|
2267
2267
|
}, "prepareMeetingProjectEvidence");
|
|
2268
2268
|
|
|
2269
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2269
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
2270
2270
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
|
|
2271
2271
|
const prepared = prepareMeetingProjectEvidence(project, request, now);
|
|
2272
2272
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -2274,7 +2274,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
|
|
|
2274
2274
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
2275
2275
|
}, "readMeetingProjectEvidence");
|
|
2276
2276
|
|
|
2277
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2277
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
2278
2278
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2279
2279
|
const { identityExternalId, ...fields2 } = p;
|
|
2280
2280
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -2413,7 +2413,7 @@ unlinked`, format)],
|
|
|
2413
2413
|
return report;
|
|
2414
2414
|
}, "pull");
|
|
2415
2415
|
|
|
2416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2416
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
2417
2417
|
var text4 = string();
|
|
2418
2418
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
2419
2419
|
var id2 = pipe(number(), integer(), minValue(1));
|
|
@@ -2585,10 +2585,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
2585
2585
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
2586
2586
|
}), "eventItem");
|
|
2587
2587
|
|
|
2588
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2588
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
2589
2589
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
2590
2590
|
|
|
2591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2591
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
2592
2592
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
2593
2593
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2594
2594
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -2618,7 +2618,7 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
2618
2618
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
2619
2619
|
}, "validateMeetingRelatedHistory");
|
|
2620
2620
|
|
|
2621
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
2622
2622
|
var text5 = string();
|
|
2623
2623
|
var identifier = pipe(text5, minLength(1));
|
|
2624
2624
|
var nullableText = nullable(text5);
|
|
@@ -2744,14 +2744,14 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
2744
2744
|
meeting_embedding: embedding
|
|
2745
2745
|
};
|
|
2746
2746
|
|
|
2747
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2747
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
2748
2748
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
2749
2749
|
|
|
2750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
2751
2751
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
2752
2752
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
2753
2753
|
|
|
2754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2754
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
2755
2755
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
2756
2756
|
input.signal?.throwIfAborted();
|
|
2757
2757
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -2772,10 +2772,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
2772
2772
|
return { ...input, limit, maxReadBytes };
|
|
2773
2773
|
}, "validateMeetingSeriesHistory");
|
|
2774
2774
|
|
|
2775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2775
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
2776
2776
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
2777
2777
|
|
|
2778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
2779
2779
|
function invalid3(field, response = false) {
|
|
2780
2780
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
2781
2781
|
}
|
|
@@ -2804,7 +2804,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
2804
2804
|
cursorDetails(value);
|
|
2805
2805
|
}, "validateMeetingSeriesInventoryCursor");
|
|
2806
2806
|
|
|
2807
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2807
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
2808
2808
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
2809
2809
|
const zone = timeZone ?? "UTC";
|
|
2810
2810
|
try {
|
|
@@ -2883,7 +2883,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
2883
2883
|
};
|
|
2884
2884
|
}, "aggregateMeetingStats");
|
|
2885
2885
|
|
|
2886
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2886
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
2887
2887
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
2888
2888
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
2889
2889
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZIJJNH47.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
10
|
} from "./chunk-5BVIWP3S.js";
|
|
@@ -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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
|
|
16
16
|
import { createInterface } from "node:readline";
|
|
17
17
|
import { Writable } from "node:stream";
|
|
18
18
|
var readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin, output = process.stderr, echo = false, signal: givenSignal } = {}) => {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
organization,
|
|
5
5
|
project,
|
|
6
6
|
reminder
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FGNTGLWA.js";
|
|
8
8
|
import {
|
|
9
9
|
MIGRATIONS,
|
|
10
10
|
SnapshotBudget,
|
|
@@ -28,19 +28,19 @@ import {
|
|
|
28
28
|
tagMemberIds,
|
|
29
29
|
thingOf,
|
|
30
30
|
write
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-KXVZ373I.js";
|
|
32
32
|
import {
|
|
33
33
|
filesAccountSql,
|
|
34
34
|
folderProviderOf,
|
|
35
35
|
folderProviderSql,
|
|
36
36
|
isDocumentAccountProvider
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-TLZWUADZ.js";
|
|
38
38
|
import {
|
|
39
39
|
queryFieldsOf
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-C2THROZU.js";
|
|
41
41
|
import {
|
|
42
42
|
fold
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-V7NZTJKU.js";
|
|
44
44
|
import {
|
|
45
45
|
CliError
|
|
46
46
|
} from "./chunk-5BVIWP3S.js";
|
|
@@ -48,11 +48,11 @@ import {
|
|
|
48
48
|
__name
|
|
49
49
|
} from "./chunk-ZVVMGPBJ.js";
|
|
50
50
|
|
|
51
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
|
|
52
52
|
import { realpathSync, statSync } from "node:fs";
|
|
53
53
|
import { resolve } from "node:path";
|
|
54
54
|
|
|
55
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
55
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/people.js
|
|
56
56
|
var planPeople = /* @__PURE__ */ __name((database, snapshot, mappings, bindings, conflicts) => {
|
|
57
57
|
const creatable = /* @__PURE__ */ new Set();
|
|
58
58
|
let people = 0, identities = 0;
|
|
@@ -115,11 +115,11 @@ var copyPeople = /* @__PURE__ */ __name((database, snapshot, mappings, now) => {
|
|
|
115
115
|
}
|
|
116
116
|
}, "copyPeople");
|
|
117
117
|
|
|
118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/document-transfer/digest.js
|
|
119
119
|
import { createHash } from "node:crypto";
|
|
120
120
|
var digest = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "digest");
|
|
121
121
|
|
|
122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/collection.js
|
|
123
123
|
var documentsKeyOf = /* @__PURE__ */ __name((collection) => {
|
|
124
124
|
const colon = collection.indexOf(":");
|
|
125
125
|
const provider = collection.slice(0, colon);
|
|
@@ -163,7 +163,7 @@ var currentCollection = /* @__PURE__ */ __name((row) => {
|
|
|
163
163
|
};
|
|
164
164
|
}, "currentCollection");
|
|
165
165
|
|
|
166
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/plan.js
|
|
167
167
|
var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindings) => {
|
|
168
168
|
const mappings = /* @__PURE__ */ new Map();
|
|
169
169
|
const missing = /* @__PURE__ */ new Set(), conflicts = /* @__PURE__ */ new Set();
|
|
@@ -330,7 +330,7 @@ var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindin
|
|
|
330
330
|
};
|
|
331
331
|
}, "planTransfer");
|
|
332
332
|
|
|
333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
|
|
334
334
|
var TRANSFER_TABLES = { document: "documents", note: "notes", memory: "memories", fact: "facts" };
|
|
335
335
|
var MAX_ENTITIES = 1e3;
|
|
336
336
|
var MAX_AUXILIARY = 1e4;
|
|
@@ -492,7 +492,7 @@ var transferSnapshot = /* @__PURE__ */ __name((database, collection) => read(dat
|
|
|
492
492
|
};
|
|
493
493
|
}), "transferSnapshot");
|
|
494
494
|
|
|
495
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
495
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/apply.js
|
|
496
496
|
var providerHere = /* @__PURE__ */ __name(({ provider, name, settings }) => {
|
|
497
497
|
if (provider !== "folder" || String(name ?? "").startsWith("google-drive:"))
|
|
498
498
|
return provider ?? null;
|
|
@@ -664,7 +664,7 @@ var remapEntity = /* @__PURE__ */ __name((database, entity, id, mappings) => {
|
|
|
664
664
|
database.prepare(`UPDATE ${TRANSFER_TABLES[entity.kind]} SET ${columns.join(",")} WHERE id=?`).run(...values, id);
|
|
665
665
|
}, "remapEntity");
|
|
666
666
|
|
|
667
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
667
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
|
|
668
668
|
var locations = /* @__PURE__ */ __name((options) => {
|
|
669
669
|
for (const value of [options.source, options.destination, options.collection])
|
|
670
670
|
if (typeof value !== "string" || !value.trim())
|
|
@@ -760,7 +760,7 @@ var applyDocumentTransfer = /* @__PURE__ */ __name(async (options) => {
|
|
|
760
760
|
}
|
|
761
761
|
}, "applyDocumentTransfer");
|
|
762
762
|
|
|
763
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
|
|
764
764
|
var ORGANIZATIONS_QUERY = {
|
|
765
765
|
entity: "organization",
|
|
766
766
|
backend: "sql",
|
|
@@ -795,7 +795,7 @@ var REMINDERS_QUERY = {
|
|
|
795
795
|
})
|
|
796
796
|
};
|
|
797
797
|
|
|
798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
|
|
799
799
|
var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
|
|
800
800
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
801
801
|
throw new CliError("validation_error", "project preview options are required");
|
|
@@ -817,7 +817,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
|
|
|
817
817
|
}
|
|
818
818
|
}, "previewProjectAnnotationSnapshot");
|
|
819
819
|
|
|
820
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
820
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
|
|
821
821
|
var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
822
822
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
823
823
|
throw new CliError("validation_error", "snapshot options are required");
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
unknown
|
|
21
21
|
} from "./chunk-LQ37ALDJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
24
24
|
var text = string();
|
|
25
25
|
var id = pipe(string(), minLength(1));
|
|
26
26
|
var time = isoTime;
|
|
@@ -44,7 +44,7 @@ var author = strictObject({
|
|
|
44
44
|
name: nullable(text)
|
|
45
45
|
});
|
|
46
46
|
|
|
47
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
48
48
|
var organization = strictObject({
|
|
49
49
|
id,
|
|
50
50
|
ref: reference,
|
|
@@ -74,7 +74,7 @@ var reminder = strictObject({
|
|
|
74
74
|
receipt: nullable(text)
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
77
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/entities/note.js
|
|
78
78
|
var link = {
|
|
79
79
|
target_text: nullable(text),
|
|
80
80
|
kind: text,
|