@wirecat/drive-cli 0.57.0 → 0.59.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/drive.js +6 -2
- package/dist/bin/drive.js.map +1 -1
- package/dist/bundle/{all-profiles-7LSZ3CC3.js → all-profiles-CVISDGMF.js} +14 -9
- package/dist/bundle/{anthropic-3QRM4QXB.js → anthropic-WLNQC23G.js} +11 -7
- package/dist/bundle/{app-server-WWNMUHID.js → app-server-P2VOONXF.js} +61 -53
- package/dist/bundle/{bun-NIIYUR5F.js → bun-CDFBNTKV.js} +2 -2
- package/dist/bundle/{bun-sqlite-GSLSN3OT.js → bun-sqlite-MNZICITP.js} +8 -4
- package/dist/bundle/chunk-2AXA5SKP.js +23 -0
- package/dist/bundle/{chunk-EFEI724Z.js → chunk-36B7AIGP.js} +1 -1
- package/dist/bundle/{chunk-Q3TMNETS.js → chunk-3KJTJDDT.js} +52 -39
- package/dist/bundle/{chunk-4F2VRJZE.js → chunk-3KNZADHJ.js} +5080 -626
- package/dist/bundle/{chunk-GIQFBXQN.js → chunk-3U22QTU6.js} +12 -125
- package/dist/bundle/chunk-3VSUT6BD.js +35 -0
- package/dist/bundle/{chunk-U2RSVKR5.js → chunk-5C7K6XIT.js} +1 -1
- package/dist/bundle/{chunk-6CFSDU56.js → chunk-6C6255U6.js} +16 -14
- package/dist/bundle/{chunk-EE7R457T.js → chunk-6CQO2FIN.js} +1569 -739
- package/dist/bundle/{chunk-KHNDZNQA.js → chunk-7QTVIZII.js} +5410 -3002
- package/dist/bundle/{chunk-HNUSPNUQ.js → chunk-A6EG7ZDS.js} +13 -13
- package/dist/bundle/{chunk-WBYCUBYM.js → chunk-A6SLYOP2.js} +49 -42
- package/dist/bundle/{chunk-TR5656OS.js → chunk-AD62XJKO.js} +162 -106
- package/dist/bundle/{chunk-TKVSJV5P.js → chunk-B5GBJ35N.js} +6 -4
- package/dist/bundle/{chunk-LSSIVBQI.js → chunk-BSGOM3BD.js} +1 -1
- package/dist/bundle/{chunk-XGNADVIA.js → chunk-CBM2XAEZ.js} +28 -229
- package/dist/bundle/{chunk-OYNSFQ7K.js → chunk-D72URWJE.js} +1 -39
- package/dist/bundle/{chunk-L4BBK7UX.js → chunk-DI5Z4SH5.js} +5 -3
- package/dist/bundle/chunk-EBLA7GXY.js +45 -0
- package/dist/bundle/{chunk-4UQLL6RJ.js → chunk-EHEZSV6I.js} +11 -88
- package/dist/bundle/{chunk-6ZA4NR5H.js → chunk-EORMZCVF.js} +3 -3
- package/dist/bundle/{chunk-W5FOPSJZ.js → chunk-EVETU3TF.js} +10 -8
- package/dist/bundle/{chunk-TZHCS5MG.js → chunk-F3FOL42A.js} +2 -2
- package/dist/bundle/{chunk-2QLLKDE5.js → chunk-FICVPYE4.js} +206 -73
- package/dist/bundle/{chunk-AKPFH3KC.js → chunk-FVQCM7IQ.js} +1 -1
- package/dist/bundle/{chunk-ADLS6FVG.js → chunk-FXBHOCJK.js} +1 -1
- package/dist/bundle/{chunk-WAVJWGUC.js → chunk-GI5JBGXH.js} +4611 -1530
- package/dist/bundle/{chunk-SRNXTXJN.js → chunk-GJ4ZCIOP.js} +3 -3
- package/dist/bundle/{chunk-GKHUHRSL.js → chunk-GT5KTGCN.js} +4 -4
- package/dist/bundle/{chunk-WJOKTIOJ.js → chunk-H2BKXPBL.js} +2 -2
- package/dist/bundle/chunk-HIOJRPCT.js +93 -0
- package/dist/bundle/chunk-HIP43OGZ.js +34 -0
- package/dist/bundle/{chunk-2ULJW5BA.js → chunk-HMZAMHKN.js} +2 -2
- package/dist/bundle/{chunk-64E6QXXQ.js → chunk-HWLLVLAB.js} +10 -10
- package/dist/bundle/{chunk-373WJIHE.js → chunk-IADOBOKB.js} +2 -2
- package/dist/bundle/{chunk-B3TPS7BW.js → chunk-IBZ3IBO4.js} +9 -7
- package/dist/bundle/{chunk-QAT6UXZZ.js → chunk-IGF6EXBR.js} +53 -48
- package/dist/bundle/{chunk-KYNTSA6K.js → chunk-II7LST64.js} +5 -5
- package/dist/bundle/{chunk-JLKNUFL2.js → chunk-IIP43FQJ.js} +2 -2
- package/dist/bundle/{chunk-ELIYJXIY.js → chunk-JSDVK3JA.js} +2 -2
- package/dist/bundle/{chunk-UKMFPBAO.js → chunk-JW2CVCUH.js} +4 -4
- package/dist/bundle/{chunk-O5KDIVGE.js → chunk-K4LXGZTE.js} +23 -21
- package/dist/bundle/{chunk-RB674T6L.js → chunk-KFZUODXB.js} +76 -20
- package/dist/bundle/chunk-KPRGTTJH.js +34 -0
- package/dist/bundle/{chunk-XJVK7ETL.js → chunk-L5SE2XZP.js} +23 -15
- package/dist/bundle/{chunk-OOR6PEHV.js → chunk-LJ7E4HLQ.js} +1 -1
- package/dist/bundle/{chunk-VTJF2L5E.js → chunk-LPHMAQJQ.js} +16 -16
- package/dist/bundle/{chunk-566W4Q6L.js → chunk-M6I2SQN7.js} +4 -4
- package/dist/bundle/{chunk-NLLWLCUZ.js → chunk-MEAPA4EZ.js} +2 -2
- package/dist/bundle/{chunk-J2HGHSLX.js → chunk-MKCNUI72.js} +4 -4
- package/dist/bundle/{chunk-CD736BG3.js → chunk-MUUHUHWC.js} +2 -1
- package/dist/bundle/{chunk-AHBUTDS7.js → chunk-OKXSTWKW.js} +8 -8
- package/dist/bundle/{chunk-W6FYYQ2J.js → chunk-OMMEQJOB.js} +3 -3
- package/dist/bundle/{chunk-EFX6FIDM.js → chunk-OZH4ALTI.js} +1 -1
- package/dist/bundle/{chunk-KM4Y55ZE.js → chunk-P3ZTW2ZM.js} +7 -7
- package/dist/bundle/{chunk-5KNIVHP6.js → chunk-P7WPYKSB.js} +7 -20
- package/dist/bundle/{chunk-RAEKC6TV.js → chunk-PAEVBAM3.js} +9 -42
- package/dist/bundle/{chunk-LBFFI6FE.js → chunk-PGKIOSN3.js} +9 -7
- package/dist/bundle/{chunk-WJPVGXKA.js → chunk-QTM7USFA.js} +8 -13
- package/dist/bundle/{chunk-EN7OZ5JH.js → chunk-TFH5X46A.js} +37 -22
- package/dist/bundle/{chunk-OZJMZSFB.js → chunk-TI55J3BA.js} +6 -4
- package/dist/bundle/{chunk-R5GJZPRF.js → chunk-TJXPJ3A5.js} +572 -366
- package/dist/bundle/chunk-UQPKAY6I.js +106 -0
- package/dist/bundle/{chunk-JUKVJ7M2.js → chunk-UWVNRPT7.js} +56 -40
- package/dist/bundle/chunk-V36RIXFA.js +201 -0
- package/dist/bundle/{chunk-JIGMCW4C.js → chunk-V42KAPU3.js} +6 -6
- package/dist/bundle/{chunk-7SNS443B.js → chunk-VT6GZAF4.js} +35 -35
- package/dist/bundle/{chunk-ISK4K7UE.js → chunk-VVCZS42A.js} +1 -1
- package/dist/bundle/chunk-W62CON5K.js +166 -0
- package/dist/bundle/{chunk-YZ6SYLDC.js → chunk-XCOCPXCM.js} +2 -2
- package/dist/bundle/{chunk-G34Y5RAC.js → chunk-YADXWQHV.js} +29 -29
- package/dist/bundle/{chunk-AL7MY7MW.js → chunk-YU3PTU3D.js} +1 -1
- package/dist/bundle/{chunk-IJ2S53WJ.js → chunk-YV4ABH6J.js} +7 -7
- package/dist/bundle/{chunk-B64EY2SC.js → chunk-ZSMCJKGP.js} +42 -41
- package/dist/bundle/chunk-ZYCLPJ7U.js +46 -0
- package/dist/bundle/command-contract-LQDNHZJU.js +39 -0
- package/dist/bundle/{decode-5MHMPYKE.js → decode-XTOMXMGN.js} +10 -6
- package/dist/bundle/dispatch-T6TW2JJB.js +412 -0
- package/dist/bundle/drive.js +40 -22
- package/dist/bundle/{echarts-CLB22SZS.js → echarts-RKKIOYVV.js} +2 -2
- package/dist/bundle/{embed-TF66ODAR.js → embed-STHKKA6G.js} +9 -5
- package/dist/bundle/{embedder-EDWOIAC2.js → embedder-3XZEWHRO.js} +14 -10
- package/dist/bundle/entry-CNOYSSSD.js +22 -0
- package/dist/bundle/failure-DNQYXP2T.js +26 -0
- package/dist/bundle/first-run-F2SI24PK.js +30 -0
- package/dist/bundle/first-screen-TYYF6VXY.js +37 -0
- package/dist/bundle/{google-A4F2WFO4.js → google-BYNSAIQI.js} +13 -9
- package/dist/bundle/{google-api-ZXGQOJUI.js → google-api-4VTZH7OP.js} +59 -52
- package/dist/bundle/grants-EUQXSICG.js +105 -0
- package/dist/bundle/{identity-4IO7WGG4.js → identity-ARDPFYV5.js} +6 -4
- package/dist/bundle/{instructions-BXZZNAMS.js → instructions-N3OH5X2Y.js} +1 -1
- package/dist/bundle/{login-A4QHJ5DA.js → login-4VQEC7VI.js} +65 -58
- package/dist/bundle/{mcp-VVMPUDSL.js → mcp-WBHKX5E3.js} +5 -3
- package/dist/bundle/{node-P4E63KXA.js → node-KM3CUABH.js} +9 -9
- package/dist/bundle/{node-R6ZNQ3NT.js → node-YU5JBNAA.js} +2 -2
- package/dist/bundle/{node-sqlite-AFQTE4XZ.js → node-sqlite-3C6PSBIW.js} +14 -4
- package/dist/bundle/oauth-D6NJFPYU.js +22 -0
- package/dist/bundle/{open-WJCRBIP7.js → open-M2V2VYXO.js} +8 -3
- package/dist/bundle/{openai-3TIBDWZA.js → openai-ST2IWNUX.js} +18 -14
- package/dist/bundle/{process-P36JP33R.js → process-PYNNBBTV.js} +1 -1
- package/dist/bundle/{program-AHZH65IT.js → program-Q4VWV2MR.js} +193 -147
- package/dist/bundle/prompt-MFIOJMAF.js +17 -0
- package/dist/bundle/{reasons-VHCVYH54.js → reasons-LOQ5J73F.js} +5 -3
- package/dist/bundle/{recognize-4EAKIMON.js → recognize-FBLMWXNE.js} +7 -3
- package/dist/bundle/{remote-HX3JP4EH.js → remote-XC3OXE4T.js} +10 -6
- package/dist/bundle/{rerank-BW3A4PUU.js → rerank-2XMKKF4S.js} +10 -6
- package/dist/bundle/{serve-YYOOLIBS.js → serve-Q2BQHNZB.js} +15 -10
- package/dist/bundle/{server-G6XTEEFI.js → server-42HPV3AH.js} +46 -39
- package/dist/bundle/server-EWZYN323.js +70 -0
- package/dist/bundle/{services-OAPILZOW.js → services-WU22S2MU.js} +100 -26
- package/dist/bundle/{sqlite-runtime-GTXDK4PE.js → sqlite-runtime-CSO6K6B2.js} +9 -4
- package/dist/bundle/start-TZWKM4AH.js +138 -0
- package/dist/bundle/{state-XG335LGZ.js → state-FLUT7U7R.js} +9 -5
- package/dist/bundle/{store-N53SJOPS.js → store-HDWMJ44E.js} +42 -17
- package/dist/bundle/{store-7KOXJNQP.js → store-TG6622NG.js} +20 -12
- package/dist/bundle/store-maintenance-command-RHWRUREJ.js +60 -0
- package/dist/bundle/tokens-TXYURU4S.js +103 -0
- package/dist/commands/documents.d.ts +1 -0
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +14 -1
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/knowledge.d.ts +4 -0
- package/dist/commands/knowledge.d.ts.map +1 -1
- package/dist/commands/knowledge.js +8 -7
- package/dist/commands/knowledge.js.map +1 -1
- package/dist/contract-overrides.js +5 -5
- package/dist/contract-overrides.js.map +1 -1
- package/dist/knowledge-query.d.ts +2 -0
- package/dist/knowledge-query.d.ts.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +8 -3
- package/dist/program.js.map +1 -1
- package/dist/provider-json.d.ts +2 -0
- package/dist/provider-json.d.ts.map +1 -1
- package/dist/provider-json.js +13 -0
- package/dist/provider-json.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +1 -0
- package/dist/reasons.js.map +1 -1
- package/dist/store.d.ts +2 -0
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +9 -0
- package/dist/store.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -4
- package/skills/drive-cli/SKILL.md +2 -1
- package/dist/bundle/chunk-3BXSLNWW.js +0 -3607
- package/dist/bundle/chunk-CGCQNYB3.js +0 -18
- package/dist/bundle/command-contract-XIACCAZL.js +0 -35
- package/dist/bundle/entry-CWYCQ53A.js +0 -17
- package/dist/bundle/first-run-YIH7EHJI.js +0 -24
- package/dist/bundle/first-screen-THH3XD5Y.js +0 -33
- package/dist/bundle/grants-3Z7DG3W3.js +0 -98
- package/dist/bundle/oauth-46XBJBML.js +0 -18
- package/dist/bundle/prompt-FFGBIT4A.js +0 -13
- package/dist/bundle/server-YKYEUIJT.js +0 -63
- package/dist/bundle/store-maintenance-command-W3TI52X2.js +0 -52
- package/dist/bundle/tokens-P7TEHKDD.js +0 -96
- /package/dist/bundle/{chunk-HPXYN7F3.js → chunk-LK2E2ELG.js} +0 -0
|
@@ -8,13 +8,12 @@ import {
|
|
|
8
8
|
queryFieldsOf,
|
|
9
9
|
timezoneOf,
|
|
10
10
|
validateQuery
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-L5SE2XZP.js";
|
|
12
12
|
import {
|
|
13
13
|
singleLine,
|
|
14
14
|
visibleControls
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HIP43OGZ.js";
|
|
16
16
|
import {
|
|
17
|
-
CliError,
|
|
18
17
|
STEPS,
|
|
19
18
|
array,
|
|
20
19
|
boolean,
|
|
@@ -37,12 +36,109 @@ import {
|
|
|
37
36
|
strictObject,
|
|
38
37
|
string,
|
|
39
38
|
union
|
|
40
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-3U22QTU6.js";
|
|
40
|
+
import {
|
|
41
|
+
CliError
|
|
42
|
+
} from "./chunk-EBLA7GXY.js";
|
|
41
43
|
import {
|
|
42
44
|
__name
|
|
43
45
|
} from "./chunk-ZVVMGPBJ.js";
|
|
44
46
|
|
|
45
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/payment.js
|
|
48
|
+
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
49
|
+
var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
|
|
50
|
+
var PAYMENT_STATES = ["expected", "paid", "cancelled"];
|
|
51
|
+
var invalid = /* @__PURE__ */ __name((message) => {
|
|
52
|
+
throw new CliError("validation_error", message);
|
|
53
|
+
}, "invalid");
|
|
54
|
+
var CURRENCIES = new Set(Intl.supportedValuesOf("currency"));
|
|
55
|
+
var AMOUNT = /^(\d{1,15})(?:\.(\d{1,2}))?$/;
|
|
56
|
+
var COUNTERPARTY = /^(person|organization|project):[1-9]\d*$/;
|
|
57
|
+
var amountOf = /* @__PURE__ */ __name((value) => {
|
|
58
|
+
const match = AMOUNT.exec(typeof value === "number" ? String(value) : typeof value === "string" ? value.trim() : "");
|
|
59
|
+
if (!match)
|
|
60
|
+
return invalid("a payment's amount is a positive number with at most 2 decimals, such as 1200.50");
|
|
61
|
+
const amount = `${BigInt(match[1] ?? "0")}.${(match[2] ?? "").padEnd(2, "0")}`;
|
|
62
|
+
if (amount === "0.00")
|
|
63
|
+
return invalid("a payment's amount is more than 0");
|
|
64
|
+
return amount;
|
|
65
|
+
}, "amountOf");
|
|
66
|
+
var dateOf = /* @__PURE__ */ __name((value) => {
|
|
67
|
+
const date = typeof value === "string" ? value.trim() : "";
|
|
68
|
+
if (!/^\d{4}-\d{2}-\d{2}$/.test(date) || (/* @__PURE__ */ new Date(`${date}T00:00:00Z`)).toISOString().slice(0, 10) !== date)
|
|
69
|
+
return invalid("a payment's dates are ISO dates, such as 2026-10-31");
|
|
70
|
+
return date;
|
|
71
|
+
}, "dateOf");
|
|
72
|
+
var optionalText = /* @__PURE__ */ __name((value, what, limit) => {
|
|
73
|
+
if (value === void 0 || value === null)
|
|
74
|
+
return null;
|
|
75
|
+
if (typeof value !== "string" || !value.trim() || value.length > limit || value.includes("\0"))
|
|
76
|
+
return invalid(`a payment's ${what} takes 1\u2013${limit} characters`);
|
|
77
|
+
return value.trim();
|
|
78
|
+
}, "optionalText");
|
|
79
|
+
var oneOf = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
80
|
+
if (typeof value !== "string" || !allowed.includes(value))
|
|
81
|
+
return invalid(`a payment's ${what} is one of ${allowed.join(", ")}`);
|
|
82
|
+
return value;
|
|
83
|
+
}, "oneOf");
|
|
84
|
+
var FIELDS = [
|
|
85
|
+
"amount",
|
|
86
|
+
"currency",
|
|
87
|
+
"direction",
|
|
88
|
+
"counterparty",
|
|
89
|
+
"counterparty_name",
|
|
90
|
+
"due_at",
|
|
91
|
+
"state",
|
|
92
|
+
"item",
|
|
93
|
+
"paid_at"
|
|
94
|
+
];
|
|
95
|
+
var validatePayment = /* @__PURE__ */ __name((input) => {
|
|
96
|
+
if (!input || typeof input !== "object" || Array.isArray(input))
|
|
97
|
+
return invalid("a payment is an object");
|
|
98
|
+
const raw = input;
|
|
99
|
+
const unknown = Object.keys(raw).filter((key) => !FIELDS.includes(key));
|
|
100
|
+
if (unknown.length)
|
|
101
|
+
return invalid(`a payment has no field ${unknown.join(", ")}; its fields are ${FIELDS.join(", ")}`);
|
|
102
|
+
const currency = typeof raw.currency === "string" ? raw.currency.trim().toUpperCase() : "";
|
|
103
|
+
if (!/^[A-Z]{3}$/.test(currency) || !CURRENCIES.has(currency))
|
|
104
|
+
return invalid("a payment's currency is an ISO 4217 code, such as EUR or RUB");
|
|
105
|
+
const counterparty = optionalText(raw.counterparty, "counterparty", 80);
|
|
106
|
+
if (counterparty !== null && !COUNTERPARTY.test(counterparty))
|
|
107
|
+
return invalid("a payment's counterparty is a person:, organization: or project: reference");
|
|
108
|
+
const state = oneOf(raw.state, PAYMENT_STATES, "state");
|
|
109
|
+
if (raw.paid_at != null && state !== "paid")
|
|
110
|
+
return invalid("only a paid payment has paid_at");
|
|
111
|
+
return {
|
|
112
|
+
amount: amountOf(raw.amount),
|
|
113
|
+
currency,
|
|
114
|
+
direction: oneOf(raw.direction, PAYMENT_DIRECTIONS, "direction"),
|
|
115
|
+
counterparty,
|
|
116
|
+
counterparty_name: optionalText(raw.counterparty_name, "counterparty name", 200),
|
|
117
|
+
due_at: raw.due_at === void 0 || raw.due_at === null ? null : dateOf(raw.due_at),
|
|
118
|
+
state,
|
|
119
|
+
item: optionalText(raw.item, "item", 200),
|
|
120
|
+
// Left out when absent, so a finding staged before the field keeps its fingerprint.
|
|
121
|
+
...raw.paid_at == null ? {} : { paid_at: dateOf(raw.paid_at) }
|
|
122
|
+
};
|
|
123
|
+
}, "validatePayment");
|
|
124
|
+
var grouped = /* @__PURE__ */ __name((amount) => {
|
|
125
|
+
const [whole = "0", cents = "00"] = amount.split(".");
|
|
126
|
+
const digits = whole.replace(/\B(?=(\d{3})+(?!\d))/g, " ");
|
|
127
|
+
return cents === "00" ? digits : `${digits}.${cents}`;
|
|
128
|
+
}, "grouped");
|
|
129
|
+
var paymentTitle = /* @__PURE__ */ __name((fact) => {
|
|
130
|
+
const payment = fact.payment;
|
|
131
|
+
if (!payment)
|
|
132
|
+
return "";
|
|
133
|
+
const who = payment.counterparty_name ?? payment.counterparty;
|
|
134
|
+
const way = payment.direction === "to_us" ? "to us" : "from us";
|
|
135
|
+
const party = who === null ? "" : payment.direction === "to_us" ? ` from ${who}` : ` to ${who}`;
|
|
136
|
+
const due = payment.due_at === null ? "" : `, due ${payment.due_at.slice(8, 10)}.${payment.due_at.slice(5, 7)}`;
|
|
137
|
+
const item = payment.item === null ? "" : ` for ${payment.item}`;
|
|
138
|
+
return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
|
|
139
|
+
}, "paymentTitle");
|
|
140
|
+
|
|
141
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
46
142
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
47
143
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
48
144
|
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)))
|
|
@@ -55,11 +151,11 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
55
151
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
56
152
|
}, "validateMeetingPassage");
|
|
57
153
|
|
|
58
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
59
|
-
var
|
|
154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/reference.js
|
|
155
|
+
var invalid2 = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
|
|
60
156
|
var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
|
|
61
157
|
if (!Number.isSafeInteger(value) || value < minimum)
|
|
62
|
-
throw
|
|
158
|
+
throw invalid2();
|
|
63
159
|
return value;
|
|
64
160
|
}, "integer");
|
|
65
161
|
var formatMeetingReference = /* @__PURE__ */ __name((reference2) => {
|
|
@@ -68,7 +164,7 @@ var formatMeetingReference = /* @__PURE__ */ __name((reference2) => {
|
|
|
68
164
|
parts.push(integer2(reference2.transcriptId));
|
|
69
165
|
if (reference2.cuePosition !== void 0) {
|
|
70
166
|
if (reference2.transcriptId === void 0)
|
|
71
|
-
throw
|
|
167
|
+
throw invalid2();
|
|
72
168
|
parts.push(integer2(reference2.cuePosition, 0));
|
|
73
169
|
}
|
|
74
170
|
return `meeting:${parts.join("/")}`;
|
|
@@ -76,10 +172,10 @@ var formatMeetingReference = /* @__PURE__ */ __name((reference2) => {
|
|
|
76
172
|
var parseMeetingReference = /* @__PURE__ */ __name((text7) => {
|
|
77
173
|
const value = text7.trim();
|
|
78
174
|
if (!value.startsWith("meeting:"))
|
|
79
|
-
throw
|
|
175
|
+
throw invalid2();
|
|
80
176
|
const parts = value.slice(8).split("/");
|
|
81
177
|
if (parts.length < 2 || parts.length > 4 || parts.some((part) => !/^\d+$/.test(part)))
|
|
82
|
-
throw
|
|
178
|
+
throw invalid2();
|
|
83
179
|
const ids2 = parts.map(Number);
|
|
84
180
|
const reference2 = {
|
|
85
181
|
type: "meeting",
|
|
@@ -92,7 +188,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text7) => {
|
|
|
92
188
|
}, "parseMeetingReference");
|
|
93
189
|
var canonicalMeetingReference = /* @__PURE__ */ __name((text7) => formatMeetingReference(parseMeetingReference(text7)), "canonicalMeetingReference");
|
|
94
190
|
|
|
95
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
96
192
|
var text = string();
|
|
97
193
|
var count = pipe(number(), integer(), minValue(0));
|
|
98
194
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -157,7 +253,7 @@ var MEETING_QUERY = {
|
|
|
157
253
|
})
|
|
158
254
|
};
|
|
159
255
|
|
|
160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
256
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
161
257
|
var text2 = string();
|
|
162
258
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
163
259
|
var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
@@ -171,6 +267,11 @@ var meetingHit = strictObject({
|
|
|
171
267
|
excerpt: text2,
|
|
172
268
|
/** How far into the meeting the passage is. */
|
|
173
269
|
offset_ms: nullable(count2),
|
|
270
|
+
/** A transcript passage's transcript language (`ru`, `en`…), `null` when unknown. */
|
|
271
|
+
language: optional(nullable(text2)),
|
|
272
|
+
/** A transcript passage's line, from 1, of `lines_total`. */
|
|
273
|
+
line: optional(pipe(count2, minValue(1))),
|
|
274
|
+
lines_total: optional(count2),
|
|
174
275
|
/** `corrected`: a query word matched only a garbled form of itself, listed in `corrections`. */
|
|
175
276
|
match: optional(picklist(["words", "corrected"])),
|
|
176
277
|
corrections: optional(array(strictObject({ from: text2, to: array(text2) }))),
|
|
@@ -337,6 +438,9 @@ var meetingHitItem = /* @__PURE__ */ __name((hit) => ({
|
|
|
337
438
|
id: String(hit.id),
|
|
338
439
|
excerpt: hit.text,
|
|
339
440
|
offset_ms: hit.startMs,
|
|
441
|
+
...hit.language === void 0 ? {} : { language: hit.language },
|
|
442
|
+
...hit.line === void 0 ? {} : { line: hit.line },
|
|
443
|
+
...hit.linesTotal === void 0 ? {} : { lines_total: hit.linesTotal },
|
|
340
444
|
untrusted: hit.source === void 0 ? ["excerpt"] : ["excerpt", "source.title"],
|
|
341
445
|
...hit.match === void 0 ? {} : { match: hit.match },
|
|
342
446
|
...hit.corrections === void 0 ? {} : { corrections: hit.corrections },
|
|
@@ -384,7 +488,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
384
488
|
};
|
|
385
489
|
}, "meetingHitsList");
|
|
386
490
|
|
|
387
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
491
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
388
492
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
389
493
|
const parsed = urlOf(url);
|
|
390
494
|
if (!parsed)
|
|
@@ -418,7 +522,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
418
522
|
}
|
|
419
523
|
}, "urlOf");
|
|
420
524
|
|
|
421
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
422
526
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
423
527
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
424
528
|
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");
|
|
@@ -451,7 +555,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
451
555
|
return kept;
|
|
452
556
|
}, "entryMetadata");
|
|
453
557
|
|
|
454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
558
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
455
559
|
import { createHash } from "node:crypto";
|
|
456
560
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
457
561
|
reference: cue2.reference,
|
|
@@ -465,7 +569,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
465
569
|
text: cue2.text
|
|
466
570
|
})).digest("hex"), "meetingCueFingerprint");
|
|
467
571
|
|
|
468
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
469
573
|
var EVENT_QUERY = defineQuery({
|
|
470
574
|
entity: "event",
|
|
471
575
|
backend: "sql",
|
|
@@ -481,7 +585,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
481
585
|
]
|
|
482
586
|
});
|
|
483
587
|
|
|
484
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
588
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
485
589
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
486
590
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
487
591
|
if (entry.recurrenceEndsAt !== null)
|
|
@@ -504,7 +608,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
504
608
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
505
609
|
}, "entryInWindow");
|
|
506
610
|
|
|
507
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
611
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
508
612
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
|
|
509
613
|
const current = await store.meeting(details.meeting.id);
|
|
510
614
|
if (!current)
|
|
@@ -547,7 +651,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
547
651
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
548
652
|
}, "linkEvent");
|
|
549
653
|
|
|
550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
654
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
551
655
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text7) => text7.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
552
656
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
553
657
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -571,7 +675,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
571
675
|
};
|
|
572
676
|
}, "validateMeetingParticipantSearch");
|
|
573
677
|
|
|
574
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
575
679
|
var MeetingError = class extends CliError {
|
|
576
680
|
static {
|
|
577
681
|
__name(this, "MeetingError");
|
|
@@ -703,7 +807,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id4, accountId)
|
|
|
703
807
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
704
808
|
}, "meetingSummaryAnswer");
|
|
705
809
|
|
|
706
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
810
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
707
811
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
708
812
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
709
813
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -799,19 +903,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id4, options) => {
|
|
|
799
903
|
};
|
|
800
904
|
}, "exportMeeting");
|
|
801
905
|
|
|
802
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
906
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
803
907
|
import { createHash as createHash2 } from "node:crypto";
|
|
804
908
|
|
|
805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
806
|
-
var snapshotMeetingScope = /* @__PURE__ */ __name((scope2) => {
|
|
807
|
-
const provider = scope2?.provider;
|
|
808
|
-
const account = scope2?.account;
|
|
809
|
-
if (typeof provider !== "string" || !provider.trim() || provider.length > 200 || /[\0\r\n]/.test(provider) || typeof account !== "string" || !account.trim() || account.length > 1e3 || /[\0\r\n]/.test(account))
|
|
810
|
-
throw new CliError("validation_error", "meeting provider and account must be bounded nonempty identifiers");
|
|
811
|
-
return Object.freeze({ provider, account });
|
|
812
|
-
}, "snapshotMeetingScope");
|
|
813
|
-
|
|
814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
909
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
815
910
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
816
911
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
817
912
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone`);
|
|
@@ -822,307 +917,154 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
822
917
|
return new Date(value).toISOString();
|
|
823
918
|
}, "meetingTimestamp");
|
|
824
919
|
|
|
825
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
826
|
-
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
827
|
-
if (typeof value !== "string" || !value.trim())
|
|
828
|
-
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
829
|
-
return value;
|
|
830
|
-
}, "nonempty");
|
|
831
|
-
var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
|
|
832
|
-
if (!change || typeof change !== "object" || Array.isArray(change) || Object.keys(change).some((key) => !["title", "kind", "startTime", "durationMinutes", "timezone", "agenda"].includes(key)))
|
|
833
|
-
throw new CliError("validation_error", "unsupported meeting change field");
|
|
834
|
-
const result = {};
|
|
835
|
-
if (change.title !== void 0)
|
|
836
|
-
result.title = nonempty(change.title, "meeting title");
|
|
837
|
-
if (create && result.title === void 0)
|
|
838
|
-
throw new CliError("validation_error", "meeting title is required");
|
|
839
|
-
if (change.kind !== void 0) {
|
|
840
|
-
if (change.kind !== "instant" && change.kind !== "scheduled")
|
|
841
|
-
throw new CliError("validation_error", "only instant or scheduled meeting kinds are supported");
|
|
842
|
-
result.kind = change.kind;
|
|
843
|
-
}
|
|
844
|
-
if (change.startTime !== void 0) {
|
|
845
|
-
result.startTime = meetingTimestamp(change.startTime, "meeting start");
|
|
846
|
-
}
|
|
847
|
-
if (change.durationMinutes !== void 0) {
|
|
848
|
-
if (!Number.isSafeInteger(change.durationMinutes) || change.durationMinutes <= 0 || change.durationMinutes > 1440)
|
|
849
|
-
throw new CliError("validation_error", "meeting duration must be an integer from 1 to 1440 minutes");
|
|
850
|
-
result.durationMinutes = change.durationMinutes;
|
|
851
|
-
}
|
|
852
|
-
if (change.timezone !== void 0) {
|
|
853
|
-
if (typeof change.timezone !== "string" || !change.timezone.trim())
|
|
854
|
-
throw new CliError("validation_error", "meeting timezone must be a valid IANA timezone");
|
|
855
|
-
try {
|
|
856
|
-
new Intl.DateTimeFormat("en", { timeZone: change.timezone }).format();
|
|
857
|
-
} catch {
|
|
858
|
-
throw new CliError("validation_error", "meeting timezone must be a valid IANA timezone");
|
|
859
|
-
}
|
|
860
|
-
result.timezone = change.timezone;
|
|
861
|
-
}
|
|
862
|
-
if (change.agenda !== void 0) {
|
|
863
|
-
if (typeof change.agenda !== "string")
|
|
864
|
-
throw new CliError("validation_error", "meeting agenda must be text");
|
|
865
|
-
result.agenda = change.agenda;
|
|
866
|
-
}
|
|
867
|
-
if (create) {
|
|
868
|
-
result.kind ??= "scheduled";
|
|
869
|
-
if (result.kind === "scheduled" && result.startTime === void 0)
|
|
870
|
-
throw new CliError("validation_error", "scheduled meeting start is required");
|
|
871
|
-
} else if (!Object.keys(result).length)
|
|
872
|
-
throw new CliError("validation_error", "at least one meeting change is required");
|
|
873
|
-
return Object.freeze(result);
|
|
874
|
-
}, "validateMeetingChange");
|
|
875
|
-
var checkCancelled = /* @__PURE__ */ __name((signal) => {
|
|
876
|
-
if (!signal?.aborted)
|
|
877
|
-
return;
|
|
878
|
-
if (signal.reason instanceof CliError)
|
|
879
|
-
throw signal.reason;
|
|
880
|
-
const timeout = signal.reason instanceof Error && signal.reason.name === "TimeoutError";
|
|
881
|
-
throw new CliError(timeout ? "timeout" : "cancelled", timeout ? "meeting operation timed out" : "meeting operation cancelled");
|
|
882
|
-
}, "checkCancelled");
|
|
883
|
-
var dispatchMeetingMutation = /* @__PURE__ */ __name(async (options, dispatch) => {
|
|
884
|
-
const { apply, dryRun, signal } = options;
|
|
885
|
-
checkCancelled(signal);
|
|
886
|
-
if (apply !== true || dryRun)
|
|
887
|
-
return { applied: false };
|
|
888
|
-
return { applied: true, value: await dispatch(signal) };
|
|
889
|
-
}, "dispatchMeetingMutation");
|
|
890
|
-
|
|
891
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
|
|
892
|
-
var MEETING_FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
893
|
-
var id = /* @__PURE__ */ __name((value) => {
|
|
894
|
-
if (typeof value !== "number" || !Number.isSafeInteger(value) || value < 1)
|
|
895
|
-
throw new CliError("validation_error", "meeting context identifiers must be positive integers");
|
|
896
|
-
return value;
|
|
897
|
-
}, "id");
|
|
898
|
-
var text3 = /* @__PURE__ */ __name((value, max) => {
|
|
899
|
-
if (typeof value !== "string" || !value.trim() || value.length > max || value.includes("\0"))
|
|
900
|
-
throw new CliError("validation_error", `meeting context text must contain 1\u2013${max} characters without NUL`);
|
|
901
|
-
return value.trim();
|
|
902
|
-
}, "text");
|
|
903
|
-
var uid = /* @__PURE__ */ __name((value) => {
|
|
904
|
-
const result = text3(value, 100);
|
|
905
|
-
if (!/^[1-9]\d*$/.test(result) || !Number.isSafeInteger(Number(result)))
|
|
906
|
-
throw new CliError("validation_error", "person UID must be a positive integer");
|
|
907
|
-
return result;
|
|
908
|
-
}, "uid");
|
|
909
|
-
var strings = /* @__PURE__ */ __name((value, count6, length) => {
|
|
910
|
-
if (!Array.isArray(value) || value.length < 1 || value.length > count6)
|
|
911
|
-
throw new CliError("validation_error", `meeting context list must contain 1\u2013${count6} entries`);
|
|
912
|
-
return Object.freeze([...new Set(value.map((entry) => text3(entry, length)))]);
|
|
913
|
-
}, "strings");
|
|
914
|
-
var fields = {
|
|
915
|
-
"note.add": ["text", "title"],
|
|
916
|
-
"tags.add": ["tags"],
|
|
917
|
-
"tags.remove": ["tags"],
|
|
918
|
-
"memory.add": ["body", "kind", "scope", "evidence", "subject"],
|
|
919
|
-
"fact.add": ["statement", "type", "scope", "evidence", "subject"],
|
|
920
|
-
"event.link": ["eventId", "expectedEventId"],
|
|
921
|
-
"person.link": ["participantId", "personUid", "targetAccountIds", "expectedPersonUid"]
|
|
922
|
-
};
|
|
923
|
-
var validateMeetingContextChange = /* @__PURE__ */ __name((change) => {
|
|
924
|
-
if (!change || typeof change !== "object" || Array.isArray(change) || !Object.hasOwn(fields, change.action) || Object.keys(change).some((key) => key !== "action" && !fields[change.action].includes(key)))
|
|
925
|
-
throw new CliError("validation_error", "unsupported meeting context change");
|
|
926
|
-
switch (change.action) {
|
|
927
|
-
case "note.add":
|
|
928
|
-
return Object.freeze({
|
|
929
|
-
action: change.action,
|
|
930
|
-
text: text3(change.text, 1e5),
|
|
931
|
-
...change.title === void 0 ? {} : { title: text3(change.title, 500) }
|
|
932
|
-
});
|
|
933
|
-
case "tags.add":
|
|
934
|
-
case "tags.remove":
|
|
935
|
-
return Object.freeze({ action: change.action, tags: strings(change.tags, 100, 200) });
|
|
936
|
-
case "memory.add": {
|
|
937
|
-
if (!["summary", "digest", "preference"].includes(change.kind) || !["personal", "work"].includes(change.scope))
|
|
938
|
-
throw new CliError("validation_error", "memory kind and explicit personal/work scope are required");
|
|
939
|
-
return Object.freeze({
|
|
940
|
-
action: change.action,
|
|
941
|
-
body: text3(change.body, 2e4),
|
|
942
|
-
kind: change.kind,
|
|
943
|
-
scope: change.scope,
|
|
944
|
-
evidence: strings(change.evidence, 100, 4e3),
|
|
945
|
-
...change.subject === void 0 ? {} : { subject: text3(change.subject, 4e3) }
|
|
946
|
-
});
|
|
947
|
-
}
|
|
948
|
-
case "fact.add": {
|
|
949
|
-
if (!MEETING_FACT_TYPES.includes(change.type) || !["personal", "work"].includes(change.scope))
|
|
950
|
-
throw new CliError("validation_error", `fact type (${MEETING_FACT_TYPES.join(", ")}) and explicit personal/work scope are required`);
|
|
951
|
-
return Object.freeze({
|
|
952
|
-
action: change.action,
|
|
953
|
-
statement: text3(change.statement, 2e4),
|
|
954
|
-
type: change.type,
|
|
955
|
-
scope: change.scope,
|
|
956
|
-
evidence: strings(change.evidence, 100, 4e3),
|
|
957
|
-
...change.subject === void 0 ? {} : { subject: text3(change.subject, 4e3) }
|
|
958
|
-
});
|
|
959
|
-
}
|
|
960
|
-
case "event.link":
|
|
961
|
-
return Object.freeze({
|
|
962
|
-
action: change.action,
|
|
963
|
-
eventId: change.eventId === null ? null : id(change.eventId),
|
|
964
|
-
...change.expectedEventId === void 0 ? {} : { expectedEventId: change.expectedEventId === null ? null : id(change.expectedEventId) }
|
|
965
|
-
});
|
|
966
|
-
case "person.link": {
|
|
967
|
-
const targets = change.targetAccountIds;
|
|
968
|
-
if (targets !== void 0 && (!Array.isArray(targets) || targets.length < 1 || targets.length > 1e3))
|
|
969
|
-
throw new CliError("validation_error", "target accounts must contain 1\u20131000 identifiers");
|
|
970
|
-
return Object.freeze({
|
|
971
|
-
action: change.action,
|
|
972
|
-
participantId: id(change.participantId),
|
|
973
|
-
personUid: uid(change.personUid),
|
|
974
|
-
...targets === void 0 ? {} : { targetAccountIds: Object.freeze([...new Set(targets.map(id))]) },
|
|
975
|
-
...change.expectedPersonUid === void 0 ? {} : { expectedPersonUid: change.expectedPersonUid === null ? null : uid(change.expectedPersonUid) }
|
|
976
|
-
});
|
|
977
|
-
}
|
|
978
|
-
}
|
|
979
|
-
}, "validateMeetingContextChange");
|
|
980
|
-
var createMeetingContext = /* @__PURE__ */ __name((scope2, accountId, ports) => {
|
|
981
|
-
const fixed = snapshotMeetingScope(scope2);
|
|
982
|
-
const account = id(accountId);
|
|
983
|
-
const actions = Object.freeze([...new Set(ports.actions)]);
|
|
984
|
-
if (actions.some((action) => !Object.hasOwn(fields, action)))
|
|
985
|
-
throw new CliError("validation_error", "unsupported meeting context capability");
|
|
986
|
-
const apply = ports.apply.bind(ports);
|
|
987
|
-
return {
|
|
988
|
-
scope: fixed,
|
|
989
|
-
accountId: account,
|
|
990
|
-
actions,
|
|
991
|
-
async change(meetingId, input, options = {}) {
|
|
992
|
-
const target = id(meetingId);
|
|
993
|
-
const change = validateMeetingContextChange(input);
|
|
994
|
-
if (!actions.includes(change.action))
|
|
995
|
-
throw new CliError("provider_unavailable", `meeting context does not support ${change.action}`);
|
|
996
|
-
const context3 = Object.freeze({
|
|
997
|
-
scope: fixed,
|
|
998
|
-
accountId: account,
|
|
999
|
-
...options.signal ? { signal: options.signal } : {}
|
|
1000
|
-
});
|
|
1001
|
-
const outcome = await dispatchMeetingMutation(options, () => apply(target, change, context3));
|
|
1002
|
-
return {
|
|
1003
|
-
scope: fixed,
|
|
1004
|
-
accountId: account,
|
|
1005
|
-
meetingId: target,
|
|
1006
|
-
change,
|
|
1007
|
-
applied: outcome.applied,
|
|
1008
|
-
...outcome.applied ? { result: outcome.value } : {}
|
|
1009
|
-
};
|
|
1010
|
-
}
|
|
1011
|
-
};
|
|
1012
|
-
}, "createMeetingContext");
|
|
1013
|
-
|
|
1014
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
920
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1015
921
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
1016
|
-
var
|
|
922
|
+
var invalid3 = /* @__PURE__ */ __name((message) => {
|
|
1017
923
|
throw new CliError("validation_error", message);
|
|
1018
924
|
}, "invalid");
|
|
1019
|
-
var
|
|
925
|
+
var text3 = /* @__PURE__ */ __name((value, limit) => {
|
|
1020
926
|
if (typeof value !== "string" || !value.trim() || value.includes("\0") || value.length > limit)
|
|
1021
|
-
return
|
|
927
|
+
return invalid3(`finding text must contain 1\u2013${limit} characters without NUL`);
|
|
1022
928
|
return value.trim();
|
|
1023
929
|
}, "text");
|
|
1024
930
|
var findingHash = /* @__PURE__ */ __name((value) => createHash2("sha256").update(JSON.stringify(value)).digest("hex"), "findingHash");
|
|
1025
|
-
var
|
|
931
|
+
var fields = /* @__PURE__ */ __name((value, allowed, noun) => {
|
|
1026
932
|
if (Object.keys(value).some((key) => !allowed.includes(key)))
|
|
1027
|
-
|
|
933
|
+
invalid3(`unknown ${noun} field`);
|
|
1028
934
|
}, "fields");
|
|
1029
935
|
var SUBJECT = /^(person|organization|project):[1-9]\d*$|^task:[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$/;
|
|
1030
|
-
var
|
|
1031
|
-
if (!
|
|
1032
|
-
return
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
if (finding.
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
"
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
"
|
|
1088
|
-
|
|
1089
|
-
"
|
|
1090
|
-
|
|
1091
|
-
"
|
|
1092
|
-
"dueAt",
|
|
1093
|
-
"dueEvidence",
|
|
1094
|
-
"assignee",
|
|
1095
|
-
"assigneeEvidence"
|
|
1096
|
-
], rules.singular);
|
|
1097
|
-
if (!TASK_TYPES.includes(finding.type))
|
|
1098
|
-
return invalid2("a task finding type is bug, chore or feature");
|
|
1099
|
-
if (!["explicit", "inferred"].includes(finding.commitment))
|
|
1100
|
-
return invalid2("task commitment must be explicit or inferred");
|
|
1101
|
-
const support = /* @__PURE__ */ __name((value) => {
|
|
1102
|
-
if (!Array.isArray(value) || value.length < 1 || value.length > 8 || value.some((ref) => typeof ref !== "string" || !evidence.some((item) => item.reference === ref)))
|
|
1103
|
-
return invalid2("date and assignee support must cite the finding's evidence");
|
|
1104
|
-
return [...new Set(value)].sort();
|
|
1105
|
-
}, "support");
|
|
1106
|
-
if (finding.dueAt === void 0 !== (finding.dueEvidence === void 0) || finding.assignee === void 0 !== (finding.assigneeEvidence === void 0))
|
|
1107
|
-
return invalid2("optional dates and assignees require their supporting evidence");
|
|
1108
|
-
if (finding.assignee !== void 0 && (typeof finding.assignee !== "string" || !/^person:[1-9]\d*$/.test(finding.assignee)))
|
|
1109
|
-
return invalid2("an assignee must be a person reference");
|
|
936
|
+
var validEvidence = /* @__PURE__ */ __name((raw, rules) => {
|
|
937
|
+
if (!Array.isArray(raw) || raw.length < 1 || raw.length > 8)
|
|
938
|
+
return invalid3(`a finding requires 1\u20138 cited ${rules.cited}s`);
|
|
939
|
+
const evidence = raw.map((item) => {
|
|
940
|
+
if (!item || typeof item !== "object")
|
|
941
|
+
return invalid3("finding evidence is a reference and fingerprint");
|
|
942
|
+
fields(item, ["reference", "fingerprint"], rules.singular);
|
|
943
|
+
if (typeof item.reference !== "string" || typeof item.fingerprint !== "string")
|
|
944
|
+
return invalid3("evidence requires a reference and fingerprint");
|
|
945
|
+
const reference2 = rules.reference(item.reference);
|
|
946
|
+
if (!/^[a-f0-9]{64}$/.test(item.fingerprint))
|
|
947
|
+
return invalid3(`finding evidence requires exact ${rules.cited} references and fingerprints`);
|
|
948
|
+
return { reference: reference2, fingerprint: item.fingerprint };
|
|
949
|
+
}).sort((a, b) => a.reference.localeCompare(b.reference));
|
|
950
|
+
if (new Set(evidence.map((item) => item.reference)).size !== evidence.length)
|
|
951
|
+
return invalid3(`duplicate evidence ${rules.cited}`);
|
|
952
|
+
return evidence;
|
|
953
|
+
}, "validEvidence");
|
|
954
|
+
var findingId = /* @__PURE__ */ __name((raw, ids2) => {
|
|
955
|
+
const id4 = findingText(raw, 64);
|
|
956
|
+
if (!/^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$/.test(id4) || ids2.has(id4))
|
|
957
|
+
return invalid3("finding IDs must be unique simple keys");
|
|
958
|
+
ids2.add(id4);
|
|
959
|
+
return id4;
|
|
960
|
+
}, "findingId");
|
|
961
|
+
var validateFinding = /* @__PURE__ */ __name((finding, rules, ids2) => {
|
|
962
|
+
if (!finding || typeof finding !== "object")
|
|
963
|
+
return invalid3("a finding is an object");
|
|
964
|
+
const id4 = findingId(finding.id, ids2);
|
|
965
|
+
const project = finding.project === void 0 && rules.anySubject ? void 0 : text3(finding.project, 64);
|
|
966
|
+
if (project !== void 0 && !/^project:[1-9]\d*$/.test(project))
|
|
967
|
+
return invalid3("a finding names a project reference");
|
|
968
|
+
if (finding.subject !== void 0 && (!rules.anySubject || !SUBJECT.test(text3(finding.subject, 80))))
|
|
969
|
+
return invalid3("a finding's subject is a person:, organization:, task: or project: reference");
|
|
970
|
+
if (finding.kind === "task" && project === void 0 && !rules.inboxTasks)
|
|
971
|
+
return invalid3("a task finding names the project the task goes in");
|
|
972
|
+
const evidence = validEvidence(finding.evidence, rules);
|
|
973
|
+
const base = {
|
|
974
|
+
id: id4,
|
|
975
|
+
...project === void 0 ? {} : { project },
|
|
976
|
+
...finding.subject === void 0 ? {} : { subject: finding.subject },
|
|
977
|
+
evidence
|
|
978
|
+
};
|
|
979
|
+
if (finding.kind === "fact") {
|
|
980
|
+
fields(finding, ["id", "project", "subject", "evidence", "kind", "type", "statement"], rules.singular);
|
|
981
|
+
if (finding.type === "payment")
|
|
982
|
+
return invalid3("a payment is a finding of kind payment; money is a payments row, not a fact");
|
|
983
|
+
if (!FACT_TYPES.includes(finding.type))
|
|
984
|
+
return invalid3("unknown fact finding type");
|
|
985
|
+
return { ...base, kind: "fact", type: finding.type, statement: text3(finding.statement, 2e3) };
|
|
986
|
+
}
|
|
987
|
+
if (finding.kind === "payment" && rules.payments) {
|
|
988
|
+
fields(finding, ["id", "project", "subject", "evidence", "kind", "statement", "payment", "supersedes"], rules.singular);
|
|
989
|
+
if (finding.supersedes !== void 0 && !/^invoice:[1-9]\d*$/.test(String(finding.supersedes)))
|
|
990
|
+
return invalid3("a payment finding supersedes an invoice: reference, the expected payment it settles or voids");
|
|
991
|
+
const payment = validatePayment(finding.payment);
|
|
992
|
+
if (payment.state === "expected" && finding.supersedes !== void 0)
|
|
993
|
+
return invalid3("an expected payment supersedes nothing; a paid or cancelled one supersedes its invoice");
|
|
994
|
+
if (payment.state === "cancelled" && finding.supersedes === void 0)
|
|
995
|
+
return invalid3("a cancelled payment names the invoice: it cancels in supersedes");
|
|
996
|
+
if (payment.state === "expected" && !/^(person|organization):/.test(payment.counterparty ?? ""))
|
|
997
|
+
return invalid3("an expected payment becomes an invoice, which names its counterparty as a person: or organization:");
|
|
1110
998
|
return {
|
|
1111
999
|
...base,
|
|
1112
|
-
kind: "
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
commitment: finding.commitment,
|
|
1117
|
-
...finding.dueAt === void 0 ? {} : { dueAt: meetingTimestamp(finding.dueAt, "finding due date"), dueEvidence: support(finding.dueEvidence) },
|
|
1118
|
-
...finding.assignee === void 0 ? {} : { assignee: finding.assignee, assigneeEvidence: support(finding.assigneeEvidence) }
|
|
1000
|
+
kind: "payment",
|
|
1001
|
+
...finding.statement === void 0 ? {} : { statement: text3(finding.statement, 2e3) },
|
|
1002
|
+
payment,
|
|
1003
|
+
...finding.supersedes === void 0 ? {} : { supersedes: finding.supersedes }
|
|
1119
1004
|
};
|
|
1120
|
-
}
|
|
1121
|
-
|
|
1122
|
-
|
|
1005
|
+
}
|
|
1006
|
+
if (finding.kind !== "task")
|
|
1007
|
+
return invalid3(`a finding is a fact${rules.payments ? ", payment" : ""} or task`);
|
|
1008
|
+
fields(finding, [
|
|
1009
|
+
"id",
|
|
1010
|
+
"project",
|
|
1011
|
+
"evidence",
|
|
1012
|
+
"kind",
|
|
1013
|
+
"type",
|
|
1014
|
+
"title",
|
|
1015
|
+
"reason",
|
|
1016
|
+
"commitment",
|
|
1017
|
+
"dueAt",
|
|
1018
|
+
"dueEvidence",
|
|
1019
|
+
"assignee",
|
|
1020
|
+
"assigneeEvidence"
|
|
1021
|
+
], rules.singular);
|
|
1022
|
+
if (!TASK_TYPES.includes(finding.type))
|
|
1023
|
+
return invalid3("a task finding type is bug, chore or feature");
|
|
1024
|
+
if (!["explicit", "inferred"].includes(finding.commitment))
|
|
1025
|
+
return invalid3("task commitment must be explicit or inferred");
|
|
1026
|
+
if (finding.dueAt === void 0 !== (finding.dueEvidence === void 0) || finding.assignee === void 0 !== (finding.assigneeEvidence === void 0))
|
|
1027
|
+
return invalid3("optional dates and assignees require their supporting evidence");
|
|
1028
|
+
if (finding.assignee !== void 0 && (typeof finding.assignee !== "string" || !/^person:[1-9]\d*$/.test(finding.assignee)))
|
|
1029
|
+
return invalid3("an assignee must be a person reference");
|
|
1030
|
+
return {
|
|
1031
|
+
...base,
|
|
1032
|
+
kind: "task",
|
|
1033
|
+
type: finding.type,
|
|
1034
|
+
title: text3(finding.title, 300),
|
|
1035
|
+
reason: text3(finding.reason, 2e3),
|
|
1036
|
+
commitment: finding.commitment,
|
|
1037
|
+
...finding.dueAt === void 0 ? {} : {
|
|
1038
|
+
dueAt: meetingTimestamp(finding.dueAt, "finding due date"),
|
|
1039
|
+
dueEvidence: support(finding.dueEvidence, evidence)
|
|
1040
|
+
},
|
|
1041
|
+
...finding.assignee === void 0 ? {} : { assignee: finding.assignee, assigneeEvidence: support(finding.assigneeEvidence, evidence) }
|
|
1042
|
+
};
|
|
1043
|
+
}, "validateFinding");
|
|
1044
|
+
var support = /* @__PURE__ */ __name((value, evidence) => {
|
|
1045
|
+
if (!Array.isArray(value) || value.length < 1 || value.length > 8 || value.some((ref) => typeof ref !== "string" || !evidence.some((item) => item.reference === ref)))
|
|
1046
|
+
return invalid3("date and assignee support must cite the finding's evidence");
|
|
1047
|
+
return [...new Set(value)].sort();
|
|
1048
|
+
}, "support");
|
|
1049
|
+
var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
|
|
1050
|
+
if (!input || typeof input !== "object" || Buffer.byteLength(JSON.stringify(input), "utf8") > 65536)
|
|
1051
|
+
return invalid3(`${rules.plural} take at most 65536 UTF-8 bytes`);
|
|
1052
|
+
fields(input, ["schemaVersion", "key", "extractor", "findings"], rules.singular);
|
|
1053
|
+
if (input.schemaVersion !== 1 || !Array.isArray(input.findings) || input.findings.length < 1 || input.findings.length > most)
|
|
1054
|
+
return invalid3(`schemaVersion 1 takes 1\u2013${most} ${rules.plural}`);
|
|
1055
|
+
const key = text3(input.key, 64);
|
|
1056
|
+
if (!/^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$/.test(key))
|
|
1057
|
+
return invalid3("a findings key uses letters, digits, dot, colon, underscore or hyphen");
|
|
1058
|
+
const ids2 = /* @__PURE__ */ new Set();
|
|
1059
|
+
const findings = input.findings.map((finding) => one(finding, ids2));
|
|
1060
|
+
return { schemaVersion: 1, key, extractor: text3(input.extractor, 200), findings };
|
|
1061
|
+
}, "validateBatch");
|
|
1062
|
+
var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
|
|
1063
|
+
var findingText = /* @__PURE__ */ __name((value, limit) => text3(value, limit), "findingText");
|
|
1064
|
+
var findingFields = /* @__PURE__ */ __name((value, allowed, noun) => fields(value, allowed, noun), "findingFields");
|
|
1123
1065
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
1124
1066
|
|
|
1125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1067
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
1126
1068
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
1127
1069
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
1128
1070
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -1133,7 +1075,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
1133
1075
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
1134
1076
|
var meetingFindingFingerprint = findingFingerprint;
|
|
1135
1077
|
|
|
1136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1078
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
1137
1079
|
var context = {
|
|
1138
1080
|
command: "search meetings",
|
|
1139
1081
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -1252,7 +1194,56 @@ var meetingWordsQuery = /* @__PURE__ */ __name((text7) => {
|
|
|
1252
1194
|
return { version: 1, language: "lucene-v1", root };
|
|
1253
1195
|
}, "meetingWordsQuery");
|
|
1254
1196
|
|
|
1255
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1197
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/language.js
|
|
1198
|
+
var LATIN_WORDS = {
|
|
1199
|
+
en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
|
|
1200
|
+
es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
|
|
1201
|
+
de: ["der", "und", "ist", "nicht", "das", "ich", "wir", "mit", "auch", "ein"],
|
|
1202
|
+
fr: ["le", "les", "est", "une", "pas", "je", "vous", "nous", "avec", "mais"],
|
|
1203
|
+
it: ["gli", "della", "sono", "perch\xE9", "anche", "questo", "molto", "che", "di", "\xE8"],
|
|
1204
|
+
pt: ["n\xE3o", "voc\xEA", "isso", "muito", "ent\xE3o", "com", "uma", "tamb\xE9m", "mas", "eu"]
|
|
1205
|
+
};
|
|
1206
|
+
var LATIN_LANGUAGE = new Map(Object.entries(LATIN_WORDS).flatMap(([language, words2]) => words2.map((word) => [word, language])));
|
|
1207
|
+
var UKRAINIAN = /[іїєґ]/giu;
|
|
1208
|
+
var CYRILLIC = new RegExp("\\p{Script=Cyrillic}", "gu");
|
|
1209
|
+
var LATIN = new RegExp("\\p{Script=Latin}", "gu");
|
|
1210
|
+
var MIN_LETTERS = 20;
|
|
1211
|
+
var DOMINANT = 0.75;
|
|
1212
|
+
var countOf = /* @__PURE__ */ __name((text7, pattern) => text7.match(pattern)?.length ?? 0, "countOf");
|
|
1213
|
+
var latinLanguage = /* @__PURE__ */ __name((texts) => {
|
|
1214
|
+
const votes = /* @__PURE__ */ new Map();
|
|
1215
|
+
for (const text7 of texts)
|
|
1216
|
+
for (const word of text7.toLowerCase().split(/[^\p{L}]+/u)) {
|
|
1217
|
+
const language = LATIN_LANGUAGE.get(word);
|
|
1218
|
+
if (language)
|
|
1219
|
+
votes.set(language, (votes.get(language) ?? 0) + 1);
|
|
1220
|
+
}
|
|
1221
|
+
const [first, second] = [...votes].sort((a, b) => b[1] - a[1]);
|
|
1222
|
+
if (!first || first[1] < 3 || second && first[1] < 2 * second[1])
|
|
1223
|
+
return null;
|
|
1224
|
+
return first[0];
|
|
1225
|
+
}, "latinLanguage");
|
|
1226
|
+
var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
|
|
1227
|
+
const all = [...texts];
|
|
1228
|
+
let cyrillic = 0;
|
|
1229
|
+
let latin = 0;
|
|
1230
|
+
let ukrainian = 0;
|
|
1231
|
+
for (const text7 of all) {
|
|
1232
|
+
cyrillic += countOf(text7, CYRILLIC);
|
|
1233
|
+
latin += countOf(text7, LATIN);
|
|
1234
|
+
ukrainian += countOf(text7, UKRAINIAN);
|
|
1235
|
+
}
|
|
1236
|
+
const letters = cyrillic + latin;
|
|
1237
|
+
if (letters < MIN_LETTERS)
|
|
1238
|
+
return null;
|
|
1239
|
+
if (cyrillic / letters >= DOMINANT)
|
|
1240
|
+
return ukrainian / cyrillic >= 0.01 ? "uk" : "ru";
|
|
1241
|
+
if (latin / letters >= DOMINANT)
|
|
1242
|
+
return latinLanguage(all);
|
|
1243
|
+
return null;
|
|
1244
|
+
}, "transcriptLanguage");
|
|
1245
|
+
|
|
1246
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
1256
1247
|
var contentHash = /* @__PURE__ */ __name(async (text7) => {
|
|
1257
1248
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text7));
|
|
1258
1249
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -1266,7 +1257,7 @@ var speakerPosition = /* @__PURE__ */ __name((name, participants) => {
|
|
|
1266
1257
|
var transcriptInput = /* @__PURE__ */ __name(async (lines, participants, source, hashText = JSON.stringify(lines), format = null) => ({
|
|
1267
1258
|
source,
|
|
1268
1259
|
format,
|
|
1269
|
-
language:
|
|
1260
|
+
language: transcriptLanguage(lines.map((line2) => line2.text)),
|
|
1270
1261
|
contentHash: await contentHash(hashText),
|
|
1271
1262
|
externalCreatedAt: null,
|
|
1272
1263
|
metadata: null,
|
|
@@ -1289,7 +1280,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
1289
1280
|
return time;
|
|
1290
1281
|
}, "timestamp");
|
|
1291
1282
|
|
|
1292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
1293
1284
|
var TranscriptTextError = class extends Error {
|
|
1294
1285
|
static {
|
|
1295
1286
|
__name(this, "TranscriptTextError");
|
|
@@ -1344,7 +1335,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
1344
1335
|
return { header, lines };
|
|
1345
1336
|
}, "parseTranscriptText");
|
|
1346
1337
|
|
|
1347
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
1348
1339
|
var VttError = class extends Error {
|
|
1349
1340
|
static {
|
|
1350
1341
|
__name(this, "VttError");
|
|
@@ -1396,7 +1387,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
1396
1387
|
return cues;
|
|
1397
1388
|
}, "parseVtt");
|
|
1398
1389
|
|
|
1399
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1390
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
1400
1391
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
1401
1392
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
1402
1393
|
for (const file of files) {
|
|
@@ -1429,10 +1420,207 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
1429
1420
|
return report;
|
|
1430
1421
|
}, "importFiles");
|
|
1431
1422
|
|
|
1432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1423
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
1433
1424
|
var CHAT_MESSAGES_READ = 1e5;
|
|
1434
1425
|
|
|
1435
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/provider.js
|
|
1427
|
+
var snapshotMeetingScope = /* @__PURE__ */ __name((scope2) => {
|
|
1428
|
+
const provider = scope2?.provider;
|
|
1429
|
+
const account = scope2?.account;
|
|
1430
|
+
if (typeof provider !== "string" || !provider.trim() || provider.length > 200 || /[\0\r\n]/.test(provider) || typeof account !== "string" || !account.trim() || account.length > 1e3 || /[\0\r\n]/.test(account))
|
|
1431
|
+
throw new CliError("validation_error", "meeting provider and account must be bounded nonempty identifiers");
|
|
1432
|
+
return Object.freeze({ provider, account });
|
|
1433
|
+
}, "snapshotMeetingScope");
|
|
1434
|
+
|
|
1435
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
1436
|
+
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
1437
|
+
if (typeof value !== "string" || !value.trim())
|
|
1438
|
+
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
1439
|
+
return value;
|
|
1440
|
+
}, "nonempty");
|
|
1441
|
+
var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
|
|
1442
|
+
if (!change || typeof change !== "object" || Array.isArray(change) || Object.keys(change).some((key) => !["title", "kind", "startTime", "durationMinutes", "timezone", "agenda"].includes(key)))
|
|
1443
|
+
throw new CliError("validation_error", "unsupported meeting change field");
|
|
1444
|
+
const result = {};
|
|
1445
|
+
if (change.title !== void 0)
|
|
1446
|
+
result.title = nonempty(change.title, "meeting title");
|
|
1447
|
+
if (create && result.title === void 0)
|
|
1448
|
+
throw new CliError("validation_error", "meeting title is required");
|
|
1449
|
+
if (change.kind !== void 0) {
|
|
1450
|
+
if (change.kind !== "instant" && change.kind !== "scheduled")
|
|
1451
|
+
throw new CliError("validation_error", "only instant or scheduled meeting kinds are supported");
|
|
1452
|
+
result.kind = change.kind;
|
|
1453
|
+
}
|
|
1454
|
+
if (change.startTime !== void 0) {
|
|
1455
|
+
result.startTime = meetingTimestamp(change.startTime, "meeting start");
|
|
1456
|
+
}
|
|
1457
|
+
if (change.durationMinutes !== void 0) {
|
|
1458
|
+
if (!Number.isSafeInteger(change.durationMinutes) || change.durationMinutes <= 0 || change.durationMinutes > 1440)
|
|
1459
|
+
throw new CliError("validation_error", "meeting duration must be an integer from 1 to 1440 minutes");
|
|
1460
|
+
result.durationMinutes = change.durationMinutes;
|
|
1461
|
+
}
|
|
1462
|
+
if (change.timezone !== void 0) {
|
|
1463
|
+
if (typeof change.timezone !== "string" || !change.timezone.trim())
|
|
1464
|
+
throw new CliError("validation_error", "meeting timezone must be a valid IANA timezone");
|
|
1465
|
+
try {
|
|
1466
|
+
new Intl.DateTimeFormat("en", { timeZone: change.timezone }).format();
|
|
1467
|
+
} catch {
|
|
1468
|
+
throw new CliError("validation_error", "meeting timezone must be a valid IANA timezone");
|
|
1469
|
+
}
|
|
1470
|
+
result.timezone = change.timezone;
|
|
1471
|
+
}
|
|
1472
|
+
if (change.agenda !== void 0) {
|
|
1473
|
+
if (typeof change.agenda !== "string")
|
|
1474
|
+
throw new CliError("validation_error", "meeting agenda must be text");
|
|
1475
|
+
result.agenda = change.agenda;
|
|
1476
|
+
}
|
|
1477
|
+
if (create) {
|
|
1478
|
+
result.kind ??= "scheduled";
|
|
1479
|
+
if (result.kind === "scheduled" && result.startTime === void 0)
|
|
1480
|
+
throw new CliError("validation_error", "scheduled meeting start is required");
|
|
1481
|
+
} else if (!Object.keys(result).length)
|
|
1482
|
+
throw new CliError("validation_error", "at least one meeting change is required");
|
|
1483
|
+
return Object.freeze(result);
|
|
1484
|
+
}, "validateMeetingChange");
|
|
1485
|
+
var checkCancelled = /* @__PURE__ */ __name((signal) => {
|
|
1486
|
+
if (!signal?.aborted)
|
|
1487
|
+
return;
|
|
1488
|
+
if (signal.reason instanceof CliError)
|
|
1489
|
+
throw signal.reason;
|
|
1490
|
+
const timeout = signal.reason instanceof Error && signal.reason.name === "TimeoutError";
|
|
1491
|
+
throw new CliError(timeout ? "timeout" : "cancelled", timeout ? "meeting operation timed out" : "meeting operation cancelled");
|
|
1492
|
+
}, "checkCancelled");
|
|
1493
|
+
var dispatchMeetingMutation = /* @__PURE__ */ __name(async (options, dispatch) => {
|
|
1494
|
+
const { apply, dryRun, signal } = options;
|
|
1495
|
+
checkCancelled(signal);
|
|
1496
|
+
if (apply !== true || dryRun)
|
|
1497
|
+
return { applied: false };
|
|
1498
|
+
return { applied: true, value: await dispatch(signal) };
|
|
1499
|
+
}, "dispatchMeetingMutation");
|
|
1500
|
+
|
|
1501
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
|
|
1502
|
+
var id = /* @__PURE__ */ __name((value) => {
|
|
1503
|
+
if (typeof value !== "number" || !Number.isSafeInteger(value) || value < 1)
|
|
1504
|
+
throw new CliError("validation_error", "meeting context identifiers must be positive integers");
|
|
1505
|
+
return value;
|
|
1506
|
+
}, "id");
|
|
1507
|
+
var text4 = /* @__PURE__ */ __name((value, max) => {
|
|
1508
|
+
if (typeof value !== "string" || !value.trim() || value.length > max || value.includes("\0"))
|
|
1509
|
+
throw new CliError("validation_error", `meeting context text must contain 1\u2013${max} characters without NUL`);
|
|
1510
|
+
return value.trim();
|
|
1511
|
+
}, "text");
|
|
1512
|
+
var uid = /* @__PURE__ */ __name((value) => {
|
|
1513
|
+
const result = text4(value, 100);
|
|
1514
|
+
if (!/^[1-9]\d*$/.test(result) || !Number.isSafeInteger(Number(result)))
|
|
1515
|
+
throw new CliError("validation_error", "person UID must be a positive integer");
|
|
1516
|
+
return result;
|
|
1517
|
+
}, "uid");
|
|
1518
|
+
var strings = /* @__PURE__ */ __name((value, count6, length) => {
|
|
1519
|
+
if (!Array.isArray(value) || value.length < 1 || value.length > count6)
|
|
1520
|
+
throw new CliError("validation_error", `meeting context list must contain 1\u2013${count6} entries`);
|
|
1521
|
+
return Object.freeze([...new Set(value.map((entry) => text4(entry, length)))]);
|
|
1522
|
+
}, "strings");
|
|
1523
|
+
var fields2 = {
|
|
1524
|
+
"note.add": ["text", "title"],
|
|
1525
|
+
"tags.add": ["tags"],
|
|
1526
|
+
"tags.remove": ["tags"],
|
|
1527
|
+
"memory.add": ["body", "kind", "scope", "evidence", "subject"],
|
|
1528
|
+
"fact.add": ["statement", "type", "scope", "evidence", "subject"],
|
|
1529
|
+
"event.link": ["eventId", "expectedEventId"],
|
|
1530
|
+
"person.link": ["participantId", "personUid", "targetAccountIds", "expectedPersonUid"]
|
|
1531
|
+
};
|
|
1532
|
+
var validateMeetingContextChange = /* @__PURE__ */ __name((change) => {
|
|
1533
|
+
if (!change || typeof change !== "object" || Array.isArray(change) || !Object.hasOwn(fields2, change.action) || Object.keys(change).some((key) => key !== "action" && !fields2[change.action].includes(key)))
|
|
1534
|
+
throw new CliError("validation_error", "unsupported meeting context change");
|
|
1535
|
+
switch (change.action) {
|
|
1536
|
+
case "note.add":
|
|
1537
|
+
return Object.freeze({
|
|
1538
|
+
action: change.action,
|
|
1539
|
+
text: text4(change.text, 1e5),
|
|
1540
|
+
...change.title === void 0 ? {} : { title: text4(change.title, 500) }
|
|
1541
|
+
});
|
|
1542
|
+
case "tags.add":
|
|
1543
|
+
case "tags.remove":
|
|
1544
|
+
return Object.freeze({ action: change.action, tags: strings(change.tags, 100, 200) });
|
|
1545
|
+
case "memory.add": {
|
|
1546
|
+
if (!["summary", "digest", "preference"].includes(change.kind) || !["personal", "work"].includes(change.scope))
|
|
1547
|
+
throw new CliError("validation_error", "memory kind and explicit personal/work scope are required");
|
|
1548
|
+
return Object.freeze({
|
|
1549
|
+
action: change.action,
|
|
1550
|
+
body: text4(change.body, 2e4),
|
|
1551
|
+
kind: change.kind,
|
|
1552
|
+
scope: change.scope,
|
|
1553
|
+
evidence: strings(change.evidence, 100, 4e3),
|
|
1554
|
+
...change.subject === void 0 ? {} : { subject: text4(change.subject, 4e3) }
|
|
1555
|
+
});
|
|
1556
|
+
}
|
|
1557
|
+
case "fact.add": {
|
|
1558
|
+
if (!FACT_TYPES.includes(change.type) || !["personal", "work"].includes(change.scope))
|
|
1559
|
+
throw new CliError("validation_error", `fact type (${FACT_TYPES.join(", ")}) and explicit personal/work scope are required`);
|
|
1560
|
+
return Object.freeze({
|
|
1561
|
+
action: change.action,
|
|
1562
|
+
statement: text4(change.statement, 2e4),
|
|
1563
|
+
type: change.type,
|
|
1564
|
+
scope: change.scope,
|
|
1565
|
+
evidence: strings(change.evidence, 100, 4e3),
|
|
1566
|
+
...change.subject === void 0 ? {} : { subject: text4(change.subject, 4e3) }
|
|
1567
|
+
});
|
|
1568
|
+
}
|
|
1569
|
+
case "event.link":
|
|
1570
|
+
return Object.freeze({
|
|
1571
|
+
action: change.action,
|
|
1572
|
+
eventId: change.eventId === null ? null : id(change.eventId),
|
|
1573
|
+
...change.expectedEventId === void 0 ? {} : { expectedEventId: change.expectedEventId === null ? null : id(change.expectedEventId) }
|
|
1574
|
+
});
|
|
1575
|
+
case "person.link": {
|
|
1576
|
+
const targets = change.targetAccountIds;
|
|
1577
|
+
if (targets !== void 0 && (!Array.isArray(targets) || targets.length < 1 || targets.length > 1e3))
|
|
1578
|
+
throw new CliError("validation_error", "target accounts must contain 1\u20131000 identifiers");
|
|
1579
|
+
return Object.freeze({
|
|
1580
|
+
action: change.action,
|
|
1581
|
+
participantId: id(change.participantId),
|
|
1582
|
+
personUid: uid(change.personUid),
|
|
1583
|
+
...targets === void 0 ? {} : { targetAccountIds: Object.freeze([...new Set(targets.map(id))]) },
|
|
1584
|
+
...change.expectedPersonUid === void 0 ? {} : { expectedPersonUid: change.expectedPersonUid === null ? null : uid(change.expectedPersonUid) }
|
|
1585
|
+
});
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
}, "validateMeetingContextChange");
|
|
1589
|
+
var createMeetingContext = /* @__PURE__ */ __name((scope2, accountId, ports) => {
|
|
1590
|
+
const fixed = snapshotMeetingScope(scope2);
|
|
1591
|
+
const account = id(accountId);
|
|
1592
|
+
const actions = Object.freeze([...new Set(ports.actions)]);
|
|
1593
|
+
if (actions.some((action) => !Object.hasOwn(fields2, action)))
|
|
1594
|
+
throw new CliError("validation_error", "unsupported meeting context capability");
|
|
1595
|
+
const apply = ports.apply.bind(ports);
|
|
1596
|
+
return {
|
|
1597
|
+
scope: fixed,
|
|
1598
|
+
accountId: account,
|
|
1599
|
+
actions,
|
|
1600
|
+
async change(meetingId, input, options = {}) {
|
|
1601
|
+
const target = id(meetingId);
|
|
1602
|
+
const change = validateMeetingContextChange(input);
|
|
1603
|
+
if (!actions.includes(change.action))
|
|
1604
|
+
throw new CliError("provider_unavailable", `meeting context does not support ${change.action}`);
|
|
1605
|
+
const context3 = Object.freeze({
|
|
1606
|
+
scope: fixed,
|
|
1607
|
+
accountId: account,
|
|
1608
|
+
...options.signal ? { signal: options.signal } : {}
|
|
1609
|
+
});
|
|
1610
|
+
const outcome = await dispatchMeetingMutation(options, () => apply(target, change, context3));
|
|
1611
|
+
return {
|
|
1612
|
+
scope: fixed,
|
|
1613
|
+
accountId: account,
|
|
1614
|
+
meetingId: target,
|
|
1615
|
+
change,
|
|
1616
|
+
applied: outcome.applied,
|
|
1617
|
+
...outcome.applied ? { result: outcome.value } : {}
|
|
1618
|
+
};
|
|
1619
|
+
}
|
|
1620
|
+
};
|
|
1621
|
+
}, "createMeetingContext");
|
|
1622
|
+
|
|
1623
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
1436
1624
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
1437
1625
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
1438
1626
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -1457,7 +1645,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
1457
1645
|
return { ...input, limit, maxReadBytes };
|
|
1458
1646
|
}, "validateMeetingPreparationContext");
|
|
1459
1647
|
|
|
1460
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
1461
1649
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
1462
1650
|
var id2 = pipe(string(), minLength(1));
|
|
1463
1651
|
var meetingProjectEvidence = strictObject({
|
|
@@ -1578,7 +1766,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
1578
1766
|
};
|
|
1579
1767
|
}, "meetingProjectEvidenceAnswer");
|
|
1580
1768
|
|
|
1581
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
1582
1770
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
1583
1771
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
1584
1772
|
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) || [
|
|
@@ -1598,7 +1786,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
1598
1786
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
1599
1787
|
}, "validateMeetingHitSearch");
|
|
1600
1788
|
|
|
1601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1789
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
1602
1790
|
var ids = {
|
|
1603
1791
|
meeting_id: "meetingId",
|
|
1604
1792
|
identity_id: "participantIdentityId",
|
|
@@ -1689,7 +1877,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
|
|
|
1689
1877
|
return { project: project.trim(), options, query: frozen.join(" AND ") };
|
|
1690
1878
|
}, "prepareMeetingProjectEvidence");
|
|
1691
1879
|
|
|
1692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1880
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
1693
1881
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
|
|
1694
1882
|
const prepared = prepareMeetingProjectEvidence(project, request, now);
|
|
1695
1883
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -1697,7 +1885,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
|
|
|
1697
1885
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
1698
1886
|
}, "readMeetingProjectEvidence");
|
|
1699
1887
|
|
|
1700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
1701
1889
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
1702
1890
|
const { identityExternalId, ...fields3 } = p;
|
|
1703
1891
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -1836,7 +2024,7 @@ unlinked`, format)],
|
|
|
1836
2024
|
return report;
|
|
1837
2025
|
}, "pull");
|
|
1838
2026
|
|
|
1839
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2027
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
1840
2028
|
var text5 = string();
|
|
1841
2029
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
1842
2030
|
var id3 = pipe(number(), integer(), minValue(1));
|
|
@@ -2013,10 +2201,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
2013
2201
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
2014
2202
|
}), "eventItem");
|
|
2015
2203
|
|
|
2016
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
2017
2205
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
2018
2206
|
|
|
2019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
2020
2208
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
2021
2209
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2022
2210
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -2046,7 +2234,7 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
2046
2234
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
2047
2235
|
}, "validateMeetingRelatedHistory");
|
|
2048
2236
|
|
|
2049
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2237
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
2050
2238
|
var text6 = string();
|
|
2051
2239
|
var identifier = pipe(text6, minLength(1));
|
|
2052
2240
|
var nullableText = nullable(text6);
|
|
@@ -2164,22 +2352,29 @@ var embedding = union([
|
|
|
2164
2352
|
})
|
|
2165
2353
|
})
|
|
2166
2354
|
]);
|
|
2355
|
+
var repair = strictObject({
|
|
2356
|
+
account_id: identifier,
|
|
2357
|
+
applied: flag,
|
|
2358
|
+
transcripts: count5,
|
|
2359
|
+
languages: array(strictObject({ language: nullableText, transcripts: count5 }))
|
|
2360
|
+
});
|
|
2167
2361
|
var MEETING_RESULT_ENTITIES = {
|
|
2168
2362
|
meeting_ingestion: run,
|
|
2169
2363
|
meeting_export: exported,
|
|
2170
2364
|
meeting_association: meetingChange,
|
|
2171
2365
|
meeting_transcription: transcription,
|
|
2172
|
-
meeting_embedding: embedding
|
|
2366
|
+
meeting_embedding: embedding,
|
|
2367
|
+
meeting_repair: repair
|
|
2173
2368
|
};
|
|
2174
2369
|
|
|
2175
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2370
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
2176
2371
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
2177
2372
|
|
|
2178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
2179
2374
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
2180
2375
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
2181
2376
|
|
|
2182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
2183
2378
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
2184
2379
|
input.signal?.throwIfAborted();
|
|
2185
2380
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -2200,39 +2395,39 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
2200
2395
|
return { ...input, limit, maxReadBytes };
|
|
2201
2396
|
}, "validateMeetingSeriesHistory");
|
|
2202
2397
|
|
|
2203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
2204
2399
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
2205
2400
|
|
|
2206
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2207
|
-
function
|
|
2401
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
2402
|
+
function invalid4(field, response = false) {
|
|
2208
2403
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
2209
2404
|
}
|
|
2210
|
-
__name(
|
|
2405
|
+
__name(invalid4, "invalid");
|
|
2211
2406
|
var object = /* @__PURE__ */ __name((value, fields3, field, response = false) => {
|
|
2212
2407
|
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
2213
|
-
|
|
2408
|
+
invalid4(field, response);
|
|
2214
2409
|
for (const key of Object.keys(value))
|
|
2215
2410
|
if (!fields3.includes(key))
|
|
2216
|
-
|
|
2411
|
+
invalid4(`${field}.${key}`, response);
|
|
2217
2412
|
}, "object");
|
|
2218
2413
|
var cursorDetails = /* @__PURE__ */ __name((value) => {
|
|
2219
2414
|
if (typeof value !== "string" || value.length > 4096 || !/^[A-Za-z0-9_-]+$/.test(value))
|
|
2220
|
-
|
|
2415
|
+
invalid4("cursor");
|
|
2221
2416
|
try {
|
|
2222
2417
|
const decoded = JSON.parse(new TextDecoder("utf8", { fatal: true }).decode(Buffer.from(value, "base64url")));
|
|
2223
2418
|
object(decoded, ["version", "selection", "cursor"], "cursor");
|
|
2224
2419
|
if (decoded.version !== 1 || typeof decoded.selection !== "string" || !/^[a-f0-9]{64}$/.test(decoded.selection) || !occurrenceId(decoded.cursor))
|
|
2225
|
-
|
|
2420
|
+
invalid4("cursor");
|
|
2226
2421
|
return decoded;
|
|
2227
2422
|
} catch {
|
|
2228
|
-
return
|
|
2423
|
+
return invalid4("cursor");
|
|
2229
2424
|
}
|
|
2230
2425
|
}, "cursorDetails");
|
|
2231
2426
|
var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
2232
2427
|
cursorDetails(value);
|
|
2233
2428
|
}, "validateMeetingSeriesInventoryCursor");
|
|
2234
2429
|
|
|
2235
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
2236
2431
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
2237
2432
|
const zone = timeZone ?? "UTC";
|
|
2238
2433
|
try {
|
|
@@ -2311,7 +2506,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
2311
2506
|
};
|
|
2312
2507
|
}, "aggregateMeetingStats");
|
|
2313
2508
|
|
|
2314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
2315
2510
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
2316
2511
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
2317
2512
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -2326,7 +2521,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
2326
2521
|
}
|
|
2327
2522
|
__name(closeTask, "closeTask");
|
|
2328
2523
|
|
|
2329
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2524
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
2330
2525
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
2331
2526
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
2332
2527
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -2355,7 +2550,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
2355
2550
|
}, "priorityOf");
|
|
2356
2551
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
2357
2552
|
|
|
2358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2553
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
2359
2554
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
2360
2555
|
async function find(id4) {
|
|
2361
2556
|
const task = await store.get(id4);
|
|
@@ -2415,14 +2610,13 @@ function median(values) {
|
|
|
2415
2610
|
}
|
|
2416
2611
|
__name(median, "median");
|
|
2417
2612
|
|
|
2418
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2613
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
2419
2614
|
function matches(task, filter) {
|
|
2420
2615
|
return (filter.account === void 0 || task.account === filter.account) && (filter.state === void 0 || task.state === filter.state) && (filter.group === void 0 || task.group === filter.group) && (filter.kind === void 0 || task.kind === filter.kind) && (filter.createdBefore === void 0 || task.createdAt < filter.createdBefore);
|
|
2421
2616
|
}
|
|
2422
2617
|
__name(matches, "matches");
|
|
2423
2618
|
|
|
2424
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2425
|
-
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
2619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
2426
2620
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
2427
2621
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
2428
2622
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
@@ -2430,7 +2624,7 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
2430
2624
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
2431
2625
|
var TASK_TYPES2 = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
2432
2626
|
|
|
2433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2627
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
2434
2628
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
2435
2629
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
2436
2630
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -2444,7 +2638,7 @@ var normalizeTag = /* @__PURE__ */ __name((value) => {
|
|
|
2444
2638
|
return tag;
|
|
2445
2639
|
}, "normalizeTag");
|
|
2446
2640
|
|
|
2447
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2641
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
2448
2642
|
var LINK_KINDS = [
|
|
2449
2643
|
"links-to",
|
|
2450
2644
|
"blocked-by",
|
|
@@ -2466,9 +2660,6 @@ var RELATION_KINDS = ["member-of", "related-to"];
|
|
|
2466
2660
|
var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
|
|
2467
2661
|
|
|
2468
2662
|
export {
|
|
2469
|
-
TAG_TYPES,
|
|
2470
|
-
tagOf,
|
|
2471
|
-
normalizeTag,
|
|
2472
2663
|
formatMeetingReference,
|
|
2473
2664
|
parseMeetingReference,
|
|
2474
2665
|
canonicalMeetingReference,
|
|
@@ -2498,12 +2689,20 @@ export {
|
|
|
2498
2689
|
meetingTranscriptAnswer,
|
|
2499
2690
|
meetingSummaryAnswer,
|
|
2500
2691
|
exportMeeting,
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2692
|
+
FACT_TYPES,
|
|
2693
|
+
PAYMENT_DIRECTIONS,
|
|
2694
|
+
PAYMENT_STATES,
|
|
2695
|
+
validatePayment,
|
|
2696
|
+
paymentTitle,
|
|
2697
|
+
meetingTimestamp,
|
|
2505
2698
|
findingHash,
|
|
2699
|
+
validEvidence,
|
|
2700
|
+
findingId,
|
|
2701
|
+
validateFinding,
|
|
2702
|
+
validateBatch,
|
|
2506
2703
|
validateFindings,
|
|
2704
|
+
findingText,
|
|
2705
|
+
findingFields,
|
|
2507
2706
|
findingFingerprint,
|
|
2508
2707
|
MEETING_FINDINGS_KIND,
|
|
2509
2708
|
validateMeetingFindings,
|
|
@@ -2511,8 +2710,13 @@ export {
|
|
|
2511
2710
|
liftMeetingFields,
|
|
2512
2711
|
parseMeetingQuery,
|
|
2513
2712
|
meetingWordsQuery,
|
|
2713
|
+
transcriptLanguage,
|
|
2514
2714
|
importFiles,
|
|
2515
2715
|
CHAT_MESSAGES_READ,
|
|
2716
|
+
snapshotMeetingScope,
|
|
2717
|
+
validateMeetingChange,
|
|
2718
|
+
validateMeetingContextChange,
|
|
2719
|
+
createMeetingContext,
|
|
2516
2720
|
meetingHitContextLimits,
|
|
2517
2721
|
validateMeetingPassage,
|
|
2518
2722
|
validateMeetingPreparationContext,
|
|
@@ -2539,6 +2743,9 @@ export {
|
|
|
2539
2743
|
validateMeetingSeriesHistory,
|
|
2540
2744
|
validateMeetingSeriesInventoryCursor,
|
|
2541
2745
|
aggregateMeetingStats,
|
|
2746
|
+
TAG_TYPES,
|
|
2747
|
+
tagOf,
|
|
2748
|
+
normalizeTag,
|
|
2542
2749
|
LINK_KINDS,
|
|
2543
2750
|
LINK_ORIGINS,
|
|
2544
2751
|
LINK_SOURCES,
|
|
@@ -2559,7 +2766,6 @@ export {
|
|
|
2559
2766
|
priorityOption,
|
|
2560
2767
|
createTaskService,
|
|
2561
2768
|
matches,
|
|
2562
|
-
FACT_TYPES,
|
|
2563
2769
|
FACT_STATUSES,
|
|
2564
2770
|
MEMORY_KINDS,
|
|
2565
2771
|
MEMORY_STATUSES,
|