@wirecat/mail-cli 0.7.0 → 0.8.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 +20 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-SI67TKZM.js → all-profiles-MXGDUBAM.js} +9 -9
- package/dist/bundle/{anthropic-DALMLC3Y.js → anthropic-A2QA4W7L.js} +6 -6
- package/dist/bundle/{app-server-XOH327Z2.js → app-server-PMIMK6FK.js} +48 -48
- package/dist/bundle/{bun-ORL67CJ6.js → bun-3UW3LFNL.js} +2 -2
- package/dist/bundle/{bun-sqlite-DGXFNFHI.js → bun-sqlite-TGFZFKAX.js} +5 -5
- package/dist/bundle/{chunk-IYZHM3ZN.js → chunk-2KZJWBXB.js} +3 -3
- package/dist/bundle/{chunk-2M4K7HYR.js → chunk-2MQXXPPK.js} +17 -17
- package/dist/bundle/{chunk-VBOMKZ4E.js → chunk-4QDBMYK4.js} +70 -53
- package/dist/bundle/{chunk-23IEVVL2.js → chunk-5PWKPRTD.js} +4 -4
- package/dist/bundle/{chunk-RQVWZBW3.js → chunk-5W74YMCK.js} +3 -3
- package/dist/bundle/{chunk-7K6KJWTO.js → chunk-6J3DKKOV.js} +12 -12
- package/dist/bundle/{chunk-4NYWHINR.js → chunk-6JK46V5X.js} +6 -6
- package/dist/bundle/{chunk-CAKBG5FC.js → chunk-6U6Z3GXR.js} +6 -6
- package/dist/bundle/{chunk-V4TDG4KF.js → chunk-7JUTNCQX.js} +14 -14
- package/dist/bundle/{chunk-6XNPXAJU.js → chunk-AO3XYONW.js} +23 -23
- package/dist/bundle/{chunk-JFMUI4H6.js → chunk-BCDPLG7T.js} +1 -1
- package/dist/bundle/{chunk-PDL4UREY.js → chunk-BEUQ2X7U.js} +8 -8
- package/dist/bundle/{chunk-DXGMPMFP.js → chunk-CMNFLAUG.js} +4 -4
- package/dist/bundle/{chunk-U6UJ3HRS.js → chunk-CRS63C3T.js} +2 -2
- package/dist/bundle/{chunk-SQLCCKEL.js → chunk-DLB2JPLU.js} +1 -1
- package/dist/bundle/{chunk-XQJWMBDY.js → chunk-DM4ULDS3.js} +6 -6
- package/dist/bundle/{chunk-BGUMGCUY.js → chunk-DYCPBLUC.js} +2 -2
- package/dist/bundle/{chunk-3TYEJRMZ.js → chunk-EN3UZPGB.js} +4 -4
- package/dist/bundle/{chunk-DKQWTQVY.js → chunk-EU35YQXE.js} +23 -23
- package/dist/bundle/{chunk-GJUUTUK4.js → chunk-EVO77D3Y.js} +8 -8
- package/dist/bundle/{chunk-S4YUR4S3.js → chunk-FSBKLJXM.js} +219 -206
- package/dist/bundle/{chunk-EYT33MM3.js → chunk-J5RKMQ6A.js} +46 -46
- package/dist/bundle/{chunk-ZNGQ3NZ4.js → chunk-J6ACLZKV.js} +9 -9
- package/dist/bundle/{chunk-45KA5667.js → chunk-KBKEZV4L.js} +13 -13
- package/dist/bundle/{chunk-73OJJGZE.js → chunk-KEZHPPMI.js} +17 -3
- package/dist/bundle/{chunk-4ULY3GDL.js → chunk-KF4YULWC.js} +10 -10
- package/dist/bundle/{chunk-HFJNEXU7.js → chunk-L2ZHPIFC.js} +2 -2
- package/dist/bundle/{chunk-BM445GYF.js → chunk-L3KMVMRJ.js} +2 -2
- package/dist/bundle/{chunk-FTFNWGIR.js → chunk-LN7TNZIS.js} +8 -8
- package/dist/bundle/{chunk-NXJLC2WK.js → chunk-NAIJNJZZ.js} +12 -8
- package/dist/bundle/{chunk-5JEYIHS6.js → chunk-NEBO3NZU.js} +3 -3
- package/dist/bundle/{chunk-VNJMO5F6.js → chunk-NI6WX55Z.js} +2 -2
- package/dist/bundle/{chunk-M2JCUVCJ.js → chunk-NSODLSEL.js} +94 -94
- package/dist/bundle/{chunk-6RMMAUUW.js → chunk-NWKLBZN5.js} +30 -30
- package/dist/bundle/{chunk-5BSEGMNE.js → chunk-OAQ4UB6V.js} +4 -4
- package/dist/bundle/{chunk-FUB3X25H.js → chunk-PEF637VV.js} +4 -4
- package/dist/bundle/{chunk-NNIXREJH.js → chunk-PXCIM6D5.js} +7 -7
- package/dist/bundle/{chunk-6LK7KTWB.js → chunk-Q5DOXSBM.js} +1 -1
- package/dist/bundle/{chunk-35KD2CI2.js → chunk-QBBKSCQD.js} +286 -252
- package/dist/bundle/{chunk-MHQKHWCJ.js → chunk-RFWTPSJX.js} +34 -28
- package/dist/bundle/{chunk-QZBT6BOU.js → chunk-ROZBXOES.js} +1 -1
- package/dist/bundle/{chunk-AP7V256W.js → chunk-RVZ4JIRR.js} +1 -1
- package/dist/bundle/{chunk-MMXMVGA6.js → chunk-SZ5PKNDF.js} +7 -7
- package/dist/bundle/{chunk-VSHJWTX5.js → chunk-TCWJYOZV.js} +6 -6
- package/dist/bundle/{chunk-HV3EIYX4.js → chunk-TMQA4KR7.js} +1 -1
- package/dist/bundle/{chunk-VKPWP3AK.js → chunk-U4IF2MOB.js} +2 -2
- package/dist/bundle/{chunk-ZKCNMW7G.js → chunk-UR6WHUJF.js} +2 -2
- package/dist/bundle/{chunk-MCJ7LKYR.js → chunk-VGR3AGAC.js} +6 -6
- package/dist/bundle/{chunk-R5MML3FC.js → chunk-VSDVH2M2.js} +67 -59
- package/dist/bundle/{chunk-E3DRM6YP.js → chunk-W5J6I5GW.js} +3 -3
- package/dist/bundle/{chunk-FPOGVDLS.js → chunk-W7H3PZ67.js} +2 -2
- package/dist/bundle/{chunk-BEMLGWY4.js → chunk-WS4L47DG.js} +1 -1
- package/dist/bundle/{chunk-ZKZABB4K.js → chunk-WWNAQ75T.js} +3 -3
- package/dist/bundle/{chunk-Q44AYEOB.js → chunk-XWNCXFR5.js} +2 -2
- package/dist/bundle/{chunk-LZ5J3UXD.js → chunk-YS2WUWY7.js} +4 -4
- package/dist/bundle/{chunk-OHTR4WFO.js → chunk-Z5GDZ3QF.js} +2 -2
- package/dist/bundle/{chunk-Q2C3VMSU.js → chunk-ZISFMUYB.js} +18 -18
- package/dist/bundle/{chunk-3GZK5GTU.js → chunk-ZKAT6I2I.js} +1 -1
- package/dist/bundle/command-contract-Q32SL5KX.js +34 -0
- package/dist/bundle/{decode-KOBURZIQ.js → decode-NF4TGOR3.js} +5 -5
- package/dist/bundle/{dispatch-GDAH4JHS.js → dispatch-5C6XNGEE.js} +8 -8
- package/dist/bundle/{dist-T7HMT675.js → dist-DVYY3YFG.js} +13 -13
- package/dist/bundle/{echarts-LEWTQO6H.js → echarts-F3USGP5B.js} +2 -2
- package/dist/bundle/{embed-PUFE4BSQ.js → embed-2RXV3BEC.js} +6 -6
- package/dist/bundle/{embedder-3G4BQQ6X.js → embedder-I2SJMC6N.js} +9 -9
- package/dist/bundle/{failure-6COJAO7T.js → failure-YRGRZBTX.js} +2 -2
- package/dist/bundle/{first-run-FLXOC53U.js → first-run-3GA7YCKZ.js} +11 -11
- package/dist/bundle/first-screen-JFIXKYAK.js +32 -0
- package/dist/bundle/{instructions-HGSXDCBT.js → instructions-VHI5CWH5.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-GAPDLFWA.js → mcp-B25MZCS7.js} +2 -2
- package/dist/bundle/{node-5Z7PS4F5.js → node-4RBB3RDY.js} +2 -2
- package/dist/bundle/{node-sqlite-OAW7APIX.js → node-sqlite-FWYX3P2D.js} +5 -5
- package/dist/bundle/{oauth-ZFZWPAJN.js → oauth-6JKKRGLX.js} +7 -7
- package/dist/bundle/{open-ZQMBZVH4.js → open-7JSNC3MR.js} +4 -4
- package/dist/bundle/{openai-XT2RIXAK.js → openai-ASLWL3D6.js} +14 -14
- package/dist/bundle/{process-VVEQIHPE.js → process-AB2D2G2Q.js} +1 -1
- package/dist/bundle/{program-RD3BBDNY.js → program-ZJPQ3IDU.js} +447 -382
- package/dist/bundle/{prompt-PU7GE4Z4.js → prompt-JDFVQR3L.js} +5 -5
- package/dist/bundle/{recognize-AG4A3KUK.js → recognize-PKYA4HRC.js} +4 -4
- package/dist/bundle/{remote-D6TQ6T7F.js → remote-USBVVO4O.js} +7 -7
- package/dist/bundle/{rerank-GO24HJPF.js → rerank-UBMV6KO6.js} +7 -7
- package/dist/bundle/{serve-WCHJAH6G.js → serve-SVS3YOYS.js} +9 -9
- package/dist/bundle/{server-CAVNBG3P.js → server-7PZMYXY6.js} +38 -38
- package/dist/bundle/server-KA7Q5XCL.js +63 -0
- package/dist/bundle/{sqlite-runtime-ANXC4AW2.js → sqlite-runtime-IDPTXAM7.js} +5 -5
- package/dist/bundle/{state-EGJ66A62.js → state-6G2TSVP7.js} +6 -6
- package/dist/bundle/{store-OON7FCMQ.js → store-7A464D4X.js} +15 -15
- package/dist/bundle/{store-SBFA444C.js → store-L56GFI4P.js} +13 -13
- package/dist/bundle/store-maintenance-command-2LM4GOI3.js +52 -0
- package/dist/commands/read.d.ts.map +1 -1
- package/dist/commands/read.js +1 -0
- package/dist/commands/read.js.map +1 -1
- package/dist/commands/server-search.d.ts.map +1 -1
- package/dist/commands/server-search.js +3 -2
- package/dist/commands/server-search.js.map +1 -1
- package/dist/providers.d.ts +8 -0
- package/dist/providers.d.ts.map +1 -1
- package/dist/providers.js +2 -0
- 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/command-contract-CB5BII3S.js +0 -34
- package/dist/bundle/first-screen-VUZEDSQW.js +0 -32
- package/dist/bundle/server-5KJJ3D6P.js +0 -63
- package/dist/bundle/store-maintenance-command-UEOJLYMJ.js +0 -52
- /package/dist/bundle/{chunk-WJWLHLQ7.js → chunk-EKRM2QJB.js} +0 -0
|
@@ -30,18 +30,18 @@ import {
|
|
|
30
30
|
string,
|
|
31
31
|
union,
|
|
32
32
|
variant
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-NAIJNJZZ.js";
|
|
34
34
|
import {
|
|
35
35
|
CliError,
|
|
36
36
|
isCliError,
|
|
37
37
|
singleLine,
|
|
38
38
|
visibleControls
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-L3KMVMRJ.js";
|
|
40
40
|
import {
|
|
41
41
|
__name
|
|
42
42
|
} from "./chunk-ZVVMGPBJ.js";
|
|
43
43
|
|
|
44
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/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((text6) => {
|
|
|
78
78
|
}, "parseMeetingReference");
|
|
79
79
|
var canonicalMeetingReference = /* @__PURE__ */ __name((text6) => formatMeetingReference(parseMeetingReference(text6)), "canonicalMeetingReference");
|
|
80
80
|
|
|
81
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
81
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/types.js
|
|
82
82
|
var QUERY_LIMITS = {
|
|
83
83
|
bytes: 8192,
|
|
84
84
|
depth: 32,
|
|
@@ -122,7 +122,7 @@ function queryError(reason, span, alternative, context3 = {}, details = {}) {
|
|
|
122
122
|
__name(queryError, "queryError");
|
|
123
123
|
var walkQuery = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => walkQuery(node2)), "walkQuery");
|
|
124
124
|
|
|
125
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
125
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/dates.js
|
|
126
126
|
var timezoneOf = /* @__PURE__ */ __name((given) => {
|
|
127
127
|
const zone = given ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? "UTC";
|
|
128
128
|
try {
|
|
@@ -267,7 +267,7 @@ var dateRange = /* @__PURE__ */ __name((lower, upper, lowerInclusive, upperInclu
|
|
|
267
267
|
};
|
|
268
268
|
}, "dateRange");
|
|
269
269
|
|
|
270
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
270
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/evaluate.js
|
|
271
271
|
var wordsOf = /* @__PURE__ */ __name((text6) => text6.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
|
|
272
272
|
var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
|
|
273
273
|
var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
|
|
@@ -322,7 +322,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
|
|
|
322
322
|
}, "matches");
|
|
323
323
|
var evaluate = /* @__PURE__ */ __name((ast, fields2, item, options = {}) => matches(ast.root, item, new Map(fields2.map((field) => [field.name, field])), options), "evaluate");
|
|
324
324
|
|
|
325
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
325
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/fields.js
|
|
326
326
|
var FIELD_TYPES = ["kw", "txt", "enum", "num", "time", "bool", "ref"];
|
|
327
327
|
var OPERATORS_BY_TYPE = {
|
|
328
328
|
kw: ["term", "phrase", "wildcard"],
|
|
@@ -372,11 +372,13 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
|
|
|
372
372
|
const excluded = new Set(annotations.exclude ?? []);
|
|
373
373
|
const words2 = new Set(annotations.text ?? []);
|
|
374
374
|
const native = new Set(annotations.native ?? []);
|
|
375
|
+
const negatable = new Set(annotations.negatable ?? []);
|
|
375
376
|
const finish = /* @__PURE__ */ __name((field) => ({
|
|
376
377
|
...field,
|
|
377
378
|
operators: OPERATORS_BY_TYPE[field.type],
|
|
378
379
|
example: annotations.examples?.[field.name] ?? field.example ?? exampleOf(field.name, field.type, field.values),
|
|
379
380
|
...native.has(field.name) ? { native: true } : {},
|
|
381
|
+
...negatable.has(field.name) ? { negatable: true } : {},
|
|
380
382
|
...annotations.validate?.[field.name] ? { validate: annotations.validate[field.name] } : {}
|
|
381
383
|
}), "finish");
|
|
382
384
|
const own = Object.entries(entries).flatMap(([name, entry]) => {
|
|
@@ -399,23 +401,37 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
|
|
|
399
401
|
return [...own, ...relations, ...states];
|
|
400
402
|
}, "queryFieldsOf");
|
|
401
403
|
|
|
402
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
404
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/help.js
|
|
403
405
|
var QUERY_SYNTAX = 'field:value \xB7 "a phrase" \xB7 word* \xB7 AND OR NOT \xB7 ( ) \xB7 [a TO b] \xB7 > >= < <=';
|
|
406
|
+
var shownOf = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "shownOf");
|
|
407
|
+
var leftOut = /* @__PURE__ */ __name((fields2) => fields2.filter((field) => field.negatable).map((field) => field.name), "leftOut");
|
|
404
408
|
var kindOf = /* @__PURE__ */ __name((field) => field.values ? `${field.type}: ${field.values.join("|")}` : `${field.type}: ${field.operators.join(", ")}`, "kindOf");
|
|
405
409
|
var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
|
|
406
|
-
const shown = registry
|
|
410
|
+
const shown = shownOf(registry);
|
|
411
|
+
const negatable = leftOut(shown);
|
|
407
412
|
const rows = shown.map((field) => [field.name, kindOf(field), field.example]);
|
|
408
413
|
const widths = [0, 1].map((at) => Math.max(...rows.map((row) => (row[at] ?? "").length)));
|
|
409
414
|
return [
|
|
410
415
|
"Fields:",
|
|
411
416
|
...rows.map(([name = "", kind = "", example = ""]) => ` ${name.padEnd(widths[0] ?? 0)} ${kind.padEnd(widths[1] ?? 0)} ${example}`.trimEnd()),
|
|
412
417
|
...registry.defaults && registry.defaults.length > 0 ? [`Defaults: ${registry.defaults.join(" ")} \u2014 name the field to change it`] : [],
|
|
418
|
+
...negatable.length > 0 ? [`Leave out: -${negatable[0]}:value or NOT ${negatable[0]}:value, for ${negatable.join(", ")}`] : [],
|
|
413
419
|
`Syntax: ${QUERY_SYNTAX}`,
|
|
414
420
|
...guide ? [`Guide: ${guide}`] : []
|
|
415
421
|
].join("\n");
|
|
416
422
|
}, "fieldsHelp");
|
|
423
|
+
var queryDescription = /* @__PURE__ */ __name((registry) => {
|
|
424
|
+
const shown = shownOf(registry);
|
|
425
|
+
if (shown.length === 0)
|
|
426
|
+
return "field:value terms; this list filters by none yet, so any term is refused";
|
|
427
|
+
const negatable = leftOut(shown);
|
|
428
|
+
const terms = registry.backend === "native" ? `field:value terms joined by AND that narrow the list${negatable.length > 0 ? `; -field:value or NOT field:value leaves out what matches, for ${negatable.join(", ")} only` : ""}` : "field:value terms that narrow the list (Lucene: AND OR NOT, -field:value, [a TO b], > <)";
|
|
429
|
+
const fields2 = shown.map((field) => field.values ? `${field.name} (${field.values.join("|")})` : field.name);
|
|
430
|
+
const defaults = registry.defaults?.length ? `; unless named: ${registry.defaults.join(" ")}` : "";
|
|
431
|
+
return `${terms}; fields: ${fields2.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
|
|
432
|
+
}, "queryDescription");
|
|
417
433
|
|
|
418
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
434
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/parser.js
|
|
419
435
|
var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
|
|
420
436
|
var reserved = /* @__PURE__ */ new Set([
|
|
421
437
|
"+",
|
|
@@ -720,7 +736,7 @@ var implicitTextTerms = /* @__PURE__ */ __name((text6) => {
|
|
|
720
736
|
return new Set(tokens.flatMap((token, index) => (token.kind === "term" || token.kind === "number") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index - 1]?.kind ?? "") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index + 1]?.kind ?? "") ? [token.span.start] : []));
|
|
721
737
|
}, "implicitTextTerms");
|
|
722
738
|
|
|
723
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
739
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/validate.js
|
|
724
740
|
var inContext = /* @__PURE__ */ __name((context3, run2) => {
|
|
725
741
|
try {
|
|
726
742
|
run2();
|
|
@@ -795,7 +811,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry, options = {}) => {
|
|
|
795
811
|
}, "validateQuery");
|
|
796
812
|
var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
|
|
797
813
|
|
|
798
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
814
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/registry.js
|
|
799
815
|
var describeQuery = /* @__PURE__ */ __name((registry) => ({
|
|
800
816
|
entity: registry.entity,
|
|
801
817
|
backend: registry.backend,
|
|
@@ -866,7 +882,7 @@ var QUERY_REASONS = defineReasons([
|
|
|
866
882
|
details: [...SPAN, ...details]
|
|
867
883
|
})));
|
|
868
884
|
|
|
869
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
870
886
|
var text = string();
|
|
871
887
|
var count = pipe(number(), integer(), minValue(0));
|
|
872
888
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -931,7 +947,7 @@ var MEETING_QUERY = {
|
|
|
931
947
|
})
|
|
932
948
|
};
|
|
933
949
|
|
|
934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
950
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
935
951
|
var text2 = string();
|
|
936
952
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
937
953
|
var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
@@ -1158,7 +1174,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
1158
1174
|
};
|
|
1159
1175
|
}, "meetingHitsList");
|
|
1160
1176
|
|
|
1161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1177
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
1162
1178
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
1163
1179
|
const parsed = urlOf(url);
|
|
1164
1180
|
if (!parsed)
|
|
@@ -1192,7 +1208,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
1192
1208
|
}
|
|
1193
1209
|
}, "urlOf");
|
|
1194
1210
|
|
|
1195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
1196
1212
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
1197
1213
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
1198
1214
|
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 +1241,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
1225
1241
|
return kept;
|
|
1226
1242
|
}, "entryMetadata");
|
|
1227
1243
|
|
|
1228
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1244
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
1229
1245
|
import { createHash } from "node:crypto";
|
|
1230
1246
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
1231
1247
|
reference: cue2.reference,
|
|
@@ -1239,7 +1255,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
1239
1255
|
text: cue2.text
|
|
1240
1256
|
})).digest("hex"), "meetingCueFingerprint");
|
|
1241
1257
|
|
|
1242
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
1243
1259
|
var EVENT_QUERY = defineQuery({
|
|
1244
1260
|
entity: "event",
|
|
1245
1261
|
backend: "sql",
|
|
@@ -1255,7 +1271,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
1255
1271
|
]
|
|
1256
1272
|
});
|
|
1257
1273
|
|
|
1258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1274
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
1259
1275
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
1260
1276
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
1261
1277
|
if (entry.recurrenceEndsAt !== null)
|
|
@@ -1278,7 +1294,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
1278
1294
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
1279
1295
|
}, "entryInWindow");
|
|
1280
1296
|
|
|
1281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1297
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
1282
1298
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
|
|
1283
1299
|
const current = await store.meeting(details.meeting.id);
|
|
1284
1300
|
if (!current)
|
|
@@ -1321,7 +1337,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
1321
1337
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
1322
1338
|
}, "linkEvent");
|
|
1323
1339
|
|
|
1324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
1325
1341
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text6) => text6.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
1326
1342
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
1327
1343
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -1345,7 +1361,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
1345
1361
|
};
|
|
1346
1362
|
}, "validateMeetingParticipantSearch");
|
|
1347
1363
|
|
|
1348
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1364
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
1349
1365
|
var MeetingError = class extends CliError {
|
|
1350
1366
|
static {
|
|
1351
1367
|
__name(this, "MeetingError");
|
|
@@ -1477,7 +1493,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id3, accountId)
|
|
|
1477
1493
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
1478
1494
|
}, "meetingSummaryAnswer");
|
|
1479
1495
|
|
|
1480
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1496
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
1481
1497
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
1482
1498
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
1483
1499
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -1573,10 +1589,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id3, options) => {
|
|
|
1573
1589
|
};
|
|
1574
1590
|
}, "exportMeeting");
|
|
1575
1591
|
|
|
1576
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1592
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1577
1593
|
import { createHash as createHash2 } from "node:crypto";
|
|
1578
1594
|
|
|
1579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
1580
1596
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
1581
1597
|
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
1598
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone`);
|
|
@@ -1587,7 +1603,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
1587
1603
|
return new Date(value).toISOString();
|
|
1588
1604
|
}, "meetingTimestamp");
|
|
1589
1605
|
|
|
1590
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1606
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
1591
1607
|
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
1592
1608
|
if (typeof value !== "string" || !value.trim())
|
|
1593
1609
|
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
@@ -1638,10 +1654,10 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
|
|
|
1638
1654
|
return Object.freeze(result);
|
|
1639
1655
|
}, "validateMeetingChange");
|
|
1640
1656
|
|
|
1641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
|
|
1642
1658
|
var MEETING_FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
1643
1659
|
|
|
1644
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1660
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1645
1661
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
1646
1662
|
var invalid2 = /* @__PURE__ */ __name((message) => {
|
|
1647
1663
|
throw new CliError("validation_error", message);
|
|
@@ -1752,7 +1768,7 @@ var validateFindings = /* @__PURE__ */ __name((input, rules) => {
|
|
|
1752
1768
|
}, "validateFindings");
|
|
1753
1769
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
1754
1770
|
|
|
1755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
1756
1772
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
1757
1773
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
1758
1774
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -1763,7 +1779,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
1763
1779
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
1764
1780
|
var meetingFindingFingerprint = findingFingerprint;
|
|
1765
1781
|
|
|
1766
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1782
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
1767
1783
|
var context = {
|
|
1768
1784
|
command: "search meetings",
|
|
1769
1785
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -1826,7 +1842,7 @@ var MEETING_FIELDS = defineQuery({
|
|
|
1826
1842
|
});
|
|
1827
1843
|
var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
|
|
1828
1844
|
|
|
1829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
1830
1846
|
var contentHash = /* @__PURE__ */ __name(async (text6) => {
|
|
1831
1847
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text6));
|
|
1832
1848
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -1863,7 +1879,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
1863
1879
|
return time;
|
|
1864
1880
|
}, "timestamp");
|
|
1865
1881
|
|
|
1866
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
1867
1883
|
var TranscriptTextError = class extends Error {
|
|
1868
1884
|
static {
|
|
1869
1885
|
__name(this, "TranscriptTextError");
|
|
@@ -1918,7 +1934,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
1918
1934
|
return { header, lines };
|
|
1919
1935
|
}, "parseTranscriptText");
|
|
1920
1936
|
|
|
1921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
1922
1938
|
var VttError = class extends Error {
|
|
1923
1939
|
static {
|
|
1924
1940
|
__name(this, "VttError");
|
|
@@ -1970,7 +1986,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
1970
1986
|
return cues;
|
|
1971
1987
|
}, "parseVtt");
|
|
1972
1988
|
|
|
1973
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1989
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
1974
1990
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
1975
1991
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
1976
1992
|
for (const file of files) {
|
|
@@ -2003,10 +2019,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2003
2019
|
return report;
|
|
2004
2020
|
}, "importFiles");
|
|
2005
2021
|
|
|
2006
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
2007
2023
|
var CHAT_MESSAGES_READ = 1e5;
|
|
2008
2024
|
|
|
2009
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2025
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
2010
2026
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
2011
2027
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
2012
2028
|
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)))
|
|
@@ -2019,7 +2035,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
2019
2035
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
2020
2036
|
}, "validateMeetingPassage");
|
|
2021
2037
|
|
|
2022
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2038
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
2023
2039
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
2024
2040
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2025
2041
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -2044,7 +2060,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
2044
2060
|
return { ...input, limit, maxReadBytes };
|
|
2045
2061
|
}, "validateMeetingPreparationContext");
|
|
2046
2062
|
|
|
2047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2063
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
2048
2064
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
2049
2065
|
var id = pipe(string(), minLength(1));
|
|
2050
2066
|
var meetingProjectEvidence = strictObject({
|
|
@@ -2165,7 +2181,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
2165
2181
|
};
|
|
2166
2182
|
}, "meetingProjectEvidenceAnswer");
|
|
2167
2183
|
|
|
2168
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2184
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
2169
2185
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
2170
2186
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
2171
2187
|
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) || [
|
|
@@ -2185,7 +2201,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
2185
2201
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
2186
2202
|
}, "validateMeetingHitSearch");
|
|
2187
2203
|
|
|
2188
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
2189
2205
|
var ids = {
|
|
2190
2206
|
meeting_id: "meetingId",
|
|
2191
2207
|
identity_id: "participantIdentityId",
|
|
@@ -2276,7 +2292,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
|
|
|
2276
2292
|
return { project: project.trim(), options, query: frozen.join(" AND ") };
|
|
2277
2293
|
}, "prepareMeetingProjectEvidence");
|
|
2278
2294
|
|
|
2279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2295
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
2280
2296
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
|
|
2281
2297
|
const prepared = prepareMeetingProjectEvidence(project, request, now);
|
|
2282
2298
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -2284,7 +2300,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
|
|
|
2284
2300
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
2285
2301
|
}, "readMeetingProjectEvidence");
|
|
2286
2302
|
|
|
2287
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
2288
2304
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2289
2305
|
const { identityExternalId, ...fields2 } = p;
|
|
2290
2306
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -2423,7 +2439,7 @@ unlinked`, format)],
|
|
|
2423
2439
|
return report;
|
|
2424
2440
|
}, "pull");
|
|
2425
2441
|
|
|
2426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2442
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
2427
2443
|
var text4 = string();
|
|
2428
2444
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
2429
2445
|
var id2 = pipe(number(), integer(), minValue(1));
|
|
@@ -2600,10 +2616,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
2600
2616
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
2601
2617
|
}), "eventItem");
|
|
2602
2618
|
|
|
2603
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
2604
2620
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
2605
2621
|
|
|
2606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2622
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
2607
2623
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
2608
2624
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2609
2625
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -2633,7 +2649,7 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
2633
2649
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
2634
2650
|
}, "validateMeetingRelatedHistory");
|
|
2635
2651
|
|
|
2636
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2652
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
2637
2653
|
var text5 = string();
|
|
2638
2654
|
var identifier = pipe(text5, minLength(1));
|
|
2639
2655
|
var nullableText = nullable(text5);
|
|
@@ -2759,14 +2775,14 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
2759
2775
|
meeting_embedding: embedding
|
|
2760
2776
|
};
|
|
2761
2777
|
|
|
2762
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
2763
2779
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
2764
2780
|
|
|
2765
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2781
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
2766
2782
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
2767
2783
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
2768
2784
|
|
|
2769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2785
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
2770
2786
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
2771
2787
|
input.signal?.throwIfAborted();
|
|
2772
2788
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -2787,10 +2803,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
2787
2803
|
return { ...input, limit, maxReadBytes };
|
|
2788
2804
|
}, "validateMeetingSeriesHistory");
|
|
2789
2805
|
|
|
2790
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
2791
2807
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
2792
2808
|
|
|
2793
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2809
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
2794
2810
|
function invalid3(field, response = false) {
|
|
2795
2811
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
2796
2812
|
}
|
|
@@ -2819,7 +2835,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
2819
2835
|
cursorDetails(value);
|
|
2820
2836
|
}, "validateMeetingSeriesInventoryCursor");
|
|
2821
2837
|
|
|
2822
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2838
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
2823
2839
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
2824
2840
|
const zone = timeZone ?? "UTC";
|
|
2825
2841
|
try {
|
|
@@ -2898,7 +2914,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
2898
2914
|
};
|
|
2899
2915
|
}, "aggregateMeetingStats");
|
|
2900
2916
|
|
|
2901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
2902
2918
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
2903
2919
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
2904
2920
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -2928,6 +2944,7 @@ export {
|
|
|
2928
2944
|
QUERY_BACKENDS,
|
|
2929
2945
|
queryFieldsOf,
|
|
2930
2946
|
fieldsHelp,
|
|
2947
|
+
queryDescription,
|
|
2931
2948
|
parseLucene,
|
|
2932
2949
|
implicitTextTerms,
|
|
2933
2950
|
validateQuery,
|
|
@@ -3,26 +3,26 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
executableEnvironment,
|
|
5
5
|
executableOnPath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ROZBXOES.js";
|
|
7
7
|
import {
|
|
8
8
|
require_cross_spawn
|
|
9
9
|
} from "./chunk-D72URWJE.js";
|
|
10
10
|
import {
|
|
11
11
|
loadConfigFile,
|
|
12
12
|
saveConfigFile
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZISFMUYB.js";
|
|
14
14
|
import {
|
|
15
15
|
number,
|
|
16
16
|
object,
|
|
17
17
|
optional,
|
|
18
18
|
string
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NAIJNJZZ.js";
|
|
20
20
|
import {
|
|
21
21
|
__name,
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-ZVVMGPBJ.js";
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/update/index.js
|
|
26
26
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
27
27
|
import { existsSync } from "node:fs";
|
|
28
28
|
var updateCommand = /* @__PURE__ */ __name((installer, packageName) => {
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
unit
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6U6Z3GXR.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-L3KMVMRJ.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
|
|
14
14
|
import { setTimeout } from "node:timers/promises";
|
|
15
15
|
var OPENAI_URL = "https://api.openai.com/v1";
|
|
16
16
|
var OPENAI_MODELS = {
|
|
@@ -2,31 +2,31 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
updateCommand
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5PWKPRTD.js";
|
|
6
6
|
import {
|
|
7
7
|
QUESTIONS,
|
|
8
8
|
readSetupAnswers,
|
|
9
9
|
unanswered,
|
|
10
10
|
writeSetupAnswers
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2KZJWBXB.js";
|
|
12
12
|
import {
|
|
13
13
|
DEFAULT_STEMMERS,
|
|
14
14
|
LANGUAGES
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-EVO77D3Y.js";
|
|
16
16
|
import {
|
|
17
17
|
sharedConfigPath
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6JK46V5X.js";
|
|
19
19
|
import {
|
|
20
20
|
installerOf
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-DLB2JPLU.js";
|
|
22
22
|
import {
|
|
23
23
|
storePath
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-XWNCXFR5.js";
|
|
25
25
|
import {
|
|
26
26
|
__name
|
|
27
27
|
} from "./chunk-ZVVMGPBJ.js";
|
|
28
28
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/first-run.js
|
|
30
30
|
import { spawnSync } from "node:child_process";
|
|
31
31
|
import { accessSync, constants, realpathSync } from "node:fs";
|
|
32
32
|
import { delimiter, join } from "node:path";
|
|
@@ -84,7 +84,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
|
|
|
84
84
|
return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
|
|
85
85
|
}, "suggested");
|
|
86
86
|
var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
|
|
87
|
-
const { openStore } = await import("./store-
|
|
87
|
+
const { openStore } = await import("./store-L56GFI4P.js");
|
|
88
88
|
const store = await openStore({ env });
|
|
89
89
|
let rebuild = false;
|
|
90
90
|
try {
|
|
@@ -113,8 +113,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
113
113
|
if (!rebuild)
|
|
114
114
|
return;
|
|
115
115
|
const [{ openCache }, { buildStems }] = await Promise.all([
|
|
116
|
-
import("./open-
|
|
117
|
-
import("./store-maintenance-command-
|
|
116
|
+
import("./open-7JSNC3MR.js"),
|
|
117
|
+
import("./store-maintenance-command-2LM4GOI3.js")
|
|
118
118
|
]);
|
|
119
119
|
const database = await openCache(storePath(env));
|
|
120
120
|
try {
|
|
@@ -126,7 +126,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
126
126
|
var askTools = /* @__PURE__ */ __name(async (run) => {
|
|
127
127
|
const { command, env, io } = run;
|
|
128
128
|
const installed = run.installed ?? ((name) => onPath(name, env));
|
|
129
|
-
const { WIRECAT_TOOLS } = await import("./first-screen-
|
|
129
|
+
const { WIRECAT_TOOLS } = await import("./first-screen-JFIXKYAK.js");
|
|
130
130
|
const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
|
|
131
131
|
const missing = others.filter((tool) => !installed(tool.command));
|
|
132
132
|
io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
|
|
@@ -199,7 +199,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
|
|
|
199
199
|
contentLanguages: start.contentLanguages,
|
|
200
200
|
all: start.path[0] === "setup",
|
|
201
201
|
io: {
|
|
202
|
-
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-
|
|
202
|
+
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-JDFVQR3L.js")).readSecret(prompt, { input, echo: true }), "ask"),
|
|
203
203
|
say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
|
|
204
204
|
`), "say")
|
|
205
205
|
}
|