@wirecat/tg-cli 0.113.0 → 0.115.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/tg.js +6 -2
- package/dist/bin/tg.js.map +1 -1
- package/dist/bundle/{adapter-EQKEFGPB.js → adapter-ODK7R4LY.js} +56 -53
- package/dist/bundle/{all-profiles-TTBFF663.js → all-profiles-AQYM65BS.js} +9 -8
- package/dist/bundle/{anthropic-XPZS7267.js → anthropic-VBDSVNIM.js} +6 -5
- package/dist/bundle/{app-server-ZSZ7KRAY.js → app-server-YOIHLBNS.js} +47 -43
- package/dist/bundle/{bot-api-X7BOVNIO.js → bot-api-TRYLGQKK.js} +51 -47
- package/dist/bundle/{bot-history-DWIUIPN5.js → bot-history-7DTJLBBJ.js} +18 -16
- package/dist/bundle/{bun-ZGZVAJU2.js → bun-XIMM6EHD.js} +2 -2
- package/dist/bundle/{bun-sqlite-UN2UJ6SI.js → bun-sqlite-6B3BL5IV.js} +5 -4
- package/dist/bundle/{chunk-K3F46QVN.js → chunk-2TC76TLJ.js} +4 -4
- package/dist/bundle/{chunk-JRTZ5I6M.js → chunk-5ROWSRK7.js} +2 -2
- package/dist/bundle/{chunk-PHYDBR5M.js → chunk-63YKD7YA.js} +2 -2
- package/dist/bundle/{chunk-PCRLXJRH.js → chunk-77M3IAVU.js} +193 -129
- package/dist/bundle/{chunk-VDATXIO4.js → chunk-A4BQGSKI.js} +9 -9
- package/dist/bundle/{chunk-HO53POQG.js → chunk-AICS3TSF.js} +8 -41
- package/dist/bundle/{chunk-AVUIWZTP.js → chunk-AVWPMJ6E.js} +2 -2
- package/dist/bundle/{chunk-G74QMORP.js → chunk-BEQPZA3S.js} +2 -2
- package/dist/bundle/{chunk-JO45BOYE.js → chunk-BIEBJLYO.js} +8 -3
- package/dist/bundle/{chunk-J6USEBA6.js → chunk-BPPRR7TV.js} +2200 -945
- package/dist/bundle/chunk-CCHHEMPM.js +71 -0
- package/dist/bundle/{chunk-T4TTRFP5.js → chunk-CNO3R4O4.js} +10 -8
- package/dist/bundle/{chunk-IDUYRTPF.js → chunk-D4E345BC.js} +2 -2
- package/dist/bundle/{chunk-OYNSFQ7K.js → chunk-D72URWJE.js} +1 -39
- package/dist/bundle/{chunk-T5RM4Y35.js → chunk-DIABP7ZP.js} +3 -3
- package/dist/bundle/chunk-EW3XTUPB.js +166 -0
- package/dist/bundle/{chunk-KOWQVHXI.js → chunk-GCFU6WBE.js} +3 -3
- package/dist/bundle/{chunk-6WJ5M2Q4.js → chunk-GWDMKEDY.js} +4 -4
- package/dist/bundle/{chunk-TQ6EA7TB.js → chunk-GX4DMI4H.js} +17 -16
- package/dist/bundle/{chunk-KK3JVOOV.js → chunk-HZKWB6WS.js} +36 -35
- package/dist/bundle/chunk-ILHTNOIV.js +23 -0
- package/dist/bundle/{chunk-JDQSX2JQ.js → chunk-IUDIRZVU.js} +8443 -7398
- package/dist/bundle/{chunk-TUD4MU7S.js → chunk-JZXQZW2D.js} +2 -2
- package/dist/bundle/{chunk-Q264PYGE.js → chunk-KDOBY524.js} +55 -20
- package/dist/bundle/{chunk-OQR442B6.js → chunk-KIZT2MI6.js} +1 -1
- package/dist/bundle/chunk-L4CMCC3V.js +34 -0
- package/dist/bundle/{chunk-IYKRHDX6.js → chunk-LUIPXRKN.js} +188 -57
- package/dist/bundle/{chunk-GX4LRLVD.js → chunk-M7B5IMH3.js} +5103 -937
- package/dist/bundle/{chunk-4GLMEES6.js → chunk-MUZ4KYGY.js} +4 -2
- package/dist/bundle/{chunk-KQ23JWLJ.js → chunk-NTW5ZE47.js} +164 -276
- package/dist/bundle/{chunk-UIVLDKWT.js → chunk-O7CBGHI7.js} +1 -1
- package/dist/bundle/{chunk-KVLCIZUK.js → chunk-OMP6ALBT.js} +3 -3
- package/dist/bundle/{chunk-VVA4555T.js → chunk-OSP335AJ.js} +8 -8
- package/dist/bundle/{chunk-EGR5IJCG.js → chunk-OUX3QMYI.js} +39 -31
- package/dist/bundle/{chunk-VDEXNNMH.js → chunk-PEJHI7QO.js} +6 -4
- package/dist/bundle/{chunk-6F6K3LWV.js → chunk-PEKTB3FQ.js} +18 -15
- package/dist/bundle/{chunk-Z6TRIW2O.js → chunk-POKTQZOM.js} +11 -9
- package/dist/bundle/chunk-PQLBPYJR.js +46 -0
- package/dist/bundle/{chunk-BI5YJZJB.js → chunk-PZAEI4NM.js} +115 -29
- package/dist/bundle/{chunk-HNN7EKIM.js → chunk-QK6VLKG5.js} +338 -169
- package/dist/bundle/{chunk-5NF7M4MN.js → chunk-RFRI2HFT.js} +1 -1
- package/dist/bundle/{chunk-OC4RRFKH.js → chunk-RHUNMU4Q.js} +6 -6
- package/dist/bundle/{chunk-PHPNA2HU.js → chunk-TMATSEP5.js} +14 -12
- package/dist/bundle/{chunk-JW7BMJ6O.js → chunk-TQYMLXDS.js} +5 -3
- package/dist/bundle/{chunk-MTX5EDYJ.js → chunk-U67TSAAO.js} +1136 -535
- package/dist/bundle/{chunk-7IWDS2CM.js → chunk-UBQ3LOF6.js} +4 -4
- package/dist/bundle/{chunk-UE75KPAC.js → chunk-UY7GJRGY.js} +4 -4
- package/dist/bundle/{chunk-OSBAISA5.js → chunk-VQCWVZWG.js} +8 -13
- package/dist/bundle/{chunk-XZ2ZHIAO.js → chunk-VVKEWWSO.js} +1 -1
- package/dist/bundle/{chunk-ENXO43TV.js → chunk-WDNNN3J4.js} +8 -8
- package/dist/bundle/{chunk-AGUCXSSM.js → chunk-WINKEV4F.js} +7 -20
- package/dist/bundle/{chunk-XXNJF3ZM.js → chunk-WMG4IGEB.js} +75 -33
- package/dist/bundle/{chunk-6OKGHHRL.js → chunk-WMRFAK5B.js} +35 -35
- package/dist/bundle/{chunk-4SQB5VKL.js → chunk-WOQGUIXE.js} +1 -1
- package/dist/bundle/{chunk-U3MJQLZQ.js → chunk-XIYRHIBK.js} +13 -13
- package/dist/bundle/{chunk-ZID2Y4XU.js → chunk-XY7IGVVS.js} +2 -2
- package/dist/bundle/{chunk-3MAYYFKY.js → chunk-Y3AQHPAJ.js} +1 -1
- package/dist/bundle/{chunk-WSAHUQ6K.js → chunk-YCUQKFGD.js} +3 -3
- package/dist/bundle/command-contract-YF4KGFXC.js +32 -0
- package/dist/bundle/{decode-AMQVTEMW.js → decode-2GATBZGH.js} +7 -6
- package/dist/bundle/dispatch-MJMW7WDH.js +411 -0
- package/dist/bundle/{echarts-ECYONFQJ.js → echarts-GKEZEAL7.js} +2 -2
- package/dist/bundle/{embed-VZYBZEWI.js → embed-TBQPLA4Y.js} +6 -5
- package/dist/bundle/{embedder-GSWBGHRK.js → embedder-B5DTNCRO.js} +11 -10
- package/dist/bundle/entry-A6DEW2TD.js +18 -0
- package/dist/bundle/failure-TLF3SISS.js +24 -0
- package/dist/bundle/first-run-3N5AABEY.js +27 -0
- package/dist/bundle/first-screen-HANARM67.js +30 -0
- package/dist/bundle/{instructions-AXLQQS3G.js → instructions-P5E34PQR.js} +1 -1
- package/dist/bundle/{mcp-VVMPUDSL.js → mcp-MNI62HHE.js} +5 -3
- package/dist/bundle/{node-7JHC5K77.js → node-GKPRXS5Y.js} +2 -2
- package/dist/bundle/{node-sqlite-LYJEK46T.js → node-sqlite-GIDPALK3.js} +11 -4
- package/dist/bundle/{oauth-BROPKI3K.js → oauth-C57W4IMD.js} +7 -6
- package/dist/bundle/{open-C6XQ46JK.js → open-E6Q4WRPU.js} +5 -3
- package/dist/bundle/{openai-VWSU7ZDD.js → openai-5WMXY2KP.js} +15 -14
- package/dist/bundle/{process-QKEFL5HL.js → process-U2P5Z6UF.js} +1 -1
- package/dist/bundle/{program-ACY7O33O.js → program-FEUDU6GF.js} +62 -57
- package/dist/bundle/{prompt-EGULVW2F.js → prompt-4NGAZGHE.js} +5 -4
- package/dist/bundle/{proxy-transport-KIMADLQ2.js → proxy-transport-MGCJ7JAW.js} +5 -4
- package/dist/bundle/{recognize-UMTKLWVR.js → recognize-EUHRBA7V.js} +4 -3
- package/dist/bundle/{remote-DABI7PSQ.js → remote-3JHLB2FV.js} +7 -6
- package/dist/bundle/{rerank-ZFATWWBE.js → rerank-ZZ45SZPC.js} +7 -6
- package/dist/bundle/{serve-B7YYCMGN.js → serve-XOGX5FC5.js} +12 -10
- package/dist/bundle/server-DRE5MJ76.js +59 -0
- package/dist/bundle/{server-DGKZISZH.js → server-I6O72XP5.js} +36 -34
- package/dist/bundle/{state-AQ2PABA5.js → state-BIUYTGH6.js} +6 -5
- package/dist/bundle/{store-46GJTFLJ.js → store-FOJFYOMR.js} +12 -10
- package/dist/bundle/store-maintenance-command-YKV2C34N.js +49 -0
- package/dist/bundle/tg.js +159 -14
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +6 -4
- package/dist/commands/context.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +5 -0
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -4
- package/skills/tg-cli/SKILL.md +2 -0
- package/dist/bundle/chunk-452UZ2PU.js +0 -3603
- package/dist/bundle/command-contract-GV67H22L.js +0 -32
- package/dist/bundle/entry-LALZILY4.js +0 -14
- package/dist/bundle/first-run-LEAI623Q.js +0 -24
- package/dist/bundle/first-screen-MOCVLE23.js +0 -30
- package/dist/bundle/identity-54HA5GN6.js +0 -11
- package/dist/bundle/server-UC7UWUIS.js +0 -56
- package/dist/bundle/store-maintenance-command-FCFKHGRM.js +0 -45
- /package/dist/bundle/{chunk-HPXYN7F3.js → chunk-NUN6OGOV.js} +0 -0
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
singleLine,
|
|
5
|
-
visibleControls
|
|
6
|
-
} from "./chunk-KQ23JWLJ.js";
|
|
7
|
-
import {
|
|
8
|
-
CliError,
|
|
9
4
|
RegistryError,
|
|
10
5
|
SNAKE_CASE,
|
|
11
6
|
STEPS,
|
|
@@ -15,7 +10,6 @@ import {
|
|
|
15
10
|
defineSteps,
|
|
16
11
|
duplicates,
|
|
17
12
|
integer,
|
|
18
|
-
isCliError,
|
|
19
13
|
isoTime,
|
|
20
14
|
lazy,
|
|
21
15
|
literal,
|
|
@@ -36,26 +30,18 @@ import {
|
|
|
36
30
|
string,
|
|
37
31
|
union,
|
|
38
32
|
variant
|
|
39
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-77M3IAVU.js";
|
|
34
|
+
import {
|
|
35
|
+
CliError,
|
|
36
|
+
isCliError,
|
|
37
|
+
singleLine,
|
|
38
|
+
visibleControls
|
|
39
|
+
} from "./chunk-CCHHEMPM.js";
|
|
40
40
|
import {
|
|
41
41
|
__name
|
|
42
42
|
} from "./chunk-ZVVMGPBJ.js";
|
|
43
43
|
|
|
44
|
-
// node_modules/.pnpm/@wirecat+cli-
|
|
45
|
-
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
46
|
-
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
47
|
-
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
48
|
-
const tag = value.trim().toLowerCase();
|
|
49
|
-
return TAG.test(tag) ? tag : void 0;
|
|
50
|
-
}, "tagOf");
|
|
51
|
-
var normalizeTag = /* @__PURE__ */ __name((value) => {
|
|
52
|
-
const tag = tagOf(value);
|
|
53
|
-
if (tag === void 0)
|
|
54
|
-
throw new CliError("validation_error", `"${singleLine(value)}" is not a tag \u2014 use 1\u201332 letters a\u2013z, digits and hyphens`, { reason: "tag.invalid" });
|
|
55
|
-
return tag;
|
|
56
|
-
}, "normalizeTag");
|
|
57
|
-
|
|
58
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.73.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
|
|
44
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.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
|
|
59
45
|
var QUERY_LIMITS = {
|
|
60
46
|
bytes: 8192,
|
|
61
47
|
depth: 32,
|
|
@@ -99,7 +85,7 @@ function queryError(reason, span, alternative, context3 = {}, details = {}) {
|
|
|
99
85
|
__name(queryError, "queryError");
|
|
100
86
|
var walkQuery = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => walkQuery(node2)), "walkQuery");
|
|
101
87
|
|
|
102
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
88
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.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
|
|
103
89
|
var timezoneOf = /* @__PURE__ */ __name((given) => {
|
|
104
90
|
const zone = given ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? "UTC";
|
|
105
91
|
try {
|
|
@@ -244,7 +230,7 @@ var dateRange = /* @__PURE__ */ __name((lower, upper, lowerInclusive, upperInclu
|
|
|
244
230
|
};
|
|
245
231
|
}, "dateRange");
|
|
246
232
|
|
|
247
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
233
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.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
|
|
248
234
|
var FIELD_TYPES = ["kw", "txt", "enum", "num", "time", "bool", "ref"];
|
|
249
235
|
var OPERATORS_BY_TYPE = {
|
|
250
236
|
kw: ["term", "phrase", "wildcard"],
|
|
@@ -323,10 +309,22 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
|
|
|
323
309
|
return [...own, ...relations, ...states];
|
|
324
310
|
}, "queryFieldsOf");
|
|
325
311
|
|
|
326
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
312
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.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
|
|
327
313
|
var QUERY_SYNTAX = 'field:value \xB7 "a phrase" \xB7 word* \xB7 AND OR NOT \xB7 ( ) \xB7 [a TO b] \xB7 > >= < <=';
|
|
328
314
|
var shownOf = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "shownOf");
|
|
329
315
|
var leftOut = /* @__PURE__ */ __name((fields2) => fields2.filter((field) => field.negatable).map((field) => field.name), "leftOut");
|
|
316
|
+
var has = /* @__PURE__ */ __name((fields2, operator) => fields2.some((field) => field.operators.includes(operator)), "has");
|
|
317
|
+
var syntaxOf = /* @__PURE__ */ __name((shown, backend) => {
|
|
318
|
+
if (backend !== "native")
|
|
319
|
+
return QUERY_SYNTAX;
|
|
320
|
+
return [
|
|
321
|
+
"field:value",
|
|
322
|
+
...has(shown, "phrase") ? ['"a phrase"'] : [],
|
|
323
|
+
...has(shown, "wildcard") ? ["word*"] : [],
|
|
324
|
+
"terms joined by AND",
|
|
325
|
+
...has(shown, "range") ? ["[a TO b] \xB7 > >= < <="] : []
|
|
326
|
+
].join(" \xB7 ");
|
|
327
|
+
}, "syntaxOf");
|
|
330
328
|
var kindOf = /* @__PURE__ */ __name((field) => field.values ? `${field.type}: ${field.values.join("|")}` : `${field.type}: ${field.operators.join(", ")}`, "kindOf");
|
|
331
329
|
var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
|
|
332
330
|
const shown = shownOf(registry);
|
|
@@ -338,7 +336,7 @@ var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
|
|
|
338
336
|
...rows.map(([name = "", kind = "", example = ""]) => ` ${name.padEnd(widths[0] ?? 0)} ${kind.padEnd(widths[1] ?? 0)} ${example}`.trimEnd()),
|
|
339
337
|
...registry.defaults && registry.defaults.length > 0 ? [`Defaults: ${registry.defaults.join(" ")} \u2014 name the field to change it`] : [],
|
|
340
338
|
...negatable.length > 0 ? [`Leave out: -${negatable[0]}:value or NOT ${negatable[0]}:value, for ${negatable.join(", ")}`] : [],
|
|
341
|
-
`Syntax: ${
|
|
339
|
+
`Syntax: ${syntaxOf(shown, registry.backend)}`,
|
|
342
340
|
...guide ? [`Guide: ${guide}`] : []
|
|
343
341
|
].join("\n");
|
|
344
342
|
}, "fieldsHelp");
|
|
@@ -353,7 +351,7 @@ var queryDescription = /* @__PURE__ */ __name((registry) => {
|
|
|
353
351
|
return `${terms}; fields: ${fields2.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
|
|
354
352
|
}, "queryDescription");
|
|
355
353
|
|
|
356
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
354
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.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
|
|
357
355
|
var inContext = /* @__PURE__ */ __name((context3, run2) => {
|
|
358
356
|
try {
|
|
359
357
|
run2();
|
|
@@ -428,7 +426,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry, options = {}) => {
|
|
|
428
426
|
}, "validateQuery");
|
|
429
427
|
var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
|
|
430
428
|
|
|
431
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
429
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.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
|
|
432
430
|
var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
|
|
433
431
|
var reserved = /* @__PURE__ */ new Set([
|
|
434
432
|
"+",
|
|
@@ -733,7 +731,7 @@ var implicitTextTerms = /* @__PURE__ */ __name((text6) => {
|
|
|
733
731
|
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] : []));
|
|
734
732
|
}, "implicitTextTerms");
|
|
735
733
|
|
|
736
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
734
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.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
|
|
737
735
|
var describeQuery = /* @__PURE__ */ __name((registry) => ({
|
|
738
736
|
entity: registry.entity,
|
|
739
737
|
backend: registry.backend,
|
|
@@ -804,7 +802,7 @@ var QUERY_REASONS = defineReasons([
|
|
|
804
802
|
details: [...SPAN, ...details]
|
|
805
803
|
})));
|
|
806
804
|
|
|
807
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
805
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.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
|
|
808
806
|
var wordsOf = /* @__PURE__ */ __name((text6) => text6.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
|
|
809
807
|
var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
|
|
810
808
|
var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
|
|
@@ -859,7 +857,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
|
|
|
859
857
|
}, "matches");
|
|
860
858
|
var evaluate = /* @__PURE__ */ __name((ast, fields2, item, options = {}) => matches(ast.root, item, new Map(fields2.map((field) => [field.name, field])), options), "evaluate");
|
|
861
859
|
|
|
862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
860
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/reference.js
|
|
863
861
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
|
|
864
862
|
var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
|
|
865
863
|
if (!Number.isSafeInteger(value) || value < minimum)
|
|
@@ -896,7 +894,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text6) => {
|
|
|
896
894
|
}, "parseMeetingReference");
|
|
897
895
|
var canonicalMeetingReference = /* @__PURE__ */ __name((text6) => formatMeetingReference(parseMeetingReference(text6)), "canonicalMeetingReference");
|
|
898
896
|
|
|
899
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
900
898
|
var text = string();
|
|
901
899
|
var count = pipe(number(), integer(), minValue(0));
|
|
902
900
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -961,7 +959,7 @@ var MEETING_QUERY = {
|
|
|
961
959
|
})
|
|
962
960
|
};
|
|
963
961
|
|
|
964
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
962
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
965
963
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
966
964
|
const parsed = urlOf(url);
|
|
967
965
|
if (!parsed)
|
|
@@ -995,7 +993,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
995
993
|
}
|
|
996
994
|
}, "urlOf");
|
|
997
995
|
|
|
998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
999
997
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
1000
998
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
1001
999
|
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");
|
|
@@ -1028,7 +1026,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
1028
1026
|
return kept;
|
|
1029
1027
|
}, "entryMetadata");
|
|
1030
1028
|
|
|
1031
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
1032
1030
|
import { createHash } from "node:crypto";
|
|
1033
1031
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
1034
1032
|
reference: cue2.reference,
|
|
@@ -1042,7 +1040,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
1042
1040
|
text: cue2.text
|
|
1043
1041
|
})).digest("hex"), "meetingCueFingerprint");
|
|
1044
1042
|
|
|
1045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1043
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
1046
1044
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
1047
1045
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
1048
1046
|
if (entry.recurrenceEndsAt !== null)
|
|
@@ -1065,7 +1063,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
1065
1063
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
1066
1064
|
}, "entryInWindow");
|
|
1067
1065
|
|
|
1068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1066
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
1069
1067
|
var text2 = string();
|
|
1070
1068
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
1071
1069
|
var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
@@ -1079,6 +1077,11 @@ var meetingHit = strictObject({
|
|
|
1079
1077
|
excerpt: text2,
|
|
1080
1078
|
/** How far into the meeting the passage is. */
|
|
1081
1079
|
offset_ms: nullable(count2),
|
|
1080
|
+
/** A transcript passage's transcript language (`ru`, `en`…), `null` when unknown. */
|
|
1081
|
+
language: optional(nullable(text2)),
|
|
1082
|
+
/** A transcript passage's line, from 1, of `lines_total`. */
|
|
1083
|
+
line: optional(pipe(count2, minValue(1))),
|
|
1084
|
+
lines_total: optional(count2),
|
|
1082
1085
|
/** `corrected`: a query word matched only a garbled form of itself, listed in `corrections`. */
|
|
1083
1086
|
match: optional(picklist(["words", "corrected"])),
|
|
1084
1087
|
corrections: optional(array(strictObject({ from: text2, to: array(text2) }))),
|
|
@@ -1245,6 +1248,9 @@ var meetingHitItem = /* @__PURE__ */ __name((hit) => ({
|
|
|
1245
1248
|
id: String(hit.id),
|
|
1246
1249
|
excerpt: hit.text,
|
|
1247
1250
|
offset_ms: hit.startMs,
|
|
1251
|
+
...hit.language === void 0 ? {} : { language: hit.language },
|
|
1252
|
+
...hit.line === void 0 ? {} : { line: hit.line },
|
|
1253
|
+
...hit.linesTotal === void 0 ? {} : { lines_total: hit.linesTotal },
|
|
1248
1254
|
untrusted: hit.source === void 0 ? ["excerpt"] : ["excerpt", "source.title"],
|
|
1249
1255
|
...hit.match === void 0 ? {} : { match: hit.match },
|
|
1250
1256
|
...hit.corrections === void 0 ? {} : { corrections: hit.corrections },
|
|
@@ -1292,7 +1298,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
1292
1298
|
};
|
|
1293
1299
|
}, "meetingHitsList");
|
|
1294
1300
|
|
|
1295
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1301
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
1296
1302
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text6) => text6.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
1297
1303
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
1298
1304
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -1316,7 +1322,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
1316
1322
|
};
|
|
1317
1323
|
}, "validateMeetingParticipantSearch");
|
|
1318
1324
|
|
|
1319
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1325
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
1320
1326
|
var MeetingError = class extends CliError {
|
|
1321
1327
|
static {
|
|
1322
1328
|
__name(this, "MeetingError");
|
|
@@ -1448,7 +1454,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id3, accountId)
|
|
|
1448
1454
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
1449
1455
|
}, "meetingSummaryAnswer");
|
|
1450
1456
|
|
|
1451
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
1452
1458
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
1453
1459
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
1454
1460
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -1544,10 +1550,89 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id3, options) => {
|
|
|
1544
1550
|
};
|
|
1545
1551
|
}, "exportMeeting");
|
|
1546
1552
|
|
|
1547
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1553
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/payment.js
|
|
1554
|
+
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise", "payment"];
|
|
1555
|
+
var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
|
|
1556
|
+
var PAYMENT_STATES = ["expected", "paid", "cancelled"];
|
|
1557
|
+
var invalid2 = /* @__PURE__ */ __name((message) => {
|
|
1558
|
+
throw new CliError("validation_error", message);
|
|
1559
|
+
}, "invalid");
|
|
1560
|
+
var CURRENCIES = new Set(Intl.supportedValuesOf("currency"));
|
|
1561
|
+
var AMOUNT = /^(\d{1,15})(?:\.(\d{1,2}))?$/;
|
|
1562
|
+
var COUNTERPARTY = /^(person|organization|project):[1-9]\d*$/;
|
|
1563
|
+
var amountOf = /* @__PURE__ */ __name((value) => {
|
|
1564
|
+
const match = AMOUNT.exec(typeof value === "number" ? String(value) : typeof value === "string" ? value.trim() : "");
|
|
1565
|
+
if (!match)
|
|
1566
|
+
return invalid2("a payment's amount is a positive number with at most 2 decimals, such as 1200.50");
|
|
1567
|
+
const amount = `${BigInt(match[1] ?? "0")}.${(match[2] ?? "").padEnd(2, "0")}`;
|
|
1568
|
+
if (amount === "0.00")
|
|
1569
|
+
return invalid2("a payment's amount is more than 0");
|
|
1570
|
+
return amount;
|
|
1571
|
+
}, "amountOf");
|
|
1572
|
+
var dateOf = /* @__PURE__ */ __name((value) => {
|
|
1573
|
+
const date = typeof value === "string" ? value.trim() : "";
|
|
1574
|
+
if (!/^\d{4}-\d{2}-\d{2}$/.test(date) || (/* @__PURE__ */ new Date(`${date}T00:00:00Z`)).toISOString().slice(0, 10) !== date)
|
|
1575
|
+
return invalid2("a payment's due date is an ISO date, such as 2026-10-31");
|
|
1576
|
+
return date;
|
|
1577
|
+
}, "dateOf");
|
|
1578
|
+
var optionalText = /* @__PURE__ */ __name((value, what, limit) => {
|
|
1579
|
+
if (value === void 0 || value === null)
|
|
1580
|
+
return null;
|
|
1581
|
+
if (typeof value !== "string" || !value.trim() || value.length > limit || value.includes("\0"))
|
|
1582
|
+
return invalid2(`a payment's ${what} takes 1\u2013${limit} characters`);
|
|
1583
|
+
return value.trim();
|
|
1584
|
+
}, "optionalText");
|
|
1585
|
+
var oneOf = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
1586
|
+
if (typeof value !== "string" || !allowed.includes(value))
|
|
1587
|
+
return invalid2(`a payment's ${what} is one of ${allowed.join(", ")}`);
|
|
1588
|
+
return value;
|
|
1589
|
+
}, "oneOf");
|
|
1590
|
+
var FIELDS = ["amount", "currency", "direction", "counterparty", "counterparty_name", "due_at", "state", "item"];
|
|
1591
|
+
var validatePayment = /* @__PURE__ */ __name((input) => {
|
|
1592
|
+
if (!input || typeof input !== "object" || Array.isArray(input))
|
|
1593
|
+
return invalid2("a payment is an object");
|
|
1594
|
+
const raw = input;
|
|
1595
|
+
const unknown = Object.keys(raw).filter((key) => !FIELDS.includes(key));
|
|
1596
|
+
if (unknown.length)
|
|
1597
|
+
return invalid2(`a payment has no field ${unknown.join(", ")}; its fields are ${FIELDS.join(", ")}`);
|
|
1598
|
+
const currency = typeof raw.currency === "string" ? raw.currency.trim().toUpperCase() : "";
|
|
1599
|
+
if (!/^[A-Z]{3}$/.test(currency) || !CURRENCIES.has(currency))
|
|
1600
|
+
return invalid2("a payment's currency is an ISO 4217 code, such as EUR or RUB");
|
|
1601
|
+
const counterparty = optionalText(raw.counterparty, "counterparty", 80);
|
|
1602
|
+
if (counterparty !== null && !COUNTERPARTY.test(counterparty))
|
|
1603
|
+
return invalid2("a payment's counterparty is a person:, organization: or project: reference");
|
|
1604
|
+
return {
|
|
1605
|
+
amount: amountOf(raw.amount),
|
|
1606
|
+
currency,
|
|
1607
|
+
direction: oneOf(raw.direction, PAYMENT_DIRECTIONS, "direction"),
|
|
1608
|
+
counterparty,
|
|
1609
|
+
counterparty_name: optionalText(raw.counterparty_name, "counterparty name", 200),
|
|
1610
|
+
due_at: raw.due_at === void 0 || raw.due_at === null ? null : dateOf(raw.due_at),
|
|
1611
|
+
state: oneOf(raw.state, PAYMENT_STATES, "state"),
|
|
1612
|
+
item: optionalText(raw.item, "item", 200)
|
|
1613
|
+
};
|
|
1614
|
+
}, "validatePayment");
|
|
1615
|
+
var grouped = /* @__PURE__ */ __name((amount) => {
|
|
1616
|
+
const [whole = "0", cents = "00"] = amount.split(".");
|
|
1617
|
+
const digits = whole.replace(/\B(?=(\d{3})+(?!\d))/g, " ");
|
|
1618
|
+
return cents === "00" ? digits : `${digits}.${cents}`;
|
|
1619
|
+
}, "grouped");
|
|
1620
|
+
var paymentTitle = /* @__PURE__ */ __name((fact) => {
|
|
1621
|
+
const payment = fact.payment;
|
|
1622
|
+
if (!payment)
|
|
1623
|
+
return "";
|
|
1624
|
+
const who = payment.counterparty_name ?? payment.counterparty;
|
|
1625
|
+
const way = payment.direction === "to_us" ? "to us" : "from us";
|
|
1626
|
+
const party = who === null ? "" : payment.direction === "to_us" ? ` from ${who}` : ` to ${who}`;
|
|
1627
|
+
const due = payment.due_at === null ? "" : `, due ${payment.due_at.slice(8, 10)}.${payment.due_at.slice(5, 7)}`;
|
|
1628
|
+
const item = payment.item === null ? "" : ` for ${payment.item}`;
|
|
1629
|
+
return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
|
|
1630
|
+
}, "paymentTitle");
|
|
1631
|
+
|
|
1632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1548
1633
|
import { createHash as createHash2 } from "node:crypto";
|
|
1549
1634
|
|
|
1550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
1551
1636
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
1552
1637
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
1553
1638
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone`);
|
|
@@ -1558,115 +1643,61 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
1558
1643
|
return new Date(value).toISOString();
|
|
1559
1644
|
}, "meetingTimestamp");
|
|
1560
1645
|
|
|
1561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1562
|
-
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
1563
|
-
if (typeof value !== "string" || !value.trim())
|
|
1564
|
-
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
1565
|
-
return value;
|
|
1566
|
-
}, "nonempty");
|
|
1567
|
-
var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
|
|
1568
|
-
if (!change || typeof change !== "object" || Array.isArray(change) || Object.keys(change).some((key) => !["title", "kind", "startTime", "durationMinutes", "timezone", "agenda"].includes(key)))
|
|
1569
|
-
throw new CliError("validation_error", "unsupported meeting change field");
|
|
1570
|
-
const result = {};
|
|
1571
|
-
if (change.title !== void 0)
|
|
1572
|
-
result.title = nonempty(change.title, "meeting title");
|
|
1573
|
-
if (create && result.title === void 0)
|
|
1574
|
-
throw new CliError("validation_error", "meeting title is required");
|
|
1575
|
-
if (change.kind !== void 0) {
|
|
1576
|
-
if (change.kind !== "instant" && change.kind !== "scheduled")
|
|
1577
|
-
throw new CliError("validation_error", "only instant or scheduled meeting kinds are supported");
|
|
1578
|
-
result.kind = change.kind;
|
|
1579
|
-
}
|
|
1580
|
-
if (change.startTime !== void 0) {
|
|
1581
|
-
result.startTime = meetingTimestamp(change.startTime, "meeting start");
|
|
1582
|
-
}
|
|
1583
|
-
if (change.durationMinutes !== void 0) {
|
|
1584
|
-
if (!Number.isSafeInteger(change.durationMinutes) || change.durationMinutes <= 0 || change.durationMinutes > 1440)
|
|
1585
|
-
throw new CliError("validation_error", "meeting duration must be an integer from 1 to 1440 minutes");
|
|
1586
|
-
result.durationMinutes = change.durationMinutes;
|
|
1587
|
-
}
|
|
1588
|
-
if (change.timezone !== void 0) {
|
|
1589
|
-
if (typeof change.timezone !== "string" || !change.timezone.trim())
|
|
1590
|
-
throw new CliError("validation_error", "meeting timezone must be a valid IANA timezone");
|
|
1591
|
-
try {
|
|
1592
|
-
new Intl.DateTimeFormat("en", { timeZone: change.timezone }).format();
|
|
1593
|
-
} catch {
|
|
1594
|
-
throw new CliError("validation_error", "meeting timezone must be a valid IANA timezone");
|
|
1595
|
-
}
|
|
1596
|
-
result.timezone = change.timezone;
|
|
1597
|
-
}
|
|
1598
|
-
if (change.agenda !== void 0) {
|
|
1599
|
-
if (typeof change.agenda !== "string")
|
|
1600
|
-
throw new CliError("validation_error", "meeting agenda must be text");
|
|
1601
|
-
result.agenda = change.agenda;
|
|
1602
|
-
}
|
|
1603
|
-
if (create) {
|
|
1604
|
-
result.kind ??= "scheduled";
|
|
1605
|
-
if (result.kind === "scheduled" && result.startTime === void 0)
|
|
1606
|
-
throw new CliError("validation_error", "scheduled meeting start is required");
|
|
1607
|
-
} else if (!Object.keys(result).length)
|
|
1608
|
-
throw new CliError("validation_error", "at least one meeting change is required");
|
|
1609
|
-
return Object.freeze(result);
|
|
1610
|
-
}, "validateMeetingChange");
|
|
1611
|
-
|
|
1612
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
|
|
1613
|
-
var MEETING_FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
1614
|
-
|
|
1615
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1646
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1616
1647
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
1617
|
-
var
|
|
1648
|
+
var invalid3 = /* @__PURE__ */ __name((message) => {
|
|
1618
1649
|
throw new CliError("validation_error", message);
|
|
1619
1650
|
}, "invalid");
|
|
1620
1651
|
var text3 = /* @__PURE__ */ __name((value, limit) => {
|
|
1621
1652
|
if (typeof value !== "string" || !value.trim() || value.includes("\0") || value.length > limit)
|
|
1622
|
-
return
|
|
1653
|
+
return invalid3(`finding text must contain 1\u2013${limit} characters without NUL`);
|
|
1623
1654
|
return value.trim();
|
|
1624
1655
|
}, "text");
|
|
1625
1656
|
var findingHash = /* @__PURE__ */ __name((value) => createHash2("sha256").update(JSON.stringify(value)).digest("hex"), "findingHash");
|
|
1626
1657
|
var fields = /* @__PURE__ */ __name((value, allowed, noun) => {
|
|
1627
1658
|
if (Object.keys(value).some((key) => !allowed.includes(key)))
|
|
1628
|
-
|
|
1659
|
+
invalid3(`unknown ${noun} field`);
|
|
1629
1660
|
}, "fields");
|
|
1630
1661
|
var SUBJECT = /^(person|organization|project):[1-9]\d*$|^task:[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$/;
|
|
1631
1662
|
var validateFindings = /* @__PURE__ */ __name((input, rules) => {
|
|
1632
1663
|
if (!input || typeof input !== "object" || Buffer.byteLength(JSON.stringify(input), "utf8") > 65536)
|
|
1633
|
-
return
|
|
1664
|
+
return invalid3(`${rules.plural} take at most 65536 UTF-8 bytes`);
|
|
1634
1665
|
fields(input, ["schemaVersion", "key", "extractor", "findings"], rules.singular);
|
|
1635
1666
|
if (input.schemaVersion !== 1 || !Array.isArray(input.findings) || input.findings.length < 1 || input.findings.length > 16)
|
|
1636
|
-
return
|
|
1667
|
+
return invalid3(`schemaVersion 1 takes 1\u201316 ${rules.plural}`);
|
|
1637
1668
|
const key = text3(input.key, 64);
|
|
1638
1669
|
if (!/^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$/.test(key))
|
|
1639
|
-
return
|
|
1670
|
+
return invalid3("a findings key uses letters, digits, dot, colon, underscore or hyphen");
|
|
1640
1671
|
const ids2 = /* @__PURE__ */ new Set();
|
|
1641
1672
|
const findings = input.findings.map((finding) => {
|
|
1642
1673
|
if (!finding || typeof finding !== "object")
|
|
1643
|
-
return
|
|
1674
|
+
return invalid3("a finding is an object");
|
|
1644
1675
|
const id3 = text3(finding.id, 64);
|
|
1645
1676
|
if (!/^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$/.test(id3) || ids2.has(id3))
|
|
1646
|
-
return
|
|
1677
|
+
return invalid3("finding IDs must be unique simple keys");
|
|
1647
1678
|
ids2.add(id3);
|
|
1648
1679
|
const project = finding.project === void 0 && rules.anySubject ? void 0 : text3(finding.project, 64);
|
|
1649
1680
|
if (project !== void 0 && !/^project:[1-9]\d*$/.test(project))
|
|
1650
|
-
return
|
|
1681
|
+
return invalid3("a finding names a project reference");
|
|
1651
1682
|
if (finding.subject !== void 0 && (!rules.anySubject || !SUBJECT.test(text3(finding.subject, 80))))
|
|
1652
|
-
return
|
|
1683
|
+
return invalid3("a finding's subject is a person:, organization:, task: or project: reference");
|
|
1653
1684
|
if (finding.kind === "task" && project === void 0)
|
|
1654
|
-
return
|
|
1685
|
+
return invalid3("a task finding names the project the task goes in");
|
|
1655
1686
|
if (!Array.isArray(finding.evidence) || finding.evidence.length < 1 || finding.evidence.length > 8)
|
|
1656
|
-
return
|
|
1687
|
+
return invalid3(`a finding requires 1\u20138 cited ${rules.cited}s`);
|
|
1657
1688
|
const evidence = finding.evidence.map((item) => {
|
|
1658
1689
|
if (!item || typeof item !== "object")
|
|
1659
|
-
return
|
|
1690
|
+
return invalid3("finding evidence is a reference and fingerprint");
|
|
1660
1691
|
fields(item, ["reference", "fingerprint"], rules.singular);
|
|
1661
1692
|
if (typeof item.reference !== "string" || typeof item.fingerprint !== "string")
|
|
1662
|
-
return
|
|
1693
|
+
return invalid3("evidence requires a reference and fingerprint");
|
|
1663
1694
|
const reference2 = rules.reference(item.reference);
|
|
1664
1695
|
if (!/^[a-f0-9]{64}$/.test(item.fingerprint))
|
|
1665
|
-
return
|
|
1696
|
+
return invalid3(`finding evidence requires exact ${rules.cited} references and fingerprints`);
|
|
1666
1697
|
return { reference: reference2, fingerprint: item.fingerprint };
|
|
1667
1698
|
}).sort((a, b) => a.reference.localeCompare(b.reference));
|
|
1668
1699
|
if (new Set(evidence.map((item) => item.reference)).size !== evidence.length)
|
|
1669
|
-
return
|
|
1700
|
+
return invalid3(`duplicate evidence ${rules.cited}`);
|
|
1670
1701
|
const base = {
|
|
1671
1702
|
id: id3,
|
|
1672
1703
|
...project === void 0 ? {} : { project },
|
|
@@ -1675,12 +1706,26 @@ var validateFindings = /* @__PURE__ */ __name((input, rules) => {
|
|
|
1675
1706
|
};
|
|
1676
1707
|
if (finding.kind === "fact") {
|
|
1677
1708
|
fields(finding, ["id", "project", "subject", "evidence", "kind", "type", "statement"], rules.singular);
|
|
1678
|
-
if (
|
|
1679
|
-
return
|
|
1709
|
+
if (finding.type === "payment")
|
|
1710
|
+
return invalid3("a payment is a finding of kind payment");
|
|
1711
|
+
if (!FACT_TYPES.includes(finding.type))
|
|
1712
|
+
return invalid3("unknown fact finding type");
|
|
1680
1713
|
return { ...base, kind: "fact", type: finding.type, statement: text3(finding.statement, 2e3) };
|
|
1681
1714
|
}
|
|
1715
|
+
if (finding.kind === "payment" && rules.payments) {
|
|
1716
|
+
fields(finding, ["id", "project", "subject", "evidence", "kind", "statement", "payment", "supersedes"], rules.singular);
|
|
1717
|
+
if (finding.supersedes !== void 0 && !/^fact:[1-9]\d*$/.test(String(finding.supersedes)))
|
|
1718
|
+
return invalid3("a payment finding supersedes a fact: reference");
|
|
1719
|
+
return {
|
|
1720
|
+
...base,
|
|
1721
|
+
kind: "payment",
|
|
1722
|
+
...finding.statement === void 0 ? {} : { statement: text3(finding.statement, 2e3) },
|
|
1723
|
+
payment: validatePayment(finding.payment),
|
|
1724
|
+
...finding.supersedes === void 0 ? {} : { supersedes: finding.supersedes }
|
|
1725
|
+
};
|
|
1726
|
+
}
|
|
1682
1727
|
if (finding.kind !== "task")
|
|
1683
|
-
return
|
|
1728
|
+
return invalid3(`a finding is a fact${rules.payments ? ", payment" : ""} or task`);
|
|
1684
1729
|
fields(finding, [
|
|
1685
1730
|
"id",
|
|
1686
1731
|
"project",
|
|
@@ -1696,18 +1741,18 @@ var validateFindings = /* @__PURE__ */ __name((input, rules) => {
|
|
|
1696
1741
|
"assigneeEvidence"
|
|
1697
1742
|
], rules.singular);
|
|
1698
1743
|
if (!TASK_TYPES.includes(finding.type))
|
|
1699
|
-
return
|
|
1744
|
+
return invalid3("a task finding type is bug, chore or feature");
|
|
1700
1745
|
if (!["explicit", "inferred"].includes(finding.commitment))
|
|
1701
|
-
return
|
|
1746
|
+
return invalid3("task commitment must be explicit or inferred");
|
|
1702
1747
|
const support = /* @__PURE__ */ __name((value) => {
|
|
1703
1748
|
if (!Array.isArray(value) || value.length < 1 || value.length > 8 || value.some((ref) => typeof ref !== "string" || !evidence.some((item) => item.reference === ref)))
|
|
1704
|
-
return
|
|
1749
|
+
return invalid3("date and assignee support must cite the finding's evidence");
|
|
1705
1750
|
return [...new Set(value)].sort();
|
|
1706
1751
|
}, "support");
|
|
1707
1752
|
if (finding.dueAt === void 0 !== (finding.dueEvidence === void 0) || finding.assignee === void 0 !== (finding.assigneeEvidence === void 0))
|
|
1708
|
-
return
|
|
1753
|
+
return invalid3("optional dates and assignees require their supporting evidence");
|
|
1709
1754
|
if (finding.assignee !== void 0 && (typeof finding.assignee !== "string" || !/^person:[1-9]\d*$/.test(finding.assignee)))
|
|
1710
|
-
return
|
|
1755
|
+
return invalid3("an assignee must be a person reference");
|
|
1711
1756
|
return {
|
|
1712
1757
|
...base,
|
|
1713
1758
|
kind: "task",
|
|
@@ -1723,7 +1768,7 @@ var validateFindings = /* @__PURE__ */ __name((input, rules) => {
|
|
|
1723
1768
|
}, "validateFindings");
|
|
1724
1769
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
1725
1770
|
|
|
1726
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
1727
1772
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
1728
1773
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
1729
1774
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -1734,7 +1779,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
1734
1779
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
1735
1780
|
var meetingFindingFingerprint = findingFingerprint;
|
|
1736
1781
|
|
|
1737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1782
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
1738
1783
|
var text4 = string();
|
|
1739
1784
|
var identifier = pipe(text4, minLength(1));
|
|
1740
1785
|
var nullableText = nullable(text4);
|
|
@@ -1852,15 +1897,22 @@ var embedding = union([
|
|
|
1852
1897
|
})
|
|
1853
1898
|
})
|
|
1854
1899
|
]);
|
|
1900
|
+
var repair = strictObject({
|
|
1901
|
+
account_id: identifier,
|
|
1902
|
+
applied: flag,
|
|
1903
|
+
transcripts: count3,
|
|
1904
|
+
languages: array(strictObject({ language: nullableText, transcripts: count3 }))
|
|
1905
|
+
});
|
|
1855
1906
|
var MEETING_RESULT_ENTITIES = {
|
|
1856
1907
|
meeting_ingestion: run,
|
|
1857
1908
|
meeting_export: exported,
|
|
1858
1909
|
meeting_association: meetingChange,
|
|
1859
1910
|
meeting_transcription: transcription,
|
|
1860
|
-
meeting_embedding: embedding
|
|
1911
|
+
meeting_embedding: embedding,
|
|
1912
|
+
meeting_repair: repair
|
|
1861
1913
|
};
|
|
1862
1914
|
|
|
1863
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1915
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
1864
1916
|
var EVENT_QUERY = defineQuery({
|
|
1865
1917
|
entity: "event",
|
|
1866
1918
|
backend: "sql",
|
|
@@ -1876,7 +1928,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
1876
1928
|
]
|
|
1877
1929
|
});
|
|
1878
1930
|
|
|
1879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
1880
1932
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
|
|
1881
1933
|
const current = await store.meeting(details.meeting.id);
|
|
1882
1934
|
if (!current)
|
|
@@ -1919,7 +1971,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
1919
1971
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
1920
1972
|
}, "linkEvent");
|
|
1921
1973
|
|
|
1922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1974
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
1923
1975
|
var context = {
|
|
1924
1976
|
command: "search meetings",
|
|
1925
1977
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -1982,7 +2034,56 @@ var MEETING_FIELDS = defineQuery({
|
|
|
1982
2034
|
});
|
|
1983
2035
|
var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
|
|
1984
2036
|
|
|
1985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2037
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/language.js
|
|
2038
|
+
var LATIN_WORDS = {
|
|
2039
|
+
en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
|
|
2040
|
+
es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
|
|
2041
|
+
de: ["der", "und", "ist", "nicht", "das", "ich", "wir", "mit", "auch", "ein"],
|
|
2042
|
+
fr: ["le", "les", "est", "une", "pas", "je", "vous", "nous", "avec", "mais"],
|
|
2043
|
+
it: ["gli", "della", "sono", "perch\xE9", "anche", "questo", "molto", "che", "di", "\xE8"],
|
|
2044
|
+
pt: ["n\xE3o", "voc\xEA", "isso", "muito", "ent\xE3o", "com", "uma", "tamb\xE9m", "mas", "eu"]
|
|
2045
|
+
};
|
|
2046
|
+
var LATIN_LANGUAGE = new Map(Object.entries(LATIN_WORDS).flatMap(([language, words2]) => words2.map((word) => [word, language])));
|
|
2047
|
+
var UKRAINIAN = /[іїєґ]/giu;
|
|
2048
|
+
var CYRILLIC = new RegExp("\\p{Script=Cyrillic}", "gu");
|
|
2049
|
+
var LATIN = new RegExp("\\p{Script=Latin}", "gu");
|
|
2050
|
+
var MIN_LETTERS = 20;
|
|
2051
|
+
var DOMINANT = 0.75;
|
|
2052
|
+
var countOf = /* @__PURE__ */ __name((text6, pattern2) => text6.match(pattern2)?.length ?? 0, "countOf");
|
|
2053
|
+
var latinLanguage = /* @__PURE__ */ __name((texts) => {
|
|
2054
|
+
const votes = /* @__PURE__ */ new Map();
|
|
2055
|
+
for (const text6 of texts)
|
|
2056
|
+
for (const word of text6.toLowerCase().split(/[^\p{L}]+/u)) {
|
|
2057
|
+
const language = LATIN_LANGUAGE.get(word);
|
|
2058
|
+
if (language)
|
|
2059
|
+
votes.set(language, (votes.get(language) ?? 0) + 1);
|
|
2060
|
+
}
|
|
2061
|
+
const [first, second] = [...votes].sort((a, b) => b[1] - a[1]);
|
|
2062
|
+
if (!first || first[1] < 3 || second && first[1] < 2 * second[1])
|
|
2063
|
+
return null;
|
|
2064
|
+
return first[0];
|
|
2065
|
+
}, "latinLanguage");
|
|
2066
|
+
var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
|
|
2067
|
+
const all = [...texts];
|
|
2068
|
+
let cyrillic = 0;
|
|
2069
|
+
let latin = 0;
|
|
2070
|
+
let ukrainian = 0;
|
|
2071
|
+
for (const text6 of all) {
|
|
2072
|
+
cyrillic += countOf(text6, CYRILLIC);
|
|
2073
|
+
latin += countOf(text6, LATIN);
|
|
2074
|
+
ukrainian += countOf(text6, UKRAINIAN);
|
|
2075
|
+
}
|
|
2076
|
+
const letters = cyrillic + latin;
|
|
2077
|
+
if (letters < MIN_LETTERS)
|
|
2078
|
+
return null;
|
|
2079
|
+
if (cyrillic / letters >= DOMINANT)
|
|
2080
|
+
return ukrainian / cyrillic >= 0.01 ? "uk" : "ru";
|
|
2081
|
+
if (latin / letters >= DOMINANT)
|
|
2082
|
+
return latinLanguage(all);
|
|
2083
|
+
return null;
|
|
2084
|
+
}, "transcriptLanguage");
|
|
2085
|
+
|
|
2086
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
1986
2087
|
var contentHash = /* @__PURE__ */ __name(async (text6) => {
|
|
1987
2088
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text6));
|
|
1988
2089
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -1996,7 +2097,7 @@ var speakerPosition = /* @__PURE__ */ __name((name, participants) => {
|
|
|
1996
2097
|
var transcriptInput = /* @__PURE__ */ __name(async (lines, participants, source, hashText = JSON.stringify(lines), format = null) => ({
|
|
1997
2098
|
source,
|
|
1998
2099
|
format,
|
|
1999
|
-
language:
|
|
2100
|
+
language: transcriptLanguage(lines.map((line2) => line2.text)),
|
|
2000
2101
|
contentHash: await contentHash(hashText),
|
|
2001
2102
|
externalCreatedAt: null,
|
|
2002
2103
|
metadata: null,
|
|
@@ -2019,7 +2120,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
2019
2120
|
return time;
|
|
2020
2121
|
}, "timestamp");
|
|
2021
2122
|
|
|
2022
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2123
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
2023
2124
|
var TranscriptTextError = class extends Error {
|
|
2024
2125
|
static {
|
|
2025
2126
|
__name(this, "TranscriptTextError");
|
|
@@ -2074,7 +2175,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
2074
2175
|
return { header, lines };
|
|
2075
2176
|
}, "parseTranscriptText");
|
|
2076
2177
|
|
|
2077
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
2078
2179
|
var VttError = class extends Error {
|
|
2079
2180
|
static {
|
|
2080
2181
|
__name(this, "VttError");
|
|
@@ -2126,7 +2227,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
2126
2227
|
return cues;
|
|
2127
2228
|
}, "parseVtt");
|
|
2128
2229
|
|
|
2129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2230
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
2130
2231
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
2131
2232
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2132
2233
|
for (const file of files) {
|
|
@@ -2159,10 +2260,61 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2159
2260
|
return report;
|
|
2160
2261
|
}, "importFiles");
|
|
2161
2262
|
|
|
2162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2263
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
2163
2264
|
var CHAT_MESSAGES_READ = 1e5;
|
|
2164
2265
|
|
|
2165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2266
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
2267
|
+
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
2268
|
+
if (typeof value !== "string" || !value.trim())
|
|
2269
|
+
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
2270
|
+
return value;
|
|
2271
|
+
}, "nonempty");
|
|
2272
|
+
var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
|
|
2273
|
+
if (!change || typeof change !== "object" || Array.isArray(change) || Object.keys(change).some((key) => !["title", "kind", "startTime", "durationMinutes", "timezone", "agenda"].includes(key)))
|
|
2274
|
+
throw new CliError("validation_error", "unsupported meeting change field");
|
|
2275
|
+
const result = {};
|
|
2276
|
+
if (change.title !== void 0)
|
|
2277
|
+
result.title = nonempty(change.title, "meeting title");
|
|
2278
|
+
if (create && result.title === void 0)
|
|
2279
|
+
throw new CliError("validation_error", "meeting title is required");
|
|
2280
|
+
if (change.kind !== void 0) {
|
|
2281
|
+
if (change.kind !== "instant" && change.kind !== "scheduled")
|
|
2282
|
+
throw new CliError("validation_error", "only instant or scheduled meeting kinds are supported");
|
|
2283
|
+
result.kind = change.kind;
|
|
2284
|
+
}
|
|
2285
|
+
if (change.startTime !== void 0) {
|
|
2286
|
+
result.startTime = meetingTimestamp(change.startTime, "meeting start");
|
|
2287
|
+
}
|
|
2288
|
+
if (change.durationMinutes !== void 0) {
|
|
2289
|
+
if (!Number.isSafeInteger(change.durationMinutes) || change.durationMinutes <= 0 || change.durationMinutes > 1440)
|
|
2290
|
+
throw new CliError("validation_error", "meeting duration must be an integer from 1 to 1440 minutes");
|
|
2291
|
+
result.durationMinutes = change.durationMinutes;
|
|
2292
|
+
}
|
|
2293
|
+
if (change.timezone !== void 0) {
|
|
2294
|
+
if (typeof change.timezone !== "string" || !change.timezone.trim())
|
|
2295
|
+
throw new CliError("validation_error", "meeting timezone must be a valid IANA timezone");
|
|
2296
|
+
try {
|
|
2297
|
+
new Intl.DateTimeFormat("en", { timeZone: change.timezone }).format();
|
|
2298
|
+
} catch {
|
|
2299
|
+
throw new CliError("validation_error", "meeting timezone must be a valid IANA timezone");
|
|
2300
|
+
}
|
|
2301
|
+
result.timezone = change.timezone;
|
|
2302
|
+
}
|
|
2303
|
+
if (change.agenda !== void 0) {
|
|
2304
|
+
if (typeof change.agenda !== "string")
|
|
2305
|
+
throw new CliError("validation_error", "meeting agenda must be text");
|
|
2306
|
+
result.agenda = change.agenda;
|
|
2307
|
+
}
|
|
2308
|
+
if (create) {
|
|
2309
|
+
result.kind ??= "scheduled";
|
|
2310
|
+
if (result.kind === "scheduled" && result.startTime === void 0)
|
|
2311
|
+
throw new CliError("validation_error", "scheduled meeting start is required");
|
|
2312
|
+
} else if (!Object.keys(result).length)
|
|
2313
|
+
throw new CliError("validation_error", "at least one meeting change is required");
|
|
2314
|
+
return Object.freeze(result);
|
|
2315
|
+
}, "validateMeetingChange");
|
|
2316
|
+
|
|
2317
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
2166
2318
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
2167
2319
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
2168
2320
|
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)))
|
|
@@ -2175,7 +2327,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
2175
2327
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
2176
2328
|
}, "validateMeetingPassage");
|
|
2177
2329
|
|
|
2178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2330
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
2179
2331
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
2180
2332
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2181
2333
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -2200,7 +2352,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
2200
2352
|
return { ...input, limit, maxReadBytes };
|
|
2201
2353
|
}, "validateMeetingPreparationContext");
|
|
2202
2354
|
|
|
2203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2355
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
2204
2356
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
2205
2357
|
var id = pipe(string(), minLength(1));
|
|
2206
2358
|
var meetingProjectEvidence = strictObject({
|
|
@@ -2321,7 +2473,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
2321
2473
|
};
|
|
2322
2474
|
}, "meetingProjectEvidenceAnswer");
|
|
2323
2475
|
|
|
2324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2476
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
2325
2477
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
2326
2478
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
2327
2479
|
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) || [
|
|
@@ -2341,7 +2493,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
2341
2493
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
2342
2494
|
}, "validateMeetingHitSearch");
|
|
2343
2495
|
|
|
2344
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2496
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
2345
2497
|
var ids = {
|
|
2346
2498
|
meeting_id: "meetingId",
|
|
2347
2499
|
identity_id: "participantIdentityId",
|
|
@@ -2432,7 +2584,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
|
|
|
2432
2584
|
return { project: project.trim(), options, query: frozen.join(" AND ") };
|
|
2433
2585
|
}, "prepareMeetingProjectEvidence");
|
|
2434
2586
|
|
|
2435
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
2436
2588
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
|
|
2437
2589
|
const prepared = prepareMeetingProjectEvidence(project, request, now);
|
|
2438
2590
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -2440,7 +2592,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
|
|
|
2440
2592
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
2441
2593
|
}, "readMeetingProjectEvidence");
|
|
2442
2594
|
|
|
2443
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
2444
2596
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2445
2597
|
const { identityExternalId, ...fields2 } = p;
|
|
2446
2598
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -2579,7 +2731,7 @@ unlinked`, format)],
|
|
|
2579
2731
|
return report;
|
|
2580
2732
|
}, "pull");
|
|
2581
2733
|
|
|
2582
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2734
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
2583
2735
|
var text5 = string();
|
|
2584
2736
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
2585
2737
|
var id2 = pipe(number(), integer(), minValue(1));
|
|
@@ -2756,10 +2908,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
2756
2908
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
2757
2909
|
}), "eventItem");
|
|
2758
2910
|
|
|
2759
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
2760
2912
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
2761
2913
|
|
|
2762
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
2763
2915
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
2764
2916
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2765
2917
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -2789,14 +2941,14 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
2789
2941
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
2790
2942
|
}, "validateMeetingRelatedHistory");
|
|
2791
2943
|
|
|
2792
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
2793
2945
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
2794
2946
|
|
|
2795
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
2796
2948
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
2797
2949
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
2798
2950
|
|
|
2799
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2951
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
2800
2952
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
2801
2953
|
input.signal?.throwIfAborted();
|
|
2802
2954
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -2817,39 +2969,39 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
2817
2969
|
return { ...input, limit, maxReadBytes };
|
|
2818
2970
|
}, "validateMeetingSeriesHistory");
|
|
2819
2971
|
|
|
2820
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2972
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
2821
2973
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
2822
2974
|
|
|
2823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2824
|
-
function
|
|
2975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
2976
|
+
function invalid4(field, response = false) {
|
|
2825
2977
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
2826
2978
|
}
|
|
2827
|
-
__name(
|
|
2979
|
+
__name(invalid4, "invalid");
|
|
2828
2980
|
var object2 = /* @__PURE__ */ __name((value, fields2, field, response = false) => {
|
|
2829
2981
|
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
2830
|
-
|
|
2982
|
+
invalid4(field, response);
|
|
2831
2983
|
for (const key of Object.keys(value))
|
|
2832
2984
|
if (!fields2.includes(key))
|
|
2833
|
-
|
|
2985
|
+
invalid4(`${field}.${key}`, response);
|
|
2834
2986
|
}, "object");
|
|
2835
2987
|
var cursorDetails = /* @__PURE__ */ __name((value) => {
|
|
2836
2988
|
if (typeof value !== "string" || value.length > 4096 || !/^[A-Za-z0-9_-]+$/.test(value))
|
|
2837
|
-
|
|
2989
|
+
invalid4("cursor");
|
|
2838
2990
|
try {
|
|
2839
2991
|
const decoded = JSON.parse(new TextDecoder("utf8", { fatal: true }).decode(Buffer.from(value, "base64url")));
|
|
2840
2992
|
object2(decoded, ["version", "selection", "cursor"], "cursor");
|
|
2841
2993
|
if (decoded.version !== 1 || typeof decoded.selection !== "string" || !/^[a-f0-9]{64}$/.test(decoded.selection) || !occurrenceId(decoded.cursor))
|
|
2842
|
-
|
|
2994
|
+
invalid4("cursor");
|
|
2843
2995
|
return decoded;
|
|
2844
2996
|
} catch {
|
|
2845
|
-
return
|
|
2997
|
+
return invalid4("cursor");
|
|
2846
2998
|
}
|
|
2847
2999
|
}, "cursorDetails");
|
|
2848
3000
|
var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
2849
3001
|
cursorDetails(value);
|
|
2850
3002
|
}, "validateMeetingSeriesInventoryCursor");
|
|
2851
3003
|
|
|
2852
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
2853
3005
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
2854
3006
|
const zone = timeZone ?? "UTC";
|
|
2855
3007
|
try {
|
|
@@ -2928,7 +3080,21 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
2928
3080
|
};
|
|
2929
3081
|
}, "aggregateMeetingStats");
|
|
2930
3082
|
|
|
2931
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3083
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
3084
|
+
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
3085
|
+
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
3086
|
+
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
3087
|
+
const tag = value.trim().toLowerCase();
|
|
3088
|
+
return TAG.test(tag) ? tag : void 0;
|
|
3089
|
+
}, "tagOf");
|
|
3090
|
+
var normalizeTag = /* @__PURE__ */ __name((value) => {
|
|
3091
|
+
const tag = tagOf(value);
|
|
3092
|
+
if (tag === void 0)
|
|
3093
|
+
throw new CliError("validation_error", `"${singleLine(value)}" is not a tag \u2014 use 1\u201332 letters a\u2013z, digits and hyphens`, { reason: "tag.invalid" });
|
|
3094
|
+
return tag;
|
|
3095
|
+
}, "normalizeTag");
|
|
3096
|
+
|
|
3097
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
2932
3098
|
var LINK_KINDS = [
|
|
2933
3099
|
"links-to",
|
|
2934
3100
|
"blocked-by",
|
|
@@ -2949,7 +3115,7 @@ var LINK_SOURCES = [...LINK_ORIGINS, "calendar"];
|
|
|
2949
3115
|
var RELATION_KINDS = ["member-of", "related-to"];
|
|
2950
3116
|
var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
|
|
2951
3117
|
|
|
2952
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
2953
3119
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
2954
3120
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
2955
3121
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -2964,13 +3130,13 @@ function closeTask(task, state, by, at, reason) {
|
|
|
2964
3130
|
}
|
|
2965
3131
|
__name(closeTask, "closeTask");
|
|
2966
3132
|
|
|
2967
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3133
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
2968
3134
|
function matches2(task, filter) {
|
|
2969
3135
|
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);
|
|
2970
3136
|
}
|
|
2971
3137
|
__name(matches2, "matches");
|
|
2972
3138
|
|
|
2973
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
2974
3140
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
2975
3141
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
2976
3142
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -2999,7 +3165,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
2999
3165
|
}, "priorityOf");
|
|
3000
3166
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
3001
3167
|
|
|
3002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3168
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
3003
3169
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
3004
3170
|
async function find(id3) {
|
|
3005
3171
|
const task = await store.get(id3);
|
|
@@ -3059,8 +3225,7 @@ function median(values) {
|
|
|
3059
3225
|
}
|
|
3060
3226
|
__name(median, "median");
|
|
3061
3227
|
|
|
3062
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3063
|
-
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
3228
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
3064
3229
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
3065
3230
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
3066
3231
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
@@ -3069,9 +3234,6 @@ var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
|
3069
3234
|
var TASK_TYPES2 = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
3070
3235
|
|
|
3071
3236
|
export {
|
|
3072
|
-
TAG_TYPES,
|
|
3073
|
-
tagOf,
|
|
3074
|
-
normalizeTag,
|
|
3075
3237
|
QUERY_LIMITS,
|
|
3076
3238
|
queryAstSchema,
|
|
3077
3239
|
queryError,
|
|
@@ -3079,7 +3241,6 @@ export {
|
|
|
3079
3241
|
timezoneOf,
|
|
3080
3242
|
dayBoundary,
|
|
3081
3243
|
zonedMoment,
|
|
3082
|
-
dateEndpoint,
|
|
3083
3244
|
dateRange,
|
|
3084
3245
|
evaluate,
|
|
3085
3246
|
FIELD_TYPES,
|
|
@@ -3124,7 +3285,11 @@ export {
|
|
|
3124
3285
|
meetingTranscriptAnswer,
|
|
3125
3286
|
meetingSummaryAnswer,
|
|
3126
3287
|
exportMeeting,
|
|
3127
|
-
|
|
3288
|
+
FACT_TYPES,
|
|
3289
|
+
PAYMENT_DIRECTIONS,
|
|
3290
|
+
PAYMENT_STATES,
|
|
3291
|
+
validatePayment,
|
|
3292
|
+
paymentTitle,
|
|
3128
3293
|
findingHash,
|
|
3129
3294
|
validateFindings,
|
|
3130
3295
|
findingFingerprint,
|
|
@@ -3132,8 +3297,10 @@ export {
|
|
|
3132
3297
|
validateMeetingFindings,
|
|
3133
3298
|
meetingFindingFingerprint,
|
|
3134
3299
|
parseMeetingQuery,
|
|
3300
|
+
transcriptLanguage,
|
|
3135
3301
|
importFiles,
|
|
3136
3302
|
CHAT_MESSAGES_READ,
|
|
3303
|
+
validateMeetingChange,
|
|
3137
3304
|
validateMeetingPassage,
|
|
3138
3305
|
validateMeetingPreparationContext,
|
|
3139
3306
|
meetingProjectEvidence,
|
|
@@ -3159,6 +3326,9 @@ export {
|
|
|
3159
3326
|
validateMeetingSeriesHistory,
|
|
3160
3327
|
validateMeetingSeriesInventoryCursor,
|
|
3161
3328
|
aggregateMeetingStats,
|
|
3329
|
+
TAG_TYPES,
|
|
3330
|
+
tagOf,
|
|
3331
|
+
normalizeTag,
|
|
3162
3332
|
LINK_KINDS,
|
|
3163
3333
|
LINK_ORIGINS,
|
|
3164
3334
|
LINK_SOURCES,
|
|
@@ -3177,7 +3347,6 @@ export {
|
|
|
3177
3347
|
priorityOption,
|
|
3178
3348
|
createTaskService,
|
|
3179
3349
|
matches2 as matches,
|
|
3180
|
-
FACT_TYPES,
|
|
3181
3350
|
FACT_STATUSES,
|
|
3182
3351
|
MEMORY_KINDS,
|
|
3183
3352
|
MEMORY_STATUSES,
|