@wirecat/tg-cli 0.108.0 → 0.109.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-YFWRJWL5.js → adapter-6JLFYFL5.js} +45 -44
- package/dist/bundle/{all-profiles-GQIZSF4W.js → all-profiles-X7Y3T5S4.js} +8 -8
- package/dist/bundle/{anthropic-BKWEDKPU.js → anthropic-LGVXAADT.js} +5 -5
- package/dist/bundle/{app-server-RJV7ICLH.js → app-server-UI3AFSJX.js} +40 -39
- package/dist/bundle/{bot-api-2PAH2JZ3.js → bot-api-TQYRNYJQ.js} +46 -45
- package/dist/bundle/{bot-history-DPPZ43F4.js → bot-history-DDNTNMNB.js} +15 -15
- package/dist/bundle/{bun-Q7COX3Z5.js → bun-WXGS6HML.js} +2 -2
- package/dist/bundle/{bun-sqlite-YI4AYZXO.js → bun-sqlite-M6JEXKRT.js} +4 -4
- package/dist/bundle/{chunk-PQHYM2XC.js → chunk-25VC6U3A.js} +1 -1
- package/dist/bundle/{chunk-DNOJKQXQ.js → chunk-2ILQYCBY.js} +377 -286
- package/dist/bundle/{chunk-EWL3ZFOI.js → chunk-3PEZWXKO.js} +6 -6
- package/dist/bundle/{chunk-LY2LFJMU.js → chunk-4R4AH6FM.js} +117 -94
- package/dist/bundle/{chunk-CVWF3BFK.js → chunk-5SUFMBU5.js} +44 -44
- package/dist/bundle/chunk-76C5SSMR.js +379 -0
- package/dist/bundle/{chunk-5HPXENE5.js → chunk-7AJ2IESO.js} +1 -1
- package/dist/bundle/{chunk-PCMW3PW6.js → chunk-7T7ILNCU.js} +2 -2
- package/dist/bundle/{chunk-ZYBDAZFO.js → chunk-AD3QPYI3.js} +2 -2
- package/dist/bundle/{chunk-ON67U6WV.js → chunk-AGVKIJB7.js} +6 -6
- package/dist/bundle/{chunk-YJ6GFFEE.js → chunk-BESIMQ5U.js} +1 -1
- package/dist/bundle/{chunk-76OSISA3.js → chunk-BHPCZCX7.js} +2 -2
- package/dist/bundle/{chunk-3GXKJKIC.js → chunk-BZIZLEJN.js} +4 -4
- package/dist/bundle/{chunk-BOSMBW4I.js → chunk-C3RX3UOE.js} +11 -11
- package/dist/bundle/{chunk-KQFR7ZAA.js → chunk-CH2ESVV5.js} +22 -22
- package/dist/bundle/{chunk-WUF64WOG.js → chunk-CHI6D4D6.js} +4 -4
- package/dist/bundle/{chunk-DUWTG2GE.js → chunk-CVLDXFRP.js} +8 -8
- package/dist/bundle/{chunk-MFS52LTZ.js → chunk-DLAFGSTN.js} +1 -1
- package/dist/bundle/{chunk-XZXOGHU5.js → chunk-DO33KAMM.js} +71 -60
- package/dist/bundle/{chunk-77OOX2OE.js → chunk-DZVYGBZB.js} +79 -56
- package/dist/bundle/{chunk-WAGDZB62.js → chunk-GUFM5RLW.js} +2 -2
- package/dist/bundle/{chunk-REI5TPS3.js → chunk-IGIPIO4J.js} +11 -11
- package/dist/bundle/{chunk-LYLGLFWY.js → chunk-INYO2QFW.js} +3 -3
- package/dist/bundle/{chunk-3HYDKCXB.js → chunk-IULYECPC.js} +12 -12
- package/dist/bundle/{chunk-6MZ2ZBX4.js → chunk-IV2QWSPG.js} +2 -2
- package/dist/bundle/{chunk-6QTUYMGX.js → chunk-KHKC236O.js} +2 -2
- package/dist/bundle/{chunk-QVIT6SQ5.js → chunk-M62LF3QE.js} +613 -381
- package/dist/bundle/{chunk-KZPZFPGB.js → chunk-MF6NKU3Z.js} +81 -30
- package/dist/bundle/{chunk-WEDWIXIC.js → chunk-N56WXUCW.js} +2 -2
- package/dist/bundle/{chunk-T4SDOYPY.js → chunk-N5FSRC6H.js} +117 -70
- package/dist/bundle/{chunk-FG2QTYEF.js → chunk-NAVNCM5K.js} +1 -1
- package/dist/bundle/{chunk-F67VPIJL.js → chunk-OHLMHBDI.js} +28 -28
- package/dist/bundle/{chunk-SONKULUF.js → chunk-P55L4S6N.js} +3 -3
- package/dist/bundle/{chunk-OB5PPPXH.js → chunk-P57R2P75.js} +7 -7
- package/dist/bundle/{chunk-5P27JGGA.js → chunk-P5ILJ7MN.js} +5 -5
- package/dist/bundle/{chunk-AS2BVZU3.js → chunk-QQF7RDLR.js} +49 -24
- package/dist/bundle/{chunk-WKSLGPZQ.js → chunk-RD2NLJSU.js} +16 -4
- package/dist/bundle/{chunk-NCXCBVHO.js → chunk-S7B6MTXX.js} +6 -6
- package/dist/bundle/{chunk-CZANI3DM.js → chunk-SH63Q4QR.js} +22 -22
- package/dist/bundle/{chunk-BT6PWDM6.js → chunk-TMXNMO66.js} +3 -3
- package/dist/bundle/{chunk-4RDMNNVO.js → chunk-UIPBAT2T.js} +26 -14
- package/dist/bundle/{chunk-EBB7RFCW.js → chunk-UUQ3BH2Z.js} +2 -2
- package/dist/bundle/{chunk-VMU4SGCE.js → chunk-VFVMB3NV.js} +8 -6
- package/dist/bundle/{chunk-B7TFWNKJ.js → chunk-VYR2IIWW.js} +1 -1
- package/dist/bundle/{chunk-AOUB2QFP.js → chunk-WHYS6OSG.js} +2 -2
- package/dist/bundle/{chunk-ZHHVNTBJ.js → chunk-WNTXIQMB.js} +2 -2
- package/dist/bundle/{chunk-26PWIQPP.js → chunk-XJVGCCQE.js} +666 -782
- package/dist/bundle/{chunk-67SRVSPU.js → chunk-XMMWKHNY.js} +26 -9
- package/dist/bundle/{chunk-BL72ZIBV.js → chunk-YXCQ4DLZ.js} +1 -1
- package/dist/bundle/{chunk-3562DVQ7.js → chunk-YYOIULA2.js} +8 -8
- package/dist/bundle/{chunk-TVA3NXXO.js → chunk-ZFMS5G4H.js} +2 -2
- package/dist/bundle/{chunk-D6DBVPES.js → chunk-ZHP44EML.js} +3 -3
- package/dist/bundle/{chunk-VK2YLSK7.js → chunk-ZMZKZL3Y.js} +1 -1
- package/dist/bundle/{chunk-R5YOKYTE.js → chunk-ZUOS7QUB.js} +11 -11
- package/dist/bundle/command-contract-E2MWR3T3.js +32 -0
- package/dist/bundle/{decode-ZFAFVFWX.js → decode-RKPOGPBE.js} +19 -17
- package/dist/bundle/{echarts-SVXNTKGV.js → echarts-H5QQRBHI.js} +2 -2
- package/dist/bundle/{embed-V755YE7O.js → embed-7TVAPNP7.js} +5 -5
- package/dist/bundle/{embedder-MQAPNQBH.js → embedder-YOOHWWN6.js} +8 -8
- package/dist/bundle/{entry-ULQ3VOMQ.js → entry-SAKW5HEZ.js} +5 -5
- package/dist/bundle/{first-run-64BTWXDR.js → first-run-C744N572.js} +9 -9
- package/dist/bundle/first-screen-7GKUEIWS.js +30 -0
- package/dist/bundle/{identity-PW45VBUU.js → identity-NRWTZIQ4.js} +3 -3
- package/dist/bundle/{instructions-G3ZUIRRH.js → instructions-6LWRAW47.js} +1 -1
- package/dist/bundle/{mcp-OQBZXELQ.js → mcp-WSGVVZWI.js} +2 -2
- package/dist/bundle/{node-IDJXLZSX.js → node-XN4PIVWW.js} +2 -2
- package/dist/bundle/{node-sqlite-W22J37MG.js → node-sqlite-PCBGROGQ.js} +4 -4
- package/dist/bundle/{oauth-Q52LBXDE.js → oauth-PX6NGHUV.js} +6 -6
- package/dist/bundle/{open-YLD7VHEC.js → open-BKJGJ6GX.js} +3 -3
- package/dist/bundle/openai-MJP7CZXP.js +250 -0
- package/dist/bundle/{process-OBESF2XG.js → process-4PRR3MLT.js} +1 -1
- package/dist/bundle/{program-EBMWHOKQ.js → program-7YZUO42B.js} +48 -47
- package/dist/bundle/{prompt-FHHQF3MG.js → prompt-CILSZC2R.js} +4 -4
- package/dist/bundle/{proxy-transport-YSBYG26I.js → proxy-transport-FWGKTYBL.js} +4 -4
- package/dist/bundle/{recognize-QNHKHGKM.js → recognize-AVFDJAIL.js} +5 -3
- package/dist/bundle/{remote-RVZWRCCT.js → remote-2VYXGOM4.js} +6 -6
- package/dist/bundle/{rerank-KG2USEME.js → rerank-6FU2JPCD.js} +6 -6
- package/dist/bundle/{serve-I4MJKEQ4.js → serve-3YQOHBR6.js} +8 -8
- package/dist/bundle/server-S2K4YDDG.js +56 -0
- package/dist/bundle/{server-GV7SV3L6.js → server-TPK3LNEX.js} +32 -31
- package/dist/bundle/{state-AJKHWFBU.js → state-LLUNBLZE.js} +5 -5
- package/dist/bundle/{store-L3HFSSGJ.js → store-27FQ743G.js} +10 -10
- package/dist/bundle/store-maintenance-command-AFJMKEBK.js +45 -0
- package/dist/bundle/tg.js +4 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-5GJV6EHG.js +0 -32
- package/dist/bundle/first-screen-YZCH4TEV.js +0 -30
- package/dist/bundle/server-AXMWFPNT.js +0 -55
- package/dist/bundle/store-maintenance-command-Y22ARSDR.js +0 -44
- /package/dist/bundle/{chunk-O5EHUB2V.js → chunk-62EDJKGP.js} +0 -0
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
singleLine,
|
|
5
5
|
visibleControls
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-N5FSRC6H.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError,
|
|
9
9
|
RegistryError,
|
|
@@ -36,12 +36,12 @@ import {
|
|
|
36
36
|
string,
|
|
37
37
|
union,
|
|
38
38
|
variant
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-XMMWKHNY.js";
|
|
40
40
|
import {
|
|
41
41
|
__name
|
|
42
42
|
} from "./chunk-ZVVMGPBJ.js";
|
|
43
43
|
|
|
44
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
45
45
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
46
46
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
47
47
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -55,7 +55,7 @@ var normalizeTag = /* @__PURE__ */ __name((value) => {
|
|
|
55
55
|
return tag;
|
|
56
56
|
}, "normalizeTag");
|
|
57
57
|
|
|
58
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
58
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.67.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
59
|
var QUERY_LIMITS = {
|
|
60
60
|
bytes: 8192,
|
|
61
61
|
depth: 32,
|
|
@@ -99,7 +99,7 @@ function queryError(reason, span, alternative, context3 = {}, details = {}) {
|
|
|
99
99
|
__name(queryError, "queryError");
|
|
100
100
|
var walkQuery = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => walkQuery(node2)), "walkQuery");
|
|
101
101
|
|
|
102
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
102
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.67.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
103
|
var timezoneOf = /* @__PURE__ */ __name((given) => {
|
|
104
104
|
const zone = given ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? "UTC";
|
|
105
105
|
try {
|
|
@@ -244,7 +244,7 @@ var dateRange = /* @__PURE__ */ __name((lower, upper, lowerInclusive, upperInclu
|
|
|
244
244
|
};
|
|
245
245
|
}, "dateRange");
|
|
246
246
|
|
|
247
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
247
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.67.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
248
|
var FIELD_TYPES = ["kw", "txt", "enum", "num", "time", "bool", "ref"];
|
|
249
249
|
var OPERATORS_BY_TYPE = {
|
|
250
250
|
kw: ["term", "phrase", "wildcard"],
|
|
@@ -321,7 +321,7 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
|
|
|
321
321
|
return [...own, ...relations, ...states];
|
|
322
322
|
}, "queryFieldsOf");
|
|
323
323
|
|
|
324
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
324
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.67.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
|
|
325
325
|
var inContext = /* @__PURE__ */ __name((context3, run2) => {
|
|
326
326
|
try {
|
|
327
327
|
run2();
|
|
@@ -396,7 +396,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry, options = {}) => {
|
|
|
396
396
|
}, "validateQuery");
|
|
397
397
|
var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
|
|
398
398
|
|
|
399
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
399
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.67.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
|
|
400
400
|
var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
|
|
401
401
|
var reserved = /* @__PURE__ */ new Set([
|
|
402
402
|
"+",
|
|
@@ -698,10 +698,10 @@ var implicitTextTerms = /* @__PURE__ */ __name((text6) => {
|
|
|
698
698
|
const tokens = tokensOf(text6);
|
|
699
699
|
if (tokens.some(({ kind }) => ["AND", "OR", "NOT", "+", "-", "!", "(", ")"].includes(kind)))
|
|
700
700
|
return /* @__PURE__ */ new Set();
|
|
701
|
-
return new Set(tokens.flatMap((token, index) => token.kind === "term" && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index - 1]?.kind ?? "") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index + 1]?.kind ?? "") ? [token.span.start] : []));
|
|
701
|
+
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] : []));
|
|
702
702
|
}, "implicitTextTerms");
|
|
703
703
|
|
|
704
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
704
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.67.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
|
|
705
705
|
var describeQuery = /* @__PURE__ */ __name((registry) => ({
|
|
706
706
|
entity: registry.entity,
|
|
707
707
|
backend: registry.backend,
|
|
@@ -729,7 +729,10 @@ var exampleProblems = /* @__PURE__ */ __name((registry) => {
|
|
|
729
729
|
...defaults
|
|
730
730
|
].filter((entry) => entry.problem !== void 0);
|
|
731
731
|
}, "exampleProblems");
|
|
732
|
+
var checked = /* @__PURE__ */ new WeakSet();
|
|
732
733
|
var defineQuery = /* @__PURE__ */ __name((registry) => {
|
|
734
|
+
if (checked.has(registry))
|
|
735
|
+
return registry;
|
|
733
736
|
const names = registry.fields.map((field) => field.name);
|
|
734
737
|
const problems = [
|
|
735
738
|
...duplicates(names).map((name) => `"${name}" is listed twice`),
|
|
@@ -738,6 +741,7 @@ var defineQuery = /* @__PURE__ */ __name((registry) => {
|
|
|
738
741
|
];
|
|
739
742
|
if (problems.length > 0)
|
|
740
743
|
throw new RegistryError(`${registry.entity} query`, problems);
|
|
744
|
+
checked.add(registry);
|
|
741
745
|
return registry;
|
|
742
746
|
}, "defineQuery");
|
|
743
747
|
var SPAN = ["span", "alternative", "guide"];
|
|
@@ -768,7 +772,7 @@ var QUERY_REASONS = defineReasons([
|
|
|
768
772
|
details: [...SPAN, ...details]
|
|
769
773
|
})));
|
|
770
774
|
|
|
771
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
775
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.67.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
|
|
772
776
|
var wordsOf = /* @__PURE__ */ __name((text6) => text6.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
|
|
773
777
|
var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
|
|
774
778
|
var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
|
|
@@ -823,7 +827,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
|
|
|
823
827
|
}, "matches");
|
|
824
828
|
var evaluate = /* @__PURE__ */ __name((ast, fields2, item, options = {}) => matches(ast.root, item, new Map(fields2.map((field) => [field.name, field])), options), "evaluate");
|
|
825
829
|
|
|
826
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
830
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.67.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
|
|
827
831
|
var QUERY_SYNTAX = 'field:value \xB7 "a phrase" \xB7 word* \xB7 AND OR NOT \xB7 ( ) \xB7 [a TO b] \xB7 > >= < <=';
|
|
828
832
|
var kindOf = /* @__PURE__ */ __name((field) => field.values ? `${field.type}: ${field.values.join("|")}` : `${field.type}: ${field.operators.join(", ")}`, "kindOf");
|
|
829
833
|
var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
|
|
@@ -839,7 +843,7 @@ var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
|
|
|
839
843
|
].join("\n");
|
|
840
844
|
}, "fieldsHelp");
|
|
841
845
|
|
|
842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
846
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/reference.js
|
|
843
847
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
|
|
844
848
|
var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
|
|
845
849
|
if (!Number.isSafeInteger(value) || value < minimum)
|
|
@@ -876,7 +880,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text6) => {
|
|
|
876
880
|
}, "parseMeetingReference");
|
|
877
881
|
var canonicalMeetingReference = /* @__PURE__ */ __name((text6) => formatMeetingReference(parseMeetingReference(text6)), "canonicalMeetingReference");
|
|
878
882
|
|
|
879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
883
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
880
884
|
var text = string();
|
|
881
885
|
var count = pipe(number(), integer(), minValue(0));
|
|
882
886
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -941,7 +945,7 @@ var MEETING_QUERY = {
|
|
|
941
945
|
})
|
|
942
946
|
};
|
|
943
947
|
|
|
944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
948
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
945
949
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
946
950
|
const parsed = urlOf(url);
|
|
947
951
|
if (!parsed)
|
|
@@ -975,7 +979,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
975
979
|
}
|
|
976
980
|
}, "urlOf");
|
|
977
981
|
|
|
978
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
982
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
979
983
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
980
984
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
981
985
|
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");
|
|
@@ -1008,7 +1012,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
1008
1012
|
return kept;
|
|
1009
1013
|
}, "entryMetadata");
|
|
1010
1014
|
|
|
1011
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1015
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
1012
1016
|
import { createHash } from "node:crypto";
|
|
1013
1017
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
1014
1018
|
reference: cue2.reference,
|
|
@@ -1022,7 +1026,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
1022
1026
|
text: cue2.text
|
|
1023
1027
|
})).digest("hex"), "meetingCueFingerprint");
|
|
1024
1028
|
|
|
1025
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
1026
1030
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
1027
1031
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
1028
1032
|
if (entry.recurrenceEndsAt !== null)
|
|
@@ -1045,7 +1049,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
1045
1049
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
1046
1050
|
}, "entryInWindow");
|
|
1047
1051
|
|
|
1048
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1052
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
1049
1053
|
var text2 = string();
|
|
1050
1054
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
1051
1055
|
var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
@@ -1272,7 +1276,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
1272
1276
|
};
|
|
1273
1277
|
}, "meetingHitsList");
|
|
1274
1278
|
|
|
1275
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
1276
1280
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text6) => text6.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
1277
1281
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
1278
1282
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -1296,7 +1300,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
1296
1300
|
};
|
|
1297
1301
|
}, "validateMeetingParticipantSearch");
|
|
1298
1302
|
|
|
1299
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
1300
1304
|
var MeetingError = class extends CliError {
|
|
1301
1305
|
static {
|
|
1302
1306
|
__name(this, "MeetingError");
|
|
@@ -1428,7 +1432,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id3, accountId)
|
|
|
1428
1432
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
1429
1433
|
}, "meetingSummaryAnswer");
|
|
1430
1434
|
|
|
1431
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1435
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
1432
1436
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
1433
1437
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
1434
1438
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -1524,10 +1528,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id3, options) => {
|
|
|
1524
1528
|
};
|
|
1525
1529
|
}, "exportMeeting");
|
|
1526
1530
|
|
|
1527
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1531
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1528
1532
|
import { createHash as createHash2 } from "node:crypto";
|
|
1529
1533
|
|
|
1530
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
1531
1535
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
1532
1536
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
1533
1537
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone`);
|
|
@@ -1538,7 +1542,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
1538
1542
|
return new Date(value).toISOString();
|
|
1539
1543
|
}, "meetingTimestamp");
|
|
1540
1544
|
|
|
1541
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
1542
1546
|
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
1543
1547
|
if (typeof value !== "string" || !value.trim())
|
|
1544
1548
|
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
@@ -1589,10 +1593,10 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
|
|
|
1589
1593
|
return Object.freeze(result);
|
|
1590
1594
|
}, "validateMeetingChange");
|
|
1591
1595
|
|
|
1592
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
|
|
1593
1597
|
var MEETING_FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
1594
1598
|
|
|
1595
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1599
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1596
1600
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
1597
1601
|
var invalid2 = /* @__PURE__ */ __name((message) => {
|
|
1598
1602
|
throw new CliError("validation_error", message);
|
|
@@ -1693,7 +1697,7 @@ var validateFindings = /* @__PURE__ */ __name((input, rules) => {
|
|
|
1693
1697
|
}, "validateFindings");
|
|
1694
1698
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
1695
1699
|
|
|
1696
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1700
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
1697
1701
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
1698
1702
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
1699
1703
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -1704,7 +1708,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
1704
1708
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
1705
1709
|
var meetingFindingFingerprint = findingFingerprint;
|
|
1706
1710
|
|
|
1707
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1711
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
1708
1712
|
var text4 = string();
|
|
1709
1713
|
var identifier = pipe(text4, minLength(1));
|
|
1710
1714
|
var nullableText = nullable(text4);
|
|
@@ -1830,7 +1834,7 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
1830
1834
|
meeting_embedding: embedding
|
|
1831
1835
|
};
|
|
1832
1836
|
|
|
1833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1837
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
1834
1838
|
var EVENT_QUERY = defineQuery({
|
|
1835
1839
|
entity: "event",
|
|
1836
1840
|
backend: "sql",
|
|
@@ -1846,7 +1850,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
1846
1850
|
]
|
|
1847
1851
|
});
|
|
1848
1852
|
|
|
1849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
1850
1854
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
|
|
1851
1855
|
const current = await store.meeting(details.meeting.id);
|
|
1852
1856
|
if (!current)
|
|
@@ -1889,7 +1893,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
1889
1893
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
1890
1894
|
}, "linkEvent");
|
|
1891
1895
|
|
|
1892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
1893
1897
|
var context = {
|
|
1894
1898
|
command: "search meetings",
|
|
1895
1899
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -1952,7 +1956,7 @@ var MEETING_FIELDS = defineQuery({
|
|
|
1952
1956
|
});
|
|
1953
1957
|
var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
|
|
1954
1958
|
|
|
1955
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1959
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
1956
1960
|
var contentHash = /* @__PURE__ */ __name(async (text6) => {
|
|
1957
1961
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text6));
|
|
1958
1962
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -1989,7 +1993,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
1989
1993
|
return time;
|
|
1990
1994
|
}, "timestamp");
|
|
1991
1995
|
|
|
1992
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
1993
1997
|
var TranscriptTextError = class extends Error {
|
|
1994
1998
|
static {
|
|
1995
1999
|
__name(this, "TranscriptTextError");
|
|
@@ -2044,7 +2048,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
2044
2048
|
return { header, lines };
|
|
2045
2049
|
}, "parseTranscriptText");
|
|
2046
2050
|
|
|
2047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2051
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
2048
2052
|
var VttError = class extends Error {
|
|
2049
2053
|
static {
|
|
2050
2054
|
__name(this, "VttError");
|
|
@@ -2096,7 +2100,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
2096
2100
|
return cues;
|
|
2097
2101
|
}, "parseVtt");
|
|
2098
2102
|
|
|
2099
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2103
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
2100
2104
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
2101
2105
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2102
2106
|
for (const file of files) {
|
|
@@ -2129,10 +2133,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2129
2133
|
return report;
|
|
2130
2134
|
}, "importFiles");
|
|
2131
2135
|
|
|
2132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2136
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
2133
2137
|
var CHAT_MESSAGES_READ = 1e5;
|
|
2134
2138
|
|
|
2135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
2136
2140
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
2137
2141
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
2138
2142
|
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)))
|
|
@@ -2145,7 +2149,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
2145
2149
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
2146
2150
|
}, "validateMeetingPassage");
|
|
2147
2151
|
|
|
2148
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2152
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
2149
2153
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
2150
2154
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2151
2155
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -2170,7 +2174,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
2170
2174
|
return { ...input, limit, maxReadBytes };
|
|
2171
2175
|
}, "validateMeetingPreparationContext");
|
|
2172
2176
|
|
|
2173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2177
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
2174
2178
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
2175
2179
|
var id = pipe(string(), minLength(1));
|
|
2176
2180
|
var meetingProjectEvidence = strictObject({
|
|
@@ -2291,7 +2295,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
2291
2295
|
};
|
|
2292
2296
|
}, "meetingProjectEvidenceAnswer");
|
|
2293
2297
|
|
|
2294
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2298
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
2295
2299
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
2296
2300
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
2297
2301
|
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) || [
|
|
@@ -2311,7 +2315,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
2311
2315
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
2312
2316
|
}, "validateMeetingHitSearch");
|
|
2313
2317
|
|
|
2314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2318
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
2315
2319
|
var ids = {
|
|
2316
2320
|
meeting_id: "meetingId",
|
|
2317
2321
|
identity_id: "participantIdentityId",
|
|
@@ -2402,7 +2406,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
|
|
|
2402
2406
|
return { project: project.trim(), options, query: frozen.join(" AND ") };
|
|
2403
2407
|
}, "prepareMeetingProjectEvidence");
|
|
2404
2408
|
|
|
2405
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2409
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
2406
2410
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
|
|
2407
2411
|
const prepared = prepareMeetingProjectEvidence(project, request, now);
|
|
2408
2412
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -2410,7 +2414,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
|
|
|
2410
2414
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
2411
2415
|
}, "readMeetingProjectEvidence");
|
|
2412
2416
|
|
|
2413
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
2414
2418
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2415
2419
|
const { identityExternalId, ...fields2 } = p;
|
|
2416
2420
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -2549,7 +2553,7 @@ unlinked`, format)],
|
|
|
2549
2553
|
return report;
|
|
2550
2554
|
}, "pull");
|
|
2551
2555
|
|
|
2552
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
2553
2557
|
var text5 = string();
|
|
2554
2558
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
2555
2559
|
var id2 = pipe(number(), integer(), minValue(1));
|
|
@@ -2694,7 +2698,14 @@ var event = strictObject({
|
|
|
2694
2698
|
created_at: isoTime,
|
|
2695
2699
|
updated_at: isoTime,
|
|
2696
2700
|
/** The fields whoever sent the invitation wrote, on a calendar CLI's `events list`: an agent reads them as data. */
|
|
2697
|
-
untrusted: optional(array(text5))
|
|
2701
|
+
untrusted: optional(array(text5)),
|
|
2702
|
+
/** On a calendar CLI's `events list changed:<date>`: what changed since then, and when the store saw it. */
|
|
2703
|
+
change: optional(picklist(["new", "moved", "cancelled"])),
|
|
2704
|
+
changed_at: optional(nullable(isoTime)),
|
|
2705
|
+
/** The times a moved event had at that date. */
|
|
2706
|
+
was: optional(strictObject({ starts_at: nullable(isoTime), ends_at: nullable(isoTime) })),
|
|
2707
|
+
/** On a calendar CLI's `events list overlapping`: the events it clashes with, as `event:<id>`. */
|
|
2708
|
+
overlaps: optional(array(text5))
|
|
2698
2709
|
});
|
|
2699
2710
|
var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
2700
2711
|
id: String(one.id),
|
|
@@ -2714,10 +2725,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
2714
2725
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
2715
2726
|
}), "eventItem");
|
|
2716
2727
|
|
|
2717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2728
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
2718
2729
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
2719
2730
|
|
|
2720
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2731
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
2721
2732
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
2722
2733
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2723
2734
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -2747,14 +2758,14 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
2747
2758
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
2748
2759
|
}, "validateMeetingRelatedHistory");
|
|
2749
2760
|
|
|
2750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2761
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
2751
2762
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
2752
2763
|
|
|
2753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2764
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
2754
2765
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
2755
2766
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
2756
2767
|
|
|
2757
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2768
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
2758
2769
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
2759
2770
|
input.signal?.throwIfAborted();
|
|
2760
2771
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -2775,10 +2786,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
2775
2786
|
return { ...input, limit, maxReadBytes };
|
|
2776
2787
|
}, "validateMeetingSeriesHistory");
|
|
2777
2788
|
|
|
2778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2789
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
2779
2790
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
2780
2791
|
|
|
2781
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2792
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
2782
2793
|
function invalid3(field, response = false) {
|
|
2783
2794
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
2784
2795
|
}
|
|
@@ -2807,7 +2818,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
2807
2818
|
cursorDetails(value);
|
|
2808
2819
|
}, "validateMeetingSeriesInventoryCursor");
|
|
2809
2820
|
|
|
2810
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2821
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
2811
2822
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
2812
2823
|
const zone = timeZone ?? "UTC";
|
|
2813
2824
|
try {
|
|
@@ -2886,7 +2897,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
2886
2897
|
};
|
|
2887
2898
|
}, "aggregateMeetingStats");
|
|
2888
2899
|
|
|
2889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2900
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
2890
2901
|
var LINK_KINDS = [
|
|
2891
2902
|
"links-to",
|
|
2892
2903
|
"blocked-by",
|
|
@@ -2907,7 +2918,7 @@ var LINK_SOURCES = [...LINK_ORIGINS, "calendar"];
|
|
|
2907
2918
|
var RELATION_KINDS = ["member-of", "related-to"];
|
|
2908
2919
|
var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
|
|
2909
2920
|
|
|
2910
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2921
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
2911
2922
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
2912
2923
|
var TASK_STATES = ["open", "done", "dismissed"];
|
|
2913
2924
|
var TASK_ORIGINS = ["rule", "agent", "owner"];
|
|
@@ -2920,13 +2931,13 @@ function closeTask(task, state, by, at, reason) {
|
|
|
2920
2931
|
}
|
|
2921
2932
|
__name(closeTask, "closeTask");
|
|
2922
2933
|
|
|
2923
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2934
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
2924
2935
|
function matches2(task, filter) {
|
|
2925
2936
|
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);
|
|
2926
2937
|
}
|
|
2927
2938
|
__name(matches2, "matches");
|
|
2928
2939
|
|
|
2929
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2940
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
2930
2941
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
2931
2942
|
async function find(id3) {
|
|
2932
2943
|
const task = await store.get(id3);
|
|
@@ -2986,9 +2997,9 @@ function median(values) {
|
|
|
2986
2997
|
}
|
|
2987
2998
|
__name(median, "median");
|
|
2988
2999
|
|
|
2989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3000
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
2990
3001
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
2991
|
-
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed"];
|
|
3002
|
+
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
2992
3003
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
2993
3004
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
2994
3005
|
var MEMORY_SCOPES = ["personal", "work"];
|