@wirecat/notion-cli 0.3.0 → 0.5.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 +48 -0
- package/README.md +3 -0
- package/contracts/wirecat.json +49 -0
- package/dist/bin/notion.js +2 -2
- package/dist/bundle/{all-profiles-4IONYZB6.js → all-profiles-V37KCXH3.js} +9 -9
- package/dist/bundle/{anthropic-OXF74J4P.js → anthropic-Q4S3BYXD.js} +5 -5
- package/dist/bundle/{app-server-M2VF6ABM.js → app-server-43SR3ACI.js} +54 -54
- package/dist/bundle/{bun-DLA6QRLL.js → bun-M3J2QTR3.js} +2 -2
- package/dist/bundle/{bun-sqlite-F4BYLW3F.js → bun-sqlite-EJ3W2PSV.js} +6 -6
- package/dist/bundle/{chunk-7NGFGFE5.js → chunk-2FJNMADN.js} +7 -7
- package/dist/bundle/{chunk-RMJMID5D.js → chunk-3RL2MIUF.js} +8 -8
- package/dist/bundle/{chunk-GCCPFKSU.js → chunk-5P5TXU2K.js} +462 -392
- package/dist/bundle/{chunk-L62XTC7N.js → chunk-6EOZTUHT.js} +10 -10
- package/dist/bundle/{chunk-4TQVZXOV.js → chunk-AT5I34AN.js} +3 -3
- package/dist/bundle/{chunk-CBGBFAYJ.js → chunk-B3FSLAIU.js} +6 -4
- package/dist/bundle/{chunk-7NVPM55S.js → chunk-BBSFQ3PU.js} +1262 -1048
- package/dist/bundle/{chunk-JIRRF6BM.js → chunk-BNEE35WD.js} +4 -4
- package/dist/bundle/{chunk-HTKSCSJU.js → chunk-BWLBSQSU.js} +3 -3
- package/dist/bundle/{chunk-T5UNSFES.js → chunk-C32AKHTY.js} +8 -8
- package/dist/bundle/{chunk-GK4GLPG2.js → chunk-CDK5E45T.js} +3 -3
- package/dist/bundle/{chunk-NO2LIHWA.js → chunk-CWXOXIWS.js} +1 -1
- package/dist/bundle/{chunk-LIQMUDIZ.js → chunk-DB2XKHI4.js} +2 -2
- package/dist/bundle/{chunk-Z53LYX4M.js → chunk-DBEQI5YM.js} +3 -3
- package/dist/bundle/{chunk-2MHMKNWD.js → chunk-DFCHHR5M.js} +1 -1
- package/dist/bundle/{chunk-OI5DWZJG.js → chunk-DO7BLXO3.js} +3 -3
- package/dist/bundle/{chunk-5UA2TYMI.js → chunk-DSP36YHQ.js} +2 -2
- package/dist/bundle/{chunk-WZEEEQGC.js → chunk-E2AFUJDR.js} +3 -3
- package/dist/bundle/{chunk-YFWLHTNO.js → chunk-E5WLE7BM.js} +1 -1
- package/dist/bundle/{chunk-P3P6DA6K.js → chunk-ECC2UX7X.js} +6 -6
- package/dist/bundle/{chunk-GSNE7OB4.js → chunk-ECEZOLOD.js} +4 -4
- package/dist/bundle/{chunk-CIVXTBJY.js → chunk-FBZI4Z3Z.js} +41 -41
- package/dist/bundle/{chunk-5XP4KQ2F.js → chunk-FKA7DOCK.js} +1 -1
- package/dist/bundle/chunk-FPUGMDJV.js +7 -0
- package/dist/bundle/{chunk-OCDJ4FFA.js → chunk-G2MJYXZG.js} +3 -3
- package/dist/bundle/{chunk-5LBJNTEJ.js → chunk-GCZ6MAEN.js} +6 -6
- package/dist/bundle/{chunk-M2EEIYBU.js → chunk-GTY6N5KZ.js} +2 -2
- package/dist/bundle/{chunk-TJCPTRYD.js → chunk-H3E2PZ5Y.js} +7 -7
- package/dist/bundle/{chunk-FSJHASRQ.js → chunk-HHVFIXDO.js} +304 -265
- package/dist/bundle/{chunk-6JBLIQQN.js → chunk-HZRQLAHO.js} +1 -1
- package/dist/bundle/{chunk-WU3XHGOB.js → chunk-J3NKZ6MO.js} +17 -15
- package/dist/bundle/{chunk-QX3TPFEX.js → chunk-JCKWQGCD.js} +36 -36
- package/dist/bundle/{chunk-4KUJTSHG.js → chunk-KHWOLBHQ.js} +2 -2
- package/dist/bundle/{chunk-R6SDRSZK.js → chunk-KHZ2RGXI.js} +33 -32
- package/dist/bundle/{chunk-SGBS5QCU.js → chunk-LBYGJKXW.js} +4 -4
- package/dist/bundle/{chunk-EY6S7FV3.js → chunk-MNRMKWCN.js} +6 -6
- package/dist/bundle/{chunk-TFNRCCGR.js → chunk-N2XADGL4.js} +3 -3
- package/dist/bundle/{chunk-IJMFG7HB.js → chunk-NA6QLHBZ.js} +7 -7
- package/dist/bundle/{chunk-TXONV3HW.js → chunk-NE43YXKL.js} +2 -2
- package/dist/bundle/{chunk-TZ2QJ53V.js → chunk-NHHJHXMQ.js} +2 -2
- package/dist/bundle/{chunk-K5I64ZVI.js → chunk-NTG657MI.js} +8 -8
- package/dist/bundle/{chunk-YAPDU3SV.js → chunk-O3DYRCIT.js} +1 -1
- package/dist/bundle/{chunk-KL3P5TQK.js → chunk-O5YB7FQD.js} +4 -4
- package/dist/bundle/{chunk-WHJWURZB.js → chunk-ONZVPE24.js} +5 -5
- package/dist/bundle/{chunk-7NF3V5L2.js → chunk-P5BHKKBI.js} +4 -4
- package/dist/bundle/{chunk-GBFEEHQC.js → chunk-PAW6RRCW.js} +11 -26
- package/dist/bundle/{chunk-D6RCRBDH.js → chunk-PPHBRESD.js} +2 -2
- package/dist/bundle/{chunk-MRA62W5K.js → chunk-PWRRDDMZ.js} +182 -170
- package/dist/bundle/{chunk-COH7OEER.js → chunk-QIG55MZH.js} +12 -12
- package/dist/bundle/{chunk-L6H7PY4X.js → chunk-QWYMXFKM.js} +3 -3
- package/dist/bundle/{chunk-M6DGZ2O6.js → chunk-QYXWRKNA.js} +7 -7
- package/dist/bundle/{chunk-JODE2XED.js → chunk-RIGE67FR.js} +24 -24
- package/dist/bundle/{chunk-ZC6ZQQ55.js → chunk-RJMQGG3P.js} +30 -30
- package/dist/bundle/{chunk-BEPFGITI.js → chunk-TD2JZ25O.js} +59 -56
- package/dist/bundle/{chunk-EQPAZ33O.js → chunk-TDNURSU6.js} +17 -17
- package/dist/bundle/{chunk-6GN7KU7X.js → chunk-TOSCB4SO.js} +14 -8
- package/dist/bundle/{chunk-Y5LAJWR5.js → chunk-TP7GDWVF.js} +1 -1
- package/dist/bundle/{chunk-UROEWCOG.js → chunk-UZSBGECU.js} +3 -3
- package/dist/bundle/{chunk-7YZPBAQX.js → chunk-W53EJOFQ.js} +1 -1
- package/dist/bundle/{chunk-AYU5TFDU.js → chunk-W5JZMXGW.js} +29 -20
- package/dist/bundle/{chunk-UKE3CGHK.js → chunk-W7HM2VGO.js} +1 -1
- package/dist/bundle/{chunk-FEMHUSGO.js → chunk-WE4UFASG.js} +1 -1
- package/dist/bundle/{chunk-XCTOCVMW.js → chunk-WPP76PSX.js} +14 -14
- package/dist/bundle/{chunk-YGCI3DHS.js → chunk-X2M6NIQG.js} +1 -1
- package/dist/bundle/{chunk-CDGZZNGY.js → chunk-XUPN2EHR.js} +21 -7
- package/dist/bundle/command-contract-TVRFW2IX.js +38 -0
- package/dist/bundle/{command-server-entry-2SORMVRM.js → command-server-entry-LJ627ZUA.js} +26 -26
- package/dist/bundle/{decode-5O7IEFPN.js → decode-PX2LZ5Y2.js} +5 -5
- package/dist/bundle/{dispatch-YHQX6FEJ.js → dispatch-KOISQ5QJ.js} +8 -8
- package/dist/bundle/{echarts-ARLMVQC7.js → echarts-FVTUDXDU.js} +2 -2
- package/dist/bundle/{embed-FUDUKQ3K.js → embed-CCSDK43I.js} +6 -6
- package/dist/bundle/{embedder-HDRV7GX3.js → embedder-VHI4DHB7.js} +9 -9
- package/dist/bundle/{failure-JHXICWIL.js → failure-FZ6VYKEQ.js} +2 -2
- package/dist/bundle/{first-run-BGEFTXOE.js → first-run-7JKE5AHN.js} +12 -12
- package/dist/bundle/first-screen-ZROHOEYJ.js +38 -0
- package/dist/bundle/{instructions-MEFIKCDI.js → instructions-HET7BCYK.js} +1 -1
- package/dist/bundle/{mcp-VMS6PBCU.js → mcp-RGNRW77S.js} +2 -2
- package/dist/bundle/meeting-combined-SSTOJUIJ.js +24 -0
- package/dist/bundle/{meeting-model-REZVYGQW.js → meeting-model-K7TPS4S5.js} +12 -12
- package/dist/bundle/{meeting-semantic-R4CSLVRG.js → meeting-semantic-UD26T37N.js} +6 -6
- package/dist/bundle/{node-MAQALPLA.js → node-CXZIFHZC.js} +2 -2
- package/dist/bundle/{node-sqlite-J7IJYNBO.js → node-sqlite-ME7KMORI.js} +7 -7
- package/dist/bundle/notion.js +13 -13
- package/dist/bundle/{oauth-AMV4YGJD.js → oauth-XBTROXHB.js} +7 -7
- package/dist/bundle/{open-AB27MTGR.js → open-HA6D3SXR.js} +5 -5
- package/dist/bundle/{openai-D77MU5XV.js → openai-H5AJPZBX.js} +16 -16
- package/dist/bundle/{process-SIOWTRJ6.js → process-5RUXWGYS.js} +1 -1
- package/dist/bundle/{program-QC5MX4ZJ.js → program-F3NBTZ7J.js} +1961 -994
- package/dist/bundle/{prompt-W77YDHA6.js → prompt-6XSUOLHK.js} +5 -5
- package/dist/bundle/{recognize-3JAXQQ36.js → recognize-2Y7AUVGG.js} +4 -4
- package/dist/bundle/{remote-PSOJXCXO.js → remote-KCABPXQ3.js} +10 -10
- package/dist/bundle/{rerank-EE44ZTGL.js → rerank-BTN7LUVA.js} +7 -7
- package/dist/bundle/{schemas-LBYUMBC6.js → schemas-VVLTLMXS.js} +1 -1
- package/dist/bundle/{serve-XJMGAMFW.js → serve-CYEMVRFC.js} +9 -9
- package/dist/bundle/server-UC2FNNXX.js +72 -0
- package/dist/bundle/{server-ASU6CP5R.js → server-WFIICGMI.js} +46 -46
- package/dist/bundle/{services-PT4PA4J6.js → services-L4W6ZWDG.js} +41 -41
- package/dist/bundle/{sqlite-runtime-YHXRTVXE.js → sqlite-runtime-IKMYLRQC.js} +6 -6
- package/dist/bundle/{state-T6ZKFWGD.js → state-LMUP636P.js} +6 -6
- package/dist/bundle/{store-3MUCZEI3.js → store-A2QZFBOX.js} +19 -17
- package/dist/bundle/{store-E5EE25FY.js → store-W2JC2JP4.js} +19 -19
- package/dist/bundle/store-maintenance-command-LRGQJPSZ.js +63 -0
- package/dist/commands/comments.d.ts +4 -0
- package/dist/commands/comments.d.ts.map +1 -0
- package/dist/commands/comments.js +80 -0
- package/dist/commands/comments.js.map +1 -0
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +5 -102
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/files.d.ts +4 -0
- package/dist/commands/files.d.ts.map +1 -0
- package/dist/commands/files.js +57 -0
- package/dist/commands/files.js.map +1 -0
- package/dist/commands/library.d.ts.map +1 -1
- package/dist/commands/library.js +56 -12
- package/dist/commands/library.js.map +1 -1
- package/dist/commands/writing.d.ts +32 -0
- package/dist/commands/writing.d.ts.map +1 -0
- package/dist/commands/writing.js +126 -0
- package/dist/commands/writing.js.map +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +3 -0
- package/dist/config.js.map +1 -1
- package/dist/generated/manifest.d.ts +4 -1
- package/dist/generated/manifest.d.ts.map +1 -1
- package/dist/generated/manifest.js +20 -0
- package/dist/generated/manifest.js.map +1 -1
- package/dist/knowledge.d.ts +1 -0
- package/dist/knowledge.d.ts.map +1 -1
- package/dist/knowledge.js +68 -2
- package/dist/knowledge.js.map +1 -1
- package/dist/library.d.ts +4 -1
- package/dist/library.d.ts.map +1 -1
- package/dist/library.js +11 -0
- package/dist/library.js.map +1 -1
- package/dist/notion/errors.d.ts.map +1 -1
- package/dist/notion/errors.js +2 -0
- package/dist/notion/errors.js.map +1 -1
- package/dist/notion/notion.d.ts +38 -0
- package/dist/notion/notion.d.ts.map +1 -1
- package/dist/notion/notion.js +43 -0
- package/dist/notion/notion.js.map +1 -1
- package/dist/notion/port.d.ts.map +1 -1
- package/dist/notion/port.js +1 -0
- package/dist/notion/port.js.map +1 -1
- package/dist/notion/reads.d.ts +13 -1
- package/dist/notion/reads.d.ts.map +1 -1
- package/dist/notion/reads.js +1 -1
- package/dist/notion/writes.d.ts +38 -0
- package/dist/notion/writes.d.ts.map +1 -1
- package/dist/notion/writes.js +73 -0
- package/dist/notion/writes.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +21 -2
- package/dist/program.js.map +1 -1
- package/dist/sync/browse.d.ts +30 -0
- package/dist/sync/browse.d.ts.map +1 -0
- package/dist/sync/browse.js +67 -0
- package/dist/sync/browse.js.map +1 -0
- package/dist/sync/cursor.d.ts +17 -0
- package/dist/sync/cursor.d.ts.map +1 -1
- package/dist/sync/cursor.js +28 -0
- package/dist/sync/cursor.js.map +1 -1
- package/dist/sync/files.d.ts +8 -0
- package/dist/sync/files.d.ts.map +1 -1
- package/dist/sync/files.js +10 -0
- package/dist/sync/files.js.map +1 -1
- package/dist/sync/source.d.ts +4 -4
- package/dist/sync/source.d.ts.map +1 -1
- package/dist/sync/source.js +49 -60
- package/dist/sync/source.js.map +1 -1
- package/dist/sync/users.d.ts +9 -0
- package/dist/sync/users.d.ts.map +1 -0
- package/dist/sync/users.js +76 -0
- package/dist/sync/users.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-SHTHNBHG.js +0 -2
- package/dist/bundle/command-contract-UBXS6NHI.js +0 -38
- package/dist/bundle/first-screen-F5F3VS6Y.js +0 -38
- package/dist/bundle/meeting-combined-HNSS3FQY.js +0 -24
- package/dist/bundle/server-WSPQ5EOA.js +0 -72
- package/dist/bundle/store-maintenance-command-ZZ55BBBG.js +0 -63
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
pageSchema,
|
|
12
12
|
reference,
|
|
13
13
|
stepOf
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TOSCB4SO.js";
|
|
15
15
|
import {
|
|
16
16
|
array,
|
|
17
17
|
boolean,
|
|
@@ -40,12 +40,12 @@ import {
|
|
|
40
40
|
isCliError,
|
|
41
41
|
singleLine,
|
|
42
42
|
visibleControls
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-DB2XKHI4.js";
|
|
44
44
|
import {
|
|
45
45
|
__name
|
|
46
46
|
} from "./chunk-ZVVMGPBJ.js";
|
|
47
47
|
|
|
48
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/reference.js
|
|
49
49
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
|
|
50
50
|
var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
|
|
51
51
|
if (!Number.isSafeInteger(value) || value < minimum)
|
|
@@ -82,7 +82,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text7) => {
|
|
|
82
82
|
}, "parseMeetingReference");
|
|
83
83
|
var canonicalMeetingReference = /* @__PURE__ */ __name((text7) => formatMeetingReference(parseMeetingReference(text7)), "canonicalMeetingReference");
|
|
84
84
|
|
|
85
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
85
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/payment.js
|
|
86
86
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
87
87
|
var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
|
|
88
88
|
var PAYMENT_STATES = ["expected", "paid", "cancelled"];
|
|
@@ -176,7 +176,7 @@ var paymentTitle = /* @__PURE__ */ __name((fact) => {
|
|
|
176
176
|
return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
|
|
177
177
|
}, "paymentTitle");
|
|
178
178
|
|
|
179
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
179
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.109.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
|
|
180
180
|
var QUERY_LIMITS = {
|
|
181
181
|
bytes: 8192,
|
|
182
182
|
depth: 32,
|
|
@@ -220,7 +220,7 @@ function queryError(reason, span, alternative, context3 = {}, details = {}) {
|
|
|
220
220
|
__name(queryError, "queryError");
|
|
221
221
|
var walkQuery = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => walkQuery(node2)), "walkQuery");
|
|
222
222
|
|
|
223
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
223
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.109.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
|
|
224
224
|
var timezoneOf = /* @__PURE__ */ __name((given) => {
|
|
225
225
|
const zone = given ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? "UTC";
|
|
226
226
|
try {
|
|
@@ -370,7 +370,7 @@ var dateRange = /* @__PURE__ */ __name((lower, upper, lowerInclusive, upperInclu
|
|
|
370
370
|
};
|
|
371
371
|
}, "dateRange");
|
|
372
372
|
|
|
373
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
373
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.109.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
|
|
374
374
|
var wordsOf = /* @__PURE__ */ __name((text7) => text7.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
|
|
375
375
|
var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
|
|
376
376
|
var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
|
|
@@ -425,7 +425,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
|
|
|
425
425
|
}, "matches");
|
|
426
426
|
var evaluate = /* @__PURE__ */ __name((ast, fields2, item, options = {}) => matches(ast.root, item, new Map(fields2.map((field) => [field.name, field])), options), "evaluate");
|
|
427
427
|
|
|
428
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
428
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.109.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
|
|
429
429
|
var FIELD_TYPES = ["kw", "txt", "enum", "num", "time", "bool", "ref"];
|
|
430
430
|
var OPERATORS_BY_TYPE = {
|
|
431
431
|
kw: ["term", "phrase", "wildcard"],
|
|
@@ -504,7 +504,7 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
|
|
|
504
504
|
return [...own, ...relations, ...states];
|
|
505
505
|
}, "queryFieldsOf");
|
|
506
506
|
|
|
507
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
507
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.109.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
|
|
508
508
|
var shownOf = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "shownOf");
|
|
509
509
|
var leftOut = /* @__PURE__ */ __name((fields2) => fields2.filter((field) => field.negatable).map((field) => field.name), "leftOut");
|
|
510
510
|
var has = /* @__PURE__ */ __name((fields2, operator) => fields2.some((field) => field.operators.includes(operator)), "has");
|
|
@@ -541,7 +541,7 @@ var queryDescription = /* @__PURE__ */ __name((registry) => {
|
|
|
541
541
|
return `${terms}; fields: ${fields2.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
|
|
542
542
|
}, "queryDescription");
|
|
543
543
|
|
|
544
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
544
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.109.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
|
|
545
545
|
var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
|
|
546
546
|
var reserved = /* @__PURE__ */ new Set([
|
|
547
547
|
"+",
|
|
@@ -850,7 +850,7 @@ var implicitTextTerms = /* @__PURE__ */ __name((text7) => {
|
|
|
850
850
|
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] : []));
|
|
851
851
|
}, "implicitTextTerms");
|
|
852
852
|
|
|
853
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
853
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.109.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
|
|
854
854
|
var inContext = /* @__PURE__ */ __name((context3, run2) => {
|
|
855
855
|
try {
|
|
856
856
|
run2();
|
|
@@ -925,7 +925,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry, options = {}) => {
|
|
|
925
925
|
}, "validateQuery");
|
|
926
926
|
var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
|
|
927
927
|
|
|
928
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
928
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.109.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
|
|
929
929
|
var describeQuery = /* @__PURE__ */ __name((registry) => ({
|
|
930
930
|
entity: registry.entity,
|
|
931
931
|
backend: registry.backend,
|
|
@@ -996,7 +996,7 @@ var QUERY_REASONS = defineReasons([
|
|
|
996
996
|
details: [...SPAN, ...details]
|
|
997
997
|
})));
|
|
998
998
|
|
|
999
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
1000
1000
|
var context = {
|
|
1001
1001
|
command: "search meetings",
|
|
1002
1002
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -1118,7 +1118,24 @@ var meetingWordsQuery = /* @__PURE__ */ __name((text7) => {
|
|
|
1118
1118
|
return { version: 1, language: "lucene-v1", root };
|
|
1119
1119
|
}, "meetingWordsQuery");
|
|
1120
1120
|
|
|
1121
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1121
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/search-store.js
|
|
1122
|
+
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
1123
|
+
let before = Number.POSITIVE_INFINITY;
|
|
1124
|
+
for (; ; ) {
|
|
1125
|
+
signal?.throwIfAborted();
|
|
1126
|
+
const { indexed, remaining } = await meetings.indexSearch({
|
|
1127
|
+
accountId,
|
|
1128
|
+
limit: 1e3,
|
|
1129
|
+
maxReadBytes: 64 * 1024 ** 2,
|
|
1130
|
+
signal
|
|
1131
|
+
});
|
|
1132
|
+
if (remaining === 0 || indexed === 0 || remaining >= before)
|
|
1133
|
+
return;
|
|
1134
|
+
before = remaining;
|
|
1135
|
+
}
|
|
1136
|
+
}, "refreshMeetingIndex");
|
|
1137
|
+
|
|
1138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
1122
1139
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
1123
1140
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
1124
1141
|
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)))
|
|
@@ -1139,7 +1156,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
1139
1156
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
1140
1157
|
}, "validateMeetingPassage");
|
|
1141
1158
|
|
|
1142
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1159
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/search/service-query.js
|
|
1143
1160
|
var BACKENDS = ["archive", "server", "both"];
|
|
1144
1161
|
var MAX_BRANCHES = 64;
|
|
1145
1162
|
var some = /* @__PURE__ */ __name((value) => value === void 0 ? [] : [value], "some");
|
|
@@ -1178,10 +1195,10 @@ var RELATIVE_TIME = /^\d+[mhd]$/i;
|
|
|
1178
1195
|
var OFFSET = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
1179
1196
|
var readsZone = /* @__PURE__ */ __name((ast, times) => walkQuery(ast.root).some((term) => times.has(term.field) && [term.value, term.upper].some((value) => value !== void 0 && value !== "*" && !RELATIVE_TIME.test(value) && !OFFSET.test(value))), "readsZone");
|
|
1180
1197
|
|
|
1181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1198
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/model.js
|
|
1182
1199
|
var MEETING_CALL_DIRECTIONS = ["in", "out"];
|
|
1183
1200
|
|
|
1184
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1201
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
1185
1202
|
var text = string();
|
|
1186
1203
|
var count = pipe(number(), integer(), minValue(0));
|
|
1187
1204
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -1281,7 +1298,7 @@ var MEETING_QUERY = {
|
|
|
1281
1298
|
})
|
|
1282
1299
|
};
|
|
1283
1300
|
|
|
1284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1301
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/store.js
|
|
1285
1302
|
var MEETING_DOCUMENT_ROLES = ["transcript", "recording", "notes"];
|
|
1286
1303
|
var TRANSCRIPT_WORDS = [
|
|
1287
1304
|
"Transcript",
|
|
@@ -1293,7 +1310,7 @@ var TRANSCRIPT_WORDS = [
|
|
|
1293
1310
|
];
|
|
1294
1311
|
var READ_BUDGET_EXCEEDED = "Meeting search exceeds its stored text byte budget";
|
|
1295
1312
|
|
|
1296
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1313
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
1297
1314
|
var text2 = string();
|
|
1298
1315
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
1299
1316
|
var iso2 = /* @__PURE__ */ __name((ms2) => ms2 === null ? null : new Date(ms2).toISOString(), "iso");
|
|
@@ -1577,7 +1594,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
1577
1594
|
};
|
|
1578
1595
|
}, "meetingHitsList");
|
|
1579
1596
|
|
|
1580
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1597
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
1581
1598
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
1582
1599
|
const parsed = urlOf(url);
|
|
1583
1600
|
if (!parsed)
|
|
@@ -1611,7 +1628,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
1611
1628
|
}
|
|
1612
1629
|
}, "urlOf");
|
|
1613
1630
|
|
|
1614
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1631
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
1615
1632
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
1616
1633
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
1617
1634
|
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");
|
|
@@ -1648,7 +1665,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
1648
1665
|
return kept;
|
|
1649
1666
|
}, "entryMetadata");
|
|
1650
1667
|
|
|
1651
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1668
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/calls.js
|
|
1652
1669
|
var CALL_DIRECTIONS = ["incoming", "outgoing", "internal"];
|
|
1653
1670
|
var CALL_OUTCOMES = ["answered", "voicemail", "busy", "no_answer", "failed"];
|
|
1654
1671
|
var MISSED_OUTCOMES = ["voicemail", "busy", "no_answer"];
|
|
@@ -1717,7 +1734,7 @@ var callOf = /* @__PURE__ */ __name((stored) => {
|
|
|
1717
1734
|
};
|
|
1718
1735
|
}, "callOf");
|
|
1719
1736
|
|
|
1720
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1737
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/call-answers.js
|
|
1721
1738
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
1722
1739
|
var ms = count3;
|
|
1723
1740
|
var id = pipe(number(), integer(), minValue(1));
|
|
@@ -1800,7 +1817,7 @@ var callStatsSchema = strictObject({
|
|
|
1800
1817
|
});
|
|
1801
1818
|
var callStats = callStatsSchema;
|
|
1802
1819
|
|
|
1803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1820
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
1804
1821
|
var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
|
|
1805
1822
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
1806
1823
|
const zone = timeZone ?? "UTC";
|
|
@@ -1935,7 +1952,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
1935
1952
|
};
|
|
1936
1953
|
}, "aggregateMeetingStats");
|
|
1937
1954
|
|
|
1938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1955
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/call-stats.js
|
|
1939
1956
|
var CALLBACK_WITHIN_MS = 24 * 60 * 60 * 1e3;
|
|
1940
1957
|
var SHORT_CALL_UNDER_MS = 3e4;
|
|
1941
1958
|
var MOST_MISSED = 100;
|
|
@@ -2125,7 +2142,7 @@ var aggregateCallStats = /* @__PURE__ */ __name((calls, options = {}) => {
|
|
|
2125
2142
|
};
|
|
2126
2143
|
}, "aggregateCallStats");
|
|
2127
2144
|
|
|
2128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2145
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
2129
2146
|
import { createHash } from "node:crypto";
|
|
2130
2147
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
2131
2148
|
reference: cue2.reference,
|
|
@@ -2139,7 +2156,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
2139
2156
|
text: cue2.text
|
|
2140
2157
|
})).digest("hex"), "meetingCueFingerprint");
|
|
2141
2158
|
|
|
2142
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2159
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
2143
2160
|
var EVENT_QUERY = defineQuery({
|
|
2144
2161
|
entity: "event",
|
|
2145
2162
|
backend: "sql",
|
|
@@ -2155,7 +2172,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
2155
2172
|
]
|
|
2156
2173
|
});
|
|
2157
2174
|
|
|
2158
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2175
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
2159
2176
|
var PARTICIPANT_RESPONSES = ["needs-action", "accepted", "tentative", "declined", "delegated"];
|
|
2160
2177
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
2161
2178
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
@@ -2179,7 +2196,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
2179
2196
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
2180
2197
|
}, "entryInWindow");
|
|
2181
2198
|
|
|
2182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2199
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
2183
2200
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now(), { create = true } = {}) => {
|
|
2184
2201
|
const current = await store.meeting(details.meeting.id);
|
|
2185
2202
|
if (!current)
|
|
@@ -2224,7 +2241,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now(),
|
|
|
2224
2241
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
2225
2242
|
}, "linkEvent");
|
|
2226
2243
|
|
|
2227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2244
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
2228
2245
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text7) => text7.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
2229
2246
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
2230
2247
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -2248,7 +2265,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
2248
2265
|
};
|
|
2249
2266
|
}, "validateMeetingParticipantSearch");
|
|
2250
2267
|
|
|
2251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2268
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
2252
2269
|
var MeetingError = class extends CliError {
|
|
2253
2270
|
static {
|
|
2254
2271
|
__name(this, "MeetingError");
|
|
@@ -2387,7 +2404,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id5, accountId)
|
|
|
2387
2404
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
2388
2405
|
}, "meetingSummaryAnswer");
|
|
2389
2406
|
|
|
2390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2407
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
2391
2408
|
var timestamp = /* @__PURE__ */ __name((milliseconds2) => {
|
|
2392
2409
|
if (!Number.isSafeInteger(milliseconds2) || milliseconds2 < 0)
|
|
2393
2410
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -2484,10 +2501,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id5, options) => {
|
|
|
2484
2501
|
};
|
|
2485
2502
|
}, "exportMeeting");
|
|
2486
2503
|
|
|
2487
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2504
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
2488
2505
|
import { createHash as createHash2 } from "node:crypto";
|
|
2489
2506
|
|
|
2490
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2507
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
2491
2508
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
2492
2509
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
2493
2510
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone, such as 2026-11-09T09:00:00Z`);
|
|
@@ -2498,7 +2515,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
2498
2515
|
return new Date(value).toISOString();
|
|
2499
2516
|
}, "meetingTimestamp");
|
|
2500
2517
|
|
|
2501
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2518
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
2502
2519
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
2503
2520
|
var invalid3 = /* @__PURE__ */ __name((message) => {
|
|
2504
2521
|
throw new CliError("validation_error", message);
|
|
@@ -2673,7 +2690,7 @@ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
|
|
|
2673
2690
|
var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
|
|
2674
2691
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
2675
2692
|
|
|
2676
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2693
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
2677
2694
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
2678
2695
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
2679
2696
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -2684,7 +2701,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
2684
2701
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
2685
2702
|
var meetingFindingFingerprint = findingFingerprint;
|
|
2686
2703
|
|
|
2687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2704
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/language.js
|
|
2688
2705
|
var LATIN_WORDS = {
|
|
2689
2706
|
en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
|
|
2690
2707
|
es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
|
|
@@ -2733,7 +2750,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
|
|
|
2733
2750
|
return null;
|
|
2734
2751
|
}, "transcriptLanguage");
|
|
2735
2752
|
|
|
2736
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
2737
2754
|
var contentHash = /* @__PURE__ */ __name(async (text7) => {
|
|
2738
2755
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text7));
|
|
2739
2756
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -2770,7 +2787,223 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
2770
2787
|
return time;
|
|
2771
2788
|
}, "timestamp");
|
|
2772
2789
|
|
|
2773
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2790
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
2791
|
+
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2792
|
+
const { identityExternalId, phone, ...fields2 } = p;
|
|
2793
|
+
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
2794
|
+
return {
|
|
2795
|
+
...fields2,
|
|
2796
|
+
identity: {
|
|
2797
|
+
provider,
|
|
2798
|
+
externalId,
|
|
2799
|
+
name: p.displayName,
|
|
2800
|
+
...phone?.trim() ? { phone } : {},
|
|
2801
|
+
metadata: p.metadata,
|
|
2802
|
+
associatePerson: Boolean(identityExternalId?.trim() || p.email?.trim() || p.externalId?.trim())
|
|
2803
|
+
}
|
|
2804
|
+
};
|
|
2805
|
+
}, "participantInput");
|
|
2806
|
+
var participantInputs = /* @__PURE__ */ __name((provider, occurrenceId2, list, accountId) => list.map((p, i) => participantInput(p, provider, occurrenceId2, i, accountId)), "participantInputs");
|
|
2807
|
+
var sourceMeetingInput = /* @__PURE__ */ __name((m, accountId, participantsCount, kept) => {
|
|
2808
|
+
const startedAt = timestamp2(m.occurrence.startedAt);
|
|
2809
|
+
const given = m.occurrence.endedAt === null ? null : timestamp2(m.occurrence.endedAt);
|
|
2810
|
+
if (given !== null && given < startedAt)
|
|
2811
|
+
throw new Error("Meeting ends before it starts");
|
|
2812
|
+
const keptEnd = kept?.endedAt ?? null;
|
|
2813
|
+
const endedAt = given ?? (keptEnd !== null && keptEnd >= startedAt ? keptEnd : null);
|
|
2814
|
+
const count7 = participantsCount === null && kept ? kept.participantsCount : participantsCount;
|
|
2815
|
+
const metadata = kept?.metadata && m.metadata ? { ...kept.metadata, ...m.metadata } : m.metadata ?? kept?.metadata ?? null;
|
|
2816
|
+
const meeting2 = {
|
|
2817
|
+
accountId,
|
|
2818
|
+
externalId: m.occurrence.id,
|
|
2819
|
+
title: m.occurrence.title,
|
|
2820
|
+
description: m.description ?? kept?.description ?? null,
|
|
2821
|
+
location: m.location ?? kept?.location ?? null,
|
|
2822
|
+
joinUrl: m.joinUrl ?? m.series?.joinUrl ?? kept?.joinUrl ?? null,
|
|
2823
|
+
startedAt,
|
|
2824
|
+
endedAt,
|
|
2825
|
+
durationMs: endedAt === null ? null : endedAt - startedAt,
|
|
2826
|
+
timezone: m.timezone ?? kept?.timezone ?? null,
|
|
2827
|
+
hostIdentityId: kept?.hostIdentityId ?? null,
|
|
2828
|
+
...count7 === void 0 ? {} : { participantsCount: count7 },
|
|
2829
|
+
...m.call ? { direction: m.call.direction ?? null, clientPhone: m.call.clientPhone ?? null } : {},
|
|
2830
|
+
metadata,
|
|
2831
|
+
deletedAt: null
|
|
2832
|
+
};
|
|
2833
|
+
if (m.series)
|
|
2834
|
+
meeting2.series = {
|
|
2835
|
+
externalId: m.series.id,
|
|
2836
|
+
title: m.series.title,
|
|
2837
|
+
description: null,
|
|
2838
|
+
kind: m.series.kind ?? null,
|
|
2839
|
+
recurrence: m.series.recurrence ?? null,
|
|
2840
|
+
hostIdentityId: null,
|
|
2841
|
+
joinUrl: m.series.joinUrl ?? null,
|
|
2842
|
+
metadata: null,
|
|
2843
|
+
deletedAt: null
|
|
2844
|
+
};
|
|
2845
|
+
return meeting2;
|
|
2846
|
+
}, "sourceMeetingInput");
|
|
2847
|
+
var saveSourceMeeting = /* @__PURE__ */ __name(async (source, store, m, parts, { accountId, now, kept }) => {
|
|
2848
|
+
const id5 = m.occurrence.id;
|
|
2849
|
+
const { participants: sourceParticipants, transcript: lines, chat, summary } = parts;
|
|
2850
|
+
const participants = participantInputs(source.provider, id5, sourceParticipants ?? [], accountId);
|
|
2851
|
+
const meeting2 = sourceMeetingInput(m, accountId, sourceParticipants === void 0 ? void 0 : sourceParticipants?.length ?? null, kept);
|
|
2852
|
+
const linked = sourceParticipants !== void 0;
|
|
2853
|
+
const format = source.transcriptFormat ?? null;
|
|
2854
|
+
const transcripts = lines && linked ? [await transcriptInput(lines, participants, source.name, void 0, format)] : void 0;
|
|
2855
|
+
const details = await store.saveMeeting({
|
|
2856
|
+
meeting: meeting2,
|
|
2857
|
+
participants: sourceParticipants ? participants : void 0,
|
|
2858
|
+
transcripts,
|
|
2859
|
+
chat: chat?.map((line2) => ({
|
|
2860
|
+
externalId: null,
|
|
2861
|
+
sentAt: timestamp2(line2.sentAt),
|
|
2862
|
+
senderParticipantPosition: speakerPosition(line2.sender, participants),
|
|
2863
|
+
senderName: line2.sender,
|
|
2864
|
+
recipient: null,
|
|
2865
|
+
text: line2.text,
|
|
2866
|
+
normalizedText: null,
|
|
2867
|
+
metadata: null
|
|
2868
|
+
})),
|
|
2869
|
+
summaries: summary ? [
|
|
2870
|
+
{
|
|
2871
|
+
...summary,
|
|
2872
|
+
source: summary.source ?? source.name,
|
|
2873
|
+
content: summary.content ?? null,
|
|
2874
|
+
docUrl: summary.docUrl ?? null,
|
|
2875
|
+
externalCreatedAt: summary.externalCreatedAt ?? null,
|
|
2876
|
+
externalUpdatedAt: summary.externalUpdatedAt ?? null,
|
|
2877
|
+
metadata: summary.metadata ?? null
|
|
2878
|
+
}
|
|
2879
|
+
] : void 0,
|
|
2880
|
+
attachments: parts.files ?? void 0,
|
|
2881
|
+
documents: parts.documents ?? void 0,
|
|
2882
|
+
now
|
|
2883
|
+
});
|
|
2884
|
+
if (lines && !linked && !details.transcripts.some((t) => t.transcript.source === source.name && t.transcript.supersededAt === null))
|
|
2885
|
+
await store.saveMeeting({
|
|
2886
|
+
meeting: meeting2,
|
|
2887
|
+
transcripts: [await transcriptInput(lines, [], source.name, `${JSON.stringify(lines)}
|
|
2888
|
+
unlinked`, format)],
|
|
2889
|
+
now
|
|
2890
|
+
});
|
|
2891
|
+
await linkEvent(store, details, now, { create: source.createsEvents !== false });
|
|
2892
|
+
return details;
|
|
2893
|
+
}, "saveSourceMeeting");
|
|
2894
|
+
var startOf = /* @__PURE__ */ __name((m) => {
|
|
2895
|
+
const at = Date.parse(m.occurrence.startedAt);
|
|
2896
|
+
return Number.isFinite(at) ? at : Number.POSITIVE_INFINITY;
|
|
2897
|
+
}, "startOf");
|
|
2898
|
+
var indexSaved = /* @__PURE__ */ __name(async (store, accountIds, report) => {
|
|
2899
|
+
const indexSearch = store.indexSearch?.bind(store);
|
|
2900
|
+
if (!indexSearch || report.meetings === 0)
|
|
2901
|
+
return;
|
|
2902
|
+
for (const accountId of new Set(accountIds))
|
|
2903
|
+
try {
|
|
2904
|
+
await refreshMeetingIndex({ indexSearch }, accountId);
|
|
2905
|
+
} catch (error) {
|
|
2906
|
+
report.warnings.push({
|
|
2907
|
+
externalId: String(accountId),
|
|
2908
|
+
message: `search index not updated: ${error instanceof Error ? error.message : "failed"}`
|
|
2909
|
+
});
|
|
2910
|
+
}
|
|
2911
|
+
}, "indexSaved");
|
|
2912
|
+
var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
2913
|
+
const now = options.now ?? Date.now();
|
|
2914
|
+
for (const [name, ms2] of [
|
|
2915
|
+
["lookbackMs", options.lookbackMs ?? 0],
|
|
2916
|
+
["overlapMs", source.overlapMs ?? 0]
|
|
2917
|
+
])
|
|
2918
|
+
if (!Number.isSafeInteger(ms2) || ms2 < 0 || ms2 > 31 * 864e5)
|
|
2919
|
+
throw new Error(`${name} must be an integer from 0 through 31 days`);
|
|
2920
|
+
const lookbackMs = Math.max(options.lookbackMs ?? 0, source.overlapMs ?? 0);
|
|
2921
|
+
const cursor = options.rescan ? void 0 : await store.cursor(options.accountId);
|
|
2922
|
+
const since = options.since ?? cursor ?? new Date(now - 30 * 864e5).toISOString();
|
|
2923
|
+
timestamp2(since);
|
|
2924
|
+
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2925
|
+
let failed = false;
|
|
2926
|
+
let firstFailed;
|
|
2927
|
+
const callers = /* @__PURE__ */ new Set();
|
|
2928
|
+
const linkCallers = /* @__PURE__ */ __name(async () => {
|
|
2929
|
+
if (callers.size === 0 || !store.linkCallers)
|
|
2930
|
+
return;
|
|
2931
|
+
try {
|
|
2932
|
+
await store.linkCallers(source.provider, [...callers]);
|
|
2933
|
+
} catch (error) {
|
|
2934
|
+
report.warnings.push({
|
|
2935
|
+
externalId: source.provider,
|
|
2936
|
+
message: `callers not linked to people: ${error instanceof Error ? error.message : "failed"}`
|
|
2937
|
+
});
|
|
2938
|
+
}
|
|
2939
|
+
}, "linkCallers");
|
|
2940
|
+
const from = timestamp2(since) - lookbackMs;
|
|
2941
|
+
const meetings = (await source.meetings(lookbackMs === 0 ? since : new Date(from).toISOString())).toSorted((a, b) => startOf(a) - startOf(b));
|
|
2942
|
+
for (const [index, m] of meetings.entries()) {
|
|
2943
|
+
const stop = options.budget?.take() ?? null;
|
|
2944
|
+
if (stop) {
|
|
2945
|
+
report.stopped = stop;
|
|
2946
|
+
report.remaining = meetings.length - index;
|
|
2947
|
+
const reached = Math.min(startOf(m), firstFailed ?? Number.POSITIVE_INFINITY);
|
|
2948
|
+
if (Number.isFinite(reached) && reached > timestamp2(since))
|
|
2949
|
+
await store.setCursor(options.accountId, new Date(reached).toISOString(), now);
|
|
2950
|
+
await linkCallers();
|
|
2951
|
+
return report;
|
|
2952
|
+
}
|
|
2953
|
+
const id5 = m.occurrence.id;
|
|
2954
|
+
const failedHere = /* @__PURE__ */ __name(() => {
|
|
2955
|
+
failed = true;
|
|
2956
|
+
firstFailed ??= startOf(m);
|
|
2957
|
+
}, "failedHere");
|
|
2958
|
+
const read = /* @__PURE__ */ __name(async (part, call) => {
|
|
2959
|
+
try {
|
|
2960
|
+
return await call();
|
|
2961
|
+
} catch (error) {
|
|
2962
|
+
failedHere();
|
|
2963
|
+
const message = error instanceof Error ? error.message : "could not be read";
|
|
2964
|
+
report.warnings.push({ externalId: id5, message: `${part}: ${message}` });
|
|
2965
|
+
return void 0;
|
|
2966
|
+
}
|
|
2967
|
+
}, "read");
|
|
2968
|
+
try {
|
|
2969
|
+
const sourceParticipants = await read("participants", () => source.participants(id5));
|
|
2970
|
+
const participants = participantInputs(source.provider, id5, sourceParticipants ?? [], options.accountId);
|
|
2971
|
+
const names = /* @__PURE__ */ new Map();
|
|
2972
|
+
for (const p of participants)
|
|
2973
|
+
if (p.displayName !== null) {
|
|
2974
|
+
const identities = names.get(p.displayName) ?? /* @__PURE__ */ new Set();
|
|
2975
|
+
identities.add(p.identity.externalId);
|
|
2976
|
+
names.set(p.displayName, identities);
|
|
2977
|
+
}
|
|
2978
|
+
if ([...names.values()].some((ids2) => ids2.size > 1))
|
|
2979
|
+
report.warnings.push({ externalId: id5, message: "Participant names are ambiguous" });
|
|
2980
|
+
const lines = await read("transcript", () => source.transcript(id5));
|
|
2981
|
+
const chat = await read("chat", () => source.chat(id5));
|
|
2982
|
+
const summary = await read("summary", () => source.summary(id5));
|
|
2983
|
+
const attachments = await read("files", () => source.files(id5));
|
|
2984
|
+
const listDocuments = source.documents?.bind(source);
|
|
2985
|
+
const documents = listDocuments ? await read("documents", () => listDocuments(id5)) : void 0;
|
|
2986
|
+
await saveSourceMeeting(source, store, m, { participants: sourceParticipants, transcript: lines, chat, summary, files: attachments, documents }, { accountId: options.accountId, now });
|
|
2987
|
+
for (const p of participants)
|
|
2988
|
+
if (p.identity.phone)
|
|
2989
|
+
callers.add(p.identity.externalId);
|
|
2990
|
+
report.meetings++;
|
|
2991
|
+
report.participants += participants.length;
|
|
2992
|
+
report.transcriptRows += lines?.length ?? 0;
|
|
2993
|
+
report.summaries += summary ? 1 : 0;
|
|
2994
|
+
} catch (error) {
|
|
2995
|
+
failedHere();
|
|
2996
|
+
report.warnings.push({ externalId: id5, message: error instanceof Error ? error.message : "Meeting pull failed" });
|
|
2997
|
+
}
|
|
2998
|
+
}
|
|
2999
|
+
await linkCallers();
|
|
3000
|
+
await indexSaved(store, [options.accountId], report);
|
|
3001
|
+
if (!failed)
|
|
3002
|
+
await store.setCursor(options.accountId, new Date(now).toISOString(), now);
|
|
3003
|
+
return report;
|
|
3004
|
+
}, "pull");
|
|
3005
|
+
|
|
3006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
2774
3007
|
var TranscriptTextError = class extends Error {
|
|
2775
3008
|
static {
|
|
2776
3009
|
__name(this, "TranscriptTextError");
|
|
@@ -2825,7 +3058,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
2825
3058
|
return { header, lines };
|
|
2826
3059
|
}, "parseTranscriptText");
|
|
2827
3060
|
|
|
2828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
2829
3062
|
var VttError = class extends Error {
|
|
2830
3063
|
static {
|
|
2831
3064
|
__name(this, "VttError");
|
|
@@ -2877,7 +3110,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
2877
3110
|
return cues;
|
|
2878
3111
|
}, "parseVtt");
|
|
2879
3112
|
|
|
2880
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
2881
3114
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
2882
3115
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2883
3116
|
for (const file of files) {
|
|
@@ -2903,6 +3136,7 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2903
3136
|
});
|
|
2904
3137
|
}
|
|
2905
3138
|
}
|
|
3139
|
+
await indexSaved(store, files.map((file) => file.meeting.accountId), report);
|
|
2906
3140
|
const zones = new Set(files.map((file) => file.meeting.timezone).filter((zone2) => zone2 !== null && zone2 !== void 0));
|
|
2907
3141
|
const [zone] = zones;
|
|
2908
3142
|
if (zones.size === 1 && zone)
|
|
@@ -2910,10 +3144,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2910
3144
|
return report;
|
|
2911
3145
|
}, "importFiles");
|
|
2912
3146
|
|
|
2913
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
2914
3148
|
var CHAT_MESSAGES_READ = 1e5;
|
|
2915
3149
|
|
|
2916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3150
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/provider.js
|
|
2917
3151
|
var snapshotMeetingScope = /* @__PURE__ */ __name((scope2) => {
|
|
2918
3152
|
const provider = scope2?.provider;
|
|
2919
3153
|
const account = scope2?.account;
|
|
@@ -2922,7 +3156,7 @@ var snapshotMeetingScope = /* @__PURE__ */ __name((scope2) => {
|
|
|
2922
3156
|
return Object.freeze({ provider, account });
|
|
2923
3157
|
}, "snapshotMeetingScope");
|
|
2924
3158
|
|
|
2925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3159
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
2926
3160
|
var MEETING_FIELD_KEYS = Object.freeze({
|
|
2927
3161
|
title: "title",
|
|
2928
3162
|
kind: "kind",
|
|
@@ -2954,7 +3188,7 @@ var dispatchMeetingMutation = /* @__PURE__ */ __name(async (options, dispatch) =
|
|
|
2954
3188
|
return { applied: true, value: await dispatch(signal) };
|
|
2955
3189
|
}, "dispatchMeetingMutation");
|
|
2956
3190
|
|
|
2957
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
|
|
2958
3192
|
var id2 = /* @__PURE__ */ __name((value) => {
|
|
2959
3193
|
if (typeof value !== "number" || !Number.isSafeInteger(value) || value < 1)
|
|
2960
3194
|
throw new CliError("validation_error", "meeting context identifiers must be positive integers");
|
|
@@ -3076,7 +3310,7 @@ var createMeetingContext = /* @__PURE__ */ __name((scope2, accountId, ports) =>
|
|
|
3076
3310
|
};
|
|
3077
3311
|
}, "createMeetingContext");
|
|
3078
3312
|
|
|
3079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3313
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
3080
3314
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
3081
3315
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
3082
3316
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -3101,7 +3335,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
3101
3335
|
return { ...input, limit, maxReadBytes };
|
|
3102
3336
|
}, "validateMeetingPreparationContext");
|
|
3103
3337
|
|
|
3104
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
3105
3339
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
3106
3340
|
var id3 = pipe(string(), minLength(1));
|
|
3107
3341
|
var meetingProjectEvidence = strictObject({
|
|
@@ -3222,7 +3456,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
3222
3456
|
};
|
|
3223
3457
|
}, "meetingProjectEvidenceAnswer");
|
|
3224
3458
|
|
|
3225
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
3226
3460
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
3227
3461
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
3228
3462
|
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) || [
|
|
@@ -3242,7 +3476,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
3242
3476
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
3243
3477
|
}, "validateMeetingHitSearch");
|
|
3244
3478
|
|
|
3245
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3479
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
3246
3480
|
var ids = {
|
|
3247
3481
|
meeting_id: "meetingId",
|
|
3248
3482
|
identity_id: "participantIdentityId",
|
|
@@ -3333,7 +3567,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
|
|
|
3333
3567
|
return { project: project.trim(), options, query: frozen.join(" AND ") };
|
|
3334
3568
|
}, "prepareMeetingProjectEvidence");
|
|
3335
3569
|
|
|
3336
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
3337
3571
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
|
|
3338
3572
|
const prepared = prepareMeetingProjectEvidence(project, request, now);
|
|
3339
3573
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -3341,208 +3575,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
|
|
|
3341
3575
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
3342
3576
|
}, "readMeetingProjectEvidence");
|
|
3343
3577
|
|
|
3344
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3345
|
-
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
3346
|
-
const { identityExternalId, phone, ...fields2 } = p;
|
|
3347
|
-
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
3348
|
-
return {
|
|
3349
|
-
...fields2,
|
|
3350
|
-
identity: {
|
|
3351
|
-
provider,
|
|
3352
|
-
externalId,
|
|
3353
|
-
name: p.displayName,
|
|
3354
|
-
...phone?.trim() ? { phone } : {},
|
|
3355
|
-
metadata: p.metadata,
|
|
3356
|
-
associatePerson: Boolean(identityExternalId?.trim() || p.email?.trim() || p.externalId?.trim())
|
|
3357
|
-
}
|
|
3358
|
-
};
|
|
3359
|
-
}, "participantInput");
|
|
3360
|
-
var participantInputs = /* @__PURE__ */ __name((provider, occurrenceId2, list, accountId) => list.map((p, i) => participantInput(p, provider, occurrenceId2, i, accountId)), "participantInputs");
|
|
3361
|
-
var sourceMeetingInput = /* @__PURE__ */ __name((m, accountId, participantsCount, kept) => {
|
|
3362
|
-
const startedAt = timestamp2(m.occurrence.startedAt);
|
|
3363
|
-
const given = m.occurrence.endedAt === null ? null : timestamp2(m.occurrence.endedAt);
|
|
3364
|
-
if (given !== null && given < startedAt)
|
|
3365
|
-
throw new Error("Meeting ends before it starts");
|
|
3366
|
-
const keptEnd = kept?.endedAt ?? null;
|
|
3367
|
-
const endedAt = given ?? (keptEnd !== null && keptEnd >= startedAt ? keptEnd : null);
|
|
3368
|
-
const count7 = participantsCount === null && kept ? kept.participantsCount : participantsCount;
|
|
3369
|
-
const metadata = kept?.metadata && m.metadata ? { ...kept.metadata, ...m.metadata } : m.metadata ?? kept?.metadata ?? null;
|
|
3370
|
-
const meeting2 = {
|
|
3371
|
-
accountId,
|
|
3372
|
-
externalId: m.occurrence.id,
|
|
3373
|
-
title: m.occurrence.title,
|
|
3374
|
-
description: m.description ?? kept?.description ?? null,
|
|
3375
|
-
location: m.location ?? kept?.location ?? null,
|
|
3376
|
-
joinUrl: m.joinUrl ?? m.series?.joinUrl ?? kept?.joinUrl ?? null,
|
|
3377
|
-
startedAt,
|
|
3378
|
-
endedAt,
|
|
3379
|
-
durationMs: endedAt === null ? null : endedAt - startedAt,
|
|
3380
|
-
timezone: m.timezone ?? kept?.timezone ?? null,
|
|
3381
|
-
hostIdentityId: kept?.hostIdentityId ?? null,
|
|
3382
|
-
...count7 === void 0 ? {} : { participantsCount: count7 },
|
|
3383
|
-
...m.call ? { direction: m.call.direction ?? null, clientPhone: m.call.clientPhone ?? null } : {},
|
|
3384
|
-
metadata,
|
|
3385
|
-
deletedAt: null
|
|
3386
|
-
};
|
|
3387
|
-
if (m.series)
|
|
3388
|
-
meeting2.series = {
|
|
3389
|
-
externalId: m.series.id,
|
|
3390
|
-
title: m.series.title,
|
|
3391
|
-
description: null,
|
|
3392
|
-
kind: m.series.kind ?? null,
|
|
3393
|
-
recurrence: m.series.recurrence ?? null,
|
|
3394
|
-
hostIdentityId: null,
|
|
3395
|
-
joinUrl: m.series.joinUrl ?? null,
|
|
3396
|
-
metadata: null,
|
|
3397
|
-
deletedAt: null
|
|
3398
|
-
};
|
|
3399
|
-
return meeting2;
|
|
3400
|
-
}, "sourceMeetingInput");
|
|
3401
|
-
var saveSourceMeeting = /* @__PURE__ */ __name(async (source, store, m, parts, { accountId, now, kept }) => {
|
|
3402
|
-
const id5 = m.occurrence.id;
|
|
3403
|
-
const { participants: sourceParticipants, transcript: lines, chat, summary } = parts;
|
|
3404
|
-
const participants = participantInputs(source.provider, id5, sourceParticipants ?? [], accountId);
|
|
3405
|
-
const meeting2 = sourceMeetingInput(m, accountId, sourceParticipants === void 0 ? void 0 : sourceParticipants?.length ?? null, kept);
|
|
3406
|
-
const linked = sourceParticipants !== void 0;
|
|
3407
|
-
const format = source.transcriptFormat ?? null;
|
|
3408
|
-
const transcripts = lines && linked ? [await transcriptInput(lines, participants, source.name, void 0, format)] : void 0;
|
|
3409
|
-
const details = await store.saveMeeting({
|
|
3410
|
-
meeting: meeting2,
|
|
3411
|
-
participants: sourceParticipants ? participants : void 0,
|
|
3412
|
-
transcripts,
|
|
3413
|
-
chat: chat?.map((line2) => ({
|
|
3414
|
-
externalId: null,
|
|
3415
|
-
sentAt: timestamp2(line2.sentAt),
|
|
3416
|
-
senderParticipantPosition: speakerPosition(line2.sender, participants),
|
|
3417
|
-
senderName: line2.sender,
|
|
3418
|
-
recipient: null,
|
|
3419
|
-
text: line2.text,
|
|
3420
|
-
normalizedText: null,
|
|
3421
|
-
metadata: null
|
|
3422
|
-
})),
|
|
3423
|
-
summaries: summary ? [
|
|
3424
|
-
{
|
|
3425
|
-
...summary,
|
|
3426
|
-
source: summary.source ?? source.name,
|
|
3427
|
-
content: summary.content ?? null,
|
|
3428
|
-
docUrl: summary.docUrl ?? null,
|
|
3429
|
-
externalCreatedAt: summary.externalCreatedAt ?? null,
|
|
3430
|
-
externalUpdatedAt: summary.externalUpdatedAt ?? null,
|
|
3431
|
-
metadata: summary.metadata ?? null
|
|
3432
|
-
}
|
|
3433
|
-
] : void 0,
|
|
3434
|
-
attachments: parts.files ?? void 0,
|
|
3435
|
-
documents: parts.documents ?? void 0,
|
|
3436
|
-
now
|
|
3437
|
-
});
|
|
3438
|
-
if (lines && !linked && !details.transcripts.some((t) => t.transcript.source === source.name && t.transcript.supersededAt === null))
|
|
3439
|
-
await store.saveMeeting({
|
|
3440
|
-
meeting: meeting2,
|
|
3441
|
-
transcripts: [await transcriptInput(lines, [], source.name, `${JSON.stringify(lines)}
|
|
3442
|
-
unlinked`, format)],
|
|
3443
|
-
now
|
|
3444
|
-
});
|
|
3445
|
-
await linkEvent(store, details, now, { create: source.createsEvents !== false });
|
|
3446
|
-
return details;
|
|
3447
|
-
}, "saveSourceMeeting");
|
|
3448
|
-
var startOf = /* @__PURE__ */ __name((m) => {
|
|
3449
|
-
const at = Date.parse(m.occurrence.startedAt);
|
|
3450
|
-
return Number.isFinite(at) ? at : Number.POSITIVE_INFINITY;
|
|
3451
|
-
}, "startOf");
|
|
3452
|
-
var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
3453
|
-
const now = options.now ?? Date.now();
|
|
3454
|
-
for (const [name, ms2] of [
|
|
3455
|
-
["lookbackMs", options.lookbackMs ?? 0],
|
|
3456
|
-
["overlapMs", source.overlapMs ?? 0]
|
|
3457
|
-
])
|
|
3458
|
-
if (!Number.isSafeInteger(ms2) || ms2 < 0 || ms2 > 31 * 864e5)
|
|
3459
|
-
throw new Error(`${name} must be an integer from 0 through 31 days`);
|
|
3460
|
-
const lookbackMs = Math.max(options.lookbackMs ?? 0, source.overlapMs ?? 0);
|
|
3461
|
-
const cursor = options.rescan ? void 0 : await store.cursor(options.accountId);
|
|
3462
|
-
const since = options.since ?? cursor ?? new Date(now - 30 * 864e5).toISOString();
|
|
3463
|
-
timestamp2(since);
|
|
3464
|
-
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
3465
|
-
let failed = false;
|
|
3466
|
-
let firstFailed;
|
|
3467
|
-
const callers = /* @__PURE__ */ new Set();
|
|
3468
|
-
const linkCallers = /* @__PURE__ */ __name(async () => {
|
|
3469
|
-
if (callers.size === 0 || !store.linkCallers)
|
|
3470
|
-
return;
|
|
3471
|
-
try {
|
|
3472
|
-
await store.linkCallers(source.provider, [...callers]);
|
|
3473
|
-
} catch (error) {
|
|
3474
|
-
report.warnings.push({
|
|
3475
|
-
externalId: source.provider,
|
|
3476
|
-
message: `callers not linked to people: ${error instanceof Error ? error.message : "failed"}`
|
|
3477
|
-
});
|
|
3478
|
-
}
|
|
3479
|
-
}, "linkCallers");
|
|
3480
|
-
const from = timestamp2(since) - lookbackMs;
|
|
3481
|
-
const meetings = (await source.meetings(lookbackMs === 0 ? since : new Date(from).toISOString())).toSorted((a, b) => startOf(a) - startOf(b));
|
|
3482
|
-
for (const [index, m] of meetings.entries()) {
|
|
3483
|
-
const stop = options.budget?.take() ?? null;
|
|
3484
|
-
if (stop) {
|
|
3485
|
-
report.stopped = stop;
|
|
3486
|
-
report.remaining = meetings.length - index;
|
|
3487
|
-
const reached = Math.min(startOf(m), firstFailed ?? Number.POSITIVE_INFINITY);
|
|
3488
|
-
if (Number.isFinite(reached) && reached > timestamp2(since))
|
|
3489
|
-
await store.setCursor(options.accountId, new Date(reached).toISOString(), now);
|
|
3490
|
-
await linkCallers();
|
|
3491
|
-
return report;
|
|
3492
|
-
}
|
|
3493
|
-
const id5 = m.occurrence.id;
|
|
3494
|
-
const failedHere = /* @__PURE__ */ __name(() => {
|
|
3495
|
-
failed = true;
|
|
3496
|
-
firstFailed ??= startOf(m);
|
|
3497
|
-
}, "failedHere");
|
|
3498
|
-
const read = /* @__PURE__ */ __name(async (part, call) => {
|
|
3499
|
-
try {
|
|
3500
|
-
return await call();
|
|
3501
|
-
} catch (error) {
|
|
3502
|
-
failedHere();
|
|
3503
|
-
const message = error instanceof Error ? error.message : "could not be read";
|
|
3504
|
-
report.warnings.push({ externalId: id5, message: `${part}: ${message}` });
|
|
3505
|
-
return void 0;
|
|
3506
|
-
}
|
|
3507
|
-
}, "read");
|
|
3508
|
-
try {
|
|
3509
|
-
const sourceParticipants = await read("participants", () => source.participants(id5));
|
|
3510
|
-
const participants = participantInputs(source.provider, id5, sourceParticipants ?? [], options.accountId);
|
|
3511
|
-
const names = /* @__PURE__ */ new Map();
|
|
3512
|
-
for (const p of participants)
|
|
3513
|
-
if (p.displayName !== null) {
|
|
3514
|
-
const identities = names.get(p.displayName) ?? /* @__PURE__ */ new Set();
|
|
3515
|
-
identities.add(p.identity.externalId);
|
|
3516
|
-
names.set(p.displayName, identities);
|
|
3517
|
-
}
|
|
3518
|
-
if ([...names.values()].some((ids2) => ids2.size > 1))
|
|
3519
|
-
report.warnings.push({ externalId: id5, message: "Participant names are ambiguous" });
|
|
3520
|
-
const lines = await read("transcript", () => source.transcript(id5));
|
|
3521
|
-
const chat = await read("chat", () => source.chat(id5));
|
|
3522
|
-
const summary = await read("summary", () => source.summary(id5));
|
|
3523
|
-
const attachments = await read("files", () => source.files(id5));
|
|
3524
|
-
const listDocuments = source.documents?.bind(source);
|
|
3525
|
-
const documents = listDocuments ? await read("documents", () => listDocuments(id5)) : void 0;
|
|
3526
|
-
await saveSourceMeeting(source, store, m, { participants: sourceParticipants, transcript: lines, chat, summary, files: attachments, documents }, { accountId: options.accountId, now });
|
|
3527
|
-
for (const p of participants)
|
|
3528
|
-
if (p.identity.phone)
|
|
3529
|
-
callers.add(p.identity.externalId);
|
|
3530
|
-
report.meetings++;
|
|
3531
|
-
report.participants += participants.length;
|
|
3532
|
-
report.transcriptRows += lines?.length ?? 0;
|
|
3533
|
-
report.summaries += summary ? 1 : 0;
|
|
3534
|
-
} catch (error) {
|
|
3535
|
-
failedHere();
|
|
3536
|
-
report.warnings.push({ externalId: id5, message: error instanceof Error ? error.message : "Meeting pull failed" });
|
|
3537
|
-
}
|
|
3538
|
-
}
|
|
3539
|
-
await linkCallers();
|
|
3540
|
-
if (!failed)
|
|
3541
|
-
await store.setCursor(options.accountId, new Date(now).toISOString(), now);
|
|
3542
|
-
return report;
|
|
3543
|
-
}, "pull");
|
|
3544
|
-
|
|
3545
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
3578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
3546
3579
|
var text4 = string();
|
|
3547
3580
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
3548
3581
|
var id4 = pipe(number(), integer(), minValue(1));
|
|
@@ -3740,7 +3773,7 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
3740
3773
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
3741
3774
|
}), "eventItem");
|
|
3742
3775
|
|
|
3743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/read-through.js
|
|
3744
3777
|
var MEETING_SERVER_BOUNDS = { calls: 3, pages: 2 };
|
|
3745
3778
|
var ISSUES = {
|
|
3746
3779
|
offline: ["permission_error", "meetings.server-offline"],
|
|
@@ -3883,14 +3916,17 @@ var askServerForList = /* @__PURE__ */ __name(async (source, store, accountId, q
|
|
|
3883
3916
|
for (const call of asked) {
|
|
3884
3917
|
let cursor = null;
|
|
3885
3918
|
for (let page = 0; page < MEETING_SERVER_BOUNDS.pages; page++) {
|
|
3919
|
+
access.signal?.throwIfAborted();
|
|
3886
3920
|
step.report.calls += 1;
|
|
3887
3921
|
let answer;
|
|
3888
3922
|
try {
|
|
3889
|
-
answer = await source.find(call.window, call.terms, cursor);
|
|
3923
|
+
answer = await source.find(call.window, call.terms, cursor, access.signal);
|
|
3890
3924
|
} catch (error) {
|
|
3925
|
+
access.signal?.throwIfAborted();
|
|
3891
3926
|
return skip(reasonOf(error), error);
|
|
3892
3927
|
}
|
|
3893
3928
|
for (const found of answer.meetings) {
|
|
3929
|
+
access.signal?.throwIfAborted();
|
|
3894
3930
|
if (seen.has(found.meeting.occurrence.id))
|
|
3895
3931
|
continue;
|
|
3896
3932
|
seen.add(found.meeting.occurrence.id);
|
|
@@ -4015,11 +4051,13 @@ var meetingShowThrough = /* @__PURE__ */ __name(async (source, store, accountId,
|
|
|
4015
4051
|
return fromStore("unsupported");
|
|
4016
4052
|
if (access.offline)
|
|
4017
4053
|
return fromStore("offline");
|
|
4054
|
+
access.signal?.throwIfAborted();
|
|
4018
4055
|
step.report.calls = 1;
|
|
4019
4056
|
let full;
|
|
4020
4057
|
try {
|
|
4021
|
-
full = await source.get(providerId);
|
|
4058
|
+
full = await source.get(providerId, access.signal);
|
|
4022
4059
|
} catch (error) {
|
|
4060
|
+
access.signal?.throwIfAborted();
|
|
4023
4061
|
return fromStore(reasonOf(error), error);
|
|
4024
4062
|
}
|
|
4025
4063
|
if (!full) {
|
|
@@ -4032,10 +4070,10 @@ var meetingShowThrough = /* @__PURE__ */ __name(async (source, store, accountId,
|
|
|
4032
4070
|
return { details: fresh, foundIn: step.found.get(details.meeting.id) ?? "server", server: step.report };
|
|
4033
4071
|
}, "meetingShowThrough");
|
|
4034
4072
|
|
|
4035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4073
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
4036
4074
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
4037
4075
|
|
|
4038
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4076
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
4039
4077
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
4040
4078
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
4041
4079
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -4065,7 +4103,7 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
4065
4103
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
4066
4104
|
}, "validateMeetingRelatedHistory");
|
|
4067
4105
|
|
|
4068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
4069
4107
|
var text5 = string();
|
|
4070
4108
|
var identifier = pipe(text5, minLength(1));
|
|
4071
4109
|
var nullableText = nullable(text5);
|
|
@@ -4237,14 +4275,14 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
4237
4275
|
meeting_repair: repair
|
|
4238
4276
|
};
|
|
4239
4277
|
|
|
4240
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
4241
4279
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
4242
4280
|
|
|
4243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
4244
4282
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
4245
4283
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
4246
4284
|
|
|
4247
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
4248
4286
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
4249
4287
|
input.signal?.throwIfAborted();
|
|
4250
4288
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -4265,10 +4303,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
4265
4303
|
return { ...input, limit, maxReadBytes };
|
|
4266
4304
|
}, "validateMeetingSeriesHistory");
|
|
4267
4305
|
|
|
4268
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
4269
4307
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
4270
4308
|
|
|
4271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4309
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
4272
4310
|
function invalid4(field, response = false) {
|
|
4273
4311
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
4274
4312
|
}
|
|
@@ -4297,7 +4335,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
4297
4335
|
cursorDetails(value);
|
|
4298
4336
|
}, "validateMeetingSeriesInventoryCursor");
|
|
4299
4337
|
|
|
4300
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/tag-answers.js
|
|
4301
4339
|
var text6 = string();
|
|
4302
4340
|
var storeId = pipe(number(), integer(), minValue(1));
|
|
4303
4341
|
var meetingTagChange = strictObject({
|
|
@@ -4410,6 +4448,8 @@ export {
|
|
|
4410
4448
|
parseMeetingQuery,
|
|
4411
4449
|
meetingWordsQuery,
|
|
4412
4450
|
transcriptLanguage,
|
|
4451
|
+
refreshMeetingIndex,
|
|
4452
|
+
pull,
|
|
4413
4453
|
importFiles,
|
|
4414
4454
|
CHAT_MESSAGES_READ,
|
|
4415
4455
|
snapshotMeetingScope,
|
|
@@ -4429,7 +4469,6 @@ export {
|
|
|
4429
4469
|
MEETING_PROJECT_EVIDENCE_QUERY,
|
|
4430
4470
|
prepareMeetingProjectEvidence,
|
|
4431
4471
|
readMeetingProjectEvidence,
|
|
4432
|
-
pull,
|
|
4433
4472
|
meetingReview,
|
|
4434
4473
|
meetingLink,
|
|
4435
4474
|
meetingSpeaker,
|