@wirecat/tg-cli 0.107.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-PN5AXCJ7.js → adapter-6JLFYFL5.js} +45 -44
- package/dist/bundle/{all-profiles-SDHNKZQQ.js → all-profiles-X7Y3T5S4.js} +8 -8
- package/dist/bundle/{anthropic-F3BXQLYB.js → anthropic-LGVXAADT.js} +5 -5
- package/dist/bundle/{app-server-XDKMWVCD.js → app-server-UI3AFSJX.js} +40 -39
- package/dist/bundle/{bot-api-YXJL4CEV.js → bot-api-TQYRNYJQ.js} +46 -45
- package/dist/bundle/{bot-history-SDLHR7PV.js → bot-history-DDNTNMNB.js} +15 -15
- package/dist/bundle/{bun-SMH7PKUS.js → bun-WXGS6HML.js} +2 -2
- package/dist/bundle/{bun-sqlite-KB6PSTWH.js → bun-sqlite-M6JEXKRT.js} +4 -4
- package/dist/bundle/{chunk-NCWB3KXP.js → chunk-25VC6U3A.js} +1 -1
- package/dist/bundle/{chunk-NUVHRCUK.js → chunk-2ILQYCBY.js} +390 -291
- package/dist/bundle/{chunk-X7M7YZPF.js → chunk-3PEZWXKO.js} +6 -6
- package/dist/bundle/{chunk-YSDA3EWT.js → chunk-4R4AH6FM.js} +117 -94
- package/dist/bundle/{chunk-TEHAIU6I.js → chunk-5SUFMBU5.js} +44 -44
- package/dist/bundle/chunk-76C5SSMR.js +379 -0
- package/dist/bundle/{chunk-STGY3EAZ.js → chunk-7AJ2IESO.js} +1 -1
- package/dist/bundle/{chunk-3UEFJ75D.js → chunk-7T7ILNCU.js} +2 -2
- package/dist/bundle/{chunk-O7VQHFMZ.js → chunk-AD3QPYI3.js} +2 -2
- package/dist/bundle/{chunk-IY7IEM56.js → chunk-AGVKIJB7.js} +6 -6
- package/dist/bundle/{chunk-OIHAM73W.js → chunk-BESIMQ5U.js} +1 -1
- package/dist/bundle/{chunk-CJJVFGFX.js → chunk-BHPCZCX7.js} +2 -2
- package/dist/bundle/{chunk-GJS26XEB.js → chunk-BZIZLEJN.js} +4 -4
- package/dist/bundle/{chunk-REJM262E.js → chunk-C3RX3UOE.js} +11 -11
- package/dist/bundle/{chunk-WXIGT6FY.js → chunk-CH2ESVV5.js} +22 -22
- package/dist/bundle/{chunk-DFZBGU4G.js → chunk-CHI6D4D6.js} +4 -4
- package/dist/bundle/{chunk-BYDDYOF4.js → chunk-CVLDXFRP.js} +8 -8
- package/dist/bundle/{chunk-MFS52LTZ.js → chunk-DLAFGSTN.js} +1 -1
- package/dist/bundle/{chunk-P4A27ETD.js → chunk-DO33KAMM.js} +94 -59
- package/dist/bundle/{chunk-GGAG3G7B.js → chunk-DZVYGBZB.js} +79 -56
- package/dist/bundle/{chunk-WAGDZB62.js → chunk-GUFM5RLW.js} +2 -2
- package/dist/bundle/{chunk-LA2OUJK5.js → chunk-IGIPIO4J.js} +11 -11
- package/dist/bundle/{chunk-5QBTHR57.js → chunk-INYO2QFW.js} +3 -3
- package/dist/bundle/{chunk-VMKPRAIB.js → chunk-IULYECPC.js} +12 -12
- package/dist/bundle/{chunk-DBZVF73F.js → chunk-IV2QWSPG.js} +2 -2
- package/dist/bundle/{chunk-YA44IPCS.js → chunk-KHKC236O.js} +2 -2
- package/dist/bundle/{chunk-TKCZYJAT.js → chunk-M62LF3QE.js} +2140 -1648
- package/dist/bundle/{chunk-RGNKRI5T.js → chunk-MF6NKU3Z.js} +81 -30
- package/dist/bundle/{chunk-MOZX3JX3.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-NMTFZNFU.js → chunk-OHLMHBDI.js} +28 -28
- package/dist/bundle/{chunk-P5UG655O.js → chunk-P55L4S6N.js} +3 -3
- package/dist/bundle/{chunk-JZOXKRDG.js → chunk-P57R2P75.js} +7 -7
- package/dist/bundle/{chunk-BMXGEQDA.js → chunk-P5ILJ7MN.js} +5 -5
- package/dist/bundle/{chunk-PYRJO6B3.js → chunk-QQF7RDLR.js} +49 -24
- package/dist/bundle/{chunk-TFV4UPQZ.js → chunk-RD2NLJSU.js} +16 -4
- package/dist/bundle/{chunk-KROO42KC.js → chunk-S7B6MTXX.js} +6 -6
- package/dist/bundle/{chunk-NSQL3YRD.js → chunk-SH63Q4QR.js} +22 -22
- package/dist/bundle/{chunk-JAWXJILO.js → chunk-TMXNMO66.js} +3 -3
- package/dist/bundle/{chunk-44UANKAI.js → chunk-UIPBAT2T.js} +31 -14
- package/dist/bundle/{chunk-53RW4KLL.js → chunk-UUQ3BH2Z.js} +2 -2
- package/dist/bundle/{chunk-VMU4SGCE.js → chunk-VFVMB3NV.js} +8 -6
- package/dist/bundle/{chunk-AWBJSYX6.js → chunk-VYR2IIWW.js} +1 -1
- package/dist/bundle/{chunk-53QVFV34.js → chunk-WHYS6OSG.js} +2 -2
- package/dist/bundle/{chunk-WS3S7DXT.js → chunk-WNTXIQMB.js} +2 -2
- package/dist/bundle/{chunk-P5KMLJQR.js → chunk-XJVGCCQE.js} +666 -782
- package/dist/bundle/{chunk-67SRVSPU.js → chunk-XMMWKHNY.js} +26 -9
- package/dist/bundle/{chunk-A4DS5ANQ.js → chunk-YXCQ4DLZ.js} +1 -1
- package/dist/bundle/{chunk-465FPHSG.js → chunk-YYOIULA2.js} +8 -8
- package/dist/bundle/{chunk-WFG7KFM4.js → chunk-ZFMS5G4H.js} +2 -2
- package/dist/bundle/{chunk-BGVODG6P.js → chunk-ZHP44EML.js} +3 -3
- package/dist/bundle/{chunk-6FSG6QZH.js → chunk-ZMZKZL3Y.js} +1 -1
- package/dist/bundle/{chunk-H4LIQVPN.js → chunk-ZUOS7QUB.js} +11 -11
- package/dist/bundle/command-contract-E2MWR3T3.js +32 -0
- package/dist/bundle/{decode-WEP3HD56.js → decode-RKPOGPBE.js} +19 -17
- package/dist/bundle/{echarts-MRMILSAF.js → echarts-H5QQRBHI.js} +2 -2
- package/dist/bundle/{embed-LCLTUVUD.js → embed-7TVAPNP7.js} +5 -5
- package/dist/bundle/{embedder-O4WNEXUC.js → embedder-YOOHWWN6.js} +8 -8
- package/dist/bundle/{entry-7HDX6BDR.js → entry-SAKW5HEZ.js} +5 -5
- package/dist/bundle/{first-run-M7YVVQJS.js → first-run-C744N572.js} +9 -9
- package/dist/bundle/first-screen-7GKUEIWS.js +30 -0
- package/dist/bundle/{identity-EEMHQOTN.js → identity-NRWTZIQ4.js} +3 -3
- package/dist/bundle/{instructions-YIH3J4TI.js → instructions-6LWRAW47.js} +1 -1
- package/dist/bundle/{mcp-OQBZXELQ.js → mcp-WSGVVZWI.js} +2 -2
- package/dist/bundle/{node-YWT7RFN6.js → node-XN4PIVWW.js} +2 -2
- package/dist/bundle/node-sqlite-PCBGROGQ.js +62 -0
- package/dist/bundle/{oauth-CADZB7TT.js → oauth-PX6NGHUV.js} +6 -6
- package/dist/bundle/{open-AMRU27KK.js → open-BKJGJ6GX.js} +3 -3
- package/dist/bundle/openai-MJP7CZXP.js +250 -0
- package/dist/bundle/{process-JC76J5UD.js → process-4PRR3MLT.js} +1 -1
- package/dist/bundle/{program-FI6MTY2V.js → program-7YZUO42B.js} +48 -47
- package/dist/bundle/{prompt-SPYTHKHN.js → prompt-CILSZC2R.js} +4 -4
- package/dist/bundle/{proxy-transport-YSBYG26I.js → proxy-transport-FWGKTYBL.js} +4 -4
- package/dist/bundle/{recognize-G5VVM6MU.js → recognize-AVFDJAIL.js} +5 -3
- package/dist/bundle/{remote-Z3HW42CH.js → remote-2VYXGOM4.js} +6 -6
- package/dist/bundle/{rerank-QJ5NLZUU.js → rerank-6FU2JPCD.js} +6 -6
- package/dist/bundle/{serve-3I4C6Y5X.js → serve-3YQOHBR6.js} +8 -8
- package/dist/bundle/server-S2K4YDDG.js +56 -0
- package/dist/bundle/{server-2L4BONHN.js → server-TPK3LNEX.js} +32 -31
- package/dist/bundle/{state-IXZYPH46.js → state-LLUNBLZE.js} +5 -5
- package/dist/bundle/{store-KS4XIA2R.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-B4DA4MXP.js +0 -32
- package/dist/bundle/first-screen-MXW3UZFB.js +0 -30
- package/dist/bundle/node-sqlite-LVHTONMA.js +0 -46
- package/dist/bundle/server-7TJ337SR.js +0 -55
- package/dist/bundle/store-maintenance-command-I3L24P22.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,30 @@ 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
|
|
1030
|
+
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
1031
|
+
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
1032
|
+
if (entry.recurrenceEndsAt !== null)
|
|
1033
|
+
return entry.recurrenceEndsAt;
|
|
1034
|
+
const rule = entry.recurrence?.find((line2) => /^RRULE:/iu.test(line2));
|
|
1035
|
+
const until = rule === void 0 ? null : UNTIL.exec(rule.slice("RRULE:".length));
|
|
1036
|
+
if (!until)
|
|
1037
|
+
return Number.POSITIVE_INFINITY;
|
|
1038
|
+
const [, year, month, day, hour = "23", minute = "59", second = "59"] = until;
|
|
1039
|
+
return Date.UTC(Number(year), Number(month) - 1, Number(day), Number(hour), Number(minute), Number(second)) + 864e5;
|
|
1040
|
+
}, "seriesEnd");
|
|
1041
|
+
var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
1042
|
+
if (entry.kind === "occurrence" && !entry.exception)
|
|
1043
|
+
return entry.originalStartsAt !== null && entry.originalStartsAt >= window.from && entry.originalStartsAt < window.to;
|
|
1044
|
+
const start = entry.startsAt ?? (entry.kind === "occurrence" ? entry.originalStartsAt : null);
|
|
1045
|
+
if (start === null || start >= window.to)
|
|
1046
|
+
return false;
|
|
1047
|
+
if (entry.kind === "series")
|
|
1048
|
+
return seriesEnd(entry) >= window.from;
|
|
1049
|
+
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
1050
|
+
}, "entryInWindow");
|
|
1051
|
+
|
|
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
|
|
1026
1053
|
var text2 = string();
|
|
1027
1054
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
1028
1055
|
var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
@@ -1249,7 +1276,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
1249
1276
|
};
|
|
1250
1277
|
}, "meetingHitsList");
|
|
1251
1278
|
|
|
1252
|
-
// 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
|
|
1253
1280
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text6) => text6.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
1254
1281
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
1255
1282
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -1273,7 +1300,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
1273
1300
|
};
|
|
1274
1301
|
}, "validateMeetingParticipantSearch");
|
|
1275
1302
|
|
|
1276
|
-
// 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
|
|
1277
1304
|
var MeetingError = class extends CliError {
|
|
1278
1305
|
static {
|
|
1279
1306
|
__name(this, "MeetingError");
|
|
@@ -1405,7 +1432,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id3, accountId)
|
|
|
1405
1432
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
1406
1433
|
}, "meetingSummaryAnswer");
|
|
1407
1434
|
|
|
1408
|
-
// 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
|
|
1409
1436
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
1410
1437
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
1411
1438
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -1501,10 +1528,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id3, options) => {
|
|
|
1501
1528
|
};
|
|
1502
1529
|
}, "exportMeeting");
|
|
1503
1530
|
|
|
1504
|
-
// 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
|
|
1505
1532
|
import { createHash as createHash2 } from "node:crypto";
|
|
1506
1533
|
|
|
1507
|
-
// 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
|
|
1508
1535
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
1509
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)))
|
|
1510
1537
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone`);
|
|
@@ -1515,7 +1542,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
1515
1542
|
return new Date(value).toISOString();
|
|
1516
1543
|
}, "meetingTimestamp");
|
|
1517
1544
|
|
|
1518
|
-
// 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
|
|
1519
1546
|
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
1520
1547
|
if (typeof value !== "string" || !value.trim())
|
|
1521
1548
|
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
@@ -1566,10 +1593,10 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
|
|
|
1566
1593
|
return Object.freeze(result);
|
|
1567
1594
|
}, "validateMeetingChange");
|
|
1568
1595
|
|
|
1569
|
-
// 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
|
|
1570
1597
|
var MEETING_FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
1571
1598
|
|
|
1572
|
-
// 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
|
|
1573
1600
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
1574
1601
|
var invalid2 = /* @__PURE__ */ __name((message) => {
|
|
1575
1602
|
throw new CliError("validation_error", message);
|
|
@@ -1670,7 +1697,7 @@ var validateFindings = /* @__PURE__ */ __name((input, rules) => {
|
|
|
1670
1697
|
}, "validateFindings");
|
|
1671
1698
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
1672
1699
|
|
|
1673
|
-
// 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
|
|
1674
1701
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
1675
1702
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
1676
1703
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -1681,7 +1708,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
1681
1708
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
1682
1709
|
var meetingFindingFingerprint = findingFingerprint;
|
|
1683
1710
|
|
|
1684
|
-
// 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
|
|
1685
1712
|
var text4 = string();
|
|
1686
1713
|
var identifier = pipe(text4, minLength(1));
|
|
1687
1714
|
var nullableText = nullable(text4);
|
|
@@ -1807,7 +1834,7 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
1807
1834
|
meeting_embedding: embedding
|
|
1808
1835
|
};
|
|
1809
1836
|
|
|
1810
|
-
// 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
|
|
1811
1838
|
var EVENT_QUERY = defineQuery({
|
|
1812
1839
|
entity: "event",
|
|
1813
1840
|
backend: "sql",
|
|
@@ -1823,7 +1850,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
1823
1850
|
]
|
|
1824
1851
|
});
|
|
1825
1852
|
|
|
1826
|
-
// 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
|
|
1827
1854
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
|
|
1828
1855
|
const current = await store.meeting(details.meeting.id);
|
|
1829
1856
|
if (!current)
|
|
@@ -1866,7 +1893,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
1866
1893
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
1867
1894
|
}, "linkEvent");
|
|
1868
1895
|
|
|
1869
|
-
// 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
|
|
1870
1897
|
var context = {
|
|
1871
1898
|
command: "search meetings",
|
|
1872
1899
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -1929,7 +1956,7 @@ var MEETING_FIELDS = defineQuery({
|
|
|
1929
1956
|
});
|
|
1930
1957
|
var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
|
|
1931
1958
|
|
|
1932
|
-
// 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
|
|
1933
1960
|
var contentHash = /* @__PURE__ */ __name(async (text6) => {
|
|
1934
1961
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text6));
|
|
1935
1962
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -1966,7 +1993,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
1966
1993
|
return time;
|
|
1967
1994
|
}, "timestamp");
|
|
1968
1995
|
|
|
1969
|
-
// 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
|
|
1970
1997
|
var TranscriptTextError = class extends Error {
|
|
1971
1998
|
static {
|
|
1972
1999
|
__name(this, "TranscriptTextError");
|
|
@@ -2021,7 +2048,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
2021
2048
|
return { header, lines };
|
|
2022
2049
|
}, "parseTranscriptText");
|
|
2023
2050
|
|
|
2024
|
-
// 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
|
|
2025
2052
|
var VttError = class extends Error {
|
|
2026
2053
|
static {
|
|
2027
2054
|
__name(this, "VttError");
|
|
@@ -2073,7 +2100,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
2073
2100
|
return cues;
|
|
2074
2101
|
}, "parseVtt");
|
|
2075
2102
|
|
|
2076
|
-
// 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
|
|
2077
2104
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
2078
2105
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2079
2106
|
for (const file of files) {
|
|
@@ -2106,10 +2133,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2106
2133
|
return report;
|
|
2107
2134
|
}, "importFiles");
|
|
2108
2135
|
|
|
2109
|
-
// 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
|
|
2110
2137
|
var CHAT_MESSAGES_READ = 1e5;
|
|
2111
2138
|
|
|
2112
|
-
// 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
|
|
2113
2140
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
2114
2141
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
2115
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)))
|
|
@@ -2122,7 +2149,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
2122
2149
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
2123
2150
|
}, "validateMeetingPassage");
|
|
2124
2151
|
|
|
2125
|
-
// 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
|
|
2126
2153
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
2127
2154
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2128
2155
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -2147,7 +2174,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
2147
2174
|
return { ...input, limit, maxReadBytes };
|
|
2148
2175
|
}, "validateMeetingPreparationContext");
|
|
2149
2176
|
|
|
2150
|
-
// 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
|
|
2151
2178
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
2152
2179
|
var id = pipe(string(), minLength(1));
|
|
2153
2180
|
var meetingProjectEvidence = strictObject({
|
|
@@ -2268,7 +2295,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
2268
2295
|
};
|
|
2269
2296
|
}, "meetingProjectEvidenceAnswer");
|
|
2270
2297
|
|
|
2271
|
-
// 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
|
|
2272
2299
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
2273
2300
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
2274
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) || [
|
|
@@ -2288,7 +2315,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
2288
2315
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
2289
2316
|
}, "validateMeetingHitSearch");
|
|
2290
2317
|
|
|
2291
|
-
// 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
|
|
2292
2319
|
var ids = {
|
|
2293
2320
|
meeting_id: "meetingId",
|
|
2294
2321
|
identity_id: "participantIdentityId",
|
|
@@ -2379,7 +2406,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
|
|
|
2379
2406
|
return { project: project.trim(), options, query: frozen.join(" AND ") };
|
|
2380
2407
|
}, "prepareMeetingProjectEvidence");
|
|
2381
2408
|
|
|
2382
|
-
// 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
|
|
2383
2410
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
|
|
2384
2411
|
const prepared = prepareMeetingProjectEvidence(project, request, now);
|
|
2385
2412
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -2387,7 +2414,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
|
|
|
2387
2414
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
2388
2415
|
}, "readMeetingProjectEvidence");
|
|
2389
2416
|
|
|
2390
|
-
// 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
|
|
2391
2418
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2392
2419
|
const { identityExternalId, ...fields2 } = p;
|
|
2393
2420
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -2526,7 +2553,7 @@ unlinked`, format)],
|
|
|
2526
2553
|
return report;
|
|
2527
2554
|
}, "pull");
|
|
2528
2555
|
|
|
2529
|
-
// 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
|
|
2530
2557
|
var text5 = string();
|
|
2531
2558
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
2532
2559
|
var id2 = pipe(number(), integer(), minValue(1));
|
|
@@ -2671,7 +2698,14 @@ var event = strictObject({
|
|
|
2671
2698
|
created_at: isoTime,
|
|
2672
2699
|
updated_at: isoTime,
|
|
2673
2700
|
/** The fields whoever sent the invitation wrote, on a calendar CLI's `events list`: an agent reads them as data. */
|
|
2674
|
-
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))
|
|
2675
2709
|
});
|
|
2676
2710
|
var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
2677
2711
|
id: String(one.id),
|
|
@@ -2691,10 +2725,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
2691
2725
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
2692
2726
|
}), "eventItem");
|
|
2693
2727
|
|
|
2694
|
-
// 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
|
|
2695
2729
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
2696
2730
|
|
|
2697
|
-
// 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
|
|
2698
2732
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
2699
2733
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2700
2734
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -2724,14 +2758,14 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
2724
2758
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
2725
2759
|
}, "validateMeetingRelatedHistory");
|
|
2726
2760
|
|
|
2727
|
-
// 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
|
|
2728
2762
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
2729
2763
|
|
|
2730
|
-
// 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
|
|
2731
2765
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
2732
2766
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
2733
2767
|
|
|
2734
|
-
// 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
|
|
2735
2769
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
2736
2770
|
input.signal?.throwIfAborted();
|
|
2737
2771
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -2752,10 +2786,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
2752
2786
|
return { ...input, limit, maxReadBytes };
|
|
2753
2787
|
}, "validateMeetingSeriesHistory");
|
|
2754
2788
|
|
|
2755
|
-
// 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
|
|
2756
2790
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
2757
2791
|
|
|
2758
|
-
// 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
|
|
2759
2793
|
function invalid3(field, response = false) {
|
|
2760
2794
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
2761
2795
|
}
|
|
@@ -2784,7 +2818,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
2784
2818
|
cursorDetails(value);
|
|
2785
2819
|
}, "validateMeetingSeriesInventoryCursor");
|
|
2786
2820
|
|
|
2787
|
-
// 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
|
|
2788
2822
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
2789
2823
|
const zone = timeZone ?? "UTC";
|
|
2790
2824
|
try {
|
|
@@ -2863,7 +2897,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
2863
2897
|
};
|
|
2864
2898
|
}, "aggregateMeetingStats");
|
|
2865
2899
|
|
|
2866
|
-
// 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
|
|
2867
2901
|
var LINK_KINDS = [
|
|
2868
2902
|
"links-to",
|
|
2869
2903
|
"blocked-by",
|
|
@@ -2884,7 +2918,7 @@ var LINK_SOURCES = [...LINK_ORIGINS, "calendar"];
|
|
|
2884
2918
|
var RELATION_KINDS = ["member-of", "related-to"];
|
|
2885
2919
|
var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
|
|
2886
2920
|
|
|
2887
|
-
// 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
|
|
2888
2922
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
2889
2923
|
var TASK_STATES = ["open", "done", "dismissed"];
|
|
2890
2924
|
var TASK_ORIGINS = ["rule", "agent", "owner"];
|
|
@@ -2897,13 +2931,13 @@ function closeTask(task, state, by, at, reason) {
|
|
|
2897
2931
|
}
|
|
2898
2932
|
__name(closeTask, "closeTask");
|
|
2899
2933
|
|
|
2900
|
-
// 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
|
|
2901
2935
|
function matches2(task, filter) {
|
|
2902
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);
|
|
2903
2937
|
}
|
|
2904
2938
|
__name(matches2, "matches");
|
|
2905
2939
|
|
|
2906
|
-
// 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
|
|
2907
2941
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
2908
2942
|
async function find(id3) {
|
|
2909
2943
|
const task = await store.get(id3);
|
|
@@ -2963,9 +2997,9 @@ function median(values) {
|
|
|
2963
2997
|
}
|
|
2964
2998
|
__name(median, "median");
|
|
2965
2999
|
|
|
2966
|
-
// 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
|
|
2967
3001
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
2968
|
-
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed"];
|
|
3002
|
+
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
2969
3003
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
2970
3004
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
2971
3005
|
var MEMORY_SCOPES = ["personal", "work"];
|
|
@@ -3013,6 +3047,7 @@ export {
|
|
|
3013
3047
|
entryMetadata,
|
|
3014
3048
|
meetingCueFingerprint,
|
|
3015
3049
|
EVENT_QUERY,
|
|
3050
|
+
entryInWindow,
|
|
3016
3051
|
normalizeMeetingParticipantQuery,
|
|
3017
3052
|
validateMeetingParticipantSearch,
|
|
3018
3053
|
MeetingError,
|