@wirecat/tg-cli 0.111.0 → 0.112.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/README.md +3 -0
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-WFC2JAD4.js → adapter-ILDV2YSZ.js} +70 -50
- package/dist/bundle/{all-profiles-FEUSGHT7.js → all-profiles-4SH2Q4WV.js} +8 -8
- package/dist/bundle/{anthropic-O646SJIJ.js → anthropic-64SM23YO.js} +5 -5
- package/dist/bundle/{app-server-7P23Y45A.js → app-server-SSYZWCDJ.js} +40 -40
- package/dist/bundle/{bot-api-WTJCL6VF.js → bot-api-OHAGQMES.js} +46 -46
- package/dist/bundle/{bot-history-5J2Q4SPC.js → bot-history-AUFO7UL2.js} +15 -15
- package/dist/bundle/{bun-KUKVEKDW.js → bun-AHZX63TR.js} +2 -2
- package/dist/bundle/{bun-sqlite-2G5TXHYE.js → bun-sqlite-KBIIODPV.js} +4 -4
- package/dist/bundle/{chunk-43ZFY6TW.js → chunk-2IGZLBTE.js} +2 -2
- package/dist/bundle/{chunk-ABVHA4K6.js → chunk-3AJO4GER.js} +5 -5
- package/dist/bundle/{chunk-PNUHAHTF.js → chunk-3GL4AOOG.js} +1 -1
- package/dist/bundle/{chunk-TWZTQHP6.js → chunk-3W7BU2BL.js} +6 -6
- package/dist/bundle/{chunk-YFK3DNNP.js → chunk-4IDJ7QCG.js} +4 -4
- package/dist/bundle/{chunk-KLHLWKWC.js → chunk-4JXZKMXV.js} +65 -54
- package/dist/bundle/{chunk-J4QVXR5I.js → chunk-5BNYW5RA.js} +2 -2
- package/dist/bundle/{chunk-33HEHPIK.js → chunk-5W72OARG.js} +8 -8
- package/dist/bundle/{chunk-YG4BO7N3.js → chunk-6KGENDPF.js} +2 -2
- package/dist/bundle/{chunk-HN6ZMUAS.js → chunk-7MFJFVUN.js} +1 -1
- package/dist/bundle/{chunk-3BD24JYK.js → chunk-B3Y2KZRS.js} +105 -94
- package/dist/bundle/{chunk-KE47Y4PW.js → chunk-BIERCQVG.js} +639 -374
- package/dist/bundle/{chunk-J2Z5E7TO.js → chunk-BTAET4U3.js} +1 -1
- package/dist/bundle/{chunk-UIPT6IAU.js → chunk-COTC7HF3.js} +1 -1
- package/dist/bundle/{chunk-MSGYLWCH.js → chunk-D5JP2YWG.js} +2 -2
- package/dist/bundle/{chunk-UDYCZ5KB.js → chunk-DFUTZGEV.js} +1 -1
- package/dist/bundle/{chunk-QVM2HKJP.js → chunk-DNYGJAEP.js} +4 -4
- package/dist/bundle/{chunk-2ZH3PUQX.js → chunk-E4EJ2UTT.js} +2 -2
- package/dist/bundle/{chunk-DREEXESG.js → chunk-EO7PQE3J.js} +82 -64
- package/dist/bundle/{chunk-NIKYFRDQ.js → chunk-EPAOLRUL.js} +2 -2
- package/dist/bundle/{chunk-BNQOUCL2.js → chunk-GM44UNGL.js} +1 -1
- package/dist/bundle/{chunk-NQAV7U7C.js → chunk-GSGS62LX.js} +1 -1
- package/dist/bundle/{chunk-UPRYEDAV.js → chunk-GW7JRFTF.js} +3 -3
- package/dist/bundle/{chunk-QEAMO2TS.js → chunk-ICEJKOKO.js} +7 -7
- package/dist/bundle/{chunk-LLAZSGS7.js → chunk-JIGYVVWA.js} +22 -22
- package/dist/bundle/{chunk-UMUJHC4M.js → chunk-JLB5LEXJ.js} +3 -3
- package/dist/bundle/{chunk-WDRNVSWF.js → chunk-JPRYFDOJ.js} +45 -44
- package/dist/bundle/{chunk-VIEVOF3O.js → chunk-JXTYTAWE.js} +11 -11
- package/dist/bundle/{chunk-XXOJ7PQY.js → chunk-JYOQMYNJ.js} +28 -28
- package/dist/bundle/{chunk-7665YBJ7.js → chunk-K7VOCHVS.js} +6 -6
- package/dist/bundle/{chunk-K457FHD4.js → chunk-KGYPSBTI.js} +22 -22
- package/dist/bundle/{chunk-BWRCPMMC.js → chunk-KLNQXUDX.js} +18 -18
- package/dist/bundle/{chunk-5ZPLOYTP.js → chunk-KYYAHIG2.js} +238 -222
- package/dist/bundle/{chunk-COHMFCHD.js → chunk-MCXVGHL6.js} +85 -31
- package/dist/bundle/{chunk-T6DSAROY.js → chunk-NKACHGB2.js} +25 -14
- package/dist/bundle/{chunk-OYVDWHP5.js → chunk-NQKPXVLX.js} +2 -2
- package/dist/bundle/{chunk-CJUSP5X2.js → chunk-PDVSMGWO.js} +2 -2
- package/dist/bundle/{chunk-XIRASTVS.js → chunk-PXUHQO66.js} +11 -11
- package/dist/bundle/{chunk-EO563SUX.js → chunk-QL4WBCL5.js} +7 -7
- package/dist/bundle/{chunk-PQGWEFJ2.js → chunk-QMJGHSGN.js} +3 -3
- package/dist/bundle/{chunk-UFIUMPXP.js → chunk-RANORATG.js} +4 -4
- package/dist/bundle/{chunk-5FJQG5UZ.js → chunk-RC7EBLHM.js} +8 -8
- package/dist/bundle/{chunk-7GQLD5TJ.js → chunk-RHYMEHYK.js} +2 -2
- package/dist/bundle/{chunk-QAC6Z675.js → chunk-RPNRCFEE.js} +2 -2
- package/dist/bundle/{chunk-EB44Z44U.js → chunk-SC2DUQAK.js} +1 -1
- package/dist/bundle/{chunk-ONHHBPV3.js → chunk-SFJFBIYP.js} +2 -2
- package/dist/bundle/{chunk-ITSSCYLP.js → chunk-TOBJGMMA.js} +11 -11
- package/dist/bundle/{chunk-ZCHC7TYO.js → chunk-TUJEJ4D5.js} +26 -13
- package/dist/bundle/{chunk-DEG4JJHG.js → chunk-UQOSZ2XX.js} +449 -341
- package/dist/bundle/{chunk-ZCV4UEVH.js → chunk-UVRD447S.js} +3 -3
- package/dist/bundle/{chunk-2K6IGVSI.js → chunk-UXCWUEN7.js} +5 -5
- package/dist/bundle/{chunk-3WUTBGZE.js → chunk-WI2S6INJ.js} +6 -6
- package/dist/bundle/{chunk-AUWYMMYL.js → chunk-WWKXTKCE.js} +4 -4
- package/dist/bundle/{chunk-QLLPZWYZ.js → chunk-XSYJKEA5.js} +4 -4
- package/dist/bundle/command-contract-4KVJJZ46.js +32 -0
- package/dist/bundle/{decode-QJNVAAKJ.js → decode-FR3QHHJI.js} +4 -4
- package/dist/bundle/{echarts-2EDY7OUX.js → echarts-VTV4C2OS.js} +2 -2
- package/dist/bundle/{embed-PZSXOQJO.js → embed-US7X5P5D.js} +5 -5
- package/dist/bundle/{embedder-O4EGMMUU.js → embedder-63Z7ZBYG.js} +8 -8
- package/dist/bundle/{entry-DVLMQM6J.js → entry-B4J7IAG3.js} +5 -5
- package/dist/bundle/{first-run-J67KTUWA.js → first-run-MXPPUGII.js} +9 -9
- package/dist/bundle/first-screen-GFYHUBBD.js +30 -0
- package/dist/bundle/{identity-DSYY4FLQ.js → identity-AQWKU7SM.js} +3 -3
- package/dist/bundle/{instructions-O535XB2L.js → instructions-GBR6DJTK.js} +1 -1
- package/dist/bundle/{mcp-EMNFFY4N.js → mcp-YJEQYYTR.js} +2 -2
- package/dist/bundle/{node-S3VEQNTE.js → node-QXGPMDH2.js} +2 -2
- package/dist/bundle/{node-sqlite-3DNWF2BW.js → node-sqlite-L6CAMXQ2.js} +4 -4
- package/dist/bundle/{oauth-IU2RAZ3D.js → oauth-5RK6J4SG.js} +6 -6
- package/dist/bundle/{open-M2IPPXMI.js → open-A3IAG7U6.js} +3 -3
- package/dist/bundle/{openai-GDI7HISL.js → openai-YKNGCHVV.js} +13 -13
- package/dist/bundle/{process-3IGMEATV.js → process-CGLNXFIU.js} +1 -1
- package/dist/bundle/{program-P7YPHVLD.js → program-AEDR6R5P.js} +48 -48
- package/dist/bundle/{prompt-S6R7IHDK.js → prompt-65CSCL2T.js} +4 -4
- package/dist/bundle/{proxy-transport-OROEVBCG.js → proxy-transport-U3QOYMQF.js} +4 -4
- package/dist/bundle/{recognize-PFZRQ3P4.js → recognize-ECRO6CFK.js} +3 -3
- package/dist/bundle/{remote-Q37V7LUX.js → remote-6IEFZFGO.js} +6 -6
- package/dist/bundle/{rerank-V5YQQQAM.js → rerank-23GXWT2V.js} +6 -6
- package/dist/bundle/{serve-5CAD2UVG.js → serve-S65YTPZN.js} +8 -8
- package/dist/bundle/server-IH24WEAC.js +56 -0
- package/dist/bundle/{server-R6YAO2SG.js → server-MVTBK7GV.js} +32 -32
- package/dist/bundle/{state-Y3A2NEM3.js → state-TH3UVQAW.js} +5 -5
- package/dist/bundle/{store-H5K32CNI.js → store-2WFTUSNG.js} +12 -10
- package/dist/bundle/store-maintenance-command-PUOU2CL6.js +45 -0
- package/dist/bundle/tg.js +4 -4
- package/dist/telegram/adapter.d.ts +2 -0
- package/dist/telegram/adapter.d.ts.map +1 -1
- package/dist/telegram/adapter.js +3 -0
- package/dist/telegram/adapter.js.map +1 -1
- package/dist/telegram/topics.d.ts +4 -2
- package/dist/telegram/topics.d.ts.map +1 -1
- package/dist/telegram/topics.js +21 -3
- package/dist/telegram/topics.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/tg-cli/SKILL.md +2 -0
- package/dist/bundle/command-contract-JCRVVL7P.js +0 -32
- package/dist/bundle/first-screen-PYEE5NMQ.js +0 -30
- package/dist/bundle/server-RUQLAWWS.js +0 -56
- package/dist/bundle/store-maintenance-command-QZDC4WKW.js +0 -45
- /package/dist/bundle/{chunk-NPGVOZVK.js → chunk-WJWLHLQ7.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-KLNQXUDX.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-QL4WBCL5.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.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/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.71.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.71.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.71.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.71.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.71.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
|
"+",
|
|
@@ -701,7 +701,7 @@ var implicitTextTerms = /* @__PURE__ */ __name((text6) => {
|
|
|
701
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.71.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,
|
|
@@ -772,7 +772,7 @@ var QUERY_REASONS = defineReasons([
|
|
|
772
772
|
details: [...SPAN, ...details]
|
|
773
773
|
})));
|
|
774
774
|
|
|
775
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
775
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.71.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
|
|
776
776
|
var wordsOf = /* @__PURE__ */ __name((text6) => text6.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
|
|
777
777
|
var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
|
|
778
778
|
var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
|
|
@@ -827,7 +827,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
|
|
|
827
827
|
}, "matches");
|
|
828
828
|
var evaluate = /* @__PURE__ */ __name((ast, fields2, item, options = {}) => matches(ast.root, item, new Map(fields2.map((field) => [field.name, field])), options), "evaluate");
|
|
829
829
|
|
|
830
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
830
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.71.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
|
|
831
831
|
var QUERY_SYNTAX = 'field:value \xB7 "a phrase" \xB7 word* \xB7 AND OR NOT \xB7 ( ) \xB7 [a TO b] \xB7 > >= < <=';
|
|
832
832
|
var kindOf = /* @__PURE__ */ __name((field) => field.values ? `${field.type}: ${field.values.join("|")}` : `${field.type}: ${field.operators.join(", ")}`, "kindOf");
|
|
833
833
|
var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
|
|
@@ -843,7 +843,7 @@ var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
|
|
|
843
843
|
].join("\n");
|
|
844
844
|
}, "fieldsHelp");
|
|
845
845
|
|
|
846
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
846
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/reference.js
|
|
847
847
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
|
|
848
848
|
var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
|
|
849
849
|
if (!Number.isSafeInteger(value) || value < minimum)
|
|
@@ -880,7 +880,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text6) => {
|
|
|
880
880
|
}, "parseMeetingReference");
|
|
881
881
|
var canonicalMeetingReference = /* @__PURE__ */ __name((text6) => formatMeetingReference(parseMeetingReference(text6)), "canonicalMeetingReference");
|
|
882
882
|
|
|
883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
883
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
884
884
|
var text = string();
|
|
885
885
|
var count = pipe(number(), integer(), minValue(0));
|
|
886
886
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -945,7 +945,7 @@ var MEETING_QUERY = {
|
|
|
945
945
|
})
|
|
946
946
|
};
|
|
947
947
|
|
|
948
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
948
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
949
949
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
950
950
|
const parsed = urlOf(url);
|
|
951
951
|
if (!parsed)
|
|
@@ -979,7 +979,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
979
979
|
}
|
|
980
980
|
}, "urlOf");
|
|
981
981
|
|
|
982
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
982
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
983
983
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
984
984
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
985
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");
|
|
@@ -1012,7 +1012,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
1012
1012
|
return kept;
|
|
1013
1013
|
}, "entryMetadata");
|
|
1014
1014
|
|
|
1015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1015
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
1016
1016
|
import { createHash } from "node:crypto";
|
|
1017
1017
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
1018
1018
|
reference: cue2.reference,
|
|
@@ -1026,7 +1026,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
1026
1026
|
text: cue2.text
|
|
1027
1027
|
})).digest("hex"), "meetingCueFingerprint");
|
|
1028
1028
|
|
|
1029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
1030
1030
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
1031
1031
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
1032
1032
|
if (entry.recurrenceEndsAt !== null)
|
|
@@ -1049,7 +1049,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
1049
1049
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
1050
1050
|
}, "entryInWindow");
|
|
1051
1051
|
|
|
1052
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1052
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
1053
1053
|
var text2 = string();
|
|
1054
1054
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
1055
1055
|
var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
@@ -1276,7 +1276,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
1276
1276
|
};
|
|
1277
1277
|
}, "meetingHitsList");
|
|
1278
1278
|
|
|
1279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
1280
1280
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text6) => text6.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
1281
1281
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
1282
1282
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -1300,7 +1300,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
1300
1300
|
};
|
|
1301
1301
|
}, "validateMeetingParticipantSearch");
|
|
1302
1302
|
|
|
1303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
1304
1304
|
var MeetingError = class extends CliError {
|
|
1305
1305
|
static {
|
|
1306
1306
|
__name(this, "MeetingError");
|
|
@@ -1432,7 +1432,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id3, accountId)
|
|
|
1432
1432
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
1433
1433
|
}, "meetingSummaryAnswer");
|
|
1434
1434
|
|
|
1435
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1435
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
1436
1436
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
1437
1437
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
1438
1438
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -1528,10 +1528,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id3, options) => {
|
|
|
1528
1528
|
};
|
|
1529
1529
|
}, "exportMeeting");
|
|
1530
1530
|
|
|
1531
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1531
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1532
1532
|
import { createHash as createHash2 } from "node:crypto";
|
|
1533
1533
|
|
|
1534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
1535
1535
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
1536
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)))
|
|
1537
1537
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone`);
|
|
@@ -1542,7 +1542,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
1542
1542
|
return new Date(value).toISOString();
|
|
1543
1543
|
}, "meetingTimestamp");
|
|
1544
1544
|
|
|
1545
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
1546
1546
|
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
1547
1547
|
if (typeof value !== "string" || !value.trim())
|
|
1548
1548
|
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
@@ -1593,10 +1593,10 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
|
|
|
1593
1593
|
return Object.freeze(result);
|
|
1594
1594
|
}, "validateMeetingChange");
|
|
1595
1595
|
|
|
1596
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
|
|
1597
1597
|
var MEETING_FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
1598
1598
|
|
|
1599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1599
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1600
1600
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
1601
1601
|
var invalid2 = /* @__PURE__ */ __name((message) => {
|
|
1602
1602
|
throw new CliError("validation_error", message);
|
|
@@ -1611,6 +1611,7 @@ var fields = /* @__PURE__ */ __name((value, allowed, noun) => {
|
|
|
1611
1611
|
if (Object.keys(value).some((key) => !allowed.includes(key)))
|
|
1612
1612
|
invalid2(`unknown ${noun} field`);
|
|
1613
1613
|
}, "fields");
|
|
1614
|
+
var SUBJECT = /^(person|organization|project):[1-9]\d*$|^task:[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$/;
|
|
1614
1615
|
var validateFindings = /* @__PURE__ */ __name((input, rules) => {
|
|
1615
1616
|
if (!input || typeof input !== "object" || Buffer.byteLength(JSON.stringify(input), "utf8") > 65536)
|
|
1616
1617
|
return invalid2(`${rules.plural} take at most 65536 UTF-8 bytes`);
|
|
@@ -1628,9 +1629,13 @@ var validateFindings = /* @__PURE__ */ __name((input, rules) => {
|
|
|
1628
1629
|
if (!/^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$/.test(id3) || ids2.has(id3))
|
|
1629
1630
|
return invalid2("finding IDs must be unique simple keys");
|
|
1630
1631
|
ids2.add(id3);
|
|
1631
|
-
const project = text3(finding.project, 64);
|
|
1632
|
-
if (!/^project:[1-9]\d*$/.test(project))
|
|
1632
|
+
const project = finding.project === void 0 && rules.anySubject ? void 0 : text3(finding.project, 64);
|
|
1633
|
+
if (project !== void 0 && !/^project:[1-9]\d*$/.test(project))
|
|
1633
1634
|
return invalid2("a finding names a project reference");
|
|
1635
|
+
if (finding.subject !== void 0 && (!rules.anySubject || !SUBJECT.test(text3(finding.subject, 80))))
|
|
1636
|
+
return invalid2("a finding's subject is a person:, organization:, task: or project: reference");
|
|
1637
|
+
if (finding.kind === "task" && project === void 0)
|
|
1638
|
+
return invalid2("a task finding names the project the task goes in");
|
|
1634
1639
|
if (!Array.isArray(finding.evidence) || finding.evidence.length < 1 || finding.evidence.length > 8)
|
|
1635
1640
|
return invalid2(`a finding requires 1\u20138 cited ${rules.cited}s`);
|
|
1636
1641
|
const evidence = finding.evidence.map((item) => {
|
|
@@ -1646,9 +1651,14 @@ var validateFindings = /* @__PURE__ */ __name((input, rules) => {
|
|
|
1646
1651
|
}).sort((a, b) => a.reference.localeCompare(b.reference));
|
|
1647
1652
|
if (new Set(evidence.map((item) => item.reference)).size !== evidence.length)
|
|
1648
1653
|
return invalid2(`duplicate evidence ${rules.cited}`);
|
|
1649
|
-
const base = {
|
|
1654
|
+
const base = {
|
|
1655
|
+
id: id3,
|
|
1656
|
+
...project === void 0 ? {} : { project },
|
|
1657
|
+
...finding.subject === void 0 ? {} : { subject: finding.subject },
|
|
1658
|
+
evidence
|
|
1659
|
+
};
|
|
1650
1660
|
if (finding.kind === "fact") {
|
|
1651
|
-
fields(finding, ["id", "project", "evidence", "kind", "type", "statement"], rules.singular);
|
|
1661
|
+
fields(finding, ["id", "project", "subject", "evidence", "kind", "type", "statement"], rules.singular);
|
|
1652
1662
|
if (!MEETING_FACT_TYPES.includes(finding.type))
|
|
1653
1663
|
return invalid2("unknown fact finding type");
|
|
1654
1664
|
return { ...base, kind: "fact", type: finding.type, statement: text3(finding.statement, 2e3) };
|
|
@@ -1697,7 +1707,7 @@ var validateFindings = /* @__PURE__ */ __name((input, rules) => {
|
|
|
1697
1707
|
}, "validateFindings");
|
|
1698
1708
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
1699
1709
|
|
|
1700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1710
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
1701
1711
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
1702
1712
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
1703
1713
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -1708,7 +1718,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
1708
1718
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
1709
1719
|
var meetingFindingFingerprint = findingFingerprint;
|
|
1710
1720
|
|
|
1711
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1721
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
1712
1722
|
var text4 = string();
|
|
1713
1723
|
var identifier = pipe(text4, minLength(1));
|
|
1714
1724
|
var nullableText = nullable(text4);
|
|
@@ -1834,7 +1844,7 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
1834
1844
|
meeting_embedding: embedding
|
|
1835
1845
|
};
|
|
1836
1846
|
|
|
1837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1847
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
1838
1848
|
var EVENT_QUERY = defineQuery({
|
|
1839
1849
|
entity: "event",
|
|
1840
1850
|
backend: "sql",
|
|
@@ -1850,7 +1860,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
1850
1860
|
]
|
|
1851
1861
|
});
|
|
1852
1862
|
|
|
1853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1863
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
1854
1864
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
|
|
1855
1865
|
const current = await store.meeting(details.meeting.id);
|
|
1856
1866
|
if (!current)
|
|
@@ -1893,7 +1903,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
1893
1903
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
1894
1904
|
}, "linkEvent");
|
|
1895
1905
|
|
|
1896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1906
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
1897
1907
|
var context = {
|
|
1898
1908
|
command: "search meetings",
|
|
1899
1909
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -1956,7 +1966,7 @@ var MEETING_FIELDS = defineQuery({
|
|
|
1956
1966
|
});
|
|
1957
1967
|
var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
|
|
1958
1968
|
|
|
1959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1969
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
1960
1970
|
var contentHash = /* @__PURE__ */ __name(async (text6) => {
|
|
1961
1971
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text6));
|
|
1962
1972
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -1993,7 +2003,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
1993
2003
|
return time;
|
|
1994
2004
|
}, "timestamp");
|
|
1995
2005
|
|
|
1996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
1997
2007
|
var TranscriptTextError = class extends Error {
|
|
1998
2008
|
static {
|
|
1999
2009
|
__name(this, "TranscriptTextError");
|
|
@@ -2048,7 +2058,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
2048
2058
|
return { header, lines };
|
|
2049
2059
|
}, "parseTranscriptText");
|
|
2050
2060
|
|
|
2051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
2052
2062
|
var VttError = class extends Error {
|
|
2053
2063
|
static {
|
|
2054
2064
|
__name(this, "VttError");
|
|
@@ -2100,7 +2110,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
2100
2110
|
return cues;
|
|
2101
2111
|
}, "parseVtt");
|
|
2102
2112
|
|
|
2103
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
2104
2114
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
2105
2115
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2106
2116
|
for (const file of files) {
|
|
@@ -2133,10 +2143,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2133
2143
|
return report;
|
|
2134
2144
|
}, "importFiles");
|
|
2135
2145
|
|
|
2136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2146
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
2137
2147
|
var CHAT_MESSAGES_READ = 1e5;
|
|
2138
2148
|
|
|
2139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2149
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
2140
2150
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
2141
2151
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
2142
2152
|
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)))
|
|
@@ -2149,7 +2159,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
2149
2159
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
2150
2160
|
}, "validateMeetingPassage");
|
|
2151
2161
|
|
|
2152
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
2153
2163
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
2154
2164
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2155
2165
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -2174,7 +2184,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
2174
2184
|
return { ...input, limit, maxReadBytes };
|
|
2175
2185
|
}, "validateMeetingPreparationContext");
|
|
2176
2186
|
|
|
2177
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
2178
2188
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
2179
2189
|
var id = pipe(string(), minLength(1));
|
|
2180
2190
|
var meetingProjectEvidence = strictObject({
|
|
@@ -2295,7 +2305,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
2295
2305
|
};
|
|
2296
2306
|
}, "meetingProjectEvidenceAnswer");
|
|
2297
2307
|
|
|
2298
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2308
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
2299
2309
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
2300
2310
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
2301
2311
|
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) || [
|
|
@@ -2315,7 +2325,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
2315
2325
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
2316
2326
|
}, "validateMeetingHitSearch");
|
|
2317
2327
|
|
|
2318
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
2319
2329
|
var ids = {
|
|
2320
2330
|
meeting_id: "meetingId",
|
|
2321
2331
|
identity_id: "participantIdentityId",
|
|
@@ -2406,7 +2416,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
|
|
|
2406
2416
|
return { project: project.trim(), options, query: frozen.join(" AND ") };
|
|
2407
2417
|
}, "prepareMeetingProjectEvidence");
|
|
2408
2418
|
|
|
2409
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
2410
2420
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
|
|
2411
2421
|
const prepared = prepareMeetingProjectEvidence(project, request, now);
|
|
2412
2422
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -2414,7 +2424,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
|
|
|
2414
2424
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
2415
2425
|
}, "readMeetingProjectEvidence");
|
|
2416
2426
|
|
|
2417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
2418
2428
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2419
2429
|
const { identityExternalId, ...fields2 } = p;
|
|
2420
2430
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -2553,7 +2563,7 @@ unlinked`, format)],
|
|
|
2553
2563
|
return report;
|
|
2554
2564
|
}, "pull");
|
|
2555
2565
|
|
|
2556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2566
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
2557
2567
|
var text5 = string();
|
|
2558
2568
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
2559
2569
|
var id2 = pipe(number(), integer(), minValue(1));
|
|
@@ -2704,7 +2714,12 @@ var event = strictObject({
|
|
|
2704
2714
|
changed_at: optional(nullable(isoTime)),
|
|
2705
2715
|
/** The times a moved event had at that date. */
|
|
2706
2716
|
was: optional(strictObject({ starts_at: nullable(isoTime), ends_at: nullable(isoTime) })),
|
|
2707
|
-
/**
|
|
2717
|
+
/**
|
|
2718
|
+
* Whether its time overlaps another event's, in the accounts read: a timed event, not cancelled, not declined, not
|
|
2719
|
+
* free and no working-location block. On a calendar CLI's `events list` when the query names it.
|
|
2720
|
+
*/
|
|
2721
|
+
overlapping: optional(boolean()),
|
|
2722
|
+
/** With `overlapping:true`: the events it overlaps, as `event:<id>`. */
|
|
2708
2723
|
overlaps: optional(array(text5))
|
|
2709
2724
|
});
|
|
2710
2725
|
var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
@@ -2725,10 +2740,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
2725
2740
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
2726
2741
|
}), "eventItem");
|
|
2727
2742
|
|
|
2728
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2743
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
2729
2744
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
2730
2745
|
|
|
2731
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
2732
2747
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
2733
2748
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2734
2749
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -2758,14 +2773,14 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
2758
2773
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
2759
2774
|
}, "validateMeetingRelatedHistory");
|
|
2760
2775
|
|
|
2761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
2762
2777
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
2763
2778
|
|
|
2764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2779
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
2765
2780
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
2766
2781
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
2767
2782
|
|
|
2768
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2783
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
2769
2784
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
2770
2785
|
input.signal?.throwIfAborted();
|
|
2771
2786
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -2786,10 +2801,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
2786
2801
|
return { ...input, limit, maxReadBytes };
|
|
2787
2802
|
}, "validateMeetingSeriesHistory");
|
|
2788
2803
|
|
|
2789
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2804
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
2790
2805
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
2791
2806
|
|
|
2792
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2807
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
2793
2808
|
function invalid3(field, response = false) {
|
|
2794
2809
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
2795
2810
|
}
|
|
@@ -2818,7 +2833,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
2818
2833
|
cursorDetails(value);
|
|
2819
2834
|
}, "validateMeetingSeriesInventoryCursor");
|
|
2820
2835
|
|
|
2821
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
2822
2837
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
2823
2838
|
const zone = timeZone ?? "UTC";
|
|
2824
2839
|
try {
|
|
@@ -2897,7 +2912,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
2897
2912
|
};
|
|
2898
2913
|
}, "aggregateMeetingStats");
|
|
2899
2914
|
|
|
2900
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2915
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
2901
2916
|
var LINK_KINDS = [
|
|
2902
2917
|
"links-to",
|
|
2903
2918
|
"blocked-by",
|
|
@@ -2918,7 +2933,7 @@ var LINK_SOURCES = [...LINK_ORIGINS, "calendar"];
|
|
|
2918
2933
|
var RELATION_KINDS = ["member-of", "related-to"];
|
|
2919
2934
|
var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
|
|
2920
2935
|
|
|
2921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
2922
2937
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
2923
2938
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
2924
2939
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -2933,13 +2948,13 @@ function closeTask(task, state, by, at, reason) {
|
|
|
2933
2948
|
}
|
|
2934
2949
|
__name(closeTask, "closeTask");
|
|
2935
2950
|
|
|
2936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2951
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
2937
2952
|
function matches2(task, filter) {
|
|
2938
2953
|
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);
|
|
2939
2954
|
}
|
|
2940
2955
|
__name(matches2, "matches");
|
|
2941
2956
|
|
|
2942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2957
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
2943
2958
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
2944
2959
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
2945
2960
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -2962,11 +2977,13 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
2962
2977
|
return MIDDLE[word];
|
|
2963
2978
|
if (/^[0-4]$/.test(word))
|
|
2964
2979
|
return LEGACY_PRIORITY_SCORES[Number(word)];
|
|
2965
|
-
|
|
2980
|
+
if (/^(0?\.\d+|[01]\.\d*)$/.test(word) && Number(word) <= 1)
|
|
2981
|
+
return Number(word);
|
|
2982
|
+
throw new CliError("validation_error", `a priority is ${PRIORITY_LABELS.join(", ")}, none, or a score from 0.0 to 1.0 with its decimal point; 0 (urgent) \u2026 4 (low) still work as critical, high, medium, low, low`);
|
|
2966
2983
|
}, "priorityOf");
|
|
2967
2984
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
2968
2985
|
|
|
2969
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2986
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
2970
2987
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
2971
2988
|
async function find(id3) {
|
|
2972
2989
|
const task = await store.get(id3);
|
|
@@ -3026,7 +3043,7 @@ function median(values) {
|
|
|
3026
3043
|
}
|
|
3027
3044
|
__name(median, "median");
|
|
3028
3045
|
|
|
3029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3046
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
3030
3047
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
3031
3048
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
3032
3049
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
@@ -3044,6 +3061,7 @@ export {
|
|
|
3044
3061
|
queryError,
|
|
3045
3062
|
walkQuery,
|
|
3046
3063
|
timezoneOf,
|
|
3064
|
+
dayBoundary,
|
|
3047
3065
|
zonedMoment,
|
|
3048
3066
|
dateEndpoint,
|
|
3049
3067
|
dateRange,
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
defineReasons
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QL4WBCL5.js";
|
|
6
6
|
|
|
7
7
|
// dist/reasons.js
|
|
8
8
|
var REASONS = defineReasons([
|
|
@@ -21,7 +21,7 @@ var REASONS = defineReasons([
|
|
|
21
21
|
].map(([reason, code, message]) => ({ reason, code, message, details: [] })));
|
|
22
22
|
|
|
23
23
|
// dist/version.js
|
|
24
|
-
var VERSION = "0.
|
|
24
|
+
var VERSION = "0.112.0";
|
|
25
25
|
|
|
26
26
|
// dist/identity.js
|
|
27
27
|
var TG = {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
|
|
8
8
|
var instructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => {
|
|
9
9
|
const all = typeof profile !== "string";
|
|
10
10
|
const offers = /* @__PURE__ */ __name((key) => all || writes.includes(key), "offers");
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
|
|
8
8
|
import { PassThrough, Writable } from "node:stream";
|
|
9
9
|
var lineReader = /* @__PURE__ */ __name((onMessage) => {
|
|
10
10
|
let rest = "";
|