@wirecat/tg-cli 0.131.0 → 0.132.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/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-TA637IRT.js → adapter-OXVMOWVE.js} +60 -60
- package/dist/bundle/{all-profiles-7M3GBCB6.js → all-profiles-6OQC7PBL.js} +9 -9
- package/dist/bundle/{anthropic-P3THLZWO.js → anthropic-YFMIHFW5.js} +5 -5
- package/dist/bundle/{app-server-OE5EAXIY.js → app-server-S7CJPJXN.js} +52 -52
- package/dist/bundle/{bot-api-WYR2C4A5.js → bot-api-KJ6EZ4R6.js} +61 -61
- package/dist/bundle/{bot-history-PKJTHU7L.js → bot-history-JYCXDFW4.js} +22 -22
- package/dist/bundle/{bun-XMZJDDEA.js → bun-FVTOBYZ2.js} +2 -2
- package/dist/bundle/{bun-sqlite-F5RWCB2N.js → bun-sqlite-KDGWBNOR.js} +6 -6
- package/dist/bundle/{chunk-76UAXRDY.js → chunk-2LZD2VFV.js} +4 -4
- package/dist/bundle/{chunk-JUFLELQ7.js → chunk-2UGSIHLV.js} +2 -2
- package/dist/bundle/{chunk-2U6XE4HI.js → chunk-3QHKZLBU.js} +4 -4
- package/dist/bundle/{chunk-34PRGA7E.js → chunk-42MXCMW6.js} +3 -3
- package/dist/bundle/{chunk-HT6OFANN.js → chunk-44A2XRDE.js} +20 -20
- package/dist/bundle/{chunk-WG6UZJ3E.js → chunk-4CKYANQH.js} +1 -1
- package/dist/bundle/{chunk-AUNNJDVD.js → chunk-4EDJJQJI.js} +28 -8
- package/dist/bundle/{chunk-O7X6RM5R.js → chunk-4YB7JU2W.js} +6 -6
- package/dist/bundle/{chunk-CLG2ISQH.js → chunk-4ZTVJHWU.js} +4 -4
- package/dist/bundle/{chunk-F6MLJ3V5.js → chunk-5RDNBG7D.js} +2 -2
- package/dist/bundle/{chunk-UUNQV4YL.js → chunk-5UPEEMEF.js} +22 -15
- package/dist/bundle/{chunk-YJ4BPNWI.js → chunk-6LPUK62N.js} +3 -3
- package/dist/bundle/{chunk-GNIROVSK.js → chunk-74UPKW7H.js} +2 -2
- package/dist/bundle/{chunk-IULSIKEM.js → chunk-7SEVVE3X.js} +3 -3
- package/dist/bundle/{chunk-PS7ZS5HD.js → chunk-A5D3J7XZ.js} +4 -4
- package/dist/bundle/{chunk-O73DZURO.js → chunk-AERP2QR6.js} +10 -10
- package/dist/bundle/{chunk-6BPM3LNR.js → chunk-AUZWIBHJ.js} +6 -6
- package/dist/bundle/{chunk-JDLNI7BU.js → chunk-B4LGDOG5.js} +263 -260
- package/dist/bundle/{chunk-B6NQJAUC.js → chunk-BLZEQVP4.js} +2 -2
- package/dist/bundle/{chunk-WUIKJJ5A.js → chunk-BMI2NWFI.js} +8 -8
- package/dist/bundle/{chunk-QGFUUJPL.js → chunk-BSXS7VAC.js} +1 -1
- package/dist/bundle/{chunk-OOSX7K7G.js → chunk-CFWFESBO.js} +8 -8
- package/dist/bundle/{chunk-PD4RREQB.js → chunk-DSJNZXTP.js} +1 -1
- package/dist/bundle/{chunk-MYC3M4BY.js → chunk-DXPGMUOR.js} +2 -2
- package/dist/bundle/{chunk-LJO6MMQG.js → chunk-EPR67IRV.js} +4 -4
- package/dist/bundle/{chunk-SLT2PBFP.js → chunk-ESOFH7PA.js} +37 -30
- package/dist/bundle/{chunk-2OXR2MRV.js → chunk-FIUH52FE.js} +1 -1
- package/dist/bundle/{chunk-43KSYUZU.js → chunk-FKGYXIN7.js} +7 -7
- package/dist/bundle/{chunk-TT6OHNV2.js → chunk-FPSRT2TX.js} +2 -2
- package/dist/bundle/{chunk-ITYDJIRC.js → chunk-HBSKP7OV.js} +1 -1
- package/dist/bundle/{chunk-LDSTUBLY.js → chunk-IY7CTAOQ.js} +9 -9
- package/dist/bundle/{chunk-5AJ5RLJW.js → chunk-IYJ4B632.js} +14 -13
- package/dist/bundle/{chunk-J2QQZVEN.js → chunk-JDNDWZYS.js} +4 -4
- package/dist/bundle/{chunk-H655CMXJ.js → chunk-JMJOWT4N.js} +1 -1
- package/dist/bundle/{chunk-NTORQXAS.js → chunk-JNWKV3QV.js} +4 -4
- package/dist/bundle/{chunk-JSE4OBYI.js → chunk-JPSRC732.js} +13 -13
- package/dist/bundle/{chunk-L2SMUTJY.js → chunk-JZJV3DYK.js} +2 -2
- package/dist/bundle/{chunk-EZBMLKBK.js → chunk-KJICORS4.js} +36 -36
- package/dist/bundle/{chunk-P6KGEZIS.js → chunk-LF6FACSW.js} +5 -5
- package/dist/bundle/{chunk-5ZIT6JXP.js → chunk-LG3K5NHX.js} +7 -7
- package/dist/bundle/{chunk-UGYC2FV5.js → chunk-LMGVPDXN.js} +2 -2
- package/dist/bundle/{chunk-6O5AD3GA.js → chunk-LZ3HFDYL.js} +2 -2
- package/dist/bundle/{chunk-JF4AJNCE.js → chunk-M2TV6BDB.js} +7 -7
- package/dist/bundle/{chunk-XC2YJDDK.js → chunk-N5LZ6L4D.js} +3 -3
- package/dist/bundle/{chunk-OX5EAUKF.js → chunk-NLRGMP7M.js} +3 -3
- package/dist/bundle/{chunk-S2IET7WM.js → chunk-NWCFO37P.js} +3 -3
- package/dist/bundle/{chunk-LWSOCKOD.js → chunk-NWDADTPE.js} +3 -3
- package/dist/bundle/{chunk-BXW6FGLD.js → chunk-O3AM32YN.js} +15 -15
- package/dist/bundle/{chunk-5N7TJ6TJ.js → chunk-O43PARFS.js} +166 -161
- package/dist/bundle/{chunk-OPG54IFH.js → chunk-OGZZUDJJ.js} +54 -54
- package/dist/bundle/{chunk-AJQ6JFLY.js → chunk-OIRNHSAH.js} +6 -6
- package/dist/bundle/{chunk-LEPDRO3O.js → chunk-PG37E63A.js} +76 -59
- package/dist/bundle/{chunk-6TJTQ4I4.js → chunk-PR4F3TYK.js} +30 -30
- package/dist/bundle/{chunk-NOZZHEMD.js → chunk-PYECFCPD.js} +1 -1
- package/dist/bundle/{chunk-EXMJDHBM.js → chunk-QNEAPLOP.js} +12 -12
- package/dist/bundle/{chunk-BFERGEBI.js → chunk-QS46C5SW.js} +17 -17
- package/dist/bundle/{chunk-VNJZXV7E.js → chunk-SMQ45RZX.js} +6 -6
- package/dist/bundle/{chunk-PHGH5N4C.js → chunk-U7PHJSTX.js} +2 -2
- package/dist/bundle/{chunk-SQ2JLZFK.js → chunk-UAFSDTID.js} +1 -1
- package/dist/bundle/{chunk-2TOJQQKS.js → chunk-UGD4SCUI.js} +1 -1
- package/dist/bundle/{chunk-VVUUP5NF.js → chunk-WAVRUADL.js} +13 -13
- package/dist/bundle/{chunk-Z2TCTTPJ.js → chunk-Y57EKZZK.js} +676 -435
- package/dist/bundle/{chunk-LTP4BYHJ.js → chunk-YAPO7QNO.js} +6 -6
- package/dist/bundle/{chunk-YZTMQE62.js → chunk-YRXSNH3R.js} +2 -2
- package/dist/bundle/{chunk-AEIDEIVB.js → chunk-YSNQGOUI.js} +2235 -1355
- package/dist/bundle/{chunk-GA3URWIF.js → chunk-YVI5SQPY.js} +1 -1
- package/dist/bundle/{chunk-SS5H2XAT.js → chunk-ZJIGVT6Z.js} +2 -2
- package/dist/bundle/{chunk-NXNSEFGR.js → chunk-ZRW3DF25.js} +24 -24
- package/dist/bundle/{chunk-66PL7P4C.js → chunk-ZZ32DXTH.js} +1 -1
- package/dist/bundle/command-contract-FRH7LBGE.js +37 -0
- package/dist/bundle/{command-server-entry-6FH3RXJ2.js → command-server-entry-TM264M2J.js} +27 -27
- package/dist/bundle/{decode-UBRT2QDP.js → decode-RJFOSHCE.js} +5 -5
- package/dist/bundle/{dispatch-ST5FK2KI.js → dispatch-7OZP3X4O.js} +8 -8
- package/dist/bundle/{echarts-PG45GQLR.js → echarts-PYKF4D7B.js} +2 -2
- package/dist/bundle/{embed-BUQDSZ57.js → embed-JFN6Z5TG.js} +6 -6
- package/dist/bundle/{embedder-TXA3EV7O.js → embedder-WN54JIMY.js} +9 -9
- package/dist/bundle/{entry-JWIEF57D.js → entry-Z6LO6N6S.js} +9 -9
- package/dist/bundle/{failure-GMUQKQ5K.js → failure-UONA2IA5.js} +2 -2
- package/dist/bundle/{first-run-5VTHKMK5.js → first-run-WQAKES7G.js} +12 -12
- package/dist/bundle/first-screen-4RFG22SA.js +35 -0
- package/dist/bundle/{instructions-ZMEPWTFO.js → instructions-PR4BBBTM.js} +1 -1
- package/dist/bundle/{mcp-VFIOZDVY.js → mcp-O6ACR2DX.js} +2 -2
- package/dist/bundle/meeting-combined-MHWTZOF2.js +23 -0
- package/dist/bundle/{meeting-model-5FVNZCTL.js → meeting-model-YVTUOM4H.js} +11 -11
- package/dist/bundle/{meeting-semantic-HUMYFMO7.js → meeting-semantic-X4KG6RNV.js} +6 -6
- package/dist/bundle/{node-N4DQQJKK.js → node-OVS5LTVZ.js} +2 -2
- package/dist/bundle/{node-sqlite-MG4KFXYY.js → node-sqlite-LC44SM4Z.js} +7 -7
- package/dist/bundle/{oauth-NKDSXEH6.js → oauth-NSVUFQCW.js} +7 -7
- package/dist/bundle/{open-DV2YUU2M.js → open-XN5SJFVY.js} +5 -5
- package/dist/bundle/{openai-FEKMZOUJ.js → openai-WOYZHJNL.js} +15 -15
- package/dist/bundle/{process-QZS3TE6A.js → process-UFBRGTQC.js} +1 -1
- package/dist/bundle/{program-FNDGXEVS.js → program-RAGBRRQH.js} +63 -63
- package/dist/bundle/{prompt-C7RSBNH5.js → prompt-6HAKBUQN.js} +5 -5
- package/dist/bundle/{proxy-transport-A4MRO3PF.js → proxy-transport-5EJVFUTC.js} +5 -5
- package/dist/bundle/{recognize-5BL763FS.js → recognize-CN5COBVJ.js} +4 -4
- package/dist/bundle/{remote-CXAKRC7X.js → remote-STX5AMGE.js} +9 -9
- package/dist/bundle/{rerank-XAEXY5A4.js → rerank-ZCOWTXIJ.js} +7 -7
- package/dist/bundle/{serve-JLZGFTZH.js → serve-XMQEOIG2.js} +9 -9
- package/dist/bundle/{server-GF3TV2U7.js → server-PGGUD3DM.js} +44 -44
- package/dist/bundle/server-WTNYWCZ4.js +69 -0
- package/dist/bundle/{sqlite-runtime-3OVQ7OTM.js → sqlite-runtime-PS4DSOIU.js} +6 -6
- package/dist/bundle/{state-FGJKQKC2.js → state-GL4ZC57O.js} +6 -6
- package/dist/bundle/{store-WYLMNAAQ.js → store-HJ76TLWD.js} +19 -19
- package/dist/bundle/{store-2J5VJZQY.js → store-VISFXSHL.js} +17 -17
- package/dist/bundle/store-maintenance-command-SMARMN5C.js +60 -0
- package/dist/bundle/tg.js +13 -13
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-DAQYQF6R.js +0 -37
- package/dist/bundle/first-screen-PTHIZ5ZF.js +0 -35
- package/dist/bundle/meeting-combined-DU3RJR6X.js +0 -23
- package/dist/bundle/server-GLPEWUYT.js +0 -69
- package/dist/bundle/store-maintenance-command-QN6QH6RA.js +0 -60
- /package/dist/bundle/{chunk-ZI3YTXSF.js → chunk-VKE77B3F.js} +0 -0
|
@@ -32,18 +32,18 @@ import {
|
|
|
32
32
|
string,
|
|
33
33
|
union,
|
|
34
34
|
variant
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-4EDJJQJI.js";
|
|
36
36
|
import {
|
|
37
37
|
CliError,
|
|
38
38
|
isCliError,
|
|
39
39
|
singleLine,
|
|
40
40
|
visibleControls
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-5RDNBG7D.js";
|
|
42
42
|
import {
|
|
43
43
|
__name
|
|
44
44
|
} from "./chunk-ZVVMGPBJ.js";
|
|
45
45
|
|
|
46
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
46
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/reference.js
|
|
47
47
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
|
|
48
48
|
var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
|
|
49
49
|
if (!Number.isSafeInteger(value) || value < minimum)
|
|
@@ -80,7 +80,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text6) => {
|
|
|
80
80
|
}, "parseMeetingReference");
|
|
81
81
|
var canonicalMeetingReference = /* @__PURE__ */ __name((text6) => formatMeetingReference(parseMeetingReference(text6)), "canonicalMeetingReference");
|
|
82
82
|
|
|
83
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
83
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/payment.js
|
|
84
84
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
85
85
|
var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
|
|
86
86
|
var PAYMENT_STATES = ["expected", "paid", "cancelled"];
|
|
@@ -174,7 +174,7 @@ var paymentTitle = /* @__PURE__ */ __name((fact) => {
|
|
|
174
174
|
return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
|
|
175
175
|
}, "paymentTitle");
|
|
176
176
|
|
|
177
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
177
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.102.1_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
|
|
178
178
|
var QUERY_LIMITS = {
|
|
179
179
|
bytes: 8192,
|
|
180
180
|
depth: 32,
|
|
@@ -218,7 +218,7 @@ function queryError(reason, span, alternative, context3 = {}, details = {}) {
|
|
|
218
218
|
__name(queryError, "queryError");
|
|
219
219
|
var walkQuery = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => walkQuery(node2)), "walkQuery");
|
|
220
220
|
|
|
221
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
221
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.102.1_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
|
|
222
222
|
var timezoneOf = /* @__PURE__ */ __name((given) => {
|
|
223
223
|
const zone = given ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? "UTC";
|
|
224
224
|
try {
|
|
@@ -368,7 +368,7 @@ var dateRange = /* @__PURE__ */ __name((lower, upper, lowerInclusive, upperInclu
|
|
|
368
368
|
};
|
|
369
369
|
}, "dateRange");
|
|
370
370
|
|
|
371
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
371
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.102.1_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
|
|
372
372
|
var wordsOf = /* @__PURE__ */ __name((text6) => text6.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
|
|
373
373
|
var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
|
|
374
374
|
var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
|
|
@@ -423,7 +423,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
|
|
|
423
423
|
}, "matches");
|
|
424
424
|
var evaluate = /* @__PURE__ */ __name((ast, fields, item, options = {}) => matches(ast.root, item, new Map(fields.map((field) => [field.name, field])), options), "evaluate");
|
|
425
425
|
|
|
426
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
426
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.102.1_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
|
|
427
427
|
var FIELD_TYPES = ["kw", "txt", "enum", "num", "time", "bool", "ref"];
|
|
428
428
|
var OPERATORS_BY_TYPE = {
|
|
429
429
|
kw: ["term", "phrase", "wildcard"],
|
|
@@ -502,7 +502,7 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
|
|
|
502
502
|
return [...own, ...relations, ...states];
|
|
503
503
|
}, "queryFieldsOf");
|
|
504
504
|
|
|
505
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
505
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.102.1_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
|
|
506
506
|
var shownOf = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "shownOf");
|
|
507
507
|
var leftOut = /* @__PURE__ */ __name((fields) => fields.filter((field) => field.negatable).map((field) => field.name), "leftOut");
|
|
508
508
|
var has = /* @__PURE__ */ __name((fields, operator) => fields.some((field) => field.operators.includes(operator)), "has");
|
|
@@ -539,7 +539,7 @@ var queryDescription = /* @__PURE__ */ __name((registry) => {
|
|
|
539
539
|
return `${terms}; fields: ${fields.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
|
|
540
540
|
}, "queryDescription");
|
|
541
541
|
|
|
542
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
542
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.102.1_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
|
|
543
543
|
var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
|
|
544
544
|
var reserved = /* @__PURE__ */ new Set([
|
|
545
545
|
"+",
|
|
@@ -848,7 +848,7 @@ var implicitTextTerms = /* @__PURE__ */ __name((text6) => {
|
|
|
848
848
|
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] : []));
|
|
849
849
|
}, "implicitTextTerms");
|
|
850
850
|
|
|
851
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
851
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.102.1_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
|
|
852
852
|
var inContext = /* @__PURE__ */ __name((context3, run2) => {
|
|
853
853
|
try {
|
|
854
854
|
run2();
|
|
@@ -923,7 +923,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry, options = {}) => {
|
|
|
923
923
|
}, "validateQuery");
|
|
924
924
|
var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
|
|
925
925
|
|
|
926
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
926
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.102.1_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
|
|
927
927
|
var describeQuery = /* @__PURE__ */ __name((registry) => ({
|
|
928
928
|
entity: registry.entity,
|
|
929
929
|
backend: registry.backend,
|
|
@@ -994,7 +994,7 @@ var QUERY_REASONS = defineReasons([
|
|
|
994
994
|
details: [...SPAN, ...details]
|
|
995
995
|
})));
|
|
996
996
|
|
|
997
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
997
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
998
998
|
var context = {
|
|
999
999
|
command: "search meetings",
|
|
1000
1000
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -1106,7 +1106,7 @@ var liftMeetingFields = /* @__PURE__ */ __name((query, request, now, timezone) =
|
|
|
1106
1106
|
}, "liftMeetingFields");
|
|
1107
1107
|
var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
|
|
1108
1108
|
|
|
1109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/search/service-query.js
|
|
1110
1110
|
var BACKENDS = ["archive", "server", "both"];
|
|
1111
1111
|
var MAX_BRANCHES = 64;
|
|
1112
1112
|
var some = /* @__PURE__ */ __name((value) => value === void 0 ? [] : [value], "some");
|
|
@@ -1145,7 +1145,10 @@ var RELATIVE_TIME = /^\d+[mhd]$/i;
|
|
|
1145
1145
|
var OFFSET = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
1146
1146
|
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");
|
|
1147
1147
|
|
|
1148
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1148
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/model.js
|
|
1149
|
+
var MEETING_CALL_DIRECTIONS = ["in", "out"];
|
|
1150
|
+
|
|
1151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
1149
1152
|
var text = string();
|
|
1150
1153
|
var count = pipe(number(), integer(), minValue(0));
|
|
1151
1154
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -1153,6 +1156,12 @@ var meetingIssuesOf = /* @__PURE__ */ __name((metadata) => {
|
|
|
1153
1156
|
const listed2 = metadata?.issues;
|
|
1154
1157
|
return Array.isArray(listed2) ? MEETING_ISSUES.filter((issue) => listed2.includes(issue)) : [];
|
|
1155
1158
|
}, "meetingIssuesOf");
|
|
1159
|
+
var meetingCall = strictObject({
|
|
1160
|
+
direction: nullable(picklist(MEETING_CALL_DIRECTIONS)),
|
|
1161
|
+
manager: nullable(strictObject({ name: nullable(text), person: nullable(reference) })),
|
|
1162
|
+
client_phone: nullable(text)
|
|
1163
|
+
});
|
|
1164
|
+
var meetingCallItem = /* @__PURE__ */ __name((row) => row.direction == null && row.clientPhone == null ? void 0 : { direction: row.direction ?? null, manager: row.manager ?? null, client_phone: row.clientPhone ?? null }, "meetingCallItem");
|
|
1156
1165
|
var meetingEntries = {
|
|
1157
1166
|
ref: reference,
|
|
1158
1167
|
id: pipe(string(), minLength(1)),
|
|
@@ -1170,6 +1179,8 @@ var meetingEntries = {
|
|
|
1170
1179
|
duration_ms: nullable(count),
|
|
1171
1180
|
timezone: optional(nullable(text)),
|
|
1172
1181
|
participants_count: nullable(count),
|
|
1182
|
+
/** Present only on a phone call. */
|
|
1183
|
+
call: optional(meetingCall),
|
|
1173
1184
|
/** Present only when something about this meeting is doubtful. */
|
|
1174
1185
|
issues: optional(array(picklist(MEETING_ISSUES))),
|
|
1175
1186
|
/**
|
|
@@ -1187,6 +1198,7 @@ var MEETING_UNTRUSTED = ["title", "description", "location"];
|
|
|
1187
1198
|
var iso = /* @__PURE__ */ __name((ms2) => ms2 === null ? null : new Date(ms2).toISOString(), "iso");
|
|
1188
1199
|
var meetingItem = /* @__PURE__ */ __name((row, owner) => {
|
|
1189
1200
|
const issues = meetingIssuesOf(row.metadata);
|
|
1201
|
+
const call = meetingCallItem(row);
|
|
1190
1202
|
return {
|
|
1191
1203
|
ref: formatMeetingReference({ type: "meeting", accountId: row.accountId, meetingId: row.id }),
|
|
1192
1204
|
id: String(row.id),
|
|
@@ -1202,6 +1214,7 @@ var meetingItem = /* @__PURE__ */ __name((row, owner) => {
|
|
|
1202
1214
|
duration_ms: row.durationMs,
|
|
1203
1215
|
timezone: row.timezone,
|
|
1204
1216
|
participants_count: row.participantsCount,
|
|
1217
|
+
...call ? { call } : {},
|
|
1205
1218
|
...issues.length ? { issues } : {},
|
|
1206
1219
|
untrusted: [...MEETING_UNTRUSTED],
|
|
1207
1220
|
created_at: new Date(row.createdAt).toISOString(),
|
|
@@ -1235,7 +1248,7 @@ var MEETING_QUERY = {
|
|
|
1235
1248
|
})
|
|
1236
1249
|
};
|
|
1237
1250
|
|
|
1238
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/store.js
|
|
1239
1252
|
var MEETING_DOCUMENT_ROLES = ["transcript", "recording", "notes"];
|
|
1240
1253
|
var TRANSCRIPT_WORDS = [
|
|
1241
1254
|
"Transcript",
|
|
@@ -1247,7 +1260,7 @@ var TRANSCRIPT_WORDS = [
|
|
|
1247
1260
|
];
|
|
1248
1261
|
var READ_BUDGET_EXCEEDED = "Meeting search exceeds its stored text byte budget";
|
|
1249
1262
|
|
|
1250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1263
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
1251
1264
|
var text2 = string();
|
|
1252
1265
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
1253
1266
|
var iso2 = /* @__PURE__ */ __name((ms2) => ms2 === null ? null : new Date(ms2).toISOString(), "iso");
|
|
@@ -1531,7 +1544,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
1531
1544
|
};
|
|
1532
1545
|
}, "meetingHitsList");
|
|
1533
1546
|
|
|
1534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1547
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
1535
1548
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
1536
1549
|
const parsed = urlOf(url);
|
|
1537
1550
|
if (!parsed)
|
|
@@ -1565,7 +1578,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
1565
1578
|
}
|
|
1566
1579
|
}, "urlOf");
|
|
1567
1580
|
|
|
1568
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1581
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
1569
1582
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
1570
1583
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
1571
1584
|
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");
|
|
@@ -1602,11 +1615,11 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
1602
1615
|
return kept;
|
|
1603
1616
|
}, "entryMetadata");
|
|
1604
1617
|
|
|
1605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1618
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/calls.js
|
|
1606
1619
|
var CALL_DIRECTIONS = ["incoming", "outgoing", "internal"];
|
|
1607
1620
|
var CALL_OUTCOMES = ["answered", "voicemail", "busy", "no_answer", "failed"];
|
|
1608
1621
|
|
|
1609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1622
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/call-answers.js
|
|
1610
1623
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
1611
1624
|
var ms = count3;
|
|
1612
1625
|
var id = pipe(number(), integer(), minValue(1));
|
|
@@ -1689,7 +1702,7 @@ var callStatsSchema = strictObject({
|
|
|
1689
1702
|
});
|
|
1690
1703
|
var callStats = callStatsSchema;
|
|
1691
1704
|
|
|
1692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1705
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
1693
1706
|
var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
|
|
1694
1707
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
1695
1708
|
const zone = timeZone ?? "UTC";
|
|
@@ -1824,10 +1837,10 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
1824
1837
|
};
|
|
1825
1838
|
}, "aggregateMeetingStats");
|
|
1826
1839
|
|
|
1827
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/call-stats.js
|
|
1828
1841
|
var CALLBACK_WITHIN_MS = 24 * 60 * 60 * 1e3;
|
|
1829
1842
|
|
|
1830
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
1831
1844
|
import { createHash } from "node:crypto";
|
|
1832
1845
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
1833
1846
|
reference: cue2.reference,
|
|
@@ -1841,7 +1854,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
1841
1854
|
text: cue2.text
|
|
1842
1855
|
})).digest("hex"), "meetingCueFingerprint");
|
|
1843
1856
|
|
|
1844
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1857
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
1845
1858
|
var EVENT_QUERY = defineQuery({
|
|
1846
1859
|
entity: "event",
|
|
1847
1860
|
backend: "sql",
|
|
@@ -1857,7 +1870,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
1857
1870
|
]
|
|
1858
1871
|
});
|
|
1859
1872
|
|
|
1860
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1873
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
1861
1874
|
var PARTICIPANT_RESPONSES = ["needs-action", "accepted", "tentative", "declined", "delegated"];
|
|
1862
1875
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
1863
1876
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
@@ -1881,7 +1894,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
1881
1894
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
1882
1895
|
}, "entryInWindow");
|
|
1883
1896
|
|
|
1884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
1885
1898
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now(), { create = true } = {}) => {
|
|
1886
1899
|
const current = await store.meeting(details.meeting.id);
|
|
1887
1900
|
if (!current)
|
|
@@ -1926,7 +1939,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now(),
|
|
|
1926
1939
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
1927
1940
|
}, "linkEvent");
|
|
1928
1941
|
|
|
1929
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
1930
1943
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text6) => text6.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
1931
1944
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
1932
1945
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -1950,7 +1963,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
1950
1963
|
};
|
|
1951
1964
|
}, "validateMeetingParticipantSearch");
|
|
1952
1965
|
|
|
1953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1966
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
1954
1967
|
var MeetingError = class extends CliError {
|
|
1955
1968
|
static {
|
|
1956
1969
|
__name(this, "MeetingError");
|
|
@@ -2089,7 +2102,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id4, accountId)
|
|
|
2089
2102
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
2090
2103
|
}, "meetingSummaryAnswer");
|
|
2091
2104
|
|
|
2092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
2093
2106
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
2094
2107
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
2095
2108
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -2186,10 +2199,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id4, options) => {
|
|
|
2186
2199
|
};
|
|
2187
2200
|
}, "exportMeeting");
|
|
2188
2201
|
|
|
2189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
2190
2203
|
import { createHash as createHash2 } from "node:crypto";
|
|
2191
2204
|
|
|
2192
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2205
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
2193
2206
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
2194
2207
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
2195
2208
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone, such as 2026-11-09T09:00:00Z`);
|
|
@@ -2200,7 +2213,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
2200
2213
|
return new Date(value).toISOString();
|
|
2201
2214
|
}, "meetingTimestamp");
|
|
2202
2215
|
|
|
2203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2216
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
2204
2217
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
2205
2218
|
var invalid3 = /* @__PURE__ */ __name((message) => {
|
|
2206
2219
|
throw new CliError("validation_error", message);
|
|
@@ -2375,7 +2388,7 @@ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
|
|
|
2375
2388
|
var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
|
|
2376
2389
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
2377
2390
|
|
|
2378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
2379
2392
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
2380
2393
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
2381
2394
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -2386,7 +2399,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
2386
2399
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
2387
2400
|
var meetingFindingFingerprint = findingFingerprint;
|
|
2388
2401
|
|
|
2389
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/language.js
|
|
2390
2403
|
var LATIN_WORDS = {
|
|
2391
2404
|
en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
|
|
2392
2405
|
es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
|
|
@@ -2435,7 +2448,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
|
|
|
2435
2448
|
return null;
|
|
2436
2449
|
}, "transcriptLanguage");
|
|
2437
2450
|
|
|
2438
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2451
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
2439
2452
|
var contentHash = /* @__PURE__ */ __name(async (text6) => {
|
|
2440
2453
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text6));
|
|
2441
2454
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -2472,7 +2485,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
2472
2485
|
return time;
|
|
2473
2486
|
}, "timestamp");
|
|
2474
2487
|
|
|
2475
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2488
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
2476
2489
|
var TranscriptTextError = class extends Error {
|
|
2477
2490
|
static {
|
|
2478
2491
|
__name(this, "TranscriptTextError");
|
|
@@ -2527,7 +2540,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
2527
2540
|
return { header, lines };
|
|
2528
2541
|
}, "parseTranscriptText");
|
|
2529
2542
|
|
|
2530
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2543
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
2531
2544
|
var VttError = class extends Error {
|
|
2532
2545
|
static {
|
|
2533
2546
|
__name(this, "VttError");
|
|
@@ -2579,7 +2592,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
2579
2592
|
return cues;
|
|
2580
2593
|
}, "parseVtt");
|
|
2581
2594
|
|
|
2582
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
2583
2596
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
2584
2597
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2585
2598
|
for (const file of files) {
|
|
@@ -2612,10 +2625,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2612
2625
|
return report;
|
|
2613
2626
|
}, "importFiles");
|
|
2614
2627
|
|
|
2615
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
2616
2629
|
var CHAT_MESSAGES_READ = 1e5;
|
|
2617
2630
|
|
|
2618
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2631
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
2619
2632
|
var MEETING_FIELD_KEYS = Object.freeze({
|
|
2620
2633
|
title: "title",
|
|
2621
2634
|
kind: "kind",
|
|
@@ -2628,7 +2641,7 @@ var MEETING_FIELDS2 = Object.freeze(Object.keys(MEETING_FIELD_KEYS));
|
|
|
2628
2641
|
var meetingFieldFlag = /* @__PURE__ */ __name((field) => `--${MEETING_FIELD_KEYS[field].replaceAll("_", "-")}`, "meetingFieldFlag");
|
|
2629
2642
|
var SNAKE_CASE2 = /^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$/;
|
|
2630
2643
|
|
|
2631
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2644
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
2632
2645
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
2633
2646
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
2634
2647
|
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)))
|
|
@@ -2649,7 +2662,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
2649
2662
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
2650
2663
|
}, "validateMeetingPassage");
|
|
2651
2664
|
|
|
2652
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2665
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
2653
2666
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
2654
2667
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2655
2668
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -2674,7 +2687,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
2674
2687
|
return { ...input, limit, maxReadBytes };
|
|
2675
2688
|
}, "validateMeetingPreparationContext");
|
|
2676
2689
|
|
|
2677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
2678
2691
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
2679
2692
|
var id2 = pipe(string(), minLength(1));
|
|
2680
2693
|
var meetingProjectEvidence = strictObject({
|
|
@@ -2795,7 +2808,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
2795
2808
|
};
|
|
2796
2809
|
}, "meetingProjectEvidenceAnswer");
|
|
2797
2810
|
|
|
2798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
2799
2812
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
2800
2813
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
2801
2814
|
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) || [
|
|
@@ -2815,7 +2828,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
2815
2828
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
2816
2829
|
}, "validateMeetingHitSearch");
|
|
2817
2830
|
|
|
2818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2831
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
2819
2832
|
var ids = {
|
|
2820
2833
|
meeting_id: "meetingId",
|
|
2821
2834
|
identity_id: "participantIdentityId",
|
|
@@ -2906,7 +2919,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
|
|
|
2906
2919
|
return { project: project.trim(), options, query: frozen.join(" AND ") };
|
|
2907
2920
|
}, "prepareMeetingProjectEvidence");
|
|
2908
2921
|
|
|
2909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
2910
2923
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
|
|
2911
2924
|
const prepared = prepareMeetingProjectEvidence(project, request, now);
|
|
2912
2925
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -2914,7 +2927,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
|
|
|
2914
2927
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
2915
2928
|
}, "readMeetingProjectEvidence");
|
|
2916
2929
|
|
|
2917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2930
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
2918
2931
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2919
2932
|
const { identityExternalId, phone, ...fields } = p;
|
|
2920
2933
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -2953,6 +2966,7 @@ var sourceMeetingInput = /* @__PURE__ */ __name((m, accountId, participantsCount
|
|
|
2953
2966
|
timezone: m.timezone ?? kept?.timezone ?? null,
|
|
2954
2967
|
hostIdentityId: kept?.hostIdentityId ?? null,
|
|
2955
2968
|
...count7 === void 0 ? {} : { participantsCount: count7 },
|
|
2969
|
+
...m.call ? { direction: m.call.direction ?? null, clientPhone: m.call.clientPhone ?? null } : {},
|
|
2956
2970
|
metadata,
|
|
2957
2971
|
deletedAt: null
|
|
2958
2972
|
};
|
|
@@ -3114,7 +3128,7 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
|
3114
3128
|
return report;
|
|
3115
3129
|
}, "pull");
|
|
3116
3130
|
|
|
3117
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3131
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
3118
3132
|
var text3 = string();
|
|
3119
3133
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
3120
3134
|
var id3 = pipe(number(), integer(), minValue(1));
|
|
@@ -3312,7 +3326,7 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
3312
3326
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
3313
3327
|
}), "eventItem");
|
|
3314
3328
|
|
|
3315
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3329
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/read-through.js
|
|
3316
3330
|
var MEETING_SERVER_BOUNDS = { calls: 3, pages: 2 };
|
|
3317
3331
|
var ISSUES = {
|
|
3318
3332
|
offline: ["permission_error", "meetings.server-offline"],
|
|
@@ -3604,10 +3618,10 @@ var meetingShowThrough = /* @__PURE__ */ __name(async (source, store, accountId,
|
|
|
3604
3618
|
return { details: fresh, foundIn: step.found.get(details.meeting.id) ?? "server", server: step.report };
|
|
3605
3619
|
}, "meetingShowThrough");
|
|
3606
3620
|
|
|
3607
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
3608
3622
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
3609
3623
|
|
|
3610
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
3611
3625
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
3612
3626
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
3613
3627
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -3637,7 +3651,7 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
3637
3651
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
3638
3652
|
}, "validateMeetingRelatedHistory");
|
|
3639
3653
|
|
|
3640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3654
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
3641
3655
|
var text4 = string();
|
|
3642
3656
|
var identifier = pipe(text4, minLength(1));
|
|
3643
3657
|
var nullableText = nullable(text4);
|
|
@@ -3809,14 +3823,14 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
3809
3823
|
meeting_repair: repair
|
|
3810
3824
|
};
|
|
3811
3825
|
|
|
3812
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3826
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
3813
3827
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
3814
3828
|
|
|
3815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3829
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
3816
3830
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
3817
3831
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
3818
3832
|
|
|
3819
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
3820
3834
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
3821
3835
|
input.signal?.throwIfAborted();
|
|
3822
3836
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -3837,10 +3851,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
3837
3851
|
return { ...input, limit, maxReadBytes };
|
|
3838
3852
|
}, "validateMeetingSeriesHistory");
|
|
3839
3853
|
|
|
3840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3854
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
3841
3855
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
3842
3856
|
|
|
3843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3857
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
3844
3858
|
function invalid4(field, response = false) {
|
|
3845
3859
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
3846
3860
|
}
|
|
@@ -3869,7 +3883,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
3869
3883
|
cursorDetails(value);
|
|
3870
3884
|
}, "validateMeetingSeriesInventoryCursor");
|
|
3871
3885
|
|
|
3872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3886
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/tag-answers.js
|
|
3873
3887
|
var text5 = string();
|
|
3874
3888
|
var storeId = pipe(number(), integer(), minValue(1));
|
|
3875
3889
|
var meetingTagChange = strictObject({
|
|
@@ -3917,9 +3931,12 @@ export {
|
|
|
3917
3931
|
rangeOf,
|
|
3918
3932
|
windowOf,
|
|
3919
3933
|
readsZone,
|
|
3934
|
+
MEETING_CALL_DIRECTIONS,
|
|
3920
3935
|
formatMeetingReference,
|
|
3921
3936
|
parseMeetingReference,
|
|
3922
3937
|
canonicalMeetingReference,
|
|
3938
|
+
meetingCall,
|
|
3939
|
+
meetingCallItem,
|
|
3923
3940
|
meeting,
|
|
3924
3941
|
MEETING_QUERY,
|
|
3925
3942
|
MEETING_DOCUMENT_ROLES,
|