@wirecat/mail-cli 0.9.0 → 0.11.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 +50 -0
- package/README.md +4 -4
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-X6ROLLMF.js → all-profiles-OJPRIFKU.js} +9 -9
- package/dist/bundle/{anthropic-MPARKCMJ.js → anthropic-3AXHD4WH.js} +6 -6
- package/dist/bundle/{app-server-JQ5XCXWT.js → app-server-V4KHCUGE.js} +45 -46
- package/dist/bundle/{bun-H7LT5433.js → bun-ISYNUTQJ.js} +2 -2
- package/dist/bundle/{bun-sqlite-AGK2BHAN.js → bun-sqlite-FH3D4AXL.js} +5 -5
- package/dist/bundle/{chunk-IYC3IHEZ.js → chunk-2TTCKOQ7.js} +2 -2
- package/dist/bundle/{chunk-5NYUCY5W.js → chunk-35Y3INBK.js} +2 -2
- package/dist/bundle/{chunk-UHBCL66Y.js → chunk-44LVUMS2.js} +1 -1
- package/dist/bundle/{chunk-U6BDAY55.js → chunk-4D52FA34.js} +1 -1
- package/dist/bundle/{chunk-L3KMVMRJ.js → chunk-4DPICEPQ.js} +2 -2
- package/dist/bundle/{chunk-6FBBDIX6.js → chunk-4GPPRLIG.js} +7 -42
- package/dist/bundle/{chunk-BNPCRWZ6.js → chunk-5TACUBRJ.js} +8 -8
- package/dist/bundle/{chunk-PC3AFEEA.js → chunk-6LNRNQHJ.js} +4 -4
- package/dist/bundle/{chunk-3LMWAO6A.js → chunk-6QNPJSRM.js} +6 -6
- package/dist/bundle/{chunk-PXQ7A5HQ.js → chunk-6UT3MXOB.js} +3 -3
- package/dist/bundle/{chunk-SEL7SJCM.js → chunk-AJ4JS2ZR.js} +36 -11
- package/dist/bundle/{chunk-RGM66WZ3.js → chunk-BYQ3Z6UL.js} +3 -3
- package/dist/bundle/{chunk-FEA5E7WQ.js → chunk-DN54W657.js} +2 -2
- package/dist/bundle/{chunk-J4MY3QIN.js → chunk-F3QDSQ7V.js} +34 -28
- package/dist/bundle/{chunk-YXQIZORE.js → chunk-FYMQPAE5.js} +4 -4
- package/dist/bundle/{chunk-2FDROA4Q.js → chunk-G2WDY5XB.js} +2 -2
- package/dist/bundle/{chunk-KWHFDVAF.js → chunk-GAIVTJ3E.js} +121 -32
- package/dist/bundle/{chunk-INVEYTAL.js → chunk-GFCNSU3B.js} +48 -48
- package/dist/bundle/{chunk-SYFBRZ5F.js → chunk-GUFWLTOW.js} +2 -2
- package/dist/bundle/{chunk-YLSV3WOO.js → chunk-GYNHU56E.js} +4 -4
- package/dist/bundle/{chunk-CHK3V7FG.js → chunk-HVVLSCFB.js} +1 -1
- package/dist/bundle/{chunk-4EFKQXA5.js → chunk-IG2WXKIT.js} +8 -8
- package/dist/bundle/{chunk-3Y7H3CXI.js → chunk-IS6KAUSG.js} +2 -5
- package/dist/bundle/{chunk-24MHYGNE.js → chunk-IWHXM2S7.js} +1620 -671
- package/dist/bundle/{chunk-TVZFDVZP.js → chunk-IXYKM7OJ.js} +13 -13
- package/dist/bundle/{chunk-ZISFMUYB.js → chunk-JAWJZTFL.js} +18 -18
- package/dist/bundle/{chunk-PEF637VV.js → chunk-JIIEJLAX.js} +4 -4
- package/dist/bundle/{chunk-DLB2JPLU.js → chunk-JNUKTAMZ.js} +1 -1
- package/dist/bundle/{chunk-25N52S7U.js → chunk-K2F7YMMM.js} +6 -6
- package/dist/bundle/{chunk-OZGDPG6I.js → chunk-KJP2B65C.js} +30 -30
- package/dist/bundle/{chunk-EUJTQY43.js → chunk-KVN4RY7E.js} +52 -53
- package/dist/bundle/{chunk-JZMPDFM4.js → chunk-L3PVAY3M.js} +2 -2
- package/dist/bundle/{chunk-64FN5JK6.js → chunk-LIQ5LICB.js} +3 -3
- package/dist/bundle/{chunk-DQHAXX33.js → chunk-LXHLQ6RK.js} +7 -7
- package/dist/bundle/{chunk-HZ42NO25.js → chunk-MDIRW3AT.js} +2 -2
- package/dist/bundle/{chunk-K3RWO7LR.js → chunk-N6P55LDU.js} +84 -8
- package/dist/bundle/{chunk-PTDJXPXG.js → chunk-NBQQ2ZTF.js} +19 -14
- package/dist/bundle/{chunk-NAIJNJZZ.js → chunk-NSDOYHIS.js} +10 -8
- package/dist/bundle/{chunk-VOGSDGVL.js → chunk-OHC4GVWV.js} +2 -2
- package/dist/bundle/{chunk-QO4K6R7K.js → chunk-PLPSFJO6.js} +6 -6
- package/dist/bundle/{chunk-3W6VSSQQ.js → chunk-PSXAC6OO.js} +1 -1
- package/dist/bundle/{chunk-4MIC7S7B.js → chunk-QB54TE52.js} +1 -1
- package/dist/bundle/{chunk-QXXBDW6N.js → chunk-QPQSMJBW.js} +10 -10
- package/dist/bundle/{chunk-SUB4DRMA.js → chunk-S64N24ON.js} +3 -3
- package/dist/bundle/{chunk-M55XFZMG.js → chunk-SW5NVASW.js} +9 -9
- package/dist/bundle/{chunk-N6YA4OQI.js → chunk-SYBMOE6F.js} +865 -838
- package/dist/bundle/{chunk-Z3TZTOR2.js → chunk-T3AGR4TI.js} +4840 -894
- package/dist/bundle/{chunk-JYVZDJNO.js → chunk-TTKNBUMT.js} +45 -5
- package/dist/bundle/{chunk-ROZBXOES.js → chunk-TZGQPTZ2.js} +1 -1
- package/dist/bundle/{chunk-FUDHVV4R.js → chunk-UDJIC6YL.js} +67 -30
- package/dist/bundle/{chunk-HWLAV2HM.js → chunk-V6K2GX2Y.js} +17 -17
- package/dist/bundle/{chunk-65SVO3T7.js → chunk-VEXXVLBM.js} +3 -3
- package/dist/bundle/{chunk-NTWORG4T.js → chunk-WL7CYT7O.js} +1 -1
- package/dist/bundle/{chunk-DL32PWLR.js → chunk-X37KLD23.js} +14 -14
- package/dist/bundle/{chunk-5PWKPRTD.js → chunk-XTIQFMZH.js} +4 -4
- package/dist/bundle/{chunk-GPCKNZIA.js → chunk-YDUES6ET.js} +4 -4
- package/dist/bundle/{chunk-TKFQ3GNY.js → chunk-YRZ23RCS.js} +164 -59
- package/dist/bundle/command-contract-TW44FY47.js +33 -0
- package/dist/bundle/{decode-ZATANRER.js → decode-FM4C2WWG.js} +5 -5
- package/dist/bundle/{dispatch-5C6XNGEE.js → dispatch-K3HG4RYT.js} +8 -8
- package/dist/bundle/{dist-JN22LNLZ.js → dist-7LNVI7VB.js} +17 -13
- package/dist/bundle/{echarts-WKTVUY3O.js → echarts-5C2A72XM.js} +2 -2
- package/dist/bundle/{embed-AVKPYK4V.js → embed-N56P6YVY.js} +6 -6
- package/dist/bundle/{embedder-PSV2E5TR.js → embedder-QLYKFLOL.js} +9 -9
- package/dist/bundle/{failure-YRGRZBTX.js → failure-5ZLVZTRU.js} +2 -2
- package/dist/bundle/{first-run-YN4SF5RZ.js → first-run-VMF4PJ7Q.js} +11 -11
- package/dist/bundle/first-screen-ZN7ODW5K.js +31 -0
- package/dist/bundle/{instructions-W5SJW23S.js → instructions-QA5FHDOJ.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-B25MZCS7.js → mcp-LO2XDBBC.js} +2 -2
- package/dist/bundle/{node-BHBFRH6H.js → node-OXJZWUYZ.js} +2 -2
- package/dist/bundle/{node-sqlite-7FHC3W5U.js → node-sqlite-7GCEI67B.js} +5 -5
- package/dist/bundle/{oauth-ORPM6FLL.js → oauth-VTPIYBTP.js} +7 -7
- package/dist/bundle/{open-AY5KLPWO.js → open-7XX3YF2X.js} +4 -4
- package/dist/bundle/{openai-U7VALRI7.js → openai-D3KRCXSY.js} +14 -14
- package/dist/bundle/{process-7AWARSC5.js → process-KFI7SXQD.js} +1 -1
- package/dist/bundle/{program-2W4J47LM.js → program-INCGQV4G.js} +1334 -857
- package/dist/bundle/{prompt-STNX6JL7.js → prompt-TBZT3APW.js} +5 -5
- package/dist/bundle/{recognize-2XWWTN6Y.js → recognize-WQSE5ZPL.js} +4 -4
- package/dist/bundle/{remote-OIC32DKQ.js → remote-J5HHRNVQ.js} +7 -7
- package/dist/bundle/{rerank-IFTSO576.js → rerank-DP2Y3WDT.js} +7 -7
- package/dist/bundle/{serve-P2D2AJAU.js → serve-VXPOQDQO.js} +9 -9
- package/dist/bundle/{server-DFEJBMXO.js → server-OSBNGA2F.js} +37 -38
- package/dist/bundle/server-XHWSCXVX.js +62 -0
- package/dist/bundle/{sqlite-runtime-DD4Y35DQ.js → sqlite-runtime-XY32WOIT.js} +5 -5
- package/dist/bundle/{state-XUSQMIKJ.js → state-KPOPMR6O.js} +6 -6
- package/dist/bundle/{store-T3PKOLER.js → store-FWRGNGP3.js} +25 -17
- package/dist/bundle/{store-EQC5DKSY.js → store-UBI2YCRC.js} +13 -13
- package/dist/bundle/store-maintenance-command-3ZXPEIGF.js +52 -0
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +2 -1
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/session-start.d.ts.map +1 -1
- package/dist/commands/session-start.js +3 -3
- package/dist/commands/session-start.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +22 -7
- package/dist/commands/sync.js.map +1 -1
- package/dist/config.d.ts +6 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/mail/imap/connection.d.ts.map +1 -1
- package/dist/mail/imap/connection.js +6 -4
- package/dist/mail/imap/connection.js.map +1 -1
- package/dist/mail/imap/errors.d.ts +7 -0
- package/dist/mail/imap/errors.d.ts.map +1 -1
- package/dist/mail/imap/errors.js +8 -4
- package/dist/mail/imap/errors.js.map +1 -1
- package/dist/mail/imap/read.d.ts.map +1 -1
- package/dist/mail/imap/read.js +36 -20
- package/dist/mail/imap/read.js.map +1 -1
- package/dist/mail/imap/search.d.ts +7 -2
- package/dist/mail/imap/search.d.ts.map +1 -1
- package/dist/mail/imap/search.js +13 -7
- package/dist/mail/imap/search.js.map +1 -1
- package/dist/mail/imap/write.d.ts.map +1 -1
- package/dist/mail/imap/write.js +2 -1
- package/dist/mail/imap/write.js.map +1 -1
- package/dist/mail/organise.d.ts.map +1 -1
- package/dist/mail/organise.js +92 -87
- package/dist/mail/organise.js.map +1 -1
- package/dist/mail/send.d.ts.map +1 -1
- package/dist/mail/send.js +26 -5
- package/dist/mail/send.js.map +1 -1
- package/dist/oauth.d.ts +0 -3
- package/dist/oauth.d.ts.map +1 -1
- package/dist/oauth.js +2 -33
- package/dist/oauth.js.map +1 -1
- package/dist/providers.d.ts.map +1 -1
- package/dist/providers.js +2 -1
- package/dist/providers.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +0 -3
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +3 -3
- package/skills/mail-cli/SKILL.md +1 -0
- package/dist/bundle/chunk-EVG7MOAH.js +0 -3604
- package/dist/bundle/command-contract-T3H5CAX3.js +0 -34
- package/dist/bundle/first-screen-IJJZJP6Q.js +0 -32
- package/dist/bundle/server-6D7W5Q4A.js +0 -63
- package/dist/bundle/store-maintenance-command-7YQZXE4V.js +0 -52
- /package/dist/bundle/{chunk-EKRM2QJB.js → chunk-MRLSUCHT.js} +0 -0
|
@@ -30,18 +30,18 @@ import {
|
|
|
30
30
|
string,
|
|
31
31
|
union,
|
|
32
32
|
variant
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-NSDOYHIS.js";
|
|
34
34
|
import {
|
|
35
35
|
CliError,
|
|
36
36
|
isCliError,
|
|
37
37
|
singleLine,
|
|
38
38
|
visibleControls
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-4DPICEPQ.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.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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.74.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.74.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.74.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.74.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"],
|
|
@@ -401,7 +401,7 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
|
|
|
401
401
|
return [...own, ...relations, ...states];
|
|
402
402
|
}, "queryFieldsOf");
|
|
403
403
|
|
|
404
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
404
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.74.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
|
|
405
405
|
var QUERY_SYNTAX = 'field:value \xB7 "a phrase" \xB7 word* \xB7 AND OR NOT \xB7 ( ) \xB7 [a TO b] \xB7 > >= < <=';
|
|
406
406
|
var shownOf = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "shownOf");
|
|
407
407
|
var leftOut = /* @__PURE__ */ __name((fields2) => fields2.filter((field) => field.negatable).map((field) => field.name), "leftOut");
|
|
@@ -431,7 +431,7 @@ var queryDescription = /* @__PURE__ */ __name((registry) => {
|
|
|
431
431
|
return `${terms}; fields: ${fields2.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
|
|
432
432
|
}, "queryDescription");
|
|
433
433
|
|
|
434
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
434
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.74.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
|
|
435
435
|
var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
|
|
436
436
|
var reserved = /* @__PURE__ */ new Set([
|
|
437
437
|
"+",
|
|
@@ -736,7 +736,7 @@ var implicitTextTerms = /* @__PURE__ */ __name((text6) => {
|
|
|
736
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] : []));
|
|
737
737
|
}, "implicitTextTerms");
|
|
738
738
|
|
|
739
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
739
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.74.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
|
|
740
740
|
var inContext = /* @__PURE__ */ __name((context3, run2) => {
|
|
741
741
|
try {
|
|
742
742
|
run2();
|
|
@@ -811,7 +811,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry, options = {}) => {
|
|
|
811
811
|
}, "validateQuery");
|
|
812
812
|
var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
|
|
813
813
|
|
|
814
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
814
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.74.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
|
|
815
815
|
var describeQuery = /* @__PURE__ */ __name((registry) => ({
|
|
816
816
|
entity: registry.entity,
|
|
817
817
|
backend: registry.backend,
|
|
@@ -882,7 +882,7 @@ var QUERY_REASONS = defineReasons([
|
|
|
882
882
|
details: [...SPAN, ...details]
|
|
883
883
|
})));
|
|
884
884
|
|
|
885
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
886
886
|
var text = string();
|
|
887
887
|
var count = pipe(number(), integer(), minValue(0));
|
|
888
888
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -947,7 +947,7 @@ var MEETING_QUERY = {
|
|
|
947
947
|
})
|
|
948
948
|
};
|
|
949
949
|
|
|
950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
950
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
951
951
|
var text2 = string();
|
|
952
952
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
953
953
|
var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
@@ -1174,7 +1174,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
1174
1174
|
};
|
|
1175
1175
|
}, "meetingHitsList");
|
|
1176
1176
|
|
|
1177
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1177
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
1178
1178
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
1179
1179
|
const parsed = urlOf(url);
|
|
1180
1180
|
if (!parsed)
|
|
@@ -1208,7 +1208,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
1208
1208
|
}
|
|
1209
1209
|
}, "urlOf");
|
|
1210
1210
|
|
|
1211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
1212
1212
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
1213
1213
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
1214
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");
|
|
@@ -1241,7 +1241,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
1241
1241
|
return kept;
|
|
1242
1242
|
}, "entryMetadata");
|
|
1243
1243
|
|
|
1244
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1244
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
1245
1245
|
import { createHash } from "node:crypto";
|
|
1246
1246
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
1247
1247
|
reference: cue2.reference,
|
|
@@ -1255,7 +1255,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
1255
1255
|
text: cue2.text
|
|
1256
1256
|
})).digest("hex"), "meetingCueFingerprint");
|
|
1257
1257
|
|
|
1258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
1259
1259
|
var EVENT_QUERY = defineQuery({
|
|
1260
1260
|
entity: "event",
|
|
1261
1261
|
backend: "sql",
|
|
@@ -1271,7 +1271,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
1271
1271
|
]
|
|
1272
1272
|
});
|
|
1273
1273
|
|
|
1274
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1274
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
1275
1275
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
1276
1276
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
1277
1277
|
if (entry.recurrenceEndsAt !== null)
|
|
@@ -1294,7 +1294,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
1294
1294
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
1295
1295
|
}, "entryInWindow");
|
|
1296
1296
|
|
|
1297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1297
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
1298
1298
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
|
|
1299
1299
|
const current = await store.meeting(details.meeting.id);
|
|
1300
1300
|
if (!current)
|
|
@@ -1337,7 +1337,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
1337
1337
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
1338
1338
|
}, "linkEvent");
|
|
1339
1339
|
|
|
1340
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
1341
1341
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text6) => text6.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
1342
1342
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
1343
1343
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -1361,7 +1361,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
1361
1361
|
};
|
|
1362
1362
|
}, "validateMeetingParticipantSearch");
|
|
1363
1363
|
|
|
1364
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1364
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
1365
1365
|
var MeetingError = class extends CliError {
|
|
1366
1366
|
static {
|
|
1367
1367
|
__name(this, "MeetingError");
|
|
@@ -1493,7 +1493,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id3, accountId)
|
|
|
1493
1493
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
1494
1494
|
}, "meetingSummaryAnswer");
|
|
1495
1495
|
|
|
1496
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1496
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
1497
1497
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
1498
1498
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
1499
1499
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -1589,10 +1589,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id3, options) => {
|
|
|
1589
1589
|
};
|
|
1590
1590
|
}, "exportMeeting");
|
|
1591
1591
|
|
|
1592
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1592
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1593
1593
|
import { createHash as createHash2 } from "node:crypto";
|
|
1594
1594
|
|
|
1595
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
1596
1596
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
1597
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)))
|
|
1598
1598
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone`);
|
|
@@ -1603,7 +1603,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
1603
1603
|
return new Date(value).toISOString();
|
|
1604
1604
|
}, "meetingTimestamp");
|
|
1605
1605
|
|
|
1606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1606
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
1607
1607
|
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
1608
1608
|
if (typeof value !== "string" || !value.trim())
|
|
1609
1609
|
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
@@ -1654,10 +1654,10 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
|
|
|
1654
1654
|
return Object.freeze(result);
|
|
1655
1655
|
}, "validateMeetingChange");
|
|
1656
1656
|
|
|
1657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
|
|
1658
1658
|
var MEETING_FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
1659
1659
|
|
|
1660
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1660
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1661
1661
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
1662
1662
|
var invalid2 = /* @__PURE__ */ __name((message) => {
|
|
1663
1663
|
throw new CliError("validation_error", message);
|
|
@@ -1768,7 +1768,7 @@ var validateFindings = /* @__PURE__ */ __name((input, rules) => {
|
|
|
1768
1768
|
}, "validateFindings");
|
|
1769
1769
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
1770
1770
|
|
|
1771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
1772
1772
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
1773
1773
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
1774
1774
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -1779,7 +1779,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
1779
1779
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
1780
1780
|
var meetingFindingFingerprint = findingFingerprint;
|
|
1781
1781
|
|
|
1782
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1782
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
1783
1783
|
var context = {
|
|
1784
1784
|
command: "search meetings",
|
|
1785
1785
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -1842,7 +1842,7 @@ var MEETING_FIELDS = defineQuery({
|
|
|
1842
1842
|
});
|
|
1843
1843
|
var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
|
|
1844
1844
|
|
|
1845
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
1846
1846
|
var contentHash = /* @__PURE__ */ __name(async (text6) => {
|
|
1847
1847
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text6));
|
|
1848
1848
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -1879,7 +1879,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
1879
1879
|
return time;
|
|
1880
1880
|
}, "timestamp");
|
|
1881
1881
|
|
|
1882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
1883
1883
|
var TranscriptTextError = class extends Error {
|
|
1884
1884
|
static {
|
|
1885
1885
|
__name(this, "TranscriptTextError");
|
|
@@ -1934,7 +1934,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
1934
1934
|
return { header, lines };
|
|
1935
1935
|
}, "parseTranscriptText");
|
|
1936
1936
|
|
|
1937
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
1938
1938
|
var VttError = class extends Error {
|
|
1939
1939
|
static {
|
|
1940
1940
|
__name(this, "VttError");
|
|
@@ -1986,7 +1986,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
1986
1986
|
return cues;
|
|
1987
1987
|
}, "parseVtt");
|
|
1988
1988
|
|
|
1989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1989
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
1990
1990
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
1991
1991
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
1992
1992
|
for (const file of files) {
|
|
@@ -2019,10 +2019,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2019
2019
|
return report;
|
|
2020
2020
|
}, "importFiles");
|
|
2021
2021
|
|
|
2022
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
2023
2023
|
var CHAT_MESSAGES_READ = 1e5;
|
|
2024
2024
|
|
|
2025
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2025
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
2026
2026
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
2027
2027
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
2028
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)))
|
|
@@ -2035,7 +2035,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
2035
2035
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
2036
2036
|
}, "validateMeetingPassage");
|
|
2037
2037
|
|
|
2038
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2038
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
2039
2039
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
2040
2040
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2041
2041
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -2060,7 +2060,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
2060
2060
|
return { ...input, limit, maxReadBytes };
|
|
2061
2061
|
}, "validateMeetingPreparationContext");
|
|
2062
2062
|
|
|
2063
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2063
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
2064
2064
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
2065
2065
|
var id = pipe(string(), minLength(1));
|
|
2066
2066
|
var meetingProjectEvidence = strictObject({
|
|
@@ -2181,7 +2181,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
2181
2181
|
};
|
|
2182
2182
|
}, "meetingProjectEvidenceAnswer");
|
|
2183
2183
|
|
|
2184
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2184
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
2185
2185
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
2186
2186
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
2187
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) || [
|
|
@@ -2201,7 +2201,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
2201
2201
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
2202
2202
|
}, "validateMeetingHitSearch");
|
|
2203
2203
|
|
|
2204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
2205
2205
|
var ids = {
|
|
2206
2206
|
meeting_id: "meetingId",
|
|
2207
2207
|
identity_id: "participantIdentityId",
|
|
@@ -2292,7 +2292,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
|
|
|
2292
2292
|
return { project: project.trim(), options, query: frozen.join(" AND ") };
|
|
2293
2293
|
}, "prepareMeetingProjectEvidence");
|
|
2294
2294
|
|
|
2295
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2295
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
2296
2296
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
|
|
2297
2297
|
const prepared = prepareMeetingProjectEvidence(project, request, now);
|
|
2298
2298
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -2300,7 +2300,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
|
|
|
2300
2300
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
2301
2301
|
}, "readMeetingProjectEvidence");
|
|
2302
2302
|
|
|
2303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
2304
2304
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2305
2305
|
const { identityExternalId, ...fields2 } = p;
|
|
2306
2306
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -2439,7 +2439,7 @@ unlinked`, format)],
|
|
|
2439
2439
|
return report;
|
|
2440
2440
|
}, "pull");
|
|
2441
2441
|
|
|
2442
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2442
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
2443
2443
|
var text4 = string();
|
|
2444
2444
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
2445
2445
|
var id2 = pipe(number(), integer(), minValue(1));
|
|
@@ -2616,10 +2616,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
2616
2616
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
2617
2617
|
}), "eventItem");
|
|
2618
2618
|
|
|
2619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
2620
2620
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
2621
2621
|
|
|
2622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2622
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
2623
2623
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
2624
2624
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2625
2625
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -2649,7 +2649,7 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
2649
2649
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
2650
2650
|
}, "validateMeetingRelatedHistory");
|
|
2651
2651
|
|
|
2652
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2652
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
2653
2653
|
var text5 = string();
|
|
2654
2654
|
var identifier = pipe(text5, minLength(1));
|
|
2655
2655
|
var nullableText = nullable(text5);
|
|
@@ -2775,14 +2775,14 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
2775
2775
|
meeting_embedding: embedding
|
|
2776
2776
|
};
|
|
2777
2777
|
|
|
2778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
2779
2779
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
2780
2780
|
|
|
2781
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2781
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
2782
2782
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
2783
2783
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
2784
2784
|
|
|
2785
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2785
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
2786
2786
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
2787
2787
|
input.signal?.throwIfAborted();
|
|
2788
2788
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -2803,10 +2803,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
2803
2803
|
return { ...input, limit, maxReadBytes };
|
|
2804
2804
|
}, "validateMeetingSeriesHistory");
|
|
2805
2805
|
|
|
2806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
2807
2807
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
2808
2808
|
|
|
2809
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2809
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
2810
2810
|
function invalid3(field, response = false) {
|
|
2811
2811
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
2812
2812
|
}
|
|
@@ -2835,7 +2835,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
2835
2835
|
cursorDetails(value);
|
|
2836
2836
|
}, "validateMeetingSeriesInventoryCursor");
|
|
2837
2837
|
|
|
2838
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2838
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
2839
2839
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
2840
2840
|
const zone = timeZone ?? "UTC";
|
|
2841
2841
|
try {
|
|
@@ -2914,7 +2914,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
2914
2914
|
};
|
|
2915
2915
|
}, "aggregateMeetingStats");
|
|
2916
2916
|
|
|
2917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
2918
2918
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
2919
2919
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
2920
2920
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -2936,7 +2936,6 @@ export {
|
|
|
2936
2936
|
timezoneOf,
|
|
2937
2937
|
dayBoundary,
|
|
2938
2938
|
zonedMoment,
|
|
2939
|
-
dateEndpoint,
|
|
2940
2939
|
dateRange,
|
|
2941
2940
|
evaluate,
|
|
2942
2941
|
FIELD_TYPES,
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4DPICEPQ.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
|
|
11
11
|
var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
|
|
12
12
|
var MAX_SECRET_INPUT = 64 * 1024;
|
|
13
13
|
var policies = /* @__PURE__ */ new WeakMap();
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-L3PVAY3M.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4DPICEPQ.js";
|
|
11
11
|
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.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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 } = {}) => {
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4DPICEPQ.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
11
11
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
12
12
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
13
13
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -22,7 +22,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
22
22
|
}
|
|
23
23
|
__name(closeTask, "closeTask");
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
26
26
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
27
27
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
28
28
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -51,7 +51,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
51
51
|
}, "priorityOf");
|
|
52
52
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
53
53
|
|
|
54
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
54
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
55
55
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
56
56
|
async function find(id) {
|
|
57
57
|
const task = await store.get(id);
|
|
@@ -111,13 +111,13 @@ function median(values) {
|
|
|
111
111
|
}
|
|
112
112
|
__name(median, "median");
|
|
113
113
|
|
|
114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
115
115
|
function matches(task, filter) {
|
|
116
116
|
return (filter.account === void 0 || task.account === filter.account) && (filter.state === void 0 || task.state === filter.state) && (filter.group === void 0 || task.group === filter.group) && (filter.kind === void 0 || task.kind === filter.kind) && (filter.createdBefore === void 0 || task.createdAt < filter.createdBefore);
|
|
117
117
|
}
|
|
118
118
|
__name(matches, "matches");
|
|
119
119
|
|
|
120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
121
121
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
122
122
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
123
123
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
@@ -126,7 +126,7 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
126
126
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
127
127
|
var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
128
128
|
|
|
129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
130
130
|
var LINK_KINDS = [
|
|
131
131
|
"links-to",
|
|
132
132
|
"blocked-by",
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
resolvePaths
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JAWJZTFL.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/store/path.js
|
|
11
11
|
import { join } from "node:path";
|
|
12
12
|
var wirecatDirectory = /* @__PURE__ */ __name((env = process.env, platform) => resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env, ...platform ? { platform } : {} }).state, "wirecatDirectory");
|
|
13
13
|
var storePath = /* @__PURE__ */ __name((env = process.env) => env.MESSAGING_STORE ?? join(wirecatDirectory(env), "wirecat.db"), "storePath");
|