@wirecat/tg-cli 0.100.0 → 0.102.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 -3
- package/dist/bin/tg.js +1 -1
- package/dist/bot/transport.d.ts.map +1 -1
- package/dist/bot/transport.js +14 -17
- package/dist/bot/transport.js.map +1 -1
- package/dist/bundle/{adapter-2LVPMFKF.js → adapter-M2HRSFFL.js} +95 -33
- package/dist/bundle/{all-profiles-BLTK2AAB.js → all-profiles-GOD2QNTK.js} +42 -12
- package/dist/bundle/{anthropic-RJE4XEOO.js → anthropic-LKU7RWMA.js} +5 -5
- package/dist/bundle/{bot-api-4XM3NVWG.js → bot-api-X3MPFVPL.js} +49 -53
- package/dist/bundle/{bot-history-WVM5GEQN.js → bot-history-OUMVVG22.js} +15 -15
- package/dist/bundle/{bun-UZXO2LRQ.js → bun-LIZ6MKFS.js} +2 -2
- package/dist/bundle/{bun-sqlite-GJLGSQIT.js → bun-sqlite-2IFQYQ44.js} +4 -4
- package/dist/bundle/chunk-264DAFJV.js +161 -0
- package/dist/bundle/{chunk-ASDZHG5I.js → chunk-2SUTCDGO.js} +2 -2
- package/dist/bundle/{chunk-2IM4M7Q2.js → chunk-2XBSVRT2.js} +1 -1
- package/dist/bundle/{chunk-Q26JMPBP.js → chunk-334UBWOB.js} +11 -11
- package/dist/bundle/{chunk-MQNFEVAH.js → chunk-4PDEQL6T.js} +2 -2
- package/dist/bundle/chunk-4QB4WDLT.js +922 -0
- package/dist/bundle/{chunk-66E5QDLH.js → chunk-5D6OJREA.js} +1 -1
- package/dist/bundle/{chunk-RDQMV6EU.js → chunk-5DFGJPT6.js} +4 -4
- package/dist/bundle/{chunk-GTURDJJD.js → chunk-5KU4UQBM.js} +1 -1
- package/dist/bundle/{chunk-JSKT5UZX.js → chunk-5VSR5ENL.js} +8 -8
- package/dist/bundle/{chunk-DN4QUTWU.js → chunk-AUOXTGTU.js} +1 -1
- package/dist/bundle/{chunk-X4Y2ROJI.js → chunk-BBC546ZA.js} +91 -2
- package/dist/bundle/{chunk-RER6DAHP.js → chunk-BQYTIYGB.js} +171 -148
- package/dist/bundle/{chunk-3S5CL55R.js → chunk-CLWYQNSC.js} +6 -6
- package/dist/bundle/{chunk-I6WZJVRT.js → chunk-CRZPQQHE.js} +59 -46
- package/dist/bundle/chunk-DE7LFMY2.js +440 -0
- package/dist/bundle/{chunk-GYEOQS2D.js → chunk-DG62L57H.js} +17 -17
- package/dist/bundle/{chunk-QU2FJMFB.js → chunk-ENE5CSVY.js} +2903 -1490
- package/dist/bundle/{chunk-P26LWFNZ.js → chunk-ERQDBK5I.js} +1 -1
- package/dist/bundle/{chunk-UD4DOZCN.js → chunk-F2TG3BA2.js} +6 -6
- package/dist/bundle/{chunk-4U7QOFDA.js → chunk-FBWOQMPE.js} +1698 -816
- package/dist/bundle/{chunk-JFJVS5JC.js → chunk-FOUE7XLK.js} +2 -2
- package/dist/bundle/{chunk-3QDPV34J.js → chunk-GSKFAE3I.js} +1297 -518
- package/dist/bundle/{chunk-BAIZAZ6Q.js → chunk-HLAZ65AW.js} +2 -2
- package/dist/bundle/{chunk-LI7TXFLS.js → chunk-JFSVXMN6.js} +3 -3
- package/dist/bundle/{chunk-6VEOR6GD.js → chunk-M5UH5CF3.js} +6 -8
- package/dist/bundle/{chunk-HXTTDIL7.js → chunk-MGG7JSNO.js} +3 -3
- package/dist/bundle/{chunk-6YLT4YVJ.js → chunk-OCWARAFE.js} +2 -2
- package/dist/bundle/{chunk-WE3LBRMB.js → chunk-OEJ5DMCX.js} +7 -7
- package/dist/bundle/{chunk-SGJYU3SB.js → chunk-OHBHHBYL.js} +3 -3
- package/dist/bundle/{chunk-2MXQ2EUN.js → chunk-PSH7K6TL.js} +617 -57
- package/dist/bundle/{chunk-H3X5LS6U.js → chunk-PYTOIDSM.js} +4 -4
- package/dist/bundle/{chunk-ATZ44Z77.js → chunk-Q2NYEX4A.js} +150 -52
- package/dist/bundle/{chunk-KE6L2UEG.js → chunk-QEPZUFPL.js} +70 -61
- package/dist/bundle/{chunk-CV5ASHTW.js → chunk-QL7CQ6VZ.js} +255 -80
- package/dist/bundle/{chunk-THVNP6S6.js → chunk-SRU3OF4R.js} +2 -2
- package/dist/bundle/{chunk-OOOV3JBZ.js → chunk-TV5DGHBT.js} +953 -677
- package/dist/bundle/{chunk-A7OBVRJV.js → chunk-TXBUDJ3P.js} +3 -3
- package/dist/bundle/{chunk-OW3COBN5.js → chunk-U4RRZUNP.js} +9 -9
- package/dist/bundle/{chunk-WKOY3POD.js → chunk-UK3GAN7Q.js} +7 -7
- package/dist/bundle/{chunk-BL36RR34.js → chunk-UR6ASUSG.js} +10 -7
- package/dist/bundle/{chunk-4VBDVZNE.js → chunk-V52SBQYF.js} +242 -19
- package/dist/bundle/{chunk-4YCLWWZ3.js → chunk-VUJ34PEQ.js} +11 -11
- package/dist/bundle/{chunk-2XUGPE5W.js → chunk-W5EB4JLV.js} +3 -3
- package/dist/bundle/{chunk-3KHKYYCR.js → chunk-WMOEOVWZ.js} +1 -0
- package/dist/bundle/{chunk-UMLPXNJI.js → chunk-WVEHUKCZ.js} +1 -1
- package/dist/bundle/{chunk-SYPL4PHV.js → chunk-XXTJUZMB.js} +1 -1
- package/dist/bundle/{chunk-SMJTL5U7.js → chunk-Y4XSWI22.js} +6 -4
- package/dist/bundle/{chunk-HKT5EOT5.js → chunk-YHB57PFN.js} +1 -1
- package/dist/bundle/{chunk-BZANDKWT.js → chunk-ZJVZXJOG.js} +2 -2
- package/dist/bundle/{chunk-QY3YOOTP.js → chunk-ZRNRQFTF.js} +2 -2
- package/dist/bundle/command-contract-A6VZN3ZR.js +31 -0
- package/dist/bundle/{echarts-YHSYUWLY.js → echarts-27W2CIBD.js} +2 -2
- package/dist/bundle/{embed-3HGI2XIW.js → embed-FGJ273X2.js} +4 -4
- package/dist/bundle/{embedder-2CJMZETJ.js → embedder-7ELL3CQ3.js} +7 -7
- package/dist/bundle/{entry-UVE53OV3.js → entry-SEE5YWIX.js} +5 -5
- package/dist/bundle/{first-run-6GYC2QS3.js → first-run-BD7FEC3W.js} +9 -9
- package/dist/bundle/first-screen-ASZV6LSA.js +29 -0
- package/dist/bundle/{identity-HEV5E57G.js → identity-QR4F42T6.js} +3 -3
- package/dist/bundle/{instructions-5UVAXSQV.js → instructions-L74K64PV.js} +1 -1
- package/dist/bundle/{mcp-NWXBVNUA.js → mcp-4Y37G2UY.js} +2 -2
- package/dist/bundle/{node-YHYEGYVE.js → node-RSL3HANO.js} +2 -2
- package/dist/bundle/{node-sqlite-CQ33A3R2.js → node-sqlite-7R3PYQGJ.js} +4 -4
- package/dist/bundle/{oauth-OB3JFAD7.js → oauth-4ESGXF6U.js} +7 -7
- package/dist/bundle/{open-JHGZIXU2.js → open-DFYEUGTA.js} +3 -3
- package/dist/bundle/{process-PSKS3N5B.js → process-RMV3AKLB.js} +1 -1
- package/dist/bundle/{program-RPYVPNRX.js → program-PIUYQHBF.js} +62 -67
- package/dist/bundle/{prompt-7BXUMJGG.js → prompt-H7GYQQLL.js} +4 -4
- package/dist/bundle/{proxy-transport-3EEMW2HW.js → proxy-transport-G4MA6BGU.js} +4 -4
- package/dist/bundle/{recognize-YMZPL47R.js → recognize-3GMOLZF4.js} +5 -5
- package/dist/bundle/{remote-LQ3Q22NG.js → remote-IRWTCI2B.js} +5 -5
- package/dist/bundle/{rerank-SM7IYVXJ.js → rerank-W3OSXXBN.js} +5 -5
- package/dist/bundle/{serve-GHUEP5H5.js → serve-ZCPO44NO.js} +24 -9
- package/dist/bundle/{server-A45HVXQY.js → server-FXU4QFRB.js} +42 -39
- package/dist/bundle/{server-K2BQPPHN.js → server-YWL4HDOP.js} +77 -68
- package/dist/bundle/{state-WIOL52GZ.js → state-MJPTDIB5.js} +9 -5
- package/dist/bundle/{store-XE5AKUJZ.js → store-6VNQG56O.js} +10 -10
- package/dist/bundle/store-maintenance-command-62TQTMER.js +43 -0
- package/dist/bundle/tg.js +4 -4
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +2 -0
- package/dist/commands/context.js.map +1 -1
- package/dist/program.js +1 -1
- package/dist/program.js.map +1 -1
- package/dist/telegram/errors.js +1 -1
- package/dist/telegram/errors.js.map +1 -1
- package/dist/telegram/sending.d.ts.map +1 -1
- package/dist/telegram/sending.js +52 -3
- package/dist/telegram/sending.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/install/windows.ps1 +1 -1
- package/package.json +3 -3
- package/skills/tg-cli/SKILL.md +4 -4
- package/dist/bundle/chunk-3N6LXAPE.js +0 -724
- package/dist/bundle/chunk-DVOUKGFK.js +0 -1950
- package/dist/bundle/chunk-MUEXF4ME.js +0 -582
- package/dist/bundle/chunk-U7LXA4SO.js +0 -1007
- package/dist/bundle/chunk-V4JSVH4M.js +0 -190
- package/dist/bundle/chunk-YG7PNCSW.js +0 -230
- package/dist/bundle/chunk-Z2FHEIXN.js +0 -63
- package/dist/bundle/command-contract-AIVKJYIR.js +0 -31
- package/dist/bundle/first-screen-HRRLVLOG.js +0 -29
- package/dist/bundle/store-maintenance-command-YS5E7VUN.js +0 -46
- /package/dist/bundle/{chunk-3MVHRZWR.js → chunk-2SJOUK6J.js} +0 -0
|
@@ -3,7 +3,7 @@ const require = __tgRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
singleLine,
|
|
5
5
|
visibleControls
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DG62L57H.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-OEJ5DMCX.js";
|
|
40
40
|
import {
|
|
41
41
|
__name
|
|
42
42
|
} from "./chunk-AFV74GK3.js";
|
|
43
43
|
|
|
44
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/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.64.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.64.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.64.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.64.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.64.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" && ![":", "=", "<", ">", "<=", ">="].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.64.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,
|
|
@@ -768,7 +768,7 @@ var QUERY_REASONS = defineReasons([
|
|
|
768
768
|
details: [...SPAN, ...details]
|
|
769
769
|
})));
|
|
770
770
|
|
|
771
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
771
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.64.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
772
|
var wordsOf = /* @__PURE__ */ __name((text6) => text6.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
|
|
773
773
|
var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
|
|
774
774
|
var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
|
|
@@ -823,7 +823,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
|
|
|
823
823
|
}, "matches");
|
|
824
824
|
var evaluate = /* @__PURE__ */ __name((ast, fields2, item, options = {}) => matches(ast.root, item, new Map(fields2.map((field) => [field.name, field])), options), "evaluate");
|
|
825
825
|
|
|
826
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
826
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.64.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
827
|
var QUERY_SYNTAX = 'field:value \xB7 "a phrase" \xB7 word* \xB7 AND OR NOT \xB7 ( ) \xB7 [a TO b] \xB7 > >= < <=';
|
|
828
828
|
var kindOf = /* @__PURE__ */ __name((field) => field.values ? `${field.type}: ${field.values.join("|")}` : `${field.type}: ${field.operators.join(", ")}`, "kindOf");
|
|
829
829
|
var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
|
|
@@ -839,7 +839,7 @@ var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
|
|
|
839
839
|
].join("\n");
|
|
840
840
|
}, "fieldsHelp");
|
|
841
841
|
|
|
842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
842
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/reference.js
|
|
843
843
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
|
|
844
844
|
var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
|
|
845
845
|
if (!Number.isSafeInteger(value) || value < minimum)
|
|
@@ -876,7 +876,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text6) => {
|
|
|
876
876
|
}, "parseMeetingReference");
|
|
877
877
|
var canonicalMeetingReference = /* @__PURE__ */ __name((text6) => formatMeetingReference(parseMeetingReference(text6)), "canonicalMeetingReference");
|
|
878
878
|
|
|
879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
880
880
|
var text = string();
|
|
881
881
|
var count = pipe(number(), integer(), minValue(0));
|
|
882
882
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -941,7 +941,7 @@ var MEETING_QUERY = {
|
|
|
941
941
|
})
|
|
942
942
|
};
|
|
943
943
|
|
|
944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
945
945
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
946
946
|
const parsed = urlOf(url);
|
|
947
947
|
if (!parsed)
|
|
@@ -975,7 +975,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
975
975
|
}
|
|
976
976
|
}, "urlOf");
|
|
977
977
|
|
|
978
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
978
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
979
979
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
980
980
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
981
981
|
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");
|
|
@@ -994,8 +994,7 @@ var ENTRY_METADATA_KEYS = [
|
|
|
994
994
|
"guestsCanSeeOtherGuests",
|
|
995
995
|
"hangoutLink",
|
|
996
996
|
"locked",
|
|
997
|
-
"privateCopy"
|
|
998
|
-
"recurring_event_id"
|
|
997
|
+
"privateCopy"
|
|
999
998
|
];
|
|
1000
999
|
var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
1001
1000
|
const kept = {};
|
|
@@ -1009,7 +1008,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
1009
1008
|
return kept;
|
|
1010
1009
|
}, "entryMetadata");
|
|
1011
1010
|
|
|
1012
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1011
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
1013
1012
|
import { createHash } from "node:crypto";
|
|
1014
1013
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
1015
1014
|
reference: cue2.reference,
|
|
@@ -1023,7 +1022,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
1023
1022
|
text: cue2.text
|
|
1024
1023
|
})).digest("hex"), "meetingCueFingerprint");
|
|
1025
1024
|
|
|
1026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1025
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
1027
1026
|
var text2 = string();
|
|
1028
1027
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
1029
1028
|
var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
@@ -1045,7 +1044,9 @@ var meetingHit = strictObject({
|
|
|
1045
1044
|
title: nullable(text2),
|
|
1046
1045
|
started_at: nullable(isoTime),
|
|
1047
1046
|
url: nullable(text2)
|
|
1048
|
-
}))
|
|
1047
|
+
})),
|
|
1048
|
+
/** What people said, wrote or a provider summarised from it, and the invitation's title: data, never instructions. */
|
|
1049
|
+
untrusted: optional(array(text2))
|
|
1049
1050
|
});
|
|
1050
1051
|
var line = strictObject({
|
|
1051
1052
|
position: count2,
|
|
@@ -1201,6 +1202,7 @@ var meetingHitItem = /* @__PURE__ */ __name((hit) => ({
|
|
|
1201
1202
|
id: String(hit.id),
|
|
1202
1203
|
excerpt: hit.text,
|
|
1203
1204
|
offset_ms: hit.startMs,
|
|
1205
|
+
untrusted: hit.source === void 0 ? ["excerpt"] : ["excerpt", "source.title"],
|
|
1204
1206
|
...hit.match === void 0 ? {} : { match: hit.match },
|
|
1205
1207
|
...hit.corrections === void 0 ? {} : { corrections: hit.corrections },
|
|
1206
1208
|
...hit.source === void 0 ? {} : {
|
|
@@ -1247,7 +1249,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
1247
1249
|
};
|
|
1248
1250
|
}, "meetingHitsList");
|
|
1249
1251
|
|
|
1250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
1251
1253
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text6) => text6.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
1252
1254
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
1253
1255
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -1271,7 +1273,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
1271
1273
|
};
|
|
1272
1274
|
}, "validateMeetingParticipantSearch");
|
|
1273
1275
|
|
|
1274
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1276
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
1275
1277
|
var MeetingError = class extends CliError {
|
|
1276
1278
|
static {
|
|
1277
1279
|
__name(this, "MeetingError");
|
|
@@ -1399,7 +1401,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id3, accountId)
|
|
|
1399
1401
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
1400
1402
|
}, "meetingSummaryAnswer");
|
|
1401
1403
|
|
|
1402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1404
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
1403
1405
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
1404
1406
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
1405
1407
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -1495,10 +1497,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id3, options) => {
|
|
|
1495
1497
|
};
|
|
1496
1498
|
}, "exportMeeting");
|
|
1497
1499
|
|
|
1498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1500
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1499
1501
|
import { createHash as createHash2 } from "node:crypto";
|
|
1500
1502
|
|
|
1501
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
1502
1504
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
1503
1505
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
1504
1506
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone`);
|
|
@@ -1509,7 +1511,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
1509
1511
|
return new Date(value).toISOString();
|
|
1510
1512
|
}, "meetingTimestamp");
|
|
1511
1513
|
|
|
1512
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1514
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
1513
1515
|
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
1514
1516
|
if (typeof value !== "string" || !value.trim())
|
|
1515
1517
|
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
@@ -1560,10 +1562,10 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
|
|
|
1560
1562
|
return Object.freeze(result);
|
|
1561
1563
|
}, "validateMeetingChange");
|
|
1562
1564
|
|
|
1563
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1565
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
|
|
1564
1566
|
var MEETING_FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
1565
1567
|
|
|
1566
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1568
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1567
1569
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
1568
1570
|
var invalid2 = /* @__PURE__ */ __name((message) => {
|
|
1569
1571
|
throw new CliError("validation_error", message);
|
|
@@ -1664,7 +1666,7 @@ var validateFindings = /* @__PURE__ */ __name((input, rules) => {
|
|
|
1664
1666
|
}, "validateFindings");
|
|
1665
1667
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
1666
1668
|
|
|
1667
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1669
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
1668
1670
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
1669
1671
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
1670
1672
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -1675,7 +1677,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
1675
1677
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
1676
1678
|
var meetingFindingFingerprint = findingFingerprint;
|
|
1677
1679
|
|
|
1678
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1680
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
1679
1681
|
var text4 = string();
|
|
1680
1682
|
var identifier = pipe(text4, minLength(1));
|
|
1681
1683
|
var nullableText = nullable(text4);
|
|
@@ -1801,7 +1803,7 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
1801
1803
|
meeting_embedding: embedding
|
|
1802
1804
|
};
|
|
1803
1805
|
|
|
1804
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
1805
1807
|
var EVENT_QUERY = defineQuery({
|
|
1806
1808
|
entity: "event",
|
|
1807
1809
|
backend: "sql",
|
|
@@ -1817,7 +1819,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
1817
1819
|
]
|
|
1818
1820
|
});
|
|
1819
1821
|
|
|
1820
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1822
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
1821
1823
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
|
|
1822
1824
|
const current = await store.meeting(details.meeting.id);
|
|
1823
1825
|
if (!current)
|
|
@@ -1860,7 +1862,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
1860
1862
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
1861
1863
|
}, "linkEvent");
|
|
1862
1864
|
|
|
1863
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1865
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
1864
1866
|
var context = {
|
|
1865
1867
|
command: "search meetings",
|
|
1866
1868
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -1923,7 +1925,7 @@ var MEETING_FIELDS = defineQuery({
|
|
|
1923
1925
|
});
|
|
1924
1926
|
var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
|
|
1925
1927
|
|
|
1926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
1927
1929
|
var contentHash = /* @__PURE__ */ __name(async (text6) => {
|
|
1928
1930
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text6));
|
|
1929
1931
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -1960,7 +1962,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
1960
1962
|
return time;
|
|
1961
1963
|
}, "timestamp");
|
|
1962
1964
|
|
|
1963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1965
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
1964
1966
|
var TranscriptTextError = class extends Error {
|
|
1965
1967
|
static {
|
|
1966
1968
|
__name(this, "TranscriptTextError");
|
|
@@ -2015,7 +2017,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
2015
2017
|
return { header, lines };
|
|
2016
2018
|
}, "parseTranscriptText");
|
|
2017
2019
|
|
|
2018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
2019
2021
|
var VttError = class extends Error {
|
|
2020
2022
|
static {
|
|
2021
2023
|
__name(this, "VttError");
|
|
@@ -2067,7 +2069,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
2067
2069
|
return cues;
|
|
2068
2070
|
}, "parseVtt");
|
|
2069
2071
|
|
|
2070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2072
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
2071
2073
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
2072
2074
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2073
2075
|
for (const file of files) {
|
|
@@ -2100,10 +2102,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2100
2102
|
return report;
|
|
2101
2103
|
}, "importFiles");
|
|
2102
2104
|
|
|
2103
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
2104
2106
|
var CHAT_MESSAGES_READ = 1e5;
|
|
2105
2107
|
|
|
2106
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2108
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
2107
2109
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
2108
2110
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
2109
2111
|
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)))
|
|
@@ -2116,7 +2118,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
2116
2118
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
2117
2119
|
}, "validateMeetingPassage");
|
|
2118
2120
|
|
|
2119
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2121
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
2120
2122
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
2121
2123
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2122
2124
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -2141,7 +2143,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
2141
2143
|
return { ...input, limit, maxReadBytes };
|
|
2142
2144
|
}, "validateMeetingPreparationContext");
|
|
2143
2145
|
|
|
2144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2146
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
2145
2147
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
2146
2148
|
var id = pipe(string(), minLength(1));
|
|
2147
2149
|
var meetingProjectEvidence = strictObject({
|
|
@@ -2262,7 +2264,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
2262
2264
|
};
|
|
2263
2265
|
}, "meetingProjectEvidenceAnswer");
|
|
2264
2266
|
|
|
2265
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2267
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
2266
2268
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
2267
2269
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
2268
2270
|
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) || [
|
|
@@ -2282,7 +2284,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
2282
2284
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
2283
2285
|
}, "validateMeetingHitSearch");
|
|
2284
2286
|
|
|
2285
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
2286
2288
|
var ids = {
|
|
2287
2289
|
meeting_id: "meetingId",
|
|
2288
2290
|
identity_id: "participantIdentityId",
|
|
@@ -2373,7 +2375,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
|
|
|
2373
2375
|
return { project: project.trim(), options, query: frozen.join(" AND ") };
|
|
2374
2376
|
}, "prepareMeetingProjectEvidence");
|
|
2375
2377
|
|
|
2376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2378
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
2377
2379
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
|
|
2378
2380
|
const prepared = prepareMeetingProjectEvidence(project, request, now);
|
|
2379
2381
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -2381,7 +2383,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
|
|
|
2381
2383
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
2382
2384
|
}, "readMeetingProjectEvidence");
|
|
2383
2385
|
|
|
2384
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2386
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
2385
2387
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2386
2388
|
const { identityExternalId, ...fields2 } = p;
|
|
2387
2389
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -2520,7 +2522,7 @@ unlinked`, format)],
|
|
|
2520
2522
|
return report;
|
|
2521
2523
|
}, "pull");
|
|
2522
2524
|
|
|
2523
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
2524
2526
|
var text5 = string();
|
|
2525
2527
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
2526
2528
|
var id2 = pipe(number(), integer(), minValue(1));
|
|
@@ -2663,7 +2665,9 @@ var event = strictObject({
|
|
|
2663
2665
|
source_deleted_at: nullable(isoTime),
|
|
2664
2666
|
deleted_at: nullable(isoTime),
|
|
2665
2667
|
created_at: isoTime,
|
|
2666
|
-
updated_at: isoTime
|
|
2668
|
+
updated_at: isoTime,
|
|
2669
|
+
/** The fields whoever sent the invitation wrote, on a calendar CLI's `events list`: an agent reads them as data. */
|
|
2670
|
+
untrusted: optional(array(text5))
|
|
2667
2671
|
});
|
|
2668
2672
|
var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
2669
2673
|
id: String(one.id),
|
|
@@ -2683,10 +2687,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
2683
2687
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
2684
2688
|
}), "eventItem");
|
|
2685
2689
|
|
|
2686
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
2687
2691
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
2688
2692
|
|
|
2689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2693
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
2690
2694
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
2691
2695
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2692
2696
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -2716,14 +2720,14 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
2716
2720
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
2717
2721
|
}, "validateMeetingRelatedHistory");
|
|
2718
2722
|
|
|
2719
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
2720
2724
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
2721
2725
|
|
|
2722
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2726
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
2723
2727
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
2724
2728
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
2725
2729
|
|
|
2726
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2730
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
2727
2731
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
2728
2732
|
input.signal?.throwIfAborted();
|
|
2729
2733
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -2744,10 +2748,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
2744
2748
|
return { ...input, limit, maxReadBytes };
|
|
2745
2749
|
}, "validateMeetingSeriesHistory");
|
|
2746
2750
|
|
|
2747
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
2748
2752
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
2749
2753
|
|
|
2750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2754
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
2751
2755
|
function invalid3(field, response = false) {
|
|
2752
2756
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
2753
2757
|
}
|
|
@@ -2776,7 +2780,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
2776
2780
|
cursorDetails(value);
|
|
2777
2781
|
}, "validateMeetingSeriesInventoryCursor");
|
|
2778
2782
|
|
|
2779
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2783
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
2780
2784
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
2781
2785
|
const zone = timeZone ?? "UTC";
|
|
2782
2786
|
try {
|
|
@@ -2855,7 +2859,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
2855
2859
|
};
|
|
2856
2860
|
}, "aggregateMeetingStats");
|
|
2857
2861
|
|
|
2858
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2862
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
2859
2863
|
var LINK_KINDS = [
|
|
2860
2864
|
"links-to",
|
|
2861
2865
|
"blocked-by",
|
|
@@ -2868,12 +2872,15 @@ var LINK_KINDS = [
|
|
|
2868
2872
|
"created-from",
|
|
2869
2873
|
"duplicate-of",
|
|
2870
2874
|
"related-to",
|
|
2871
|
-
"assigned-to"
|
|
2875
|
+
"assigned-to",
|
|
2876
|
+
"attached"
|
|
2872
2877
|
];
|
|
2878
|
+
var LINK_ORIGINS = ["file", "owner", "suggested", "message"];
|
|
2879
|
+
var LINK_SOURCES = [...LINK_ORIGINS, "calendar"];
|
|
2873
2880
|
var RELATION_KINDS = ["member-of", "related-to"];
|
|
2874
2881
|
var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
|
|
2875
2882
|
|
|
2876
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2883
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
2877
2884
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
2878
2885
|
var TASK_STATES = ["open", "done", "dismissed"];
|
|
2879
2886
|
var TASK_ORIGINS = ["rule", "agent", "owner"];
|
|
@@ -2886,13 +2893,13 @@ function closeTask(task, state, by, at, reason) {
|
|
|
2886
2893
|
}
|
|
2887
2894
|
__name(closeTask, "closeTask");
|
|
2888
2895
|
|
|
2889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
2890
2897
|
function matches2(task, filter) {
|
|
2891
2898
|
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);
|
|
2892
2899
|
}
|
|
2893
2900
|
__name(matches2, "matches");
|
|
2894
2901
|
|
|
2895
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
2896
2903
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
2897
2904
|
async function find(id3) {
|
|
2898
2905
|
const task = await store.get(id3);
|
|
@@ -2952,7 +2959,7 @@ function median(values) {
|
|
|
2952
2959
|
}
|
|
2953
2960
|
__name(median, "median");
|
|
2954
2961
|
|
|
2955
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2962
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
2956
2963
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
2957
2964
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed"];
|
|
2958
2965
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
@@ -3050,6 +3057,8 @@ export {
|
|
|
3050
3057
|
validateMeetingSeriesInventoryCursor,
|
|
3051
3058
|
aggregateMeetingStats,
|
|
3052
3059
|
LINK_KINDS,
|
|
3060
|
+
LINK_ORIGINS,
|
|
3061
|
+
LINK_SOURCES,
|
|
3053
3062
|
RELATION_KINDS,
|
|
3054
3063
|
linkKind,
|
|
3055
3064
|
TASK_KINDS,
|