@wirecat/tg-cli 0.124.0 → 0.126.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/contracts/wirecat.json +7 -1
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-GEIZVMWU.js → adapter-BXU3AVB7.js} +52 -53
- package/dist/bundle/{all-profiles-EY4GJFWN.js → all-profiles-G5A6IROO.js} +10 -10
- package/dist/bundle/{anthropic-RIANJ7WM.js → anthropic-SINVEVEM.js} +5 -5
- package/dist/bundle/{app-server-LW7WBFIF.js → app-server-IHIQXPJF.js} +49 -45
- package/dist/bundle/{bot-api-FHIQ66OM.js → bot-api-LGAVVYRM.js} +53 -54
- package/dist/bundle/{bot-history-O34YZEFH.js → bot-history-5C35FGCD.js} +18 -18
- package/dist/bundle/{bun-MJWD4VGV.js → bun-2GK3YOP3.js} +2 -2
- package/dist/bundle/{bun-sqlite-LCHVO3OB.js → bun-sqlite-7DGADK3E.js} +6 -6
- package/dist/bundle/{chunk-RHJHOOUL.js → chunk-2F2UMQMB.js} +196 -158
- package/dist/bundle/{chunk-W4LMTNN2.js → chunk-2LN6OJUB.js} +2 -2
- package/dist/bundle/{chunk-LKMZ53GC.js → chunk-4GR5YYGA.js} +2 -2
- package/dist/bundle/{chunk-ZNICTHSC.js → chunk-5GINYFD4.js} +1 -1
- package/dist/bundle/{chunk-PP4ZBLS4.js → chunk-5NLAGTWU.js} +9 -9
- package/dist/bundle/{chunk-NL4COYPY.js → chunk-63DSHUNP.js} +7 -7
- package/dist/bundle/{chunk-KVJSCJGZ.js → chunk-7FL2N6DM.js} +2 -2
- package/dist/bundle/{chunk-E6VSARSU.js → chunk-7KCBPAQS.js} +2 -2
- package/dist/bundle/{chunk-BV3HZYOX.js → chunk-7UACPXDC.js} +549 -458
- package/dist/bundle/{chunk-VGUWIHXD.js → chunk-AA2NZAUT.js} +1 -1
- package/dist/bundle/{chunk-UII3D3HR.js → chunk-ACLUVZ4I.js} +34 -30
- package/dist/bundle/{chunk-QGCVQRHV.js → chunk-AKUBJHE5.js} +1 -1
- package/dist/bundle/{chunk-54JPEGQA.js → chunk-AYEQMXRE.js} +2 -2
- package/dist/bundle/{chunk-PZ6H65D6.js → chunk-AZ7DSHQO.js} +63 -5
- package/dist/bundle/{chunk-OVDB5CQM.js → chunk-BSKYPHLB.js} +1 -1
- package/dist/bundle/{chunk-UP3J3YXH.js → chunk-CK7DSGIK.js} +7 -7
- package/dist/bundle/{chunk-ZTMV5M3D.js → chunk-DGGAYHLN.js} +29 -25
- package/dist/bundle/{chunk-E66JBGZZ.js → chunk-F34EE5Y2.js} +2 -2
- package/dist/bundle/{chunk-PJGOQSE5.js → chunk-FIVFP53N.js} +1 -1
- package/dist/bundle/{chunk-HSRO77SW.js → chunk-FYOHGIQP.js} +15 -15
- package/dist/bundle/{chunk-VAKSXD4F.js → chunk-G4RCT5RH.js} +13 -13
- package/dist/bundle/{chunk-QFV36CAH.js → chunk-G4VVBR6U.js} +4 -4
- package/dist/bundle/{chunk-ISGXVFA4.js → chunk-GI2ZUNOH.js} +4 -4
- package/dist/bundle/{chunk-DFSLHF46.js → chunk-GIY56MIB.js} +1 -1
- package/dist/bundle/{chunk-4EGB7GSW.js → chunk-GOGGRLS6.js} +28 -23
- package/dist/bundle/{chunk-2YLIVDWJ.js → chunk-HPFB4Y7P.js} +2 -2
- package/dist/bundle/{chunk-OK4M4MWI.js → chunk-IX3GUNGV.js} +4 -4
- package/dist/bundle/{chunk-2GFGZDWS.js → chunk-J2BUWK5U.js} +2 -2
- package/dist/bundle/{chunk-42R4YO4L.js → chunk-JAKP5RWM.js} +4378 -4075
- package/dist/bundle/{chunk-OH3IZ6GW.js → chunk-JQ2RKLPU.js} +153 -98
- package/dist/bundle/{chunk-QWAMX6CN.js → chunk-K4DXGJK4.js} +12 -12
- package/dist/bundle/{chunk-RBV4M2TC.js → chunk-KSLZEXRF.js} +1 -1
- package/dist/bundle/{chunk-A5RWKKBZ.js → chunk-L5PYWQDA.js} +3 -3
- package/dist/bundle/{chunk-XSGUG5WG.js → chunk-LD42OGKK.js} +4 -4
- package/dist/bundle/{chunk-OIF4B526.js → chunk-M4OP5ASJ.js} +1 -1
- package/dist/bundle/{chunk-WSLIXJET.js → chunk-MA2XHO4O.js} +378 -269
- package/dist/bundle/{chunk-2NG4JPP7.js → chunk-MP47TE77.js} +4 -4
- package/dist/bundle/{chunk-M4W4Y5YR.js → chunk-N2JSMP4N.js} +57 -36
- package/dist/bundle/{chunk-SGBH3D5D.js → chunk-NJ3FSKSU.js} +5 -7
- package/dist/bundle/{chunk-4CIVGT4P.js → chunk-NM5GBJME.js} +19 -19
- package/dist/bundle/{chunk-QK4T3VN7.js → chunk-OXB5P37M.js} +1 -1
- package/dist/bundle/{chunk-ZL5YG2WK.js → chunk-P2GNIWGG.js} +7 -7
- package/dist/bundle/{chunk-3VVZFBE2.js → chunk-PJ6FZXUR.js} +3 -3
- package/dist/bundle/{chunk-PI4XXMPG.js → chunk-QCLMP635.js} +6 -6
- package/dist/bundle/{chunk-YQFO7WXQ.js → chunk-QGLB4D7J.js} +2 -2
- package/dist/bundle/{chunk-N5UM63JW.js → chunk-QMEPKUG3.js} +56 -55
- package/dist/bundle/{chunk-F3GHTPAO.js → chunk-QOINWAQD.js} +4 -4
- package/dist/bundle/{chunk-GUL6QLNI.js → chunk-QYLYMOXN.js} +17 -17
- package/dist/bundle/{chunk-NQXVZ5WT.js → chunk-RFDPU4NO.js} +11 -6
- package/dist/bundle/{chunk-IK6XKMLL.js → chunk-SL4S5GFR.js} +1 -1
- package/dist/bundle/{chunk-VMWJGUVV.js → chunk-SXVB2CVR.js} +4 -4
- package/dist/bundle/{chunk-5EL6E6PW.js → chunk-UIFQEXVP.js} +1 -1
- package/dist/bundle/{chunk-I4JUKRW7.js → chunk-URFBZNLU.js} +2 -2
- package/dist/bundle/{chunk-3PLMMFP6.js → chunk-W35POPPX.js} +17 -17
- package/dist/bundle/{chunk-IVFUSI7G.js → chunk-W725T2V7.js} +3 -2
- package/dist/bundle/{chunk-XDHGM2Z7.js → chunk-W75SKUY4.js} +3 -3
- package/dist/bundle/{chunk-HEV23NIB.js → chunk-XGBXRDJP.js} +6 -6
- package/dist/bundle/{chunk-UR62DZ7Q.js → chunk-XS5C5TQ7.js} +8 -8
- package/dist/bundle/{chunk-CDSSKK5J.js → chunk-Y4724JRR.js} +3 -3
- package/dist/bundle/{chunk-7AWJZ6NJ.js → chunk-Y5DGB7GP.js} +8 -8
- package/dist/bundle/{chunk-ASEBKZFY.js → chunk-YRZXOQOB.js} +2 -2
- package/dist/bundle/{chunk-WKOVQ4OU.js → chunk-ZXCQF6XV.js} +12 -12
- package/dist/bundle/command-contract-ZEYY3ZXK.js +34 -0
- package/dist/bundle/{command-server-entry-K52OEKIO.js → command-server-entry-UWY6PQIV.js} +24 -24
- package/dist/bundle/{decode-OAE25LEJ.js → decode-QGMFQ6XX.js} +5 -5
- package/dist/bundle/{dispatch-6GVTXIZ2.js → dispatch-PRAIGIFS.js} +8 -8
- package/dist/bundle/{echarts-EO4ZGKMN.js → echarts-GHU3GEWV.js} +2 -2
- package/dist/bundle/{embed-TB2AS4AT.js → embed-6DMEWQDO.js} +6 -6
- package/dist/bundle/{embedder-YKC42G6L.js → embedder-W2L7YZPW.js} +9 -9
- package/dist/bundle/{entry-AB6FU7BN.js → entry-LPEXVFQC.js} +9 -9
- package/dist/bundle/{failure-CY7ACT6V.js → failure-7Y34AUJT.js} +2 -2
- package/dist/bundle/{first-run-CMQZHDI5.js → first-run-3UJ6SJF5.js} +11 -11
- package/dist/bundle/first-screen-VCSY5QH5.js +32 -0
- package/dist/bundle/{instructions-RM3IB6ID.js → instructions-RUVAH2IS.js} +1 -1
- package/dist/bundle/{mcp-M5YCSWJJ.js → mcp-TDKGDB4V.js} +2 -2
- package/dist/bundle/{node-D2PM62TA.js → node-RYSNHVBX.js} +2 -2
- package/dist/bundle/{node-sqlite-UK5DE525.js → node-sqlite-J6ZL4LUY.js} +7 -7
- package/dist/bundle/{oauth-SKRG67A2.js → oauth-B2QNZNSC.js} +7 -7
- package/dist/bundle/{open-XP3SY62D.js → open-OMUP5P6V.js} +5 -5
- package/dist/bundle/{openai-Q3U46UPA.js → openai-BT4BP4VQ.js} +21 -20
- package/dist/bundle/{process-YJ4LHMJB.js → process-HG3QDD54.js} +1 -1
- package/dist/bundle/{program-EEPEFKTR.js → program-P2VATMKJ.js} +62 -60
- package/dist/bundle/{prompt-WYTODP4U.js → prompt-BTIHH3Z4.js} +5 -5
- package/dist/bundle/{proxy-transport-HJMQ5QFT.js → proxy-transport-DP7SIMIC.js} +5 -5
- package/dist/bundle/{recognize-K2S5QQU2.js → recognize-CTSJXPIG.js} +4 -4
- package/dist/bundle/{remote-7RSAJ3JC.js → remote-2FIGCMKL.js} +9 -9
- package/dist/bundle/{rerank-RJX77BKD.js → rerank-TI5SLEF4.js} +7 -7
- package/dist/bundle/{serve-3E7NN3VW.js → serve-IO3IM5C7.js} +9 -9
- package/dist/bundle/server-RIGXUTKZ.js +62 -0
- package/dist/bundle/{server-O3KU56A4.js → server-WEPFFTYA.js} +38 -36
- package/dist/bundle/{sqlite-runtime-RCS5WSG5.js → sqlite-runtime-CTEYXX7L.js} +6 -6
- package/dist/bundle/{state-PLWSPSAG.js → state-GFHVDGHM.js} +6 -6
- package/dist/bundle/{store-DWMKCXYL.js → store-RCK6HT4F.js} +13 -13
- package/dist/bundle/{store-3FYLH53Z.js → store-Y5XC4LEM.js} +15 -15
- package/dist/bundle/store-maintenance-command-XH6VMCDU.js +52 -0
- package/dist/bundle/tg.js +13 -13
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/tg-cli/SKILL.md +6 -2
- package/dist/bundle/chunk-VIIIC5LU.js +0 -32
- package/dist/bundle/command-contract-UKOL455D.js +0 -34
- package/dist/bundle/first-screen-XZ73W3VE.js +0 -32
- package/dist/bundle/server-ITHYDPWQ.js +0 -62
- package/dist/bundle/store-maintenance-command-3UEKINRB.js +0 -52
- /package/dist/bundle/{chunk-HVJJWJYQ.js → chunk-XWBPP2HX.js} +0 -0
|
@@ -3,16 +3,16 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
isCliFailure,
|
|
5
5
|
isStoreDamage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PJ6FZXUR.js";
|
|
7
7
|
import {
|
|
8
8
|
refuseOwnerStoreInTests
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-W725T2V7.js";
|
|
10
10
|
import {
|
|
11
11
|
createRecordLog,
|
|
12
12
|
resolvePaths,
|
|
13
13
|
traceIdOf,
|
|
14
14
|
writeSecurely
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NM5GBJME.js";
|
|
16
16
|
import {
|
|
17
17
|
RegistryError,
|
|
18
18
|
SNAKE_CASE,
|
|
@@ -46,28 +46,28 @@ import {
|
|
|
46
46
|
union,
|
|
47
47
|
unknown,
|
|
48
48
|
variant
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-XS5C5TQ7.js";
|
|
50
50
|
import {
|
|
51
51
|
CliError,
|
|
52
52
|
isCliError,
|
|
53
53
|
singleLine,
|
|
54
54
|
visibleControls
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-7KCBPAQS.js";
|
|
56
56
|
import {
|
|
57
57
|
__name
|
|
58
58
|
} from "./chunk-ZVVMGPBJ.js";
|
|
59
59
|
|
|
60
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
60
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
61
61
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
62
62
|
import { randomBytes } from "node:crypto";
|
|
63
63
|
|
|
64
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
64
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
65
65
|
import { randomUUID } from "node:crypto";
|
|
66
66
|
import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
67
67
|
import { userInfo } from "node:os";
|
|
68
68
|
import { join, sep } from "node:path";
|
|
69
69
|
|
|
70
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
70
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
71
71
|
var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
72
72
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
73
73
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -80,7 +80,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
80
80
|
error: /* @__PURE__ */ __name((event2, message) => logger.error(logAttributes(event2), message), "error")
|
|
81
81
|
}), "snakeLogger");
|
|
82
82
|
|
|
83
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
83
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
84
84
|
var diagnostic = {
|
|
85
85
|
event: true,
|
|
86
86
|
operation: true,
|
|
@@ -154,7 +154,7 @@ var LOG_ATTRIBUTES = [
|
|
|
154
154
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
155
155
|
].sort();
|
|
156
156
|
|
|
157
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
158
158
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
159
159
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
160
160
|
var KEEP_STORE_RUNS_FOR_DAYS = 3;
|
|
@@ -521,7 +521,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
521
521
|
};
|
|
522
522
|
}, "metadataOf");
|
|
523
523
|
|
|
524
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
524
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
525
525
|
var scopes = new AsyncLocalStorage();
|
|
526
526
|
var processScope;
|
|
527
527
|
var ownProcesses = new AsyncLocalStorage();
|
|
@@ -572,7 +572,7 @@ var attempts = new AsyncLocalStorage();
|
|
|
572
572
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
573
573
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
574
574
|
|
|
575
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
575
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/payment.js
|
|
576
576
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
577
577
|
var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
|
|
578
578
|
var PAYMENT_STATES = ["expected", "paid", "cancelled"];
|
|
@@ -666,7 +666,7 @@ var paymentTitle = /* @__PURE__ */ __name((fact) => {
|
|
|
666
666
|
return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
|
|
667
667
|
}, "paymentTitle");
|
|
668
668
|
|
|
669
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
669
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/types.js
|
|
670
670
|
var QUERY_LIMITS = {
|
|
671
671
|
bytes: 8192,
|
|
672
672
|
depth: 32,
|
|
@@ -710,7 +710,7 @@ function queryError(reason, span, alternative, context3 = {}, details = {}) {
|
|
|
710
710
|
__name(queryError, "queryError");
|
|
711
711
|
var walkQuery = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => walkQuery(node2)), "walkQuery");
|
|
712
712
|
|
|
713
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
713
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/dates.js
|
|
714
714
|
var timezoneOf = /* @__PURE__ */ __name((given) => {
|
|
715
715
|
const zone = given ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? "UTC";
|
|
716
716
|
try {
|
|
@@ -855,7 +855,7 @@ var dateRange = /* @__PURE__ */ __name((lower, upper, lowerInclusive, upperInclu
|
|
|
855
855
|
};
|
|
856
856
|
}, "dateRange");
|
|
857
857
|
|
|
858
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
858
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/evaluate.js
|
|
859
859
|
var wordsOf = /* @__PURE__ */ __name((text6) => text6.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
|
|
860
860
|
var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
|
|
861
861
|
var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
|
|
@@ -910,7 +910,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
|
|
|
910
910
|
}, "matches");
|
|
911
911
|
var evaluate = /* @__PURE__ */ __name((ast, fields, item, options = {}) => matches(ast.root, item, new Map(fields.map((field) => [field.name, field])), options), "evaluate");
|
|
912
912
|
|
|
913
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
913
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/fields.js
|
|
914
914
|
var FIELD_TYPES = ["kw", "txt", "enum", "num", "time", "bool", "ref"];
|
|
915
915
|
var OPERATORS_BY_TYPE = {
|
|
916
916
|
kw: ["term", "phrase", "wildcard"],
|
|
@@ -989,7 +989,7 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
|
|
|
989
989
|
return [...own, ...relations, ...states];
|
|
990
990
|
}, "queryFieldsOf");
|
|
991
991
|
|
|
992
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
992
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/help.js
|
|
993
993
|
var shownOf = /* @__PURE__ */ __name((registry3) => registry3.backend === "native" ? registry3.fields.filter((field) => field.native) : registry3.fields, "shownOf");
|
|
994
994
|
var leftOut = /* @__PURE__ */ __name((fields) => fields.filter((field) => field.negatable).map((field) => field.name), "leftOut");
|
|
995
995
|
var has = /* @__PURE__ */ __name((fields, operator) => fields.some((field) => field.operators.includes(operator)), "has");
|
|
@@ -1026,7 +1026,7 @@ var queryDescription = /* @__PURE__ */ __name((registry3) => {
|
|
|
1026
1026
|
return `${terms}; fields: ${fields.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
|
|
1027
1027
|
}, "queryDescription");
|
|
1028
1028
|
|
|
1029
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1029
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/parser.js
|
|
1030
1030
|
var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
|
|
1031
1031
|
var reserved = /* @__PURE__ */ new Set([
|
|
1032
1032
|
"+",
|
|
@@ -1335,7 +1335,7 @@ var implicitTextTerms = /* @__PURE__ */ __name((text6) => {
|
|
|
1335
1335
|
return new Set(tokens.flatMap((token, index) => (token.kind === "term" || token.kind === "number") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index - 1]?.kind ?? "") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index + 1]?.kind ?? "") ? [token.span.start] : []));
|
|
1336
1336
|
}, "implicitTextTerms");
|
|
1337
1337
|
|
|
1338
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1338
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/validate.js
|
|
1339
1339
|
var inContext = /* @__PURE__ */ __name((context3, run2) => {
|
|
1340
1340
|
try {
|
|
1341
1341
|
run2();
|
|
@@ -1410,7 +1410,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry3, options = {}) => {
|
|
|
1410
1410
|
}, "validateQuery");
|
|
1411
1411
|
var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
|
|
1412
1412
|
|
|
1413
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1413
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/registry.js
|
|
1414
1414
|
var describeQuery = /* @__PURE__ */ __name((registry3) => ({
|
|
1415
1415
|
entity: registry3.entity,
|
|
1416
1416
|
backend: registry3.backend,
|
|
@@ -1481,7 +1481,7 @@ var QUERY_REASONS = defineReasons([
|
|
|
1481
1481
|
details: [...SPAN, ...details]
|
|
1482
1482
|
})));
|
|
1483
1483
|
|
|
1484
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1484
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/reference.js
|
|
1485
1485
|
var invalid2 = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
|
|
1486
1486
|
var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
|
|
1487
1487
|
if (!Number.isSafeInteger(value) || value < minimum)
|
|
@@ -1518,7 +1518,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text6) => {
|
|
|
1518
1518
|
}, "parseMeetingReference");
|
|
1519
1519
|
var canonicalMeetingReference = /* @__PURE__ */ __name((text6) => formatMeetingReference(parseMeetingReference(text6)), "canonicalMeetingReference");
|
|
1520
1520
|
|
|
1521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1521
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
1522
1522
|
var text = string();
|
|
1523
1523
|
var count = pipe(number(), integer(), minValue(0));
|
|
1524
1524
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -1583,7 +1583,11 @@ var MEETING_QUERY = {
|
|
|
1583
1583
|
})
|
|
1584
1584
|
};
|
|
1585
1585
|
|
|
1586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/store.js
|
|
1587
|
+
var MEETING_DOCUMENT_ROLES = ["transcript", "recording", "notes"];
|
|
1588
|
+
var READ_BUDGET_EXCEEDED = "Meeting search exceeds its stored text byte budget";
|
|
1589
|
+
|
|
1590
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
1587
1591
|
var text2 = string();
|
|
1588
1592
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
1589
1593
|
var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
@@ -1654,6 +1658,8 @@ var meetingDetails = strictObject({
|
|
|
1654
1658
|
name: nullable(text2),
|
|
1655
1659
|
email: nullable(text2),
|
|
1656
1660
|
role: nullable(text2),
|
|
1661
|
+
/** Who they are across the owner's sources: `person:<uid>`, and that person's name once linked. */
|
|
1662
|
+
person: nullable(strictObject({ ref: text2, name: nullable(text2) })),
|
|
1657
1663
|
joined_at: nullable(isoTime),
|
|
1658
1664
|
left_at: nullable(isoTime),
|
|
1659
1665
|
duration_ms: nullable(count2)
|
|
@@ -1668,6 +1674,16 @@ var meetingDetails = strictObject({
|
|
|
1668
1674
|
mime: nullable(text2),
|
|
1669
1675
|
size: nullable(count2),
|
|
1670
1676
|
url: nullable(text2)
|
|
1677
|
+
})),
|
|
1678
|
+
/**
|
|
1679
|
+
* The Drive files the meeting service saved for it, by role. `document` is the stored document (`document:<id>`) once
|
|
1680
|
+
* a Drive profile has imported the file, else `null`: then `drive` can fetch it by `file_id`.
|
|
1681
|
+
*/
|
|
1682
|
+
documents: array(strictObject({
|
|
1683
|
+
file_id: text2,
|
|
1684
|
+
role: picklist(MEETING_DOCUMENT_ROLES),
|
|
1685
|
+
title: nullable(text2),
|
|
1686
|
+
document: nullable(reference)
|
|
1671
1687
|
}))
|
|
1672
1688
|
});
|
|
1673
1689
|
var meetingRef = /* @__PURE__ */ __name((accountId, meetingId) => formatMeetingReference({ type: "meeting", accountId, meetingId }), "meetingRef");
|
|
@@ -1715,6 +1731,7 @@ var meetingDetailsItem = /* @__PURE__ */ __name((details, owner) => {
|
|
|
1715
1731
|
name: one.displayName,
|
|
1716
1732
|
email: one.email,
|
|
1717
1733
|
role: one.role,
|
|
1734
|
+
person: one.person ? { ref: `person:${one.person.uid}`, name: one.person.name } : null,
|
|
1718
1735
|
joined_at: iso2(one.joinedAt),
|
|
1719
1736
|
left_at: iso2(one.leftAt),
|
|
1720
1737
|
duration_ms: one.durationMs
|
|
@@ -1744,6 +1761,12 @@ var meetingDetailsItem = /* @__PURE__ */ __name((details, owner) => {
|
|
|
1744
1761
|
mime: one.mime,
|
|
1745
1762
|
size: one.size,
|
|
1746
1763
|
url: one.url
|
|
1764
|
+
})),
|
|
1765
|
+
documents: (details.documents ?? []).map((one) => ({
|
|
1766
|
+
file_id: one.fileId,
|
|
1767
|
+
role: one.role,
|
|
1768
|
+
title: one.title,
|
|
1769
|
+
document: one.documentId === null ? null : `document:${one.documentId}`
|
|
1747
1770
|
}))
|
|
1748
1771
|
};
|
|
1749
1772
|
}, "meetingDetailsItem");
|
|
@@ -1818,7 +1841,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
1818
1841
|
};
|
|
1819
1842
|
}, "meetingHitsList");
|
|
1820
1843
|
|
|
1821
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1844
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
1822
1845
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
1823
1846
|
const parsed = urlOf(url);
|
|
1824
1847
|
if (!parsed)
|
|
@@ -1852,7 +1875,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
1852
1875
|
}
|
|
1853
1876
|
}, "urlOf");
|
|
1854
1877
|
|
|
1855
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
1856
1879
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
1857
1880
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
1858
1881
|
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");
|
|
@@ -1889,7 +1912,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
1889
1912
|
return kept;
|
|
1890
1913
|
}, "entryMetadata");
|
|
1891
1914
|
|
|
1892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1915
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
1893
1916
|
import { createHash } from "node:crypto";
|
|
1894
1917
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
1895
1918
|
reference: cue2.reference,
|
|
@@ -1903,7 +1926,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
1903
1926
|
text: cue2.text
|
|
1904
1927
|
})).digest("hex"), "meetingCueFingerprint");
|
|
1905
1928
|
|
|
1906
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
1907
1930
|
var EVENT_QUERY = defineQuery({
|
|
1908
1931
|
entity: "event",
|
|
1909
1932
|
backend: "sql",
|
|
@@ -1919,7 +1942,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
1919
1942
|
]
|
|
1920
1943
|
});
|
|
1921
1944
|
|
|
1922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1945
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
1923
1946
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
1924
1947
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
1925
1948
|
if (entry.recurrenceEndsAt !== null)
|
|
@@ -1942,8 +1965,8 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
1942
1965
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
1943
1966
|
}, "entryInWindow");
|
|
1944
1967
|
|
|
1945
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1946
|
-
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
|
|
1968
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
1969
|
+
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now(), { create = true } = {}) => {
|
|
1947
1970
|
const current = await store.meeting(details.meeting.id);
|
|
1948
1971
|
if (!current)
|
|
1949
1972
|
return null;
|
|
@@ -1961,6 +1984,8 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
1961
1984
|
return null;
|
|
1962
1985
|
}
|
|
1963
1986
|
let event2 = candidates[0];
|
|
1987
|
+
if (!event2 && !create)
|
|
1988
|
+
return null;
|
|
1964
1989
|
if (!event2) {
|
|
1965
1990
|
let eventSeriesId = series?.eventSeriesId ?? null;
|
|
1966
1991
|
if (series?.kind === "recurring" && eventSeriesId === null) {
|
|
@@ -1985,7 +2010,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
1985
2010
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
1986
2011
|
}, "linkEvent");
|
|
1987
2012
|
|
|
1988
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2013
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
1989
2014
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text6) => text6.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
1990
2015
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
1991
2016
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -2009,7 +2034,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
2009
2034
|
};
|
|
2010
2035
|
}, "validateMeetingParticipantSearch");
|
|
2011
2036
|
|
|
2012
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2037
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
2013
2038
|
var MeetingError = class extends CliError {
|
|
2014
2039
|
static {
|
|
2015
2040
|
__name(this, "MeetingError");
|
|
@@ -2141,7 +2166,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id4, accountId)
|
|
|
2141
2166
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
2142
2167
|
}, "meetingSummaryAnswer");
|
|
2143
2168
|
|
|
2144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
2145
2170
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
2146
2171
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
2147
2172
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -2237,10 +2262,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id4, options) => {
|
|
|
2237
2262
|
};
|
|
2238
2263
|
}, "exportMeeting");
|
|
2239
2264
|
|
|
2240
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2265
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
2241
2266
|
import { createHash as createHash2 } from "node:crypto";
|
|
2242
2267
|
|
|
2243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2268
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
2244
2269
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
2245
2270
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
2246
2271
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone, such as 2026-11-09T09:00:00Z`);
|
|
@@ -2251,7 +2276,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
2251
2276
|
return new Date(value).toISOString();
|
|
2252
2277
|
}, "meetingTimestamp");
|
|
2253
2278
|
|
|
2254
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
2255
2280
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
2256
2281
|
var invalid3 = /* @__PURE__ */ __name((message) => {
|
|
2257
2282
|
throw new CliError("validation_error", message);
|
|
@@ -2426,7 +2451,7 @@ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
|
|
|
2426
2451
|
var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
|
|
2427
2452
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
2428
2453
|
|
|
2429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2454
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
2430
2455
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
2431
2456
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
2432
2457
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -2437,7 +2462,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
2437
2462
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
2438
2463
|
var meetingFindingFingerprint = findingFingerprint;
|
|
2439
2464
|
|
|
2440
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2465
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
2441
2466
|
var context = {
|
|
2442
2467
|
command: "search meetings",
|
|
2443
2468
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -2547,7 +2572,7 @@ var liftMeetingFields = /* @__PURE__ */ __name((query, request, now, timezone) =
|
|
|
2547
2572
|
}, "liftMeetingFields");
|
|
2548
2573
|
var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
|
|
2549
2574
|
|
|
2550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2575
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/language.js
|
|
2551
2576
|
var LATIN_WORDS = {
|
|
2552
2577
|
en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
|
|
2553
2578
|
es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
|
|
@@ -2596,7 +2621,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
|
|
|
2596
2621
|
return null;
|
|
2597
2622
|
}, "transcriptLanguage");
|
|
2598
2623
|
|
|
2599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
2600
2625
|
var contentHash = /* @__PURE__ */ __name(async (text6) => {
|
|
2601
2626
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text6));
|
|
2602
2627
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -2633,7 +2658,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
2633
2658
|
return time2;
|
|
2634
2659
|
}, "timestamp");
|
|
2635
2660
|
|
|
2636
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
2637
2662
|
var TranscriptTextError = class extends Error {
|
|
2638
2663
|
static {
|
|
2639
2664
|
__name(this, "TranscriptTextError");
|
|
@@ -2688,7 +2713,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
2688
2713
|
return { header, lines };
|
|
2689
2714
|
}, "parseTranscriptText");
|
|
2690
2715
|
|
|
2691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2716
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
2692
2717
|
var VttError = class extends Error {
|
|
2693
2718
|
static {
|
|
2694
2719
|
__name(this, "VttError");
|
|
@@ -2740,7 +2765,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
2740
2765
|
return cues;
|
|
2741
2766
|
}, "parseVtt");
|
|
2742
2767
|
|
|
2743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2768
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
2744
2769
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
2745
2770
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2746
2771
|
for (const file of files) {
|
|
@@ -2773,10 +2798,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2773
2798
|
return report;
|
|
2774
2799
|
}, "importFiles");
|
|
2775
2800
|
|
|
2776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2801
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
2777
2802
|
var CHAT_MESSAGES_READ = 1e5;
|
|
2778
2803
|
|
|
2779
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2804
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
2780
2805
|
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
2781
2806
|
if (typeof value !== "string" || !value.trim())
|
|
2782
2807
|
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
@@ -2827,7 +2852,7 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
|
|
|
2827
2852
|
return Object.freeze(result);
|
|
2828
2853
|
}, "validateMeetingChange");
|
|
2829
2854
|
|
|
2830
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2855
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
2831
2856
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
2832
2857
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
2833
2858
|
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)))
|
|
@@ -2840,7 +2865,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
2840
2865
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
2841
2866
|
}, "validateMeetingPassage");
|
|
2842
2867
|
|
|
2843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
2844
2869
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
2845
2870
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2846
2871
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -2865,7 +2890,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
2865
2890
|
return { ...input, limit, maxReadBytes };
|
|
2866
2891
|
}, "validateMeetingPreparationContext");
|
|
2867
2892
|
|
|
2868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
2869
2894
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
2870
2895
|
var id = pipe(string(), minLength(1));
|
|
2871
2896
|
var meetingProjectEvidence = strictObject({
|
|
@@ -2986,7 +3011,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
2986
3011
|
};
|
|
2987
3012
|
}, "meetingProjectEvidenceAnswer");
|
|
2988
3013
|
|
|
2989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3014
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
2990
3015
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
2991
3016
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
2992
3017
|
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) || [
|
|
@@ -3006,7 +3031,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
3006
3031
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
3007
3032
|
}, "validateMeetingHitSearch");
|
|
3008
3033
|
|
|
3009
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3034
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
3010
3035
|
var ids = {
|
|
3011
3036
|
meeting_id: "meetingId",
|
|
3012
3037
|
identity_id: "participantIdentityId",
|
|
@@ -3097,7 +3122,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project2, request =
|
|
|
3097
3122
|
return { project: project2.trim(), options, query: frozen.join(" AND ") };
|
|
3098
3123
|
}, "prepareMeetingProjectEvidence");
|
|
3099
3124
|
|
|
3100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
3101
3126
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project2, request = {}, now = Date.now()) => {
|
|
3102
3127
|
const prepared = prepareMeetingProjectEvidence(project2, request, now);
|
|
3103
3128
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -3105,9 +3130,9 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project2, r
|
|
|
3105
3130
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
3106
3131
|
}, "readMeetingProjectEvidence");
|
|
3107
3132
|
|
|
3108
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3133
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
3109
3134
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
3110
|
-
const { identityExternalId, ...fields } = p;
|
|
3135
|
+
const { identityExternalId, phone, ...fields } = p;
|
|
3111
3136
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
3112
3137
|
return {
|
|
3113
3138
|
...fields,
|
|
@@ -3115,6 +3140,7 @@ var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, posit
|
|
|
3115
3140
|
provider,
|
|
3116
3141
|
externalId,
|
|
3117
3142
|
name: p.displayName,
|
|
3143
|
+
...phone?.trim() ? { phone } : {},
|
|
3118
3144
|
metadata: p.metadata,
|
|
3119
3145
|
associatePerson: Boolean(identityExternalId?.trim() || p.email?.trim() || p.externalId?.trim())
|
|
3120
3146
|
}
|
|
@@ -3139,6 +3165,19 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
|
3139
3165
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
3140
3166
|
let failed = false;
|
|
3141
3167
|
let firstFailed;
|
|
3168
|
+
const callers = /* @__PURE__ */ new Set();
|
|
3169
|
+
const linkCallers = /* @__PURE__ */ __name(async () => {
|
|
3170
|
+
if (callers.size === 0 || !store.linkCallers)
|
|
3171
|
+
return;
|
|
3172
|
+
try {
|
|
3173
|
+
await store.linkCallers(source.provider, [...callers]);
|
|
3174
|
+
} catch (error) {
|
|
3175
|
+
report.warnings.push({
|
|
3176
|
+
externalId: source.provider,
|
|
3177
|
+
message: `callers not linked to people: ${error instanceof Error ? error.message : "failed"}`
|
|
3178
|
+
});
|
|
3179
|
+
}
|
|
3180
|
+
}, "linkCallers");
|
|
3142
3181
|
const from = timestamp2(since) - lookbackMs;
|
|
3143
3182
|
const meetings = (await source.meetings(lookbackMs === 0 ? since : new Date(from).toISOString())).toSorted((a, b) => startOf(a) - startOf(b));
|
|
3144
3183
|
for (const [index, m] of meetings.entries()) {
|
|
@@ -3149,6 +3188,7 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
|
3149
3188
|
const reached = Math.min(startOf(m), firstFailed ?? Number.POSITIVE_INFINITY);
|
|
3150
3189
|
if (Number.isFinite(reached) && reached > timestamp2(since))
|
|
3151
3190
|
await store.setCursor(options.accountId, new Date(reached).toISOString(), now);
|
|
3191
|
+
await linkCallers();
|
|
3152
3192
|
return report;
|
|
3153
3193
|
}
|
|
3154
3194
|
const id4 = m.occurrence.id;
|
|
@@ -3182,6 +3222,8 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
|
3182
3222
|
const chat = await read("chat", () => source.chat(id4));
|
|
3183
3223
|
const summary = await read("summary", () => source.summary(id4));
|
|
3184
3224
|
const attachments = await read("files", () => source.files(id4));
|
|
3225
|
+
const listDocuments = source.documents?.bind(source);
|
|
3226
|
+
const documents = listDocuments ? await read("documents", () => listDocuments(id4)) : void 0;
|
|
3185
3227
|
const startedAt = timestamp2(m.occurrence.startedAt);
|
|
3186
3228
|
const endedAt = m.occurrence.endedAt === null ? null : timestamp2(m.occurrence.endedAt);
|
|
3187
3229
|
if (endedAt !== null && endedAt < startedAt)
|
|
@@ -3243,6 +3285,7 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
|
3243
3285
|
}
|
|
3244
3286
|
] : void 0,
|
|
3245
3287
|
attachments: attachments ?? void 0,
|
|
3288
|
+
documents: documents ?? void 0,
|
|
3246
3289
|
now
|
|
3247
3290
|
});
|
|
3248
3291
|
if (lines && !linked && !details.transcripts.some((t) => t.transcript.source === source.name && t.transcript.supersededAt === null))
|
|
@@ -3252,7 +3295,10 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
|
3252
3295
|
unlinked`, format)],
|
|
3253
3296
|
now
|
|
3254
3297
|
});
|
|
3255
|
-
await linkEvent(store, details, now);
|
|
3298
|
+
await linkEvent(store, details, now, { create: source.createsEvents !== false });
|
|
3299
|
+
for (const p of participants)
|
|
3300
|
+
if (p.identity.phone)
|
|
3301
|
+
callers.add(p.identity.externalId);
|
|
3256
3302
|
report.meetings++;
|
|
3257
3303
|
report.participants += participants.length;
|
|
3258
3304
|
report.transcriptRows += lines?.length ?? 0;
|
|
@@ -3262,12 +3308,13 @@ unlinked`, format)],
|
|
|
3262
3308
|
report.warnings.push({ externalId: id4, message: error instanceof Error ? error.message : "Meeting pull failed" });
|
|
3263
3309
|
}
|
|
3264
3310
|
}
|
|
3311
|
+
await linkCallers();
|
|
3265
3312
|
if (!failed)
|
|
3266
3313
|
await store.setCursor(options.accountId, new Date(now).toISOString(), now);
|
|
3267
3314
|
return report;
|
|
3268
3315
|
}, "pull");
|
|
3269
3316
|
|
|
3270
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3317
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
3271
3318
|
var text3 = string();
|
|
3272
3319
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
3273
3320
|
var id2 = pipe(number(), integer(), minValue(1));
|
|
@@ -3355,7 +3402,8 @@ var meetingParticipants = strictObject({
|
|
|
3355
3402
|
meeting_id: id2,
|
|
3356
3403
|
identity_id: id2,
|
|
3357
3404
|
display_name: nullable(text3),
|
|
3358
|
-
email: nullable(text3)
|
|
3405
|
+
email: nullable(text3),
|
|
3406
|
+
person: nullable(strictObject({ ref: text3, name: nullable(text3) }))
|
|
3359
3407
|
})),
|
|
3360
3408
|
/** Several identities on one page are observations, never speaker attribution or person links. */
|
|
3361
3409
|
ambiguity: strictObject({ scope: literal("page"), multiple_identities: boolean(), identity_ids: array(id2) }),
|
|
@@ -3461,10 +3509,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
3461
3509
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
3462
3510
|
}), "eventItem");
|
|
3463
3511
|
|
|
3464
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3512
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
3465
3513
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
3466
3514
|
|
|
3467
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
3468
3516
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
3469
3517
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
3470
3518
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -3494,7 +3542,7 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
3494
3542
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
3495
3543
|
}, "validateMeetingRelatedHistory");
|
|
3496
3544
|
|
|
3497
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
3498
3546
|
var text4 = string();
|
|
3499
3547
|
var identifier = pipe(text4, minLength(1));
|
|
3500
3548
|
var nullableText = nullable(text4);
|
|
@@ -3628,14 +3676,14 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
3628
3676
|
meeting_repair: repair
|
|
3629
3677
|
};
|
|
3630
3678
|
|
|
3631
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3679
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
3632
3680
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
3633
3681
|
|
|
3634
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3682
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
3635
3683
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
3636
3684
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
3637
3685
|
|
|
3638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3686
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
3639
3687
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
3640
3688
|
input.signal?.throwIfAborted();
|
|
3641
3689
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -3656,10 +3704,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
3656
3704
|
return { ...input, limit, maxReadBytes };
|
|
3657
3705
|
}, "validateMeetingSeriesHistory");
|
|
3658
3706
|
|
|
3659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3707
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
3660
3708
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
3661
3709
|
|
|
3662
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3710
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
3663
3711
|
function invalid4(field, response = false) {
|
|
3664
3712
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
3665
3713
|
}
|
|
@@ -3688,7 +3736,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
3688
3736
|
cursorDetails(value);
|
|
3689
3737
|
}, "validateMeetingSeriesInventoryCursor");
|
|
3690
3738
|
|
|
3691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3739
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
3692
3740
|
var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
|
|
3693
3741
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
3694
3742
|
const zone = timeZone ?? "UTC";
|
|
@@ -3823,17 +3871,14 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
3823
3871
|
};
|
|
3824
3872
|
}, "aggregateMeetingStats");
|
|
3825
3873
|
|
|
3826
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3827
|
-
var READ_BUDGET_EXCEEDED = "Meeting search exceeds its stored text byte budget";
|
|
3828
|
-
|
|
3829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/store/source-review.js
|
|
3874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/store/source-review.js
|
|
3830
3875
|
var SOURCE_REVIEW_KIND = "memory_source_review";
|
|
3831
3876
|
var SOURCE_REVIEW_CAUSES = ["changed", "outdated", "deleted", "contradicted"];
|
|
3832
3877
|
var ERASED_TEXT = "[source erased]";
|
|
3833
3878
|
var severity = /* @__PURE__ */ __name((cause) => SOURCE_REVIEW_CAUSES.indexOf(cause), "severity");
|
|
3834
3879
|
var graver = /* @__PURE__ */ __name((a, b) => severity(b) > severity(a) ? b : a, "graver");
|
|
3835
3880
|
|
|
3836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3881
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
3837
3882
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
3838
3883
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
3839
3884
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -3848,7 +3893,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
3848
3893
|
}
|
|
3849
3894
|
__name(closeTask, "closeTask");
|
|
3850
3895
|
|
|
3851
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
3852
3897
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
3853
3898
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
3854
3899
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -3877,7 +3922,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
3877
3922
|
}, "priorityOf");
|
|
3878
3923
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
3879
3924
|
|
|
3880
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
3881
3926
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
3882
3927
|
async function find(id4) {
|
|
3883
3928
|
const task = await store.get(id4);
|
|
@@ -3937,13 +3982,13 @@ function median(values) {
|
|
|
3937
3982
|
}
|
|
3938
3983
|
__name(median, "median");
|
|
3939
3984
|
|
|
3940
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
3941
3986
|
function matches2(task, filter) {
|
|
3942
3987
|
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);
|
|
3943
3988
|
}
|
|
3944
3989
|
__name(matches2, "matches");
|
|
3945
3990
|
|
|
3946
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
3947
3992
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
3948
3993
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
3949
3994
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
@@ -3951,7 +3996,7 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
3951
3996
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
3952
3997
|
var TASK_TYPES2 = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
3953
3998
|
|
|
3954
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
3955
4000
|
var text5 = string();
|
|
3956
4001
|
var id3 = pipe(string(), minLength(1));
|
|
3957
4002
|
var time = isoTime;
|
|
@@ -3976,7 +4021,7 @@ var author = strictObject({
|
|
|
3976
4021
|
name: nullable(text5)
|
|
3977
4022
|
});
|
|
3978
4023
|
|
|
3979
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4024
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
3980
4025
|
var organization = strictObject({
|
|
3981
4026
|
id: id3,
|
|
3982
4027
|
ref: reference,
|
|
@@ -4006,7 +4051,7 @@ var reminder = strictObject({
|
|
|
4006
4051
|
receipt: nullable(text5)
|
|
4007
4052
|
});
|
|
4008
4053
|
|
|
4009
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4054
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/domain/money.js
|
|
4010
4055
|
var CURRENCY_SCALES = {
|
|
4011
4056
|
AED: 2,
|
|
4012
4057
|
AMD: 2,
|
|
@@ -4100,7 +4145,7 @@ var quantityOf = /* @__PURE__ */ __name((text6) => {
|
|
|
4100
4145
|
}, "quantityOf");
|
|
4101
4146
|
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
4102
4147
|
|
|
4103
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4148
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/domain/finance.js
|
|
4104
4149
|
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
4105
4150
|
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
4106
4151
|
var MONEY_DIRECTIONS = ["in", "out"];
|
|
@@ -4129,7 +4174,7 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
|
4129
4174
|
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
4130
4175
|
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
4131
4176
|
|
|
4132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4177
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/domain/business.js
|
|
4133
4178
|
var CATALOG_KINDS = ["product", "service"];
|
|
4134
4179
|
var BUSINESS_KINDS = ["invoice", "payment", "order", "contract", "subscription", "product", "wallet"];
|
|
4135
4180
|
var CONTRACT_KINDS = ["sale", "purchase", "service", "lease", "employment", "nda", "license", "other"];
|
|
@@ -4157,7 +4202,7 @@ var subscriptionLine = /* @__PURE__ */ __name((subscription) => `${subscription.
|
|
|
4157
4202
|
var walletLine = /* @__PURE__ */ __name((wallet) => `${wallet.name} \xB7 ${wallet.kind}, ${wallet.currency}${wallet.numberHint === null ? "" : `, \u2026${wallet.numberHint}`}` + notes(wallet.closed ? "closed" : null), "walletLine");
|
|
4158
4203
|
var transactionLine = /* @__PURE__ */ __name((transaction) => `${moneyLabel(transaction.amount, transaction.currency)} ${transaction.direction}${transaction.label === null ? "" : ` \xB7 ${transaction.label}`}, ${dayMonth(transaction.date)}` + notes(transaction.status === "pending" ? "pending" : null, pending(transaction.review)), "transactionLine");
|
|
4159
4204
|
|
|
4160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4205
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/store/marks.js
|
|
4161
4206
|
import { readFileSync as readFileSync2, rmSync as rmSync2, statSync as statSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
4162
4207
|
var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
|
|
4163
4208
|
var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
|
|
@@ -4278,7 +4323,7 @@ var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, sch
|
|
|
4278
4323
|
return { previous, cleared };
|
|
4279
4324
|
}, "recordDeepCheck");
|
|
4280
4325
|
|
|
4281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4326
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/domain/deals.js
|
|
4282
4327
|
var DEAL_KINDS = ["deal", "lead"];
|
|
4283
4328
|
var DEAL_STATUSES = ["open", "won", "lost"];
|
|
4284
4329
|
var STAGE_OUTCOMES = DEAL_STATUSES;
|
|
@@ -4288,7 +4333,7 @@ var dealLine = /* @__PURE__ */ __name((deal) => {
|
|
|
4288
4333
|
return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
|
|
4289
4334
|
}, "dealLine");
|
|
4290
4335
|
|
|
4291
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4336
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/domain/orders.js
|
|
4292
4337
|
var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
|
|
4293
4338
|
var ORDER_PURPOSES = ["personal", "business", "client", "other"];
|
|
4294
4339
|
var orderLine = /* @__PURE__ */ __name((order) => {
|
|
@@ -4299,7 +4344,7 @@ var orderLine = /* @__PURE__ */ __name((order) => {
|
|
|
4299
4344
|
}, "orderLine");
|
|
4300
4345
|
var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
|
|
4301
4346
|
|
|
4302
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4347
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/domain/relations.js
|
|
4303
4348
|
var ORGANIZATION_ROLES = [
|
|
4304
4349
|
"employee",
|
|
4305
4350
|
"contractor",
|
|
@@ -4402,7 +4447,7 @@ var KEYED = "kind IN ('member-of', 'related-to', 'reports-to', 'customer-of', 'p
|
|
|
4402
4447
|
var notOverriddenSql = /* @__PURE__ */ __name((alias) => `NOT EXISTS (SELECT 1 FROM links override WHERE ${KEYED} AND override.kind = ${alias}.kind AND override.from_type = ${alias}.from_type AND override.from_id = ${alias}.from_id AND override.to_type = ${alias}.to_type AND override.to_id = ${alias}.to_id AND json_extract(override.metadata, '$.overrides') = ${alias}.id)`, "notOverriddenSql");
|
|
4403
4448
|
var usableLinkSql = /* @__PURE__ */ __name((alias, now) => `(${alias}.confirmed = 1 OR (${alias}.account_id IS NOT NULL AND ${alias}.deleted_at IS NULL))` + (now === void 0 ? "" : ` AND (${alias}.ends_at IS NULL OR ${alias}.ends_at > ${Math.trunc(now)})`), "usableLinkSql");
|
|
4404
4449
|
|
|
4405
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4450
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/domain/crm.js
|
|
4406
4451
|
var CRM_ACTIVITY_KINDS = ["call", "email", "meeting", "todo", "task", "comment", "other"];
|
|
4407
4452
|
var isCrmUserId = /* @__PURE__ */ __name((id4) => /^\d{1,20}$/.test(id4), "isCrmUserId");
|
|
4408
4453
|
var normalCrmUserId = /* @__PURE__ */ __name((id4) => {
|
|
@@ -4411,7 +4456,7 @@ var normalCrmUserId = /* @__PURE__ */ __name((id4) => {
|
|
|
4411
4456
|
}, "normalCrmUserId");
|
|
4412
4457
|
var isItemKind = /* @__PURE__ */ __name((kind2) => kind2 === "deal" || kind2 === "lead", "isItemKind");
|
|
4413
4458
|
|
|
4414
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
4415
4460
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
4416
4461
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
4417
4462
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -4425,7 +4470,7 @@ var normalizeTag = /* @__PURE__ */ __name((value) => {
|
|
|
4425
4470
|
return tag;
|
|
4426
4471
|
}, "normalizeTag");
|
|
4427
4472
|
|
|
4428
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
|
|
4429
4474
|
var REPORTER_SQL = "(SELECT provider || ':' || external_id FROM accounts r WHERE r.id = links.account_id) AS reporter";
|
|
4430
4475
|
var sourceOf = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
4431
4476
|
const reporter = row.account_id == null ? void 0 : "reporter" in row ? row.reporter : database.prepare("SELECT provider || ':' || external_id AS key FROM accounts WHERE id = ?").get(Number(row.account_id))?.key;
|
|
@@ -4435,7 +4480,7 @@ var sourceOf = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
|
4435
4480
|
};
|
|
4436
4481
|
}, "sourceOf");
|
|
4437
4482
|
|
|
4438
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4483
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
4439
4484
|
var LINK_KINDS = [
|
|
4440
4485
|
"links-to",
|
|
4441
4486
|
"blocked-by",
|
|
@@ -4455,11 +4500,11 @@ var LINK_KINDS = [
|
|
|
4455
4500
|
"attached"
|
|
4456
4501
|
];
|
|
4457
4502
|
var LINK_ORIGINS = ["file", "owner", "suggested", "message"];
|
|
4458
|
-
var LINK_SOURCES = [...LINK_ORIGINS, "calendar"];
|
|
4503
|
+
var LINK_SOURCES = [...LINK_ORIGINS, "calendar", "meeting"];
|
|
4459
4504
|
var linkKind = /* @__PURE__ */ __name((kind2) => `'${kind2}'`, "linkKind");
|
|
4460
4505
|
var COUNTERPART_ROLE = "counterpart";
|
|
4461
4506
|
|
|
4462
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4507
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
4463
4508
|
var SCHEME = "msg:";
|
|
4464
4509
|
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
|
|
4465
4510
|
var isLocator = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith(SCHEME), "isLocator");
|
|
@@ -4473,7 +4518,7 @@ var parseLocator = /* @__PURE__ */ __name((reference2) => {
|
|
|
4473
4518
|
return { provider, account, chat, message };
|
|
4474
4519
|
}, "parseLocator");
|
|
4475
4520
|
|
|
4476
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4521
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
4477
4522
|
var SIMPLE_REFERENCES = [
|
|
4478
4523
|
"note",
|
|
4479
4524
|
"document",
|
|
@@ -4629,7 +4674,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text6) => {
|
|
|
4629
4674
|
return match !== null && byPrefix.has(match[1]);
|
|
4630
4675
|
}, "looksLikeReference");
|
|
4631
4676
|
|
|
4632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/domain/providers.js
|
|
4633
4678
|
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm"];
|
|
4634
4679
|
var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
|
|
4635
4680
|
var PROVIDERS = [
|
|
@@ -4645,8 +4690,13 @@ var PROVIDERS = [
|
|
|
4645
4690
|
{ name: "obsidian", kind: "notes", aliases: [] },
|
|
4646
4691
|
{ name: "added", kind: "notes", aliases: [] },
|
|
4647
4692
|
{ name: "zoom", kind: "meetings", aliases: [] },
|
|
4693
|
+
{ name: "google-meet", kind: "meetings", aliases: [], command: "meet" },
|
|
4694
|
+
// Its meetings come from the notes Telemost mails (`keeper@telemost.yandex.ru`), read by a mail rule.
|
|
4695
|
+
{ name: "telemost", kind: "meetings", aliases: [] },
|
|
4648
4696
|
// A phone export's records: its SMS and its calls in the one account the import names.
|
|
4649
|
-
{ name: "phone", kind: "messages", kinds: ["messages", "events"], aliases: [], imported: true }
|
|
4697
|
+
{ name: "phone", kind: "messages", kinds: ["messages", "events"], aliases: [], imported: true },
|
|
4698
|
+
// Any other import: a folder of notes, a CRM's export, a script's records, under `import:<what it is>`.
|
|
4699
|
+
{ name: "import", kind: "documents", kinds: ["documents", "messages", "events"], aliases: [], imported: true }
|
|
4650
4700
|
];
|
|
4651
4701
|
var LABELS = {
|
|
4652
4702
|
telegram: "Telegram",
|
|
@@ -4656,8 +4706,10 @@ var LABELS = {
|
|
|
4656
4706
|
whatsapp: "WhatsApp",
|
|
4657
4707
|
"whatsapp-bot": "WhatsApp bot",
|
|
4658
4708
|
"google-drive": "Google Drive",
|
|
4709
|
+
"google-meet": "Google Meet",
|
|
4659
4710
|
added: "added by hand",
|
|
4660
|
-
email: "mail"
|
|
4711
|
+
email: "mail",
|
|
4712
|
+
telemost: "Telemost"
|
|
4661
4713
|
};
|
|
4662
4714
|
var providerLabel = /* @__PURE__ */ __name((provider) => LABELS[provider] ?? provider, "providerLabel");
|
|
4663
4715
|
var FOLDER_PROVIDERS = ["local", "obsidian", "folder"];
|
|
@@ -4772,7 +4824,9 @@ var kindsIn = /* @__PURE__ */ __name((provider) => {
|
|
|
4772
4824
|
if (isFolderProvider(provider))
|
|
4773
4825
|
return ["notes"];
|
|
4774
4826
|
const entry = registry.find(({ name }) => name === provider);
|
|
4775
|
-
|
|
4827
|
+
if (!entry)
|
|
4828
|
+
return [];
|
|
4829
|
+
return entry.imported ? unitedKinds(kindsOfEntry(entry), ["documents"]) : kindsOfEntry(entry);
|
|
4776
4830
|
}, "kindsIn");
|
|
4777
4831
|
var importedOf = /* @__PURE__ */ __name((entry, held) => {
|
|
4778
4832
|
const builtIn = PROVIDERS.find(({ name }) => name === entry.name);
|
|
@@ -4792,7 +4846,7 @@ var holdsKind = /* @__PURE__ */ __name((provider, kind2) => kindsIn(provider).in
|
|
|
4792
4846
|
var holdsKindOf = /* @__PURE__ */ __name((provider, kind2) => kindIn(provider) === void 0 ? kind2 === "messages" : holdsKind(provider, kind2), "holdsKindOf");
|
|
4793
4847
|
var kindOf2 = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
|
|
4794
4848
|
|
|
4795
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4849
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
4796
4850
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
4797
4851
|
var inSource = /* @__PURE__ */ __name((source, provider) => source === "all" || source === "bots" && isBotProvider(provider) || source === "personal" && !isBotProvider(provider) || source === provider || providerNamed(source)?.name === provider || isKind(source) && holdsKindOf(provider, source), "inSource");
|
|
4798
4852
|
var fail = /* @__PURE__ */ __name((message) => {
|
|
@@ -4815,7 +4869,7 @@ var sourceOf2 = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
4815
4869
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
4816
4870
|
}, "sourceOf");
|
|
4817
4871
|
|
|
4818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
4819
4873
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
4820
4874
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
4821
4875
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
@@ -5025,7 +5079,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds, what, reasonOf = (kind2) =
|
|
|
5025
5079
|
return { accounts: [...chosen.values()], skipped };
|
|
5026
5080
|
}, "fitting");
|
|
5027
5081
|
|
|
5028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5082
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/domain/categories.js
|
|
5029
5083
|
var CATEGORIES = ["client", "supplier", "partner", "employer"];
|
|
5030
5084
|
|
|
5031
5085
|
export {
|
|
@@ -5082,6 +5136,8 @@ export {
|
|
|
5082
5136
|
canonicalMeetingReference,
|
|
5083
5137
|
meeting,
|
|
5084
5138
|
MEETING_QUERY,
|
|
5139
|
+
MEETING_DOCUMENT_ROLES,
|
|
5140
|
+
READ_BUDGET_EXCEEDED,
|
|
5085
5141
|
meetingHit,
|
|
5086
5142
|
meetingTranscript,
|
|
5087
5143
|
meetingSummary,
|
|
@@ -5159,7 +5215,6 @@ export {
|
|
|
5159
5215
|
validateMeetingSeriesInventoryCursor,
|
|
5160
5216
|
aggregateMeetingCounts,
|
|
5161
5217
|
aggregateMeetingStats,
|
|
5162
|
-
READ_BUDGET_EXCEEDED,
|
|
5163
5218
|
SOURCE_REVIEW_KIND,
|
|
5164
5219
|
SOURCE_REVIEW_CAUSES,
|
|
5165
5220
|
ERASED_TEXT,
|