@wirecat/tg-cli 0.111.0 → 0.113.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-EQKEFGPB.js} +70 -50
- package/dist/bundle/{all-profiles-FEUSGHT7.js → all-profiles-TTBFF663.js} +8 -8
- package/dist/bundle/{anthropic-O646SJIJ.js → anthropic-XPZS7267.js} +5 -5
- package/dist/bundle/{app-server-7P23Y45A.js → app-server-ZSZ7KRAY.js} +42 -42
- package/dist/bundle/{bot-api-WTJCL6VF.js → bot-api-X7BOVNIO.js} +46 -46
- package/dist/bundle/{bot-history-5J2Q4SPC.js → bot-history-DWIUIPN5.js} +15 -15
- package/dist/bundle/{bun-KUKVEKDW.js → bun-ZGZVAJU2.js} +2 -2
- package/dist/bundle/{bun-sqlite-2G5TXHYE.js → bun-sqlite-UN2UJ6SI.js} +4 -4
- package/dist/bundle/{chunk-UDYCZ5KB.js → chunk-3MAYYFKY.js} +1 -1
- package/dist/bundle/{chunk-3BD24JYK.js → chunk-452UZ2PU.js} +121 -95
- package/dist/bundle/{chunk-EB44Z44U.js → chunk-4GLMEES6.js} +1 -1
- package/dist/bundle/{chunk-J2Z5E7TO.js → chunk-4SQB5VKL.js} +1 -1
- package/dist/bundle/{chunk-BNQOUCL2.js → chunk-5NF7M4MN.js} +1 -1
- package/dist/bundle/{chunk-VIEVOF3O.js → chunk-6F6K3LWV.js} +11 -11
- package/dist/bundle/{chunk-QLLPZWYZ.js → chunk-6OKGHHRL.js} +4 -4
- package/dist/bundle/{chunk-QVM2HKJP.js → chunk-6WJ5M2Q4.js} +4 -4
- package/dist/bundle/{chunk-OYVDWHP5.js → chunk-7IWDS2CM.js} +2 -2
- package/dist/bundle/{chunk-ABVHA4K6.js → chunk-AGUCXSSM.js} +5 -5
- package/dist/bundle/{chunk-2ZH3PUQX.js → chunk-AVUIWZTP.js} +2 -2
- package/dist/bundle/{chunk-LLAZSGS7.js → chunk-BI5YJZJB.js} +31 -27
- package/dist/bundle/{chunk-COHMFCHD.js → chunk-EGR5IJCG.js} +95 -34
- package/dist/bundle/{chunk-7665YBJ7.js → chunk-ENXO43TV.js} +6 -6
- package/dist/bundle/{chunk-MSGYLWCH.js → chunk-G74QMORP.js} +2 -2
- package/dist/bundle/{chunk-KLHLWKWC.js → chunk-GX4LRLVD.js} +80 -60
- package/dist/bundle/{chunk-DREEXESG.js → chunk-HNN7EKIM.js} +114 -79
- package/dist/bundle/{chunk-2K6IGVSI.js → chunk-HO53POQG.js} +5 -5
- package/dist/bundle/{chunk-43ZFY6TW.js → chunk-IDUYRTPF.js} +2 -2
- package/dist/bundle/{chunk-WDRNVSWF.js → chunk-IYKRHDX6.js} +45 -44
- package/dist/bundle/{chunk-KE47Y4PW.js → chunk-J6USEBA6.js} +699 -379
- package/dist/bundle/{chunk-5ZPLOYTP.js → chunk-JDQSX2JQ.js} +453 -358
- package/dist/bundle/{chunk-NIKYFRDQ.js → chunk-JO45BOYE.js} +2 -2
- package/dist/bundle/{chunk-ONHHBPV3.js → chunk-JRTZ5I6M.js} +2 -2
- package/dist/bundle/{chunk-YG4BO7N3.js → chunk-JW7BMJ6O.js} +2 -2
- package/dist/bundle/{chunk-J4QVXR5I.js → chunk-K3F46QVN.js} +2 -2
- package/dist/bundle/{chunk-XXOJ7PQY.js → chunk-KK3JVOOV.js} +30 -30
- package/dist/bundle/{chunk-UPRYEDAV.js → chunk-KOWQVHXI.js} +3 -3
- package/dist/bundle/{chunk-BWRCPMMC.js → chunk-KQ23JWLJ.js} +20 -18
- package/dist/bundle/{chunk-ZCV4UEVH.js → chunk-KVLCIZUK.js} +3 -3
- package/dist/bundle/{chunk-DEG4JJHG.js → chunk-MTX5EDYJ.js} +813 -542
- package/dist/bundle/{chunk-UFIUMPXP.js → chunk-OC4RRFKH.js} +4 -4
- package/dist/bundle/{chunk-PNUHAHTF.js → chunk-OQR442B6.js} +1 -1
- package/dist/bundle/{chunk-TWZTQHP6.js → chunk-OSBAISA5.js} +6 -6
- package/dist/bundle/{chunk-UIPT6IAU.js → chunk-OYNSFQ7K.js} +1 -1
- package/dist/bundle/{chunk-EO563SUX.js → chunk-PCRLXJRH.js} +11 -7
- package/dist/bundle/{chunk-XIRASTVS.js → chunk-PHPNA2HU.js} +11 -11
- package/dist/bundle/{chunk-7GQLD5TJ.js → chunk-PHYDBR5M.js} +2 -2
- package/dist/bundle/{chunk-T6DSAROY.js → chunk-Q264PYGE.js} +51 -14
- package/dist/bundle/{chunk-QEAMO2TS.js → chunk-T4TTRFP5.js} +7 -7
- package/dist/bundle/{chunk-UMUJHC4M.js → chunk-T5RM4Y35.js} +3 -3
- package/dist/bundle/{chunk-ITSSCYLP.js → chunk-TQ6EA7TB.js} +11 -11
- package/dist/bundle/{chunk-QAC6Z675.js → chunk-TUD4MU7S.js} +2 -2
- package/dist/bundle/{chunk-ZCHC7TYO.js → chunk-U3MJQLZQ.js} +26 -13
- package/dist/bundle/{chunk-YFK3DNNP.js → chunk-UE75KPAC.js} +4 -4
- package/dist/bundle/{chunk-HN6ZMUAS.js → chunk-UIVLDKWT.js} +1 -1
- package/dist/bundle/{chunk-3WUTBGZE.js → chunk-VDATXIO4.js} +6 -6
- package/dist/bundle/{chunk-AUWYMMYL.js → chunk-VDEXNNMH.js} +4 -4
- package/dist/bundle/{chunk-33HEHPIK.js → chunk-VVA4555T.js} +8 -8
- package/dist/bundle/{chunk-PQGWEFJ2.js → chunk-WSAHUQ6K.js} +3 -3
- package/dist/bundle/{chunk-K457FHD4.js → chunk-XXNJF3ZM.js} +32 -26
- package/dist/bundle/{chunk-NQAV7U7C.js → chunk-XZ2ZHIAO.js} +1 -1
- package/dist/bundle/{chunk-5FJQG5UZ.js → chunk-Z6TRIW2O.js} +8 -8
- package/dist/bundle/{chunk-CJUSP5X2.js → chunk-ZID2Y4XU.js} +2 -2
- package/dist/bundle/command-contract-GV67H22L.js +32 -0
- package/dist/bundle/{decode-QJNVAAKJ.js → decode-AMQVTEMW.js} +4 -4
- package/dist/bundle/{echarts-2EDY7OUX.js → echarts-ECYONFQJ.js} +2 -2
- package/dist/bundle/{embed-PZSXOQJO.js → embed-VZYBZEWI.js} +5 -5
- package/dist/bundle/{embedder-O4EGMMUU.js → embedder-GSWBGHRK.js} +8 -8
- package/dist/bundle/{entry-DVLMQM6J.js → entry-LALZILY4.js} +5 -5
- package/dist/bundle/{first-run-J67KTUWA.js → first-run-LEAI623Q.js} +9 -9
- package/dist/bundle/first-screen-MOCVLE23.js +30 -0
- package/dist/bundle/{identity-DSYY4FLQ.js → identity-54HA5GN6.js} +3 -3
- package/dist/bundle/{instructions-O535XB2L.js → instructions-AXLQQS3G.js} +1 -1
- package/dist/bundle/{mcp-EMNFFY4N.js → mcp-VVMPUDSL.js} +2 -2
- package/dist/bundle/{node-S3VEQNTE.js → node-7JHC5K77.js} +2 -2
- package/dist/bundle/{node-sqlite-3DNWF2BW.js → node-sqlite-LYJEK46T.js} +4 -4
- package/dist/bundle/{oauth-IU2RAZ3D.js → oauth-BROPKI3K.js} +6 -6
- package/dist/bundle/{open-M2IPPXMI.js → open-C6XQ46JK.js} +3 -3
- package/dist/bundle/{openai-GDI7HISL.js → openai-VWSU7ZDD.js} +13 -13
- package/dist/bundle/{process-3IGMEATV.js → process-QKEFL5HL.js} +1 -1
- package/dist/bundle/{program-P7YPHVLD.js → program-ACY7O33O.js} +48 -48
- package/dist/bundle/{prompt-S6R7IHDK.js → prompt-EGULVW2F.js} +4 -4
- package/dist/bundle/{proxy-transport-OROEVBCG.js → proxy-transport-KIMADLQ2.js} +4 -4
- package/dist/bundle/{recognize-PFZRQ3P4.js → recognize-UMTKLWVR.js} +3 -3
- package/dist/bundle/{remote-Q37V7LUX.js → remote-DABI7PSQ.js} +6 -6
- package/dist/bundle/{rerank-V5YQQQAM.js → rerank-ZFATWWBE.js} +6 -6
- package/dist/bundle/{serve-5CAD2UVG.js → serve-B7YYCMGN.js} +8 -8
- package/dist/bundle/{server-R6YAO2SG.js → server-DGKZISZH.js} +32 -32
- package/dist/bundle/server-UC7UWUIS.js +56 -0
- package/dist/bundle/{state-Y3A2NEM3.js → state-AQ2PABA5.js} +5 -5
- package/dist/bundle/{store-H5K32CNI.js → store-46GJTFLJ.js} +12 -10
- package/dist/bundle/store-maintenance-command-FCFKHGRM.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-HPXYN7F3.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-KQ23JWLJ.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-PCRLXJRH.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.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/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.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/types.js
|
|
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.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/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.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/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"],
|
|
@@ -294,11 +294,13 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
|
|
|
294
294
|
const excluded = new Set(annotations.exclude ?? []);
|
|
295
295
|
const words2 = new Set(annotations.text ?? []);
|
|
296
296
|
const native = new Set(annotations.native ?? []);
|
|
297
|
+
const negatable = new Set(annotations.negatable ?? []);
|
|
297
298
|
const finish = /* @__PURE__ */ __name((field) => ({
|
|
298
299
|
...field,
|
|
299
300
|
operators: OPERATORS_BY_TYPE[field.type],
|
|
300
301
|
example: annotations.examples?.[field.name] ?? field.example ?? exampleOf(field.name, field.type, field.values),
|
|
301
302
|
...native.has(field.name) ? { native: true } : {},
|
|
303
|
+
...negatable.has(field.name) ? { negatable: true } : {},
|
|
302
304
|
...annotations.validate?.[field.name] ? { validate: annotations.validate[field.name] } : {}
|
|
303
305
|
}), "finish");
|
|
304
306
|
const own = Object.entries(entries).flatMap(([name, entry]) => {
|
|
@@ -321,7 +323,37 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
|
|
|
321
323
|
return [...own, ...relations, ...states];
|
|
322
324
|
}, "queryFieldsOf");
|
|
323
325
|
|
|
324
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
326
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/help.js
|
|
327
|
+
var QUERY_SYNTAX = 'field:value \xB7 "a phrase" \xB7 word* \xB7 AND OR NOT \xB7 ( ) \xB7 [a TO b] \xB7 > >= < <=';
|
|
328
|
+
var shownOf = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "shownOf");
|
|
329
|
+
var leftOut = /* @__PURE__ */ __name((fields2) => fields2.filter((field) => field.negatable).map((field) => field.name), "leftOut");
|
|
330
|
+
var kindOf = /* @__PURE__ */ __name((field) => field.values ? `${field.type}: ${field.values.join("|")}` : `${field.type}: ${field.operators.join(", ")}`, "kindOf");
|
|
331
|
+
var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
|
|
332
|
+
const shown = shownOf(registry);
|
|
333
|
+
const negatable = leftOut(shown);
|
|
334
|
+
const rows = shown.map((field) => [field.name, kindOf(field), field.example]);
|
|
335
|
+
const widths = [0, 1].map((at) => Math.max(...rows.map((row) => (row[at] ?? "").length)));
|
|
336
|
+
return [
|
|
337
|
+
"Fields:",
|
|
338
|
+
...rows.map(([name = "", kind = "", example = ""]) => ` ${name.padEnd(widths[0] ?? 0)} ${kind.padEnd(widths[1] ?? 0)} ${example}`.trimEnd()),
|
|
339
|
+
...registry.defaults && registry.defaults.length > 0 ? [`Defaults: ${registry.defaults.join(" ")} \u2014 name the field to change it`] : [],
|
|
340
|
+
...negatable.length > 0 ? [`Leave out: -${negatable[0]}:value or NOT ${negatable[0]}:value, for ${negatable.join(", ")}`] : [],
|
|
341
|
+
`Syntax: ${QUERY_SYNTAX}`,
|
|
342
|
+
...guide ? [`Guide: ${guide}`] : []
|
|
343
|
+
].join("\n");
|
|
344
|
+
}, "fieldsHelp");
|
|
345
|
+
var queryDescription = /* @__PURE__ */ __name((registry) => {
|
|
346
|
+
const shown = shownOf(registry);
|
|
347
|
+
if (shown.length === 0)
|
|
348
|
+
return "field:value terms; this list filters by none yet, so any term is refused";
|
|
349
|
+
const negatable = leftOut(shown);
|
|
350
|
+
const terms = registry.backend === "native" ? `field:value terms joined by AND that narrow the list${negatable.length > 0 ? `; -field:value or NOT field:value leaves out what matches, for ${negatable.join(", ")} only` : ""}` : "field:value terms that narrow the list (Lucene: AND OR NOT, -field:value, [a TO b], > <)";
|
|
351
|
+
const fields2 = shown.map((field) => field.values ? `${field.name} (${field.values.join("|")})` : field.name);
|
|
352
|
+
const defaults = registry.defaults?.length ? `; unless named: ${registry.defaults.join(" ")}` : "";
|
|
353
|
+
return `${terms}; fields: ${fields2.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
|
|
354
|
+
}, "queryDescription");
|
|
355
|
+
|
|
356
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/validate.js
|
|
325
357
|
var inContext = /* @__PURE__ */ __name((context3, run2) => {
|
|
326
358
|
try {
|
|
327
359
|
run2();
|
|
@@ -396,7 +428,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry, options = {}) => {
|
|
|
396
428
|
}, "validateQuery");
|
|
397
429
|
var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
|
|
398
430
|
|
|
399
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
431
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/parser.js
|
|
400
432
|
var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
|
|
401
433
|
var reserved = /* @__PURE__ */ new Set([
|
|
402
434
|
"+",
|
|
@@ -701,7 +733,7 @@ var implicitTextTerms = /* @__PURE__ */ __name((text6) => {
|
|
|
701
733
|
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
734
|
}, "implicitTextTerms");
|
|
703
735
|
|
|
704
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
736
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/registry.js
|
|
705
737
|
var describeQuery = /* @__PURE__ */ __name((registry) => ({
|
|
706
738
|
entity: registry.entity,
|
|
707
739
|
backend: registry.backend,
|
|
@@ -772,7 +804,7 @@ var QUERY_REASONS = defineReasons([
|
|
|
772
804
|
details: [...SPAN, ...details]
|
|
773
805
|
})));
|
|
774
806
|
|
|
775
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
807
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/evaluate.js
|
|
776
808
|
var wordsOf = /* @__PURE__ */ __name((text6) => text6.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
|
|
777
809
|
var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
|
|
778
810
|
var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
|
|
@@ -827,23 +859,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
|
|
|
827
859
|
}, "matches");
|
|
828
860
|
var evaluate = /* @__PURE__ */ __name((ast, fields2, item, options = {}) => matches(ast.root, item, new Map(fields2.map((field) => [field.name, field])), options), "evaluate");
|
|
829
861
|
|
|
830
|
-
// node_modules/.pnpm/@wirecat+cli-
|
|
831
|
-
var QUERY_SYNTAX = 'field:value \xB7 "a phrase" \xB7 word* \xB7 AND OR NOT \xB7 ( ) \xB7 [a TO b] \xB7 > >= < <=';
|
|
832
|
-
var kindOf = /* @__PURE__ */ __name((field) => field.values ? `${field.type}: ${field.values.join("|")}` : `${field.type}: ${field.operators.join(", ")}`, "kindOf");
|
|
833
|
-
var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
|
|
834
|
-
const shown = registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields;
|
|
835
|
-
const rows = shown.map((field) => [field.name, kindOf(field), field.example]);
|
|
836
|
-
const widths = [0, 1].map((at) => Math.max(...rows.map((row) => (row[at] ?? "").length)));
|
|
837
|
-
return [
|
|
838
|
-
"Fields:",
|
|
839
|
-
...rows.map(([name = "", kind = "", example = ""]) => ` ${name.padEnd(widths[0] ?? 0)} ${kind.padEnd(widths[1] ?? 0)} ${example}`.trimEnd()),
|
|
840
|
-
...registry.defaults && registry.defaults.length > 0 ? [`Defaults: ${registry.defaults.join(" ")} \u2014 name the field to change it`] : [],
|
|
841
|
-
`Syntax: ${QUERY_SYNTAX}`,
|
|
842
|
-
...guide ? [`Guide: ${guide}`] : []
|
|
843
|
-
].join("\n");
|
|
844
|
-
}, "fieldsHelp");
|
|
845
|
-
|
|
846
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/reference.js
|
|
862
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/reference.js
|
|
847
863
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
|
|
848
864
|
var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
|
|
849
865
|
if (!Number.isSafeInteger(value) || value < minimum)
|
|
@@ -880,7 +896,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text6) => {
|
|
|
880
896
|
}, "parseMeetingReference");
|
|
881
897
|
var canonicalMeetingReference = /* @__PURE__ */ __name((text6) => formatMeetingReference(parseMeetingReference(text6)), "canonicalMeetingReference");
|
|
882
898
|
|
|
883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
884
900
|
var text = string();
|
|
885
901
|
var count = pipe(number(), integer(), minValue(0));
|
|
886
902
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -945,7 +961,7 @@ var MEETING_QUERY = {
|
|
|
945
961
|
})
|
|
946
962
|
};
|
|
947
963
|
|
|
948
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
964
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
949
965
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
950
966
|
const parsed = urlOf(url);
|
|
951
967
|
if (!parsed)
|
|
@@ -979,7 +995,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
979
995
|
}
|
|
980
996
|
}, "urlOf");
|
|
981
997
|
|
|
982
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
998
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
983
999
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
984
1000
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
985
1001
|
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 +1028,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
1012
1028
|
return kept;
|
|
1013
1029
|
}, "entryMetadata");
|
|
1014
1030
|
|
|
1015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1031
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
1016
1032
|
import { createHash } from "node:crypto";
|
|
1017
1033
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
1018
1034
|
reference: cue2.reference,
|
|
@@ -1026,7 +1042,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
1026
1042
|
text: cue2.text
|
|
1027
1043
|
})).digest("hex"), "meetingCueFingerprint");
|
|
1028
1044
|
|
|
1029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1045
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
1030
1046
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
1031
1047
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
1032
1048
|
if (entry.recurrenceEndsAt !== null)
|
|
@@ -1049,7 +1065,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
1049
1065
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
1050
1066
|
}, "entryInWindow");
|
|
1051
1067
|
|
|
1052
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1068
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
1053
1069
|
var text2 = string();
|
|
1054
1070
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
1055
1071
|
var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
@@ -1276,7 +1292,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
1276
1292
|
};
|
|
1277
1293
|
}, "meetingHitsList");
|
|
1278
1294
|
|
|
1279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1295
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
1280
1296
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text6) => text6.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
1281
1297
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
1282
1298
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -1300,7 +1316,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
1300
1316
|
};
|
|
1301
1317
|
}, "validateMeetingParticipantSearch");
|
|
1302
1318
|
|
|
1303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1319
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
1304
1320
|
var MeetingError = class extends CliError {
|
|
1305
1321
|
static {
|
|
1306
1322
|
__name(this, "MeetingError");
|
|
@@ -1432,7 +1448,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id3, accountId)
|
|
|
1432
1448
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
1433
1449
|
}, "meetingSummaryAnswer");
|
|
1434
1450
|
|
|
1435
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1451
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
1436
1452
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
1437
1453
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
1438
1454
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -1528,10 +1544,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id3, options) => {
|
|
|
1528
1544
|
};
|
|
1529
1545
|
}, "exportMeeting");
|
|
1530
1546
|
|
|
1531
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1547
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1532
1548
|
import { createHash as createHash2 } from "node:crypto";
|
|
1533
1549
|
|
|
1534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
1535
1551
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
1536
1552
|
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
1553
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone`);
|
|
@@ -1542,7 +1558,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
1542
1558
|
return new Date(value).toISOString();
|
|
1543
1559
|
}, "meetingTimestamp");
|
|
1544
1560
|
|
|
1545
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1561
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
1546
1562
|
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
1547
1563
|
if (typeof value !== "string" || !value.trim())
|
|
1548
1564
|
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
@@ -1593,10 +1609,10 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
|
|
|
1593
1609
|
return Object.freeze(result);
|
|
1594
1610
|
}, "validateMeetingChange");
|
|
1595
1611
|
|
|
1596
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1612
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
|
|
1597
1613
|
var MEETING_FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
1598
1614
|
|
|
1599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1615
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1600
1616
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
1601
1617
|
var invalid2 = /* @__PURE__ */ __name((message) => {
|
|
1602
1618
|
throw new CliError("validation_error", message);
|
|
@@ -1611,6 +1627,7 @@ var fields = /* @__PURE__ */ __name((value, allowed, noun) => {
|
|
|
1611
1627
|
if (Object.keys(value).some((key) => !allowed.includes(key)))
|
|
1612
1628
|
invalid2(`unknown ${noun} field`);
|
|
1613
1629
|
}, "fields");
|
|
1630
|
+
var SUBJECT = /^(person|organization|project):[1-9]\d*$|^task:[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$/;
|
|
1614
1631
|
var validateFindings = /* @__PURE__ */ __name((input, rules) => {
|
|
1615
1632
|
if (!input || typeof input !== "object" || Buffer.byteLength(JSON.stringify(input), "utf8") > 65536)
|
|
1616
1633
|
return invalid2(`${rules.plural} take at most 65536 UTF-8 bytes`);
|
|
@@ -1628,9 +1645,13 @@ var validateFindings = /* @__PURE__ */ __name((input, rules) => {
|
|
|
1628
1645
|
if (!/^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$/.test(id3) || ids2.has(id3))
|
|
1629
1646
|
return invalid2("finding IDs must be unique simple keys");
|
|
1630
1647
|
ids2.add(id3);
|
|
1631
|
-
const project = text3(finding.project, 64);
|
|
1632
|
-
if (!/^project:[1-9]\d*$/.test(project))
|
|
1648
|
+
const project = finding.project === void 0 && rules.anySubject ? void 0 : text3(finding.project, 64);
|
|
1649
|
+
if (project !== void 0 && !/^project:[1-9]\d*$/.test(project))
|
|
1633
1650
|
return invalid2("a finding names a project reference");
|
|
1651
|
+
if (finding.subject !== void 0 && (!rules.anySubject || !SUBJECT.test(text3(finding.subject, 80))))
|
|
1652
|
+
return invalid2("a finding's subject is a person:, organization:, task: or project: reference");
|
|
1653
|
+
if (finding.kind === "task" && project === void 0)
|
|
1654
|
+
return invalid2("a task finding names the project the task goes in");
|
|
1634
1655
|
if (!Array.isArray(finding.evidence) || finding.evidence.length < 1 || finding.evidence.length > 8)
|
|
1635
1656
|
return invalid2(`a finding requires 1\u20138 cited ${rules.cited}s`);
|
|
1636
1657
|
const evidence = finding.evidence.map((item) => {
|
|
@@ -1646,9 +1667,14 @@ var validateFindings = /* @__PURE__ */ __name((input, rules) => {
|
|
|
1646
1667
|
}).sort((a, b) => a.reference.localeCompare(b.reference));
|
|
1647
1668
|
if (new Set(evidence.map((item) => item.reference)).size !== evidence.length)
|
|
1648
1669
|
return invalid2(`duplicate evidence ${rules.cited}`);
|
|
1649
|
-
const base = {
|
|
1670
|
+
const base = {
|
|
1671
|
+
id: id3,
|
|
1672
|
+
...project === void 0 ? {} : { project },
|
|
1673
|
+
...finding.subject === void 0 ? {} : { subject: finding.subject },
|
|
1674
|
+
evidence
|
|
1675
|
+
};
|
|
1650
1676
|
if (finding.kind === "fact") {
|
|
1651
|
-
fields(finding, ["id", "project", "evidence", "kind", "type", "statement"], rules.singular);
|
|
1677
|
+
fields(finding, ["id", "project", "subject", "evidence", "kind", "type", "statement"], rules.singular);
|
|
1652
1678
|
if (!MEETING_FACT_TYPES.includes(finding.type))
|
|
1653
1679
|
return invalid2("unknown fact finding type");
|
|
1654
1680
|
return { ...base, kind: "fact", type: finding.type, statement: text3(finding.statement, 2e3) };
|
|
@@ -1697,7 +1723,7 @@ var validateFindings = /* @__PURE__ */ __name((input, rules) => {
|
|
|
1697
1723
|
}, "validateFindings");
|
|
1698
1724
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
1699
1725
|
|
|
1700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1726
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
1701
1727
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
1702
1728
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
1703
1729
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -1708,7 +1734,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
1708
1734
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
1709
1735
|
var meetingFindingFingerprint = findingFingerprint;
|
|
1710
1736
|
|
|
1711
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1737
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
1712
1738
|
var text4 = string();
|
|
1713
1739
|
var identifier = pipe(text4, minLength(1));
|
|
1714
1740
|
var nullableText = nullable(text4);
|
|
@@ -1834,7 +1860,7 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
1834
1860
|
meeting_embedding: embedding
|
|
1835
1861
|
};
|
|
1836
1862
|
|
|
1837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1863
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
1838
1864
|
var EVENT_QUERY = defineQuery({
|
|
1839
1865
|
entity: "event",
|
|
1840
1866
|
backend: "sql",
|
|
@@ -1850,7 +1876,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
1850
1876
|
]
|
|
1851
1877
|
});
|
|
1852
1878
|
|
|
1853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
1854
1880
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
|
|
1855
1881
|
const current = await store.meeting(details.meeting.id);
|
|
1856
1882
|
if (!current)
|
|
@@ -1893,7 +1919,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
1893
1919
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
1894
1920
|
}, "linkEvent");
|
|
1895
1921
|
|
|
1896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
1897
1923
|
var context = {
|
|
1898
1924
|
command: "search meetings",
|
|
1899
1925
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -1956,7 +1982,7 @@ var MEETING_FIELDS = defineQuery({
|
|
|
1956
1982
|
});
|
|
1957
1983
|
var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
|
|
1958
1984
|
|
|
1959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
1960
1986
|
var contentHash = /* @__PURE__ */ __name(async (text6) => {
|
|
1961
1987
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text6));
|
|
1962
1988
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -1993,7 +2019,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
1993
2019
|
return time;
|
|
1994
2020
|
}, "timestamp");
|
|
1995
2021
|
|
|
1996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
1997
2023
|
var TranscriptTextError = class extends Error {
|
|
1998
2024
|
static {
|
|
1999
2025
|
__name(this, "TranscriptTextError");
|
|
@@ -2048,7 +2074,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
2048
2074
|
return { header, lines };
|
|
2049
2075
|
}, "parseTranscriptText");
|
|
2050
2076
|
|
|
2051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2077
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
2052
2078
|
var VttError = class extends Error {
|
|
2053
2079
|
static {
|
|
2054
2080
|
__name(this, "VttError");
|
|
@@ -2100,7 +2126,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
2100
2126
|
return cues;
|
|
2101
2127
|
}, "parseVtt");
|
|
2102
2128
|
|
|
2103
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
2104
2130
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
2105
2131
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2106
2132
|
for (const file of files) {
|
|
@@ -2133,10 +2159,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2133
2159
|
return report;
|
|
2134
2160
|
}, "importFiles");
|
|
2135
2161
|
|
|
2136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
2137
2163
|
var CHAT_MESSAGES_READ = 1e5;
|
|
2138
2164
|
|
|
2139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2165
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
2140
2166
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
2141
2167
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
2142
2168
|
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 +2175,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
2149
2175
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
2150
2176
|
}, "validateMeetingPassage");
|
|
2151
2177
|
|
|
2152
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
2153
2179
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
2154
2180
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2155
2181
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -2174,7 +2200,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
2174
2200
|
return { ...input, limit, maxReadBytes };
|
|
2175
2201
|
}, "validateMeetingPreparationContext");
|
|
2176
2202
|
|
|
2177
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2203
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
2178
2204
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
2179
2205
|
var id = pipe(string(), minLength(1));
|
|
2180
2206
|
var meetingProjectEvidence = strictObject({
|
|
@@ -2295,7 +2321,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
2295
2321
|
};
|
|
2296
2322
|
}, "meetingProjectEvidenceAnswer");
|
|
2297
2323
|
|
|
2298
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
2299
2325
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
2300
2326
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
2301
2327
|
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 +2341,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
2315
2341
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
2316
2342
|
}, "validateMeetingHitSearch");
|
|
2317
2343
|
|
|
2318
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2344
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
2319
2345
|
var ids = {
|
|
2320
2346
|
meeting_id: "meetingId",
|
|
2321
2347
|
identity_id: "participantIdentityId",
|
|
@@ -2406,7 +2432,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
|
|
|
2406
2432
|
return { project: project.trim(), options, query: frozen.join(" AND ") };
|
|
2407
2433
|
}, "prepareMeetingProjectEvidence");
|
|
2408
2434
|
|
|
2409
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2435
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
2410
2436
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
|
|
2411
2437
|
const prepared = prepareMeetingProjectEvidence(project, request, now);
|
|
2412
2438
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -2414,7 +2440,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
|
|
|
2414
2440
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
2415
2441
|
}, "readMeetingProjectEvidence");
|
|
2416
2442
|
|
|
2417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2443
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
2418
2444
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2419
2445
|
const { identityExternalId, ...fields2 } = p;
|
|
2420
2446
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -2553,7 +2579,7 @@ unlinked`, format)],
|
|
|
2553
2579
|
return report;
|
|
2554
2580
|
}, "pull");
|
|
2555
2581
|
|
|
2556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2582
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
2557
2583
|
var text5 = string();
|
|
2558
2584
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
2559
2585
|
var id2 = pipe(number(), integer(), minValue(1));
|
|
@@ -2704,7 +2730,12 @@ var event = strictObject({
|
|
|
2704
2730
|
changed_at: optional(nullable(isoTime)),
|
|
2705
2731
|
/** The times a moved event had at that date. */
|
|
2706
2732
|
was: optional(strictObject({ starts_at: nullable(isoTime), ends_at: nullable(isoTime) })),
|
|
2707
|
-
/**
|
|
2733
|
+
/**
|
|
2734
|
+
* Whether its time overlaps another event's, in the accounts read: a timed event, not cancelled, not declined, not
|
|
2735
|
+
* free and no working-location block. On a calendar CLI's `events list` when the query names it.
|
|
2736
|
+
*/
|
|
2737
|
+
overlapping: optional(boolean()),
|
|
2738
|
+
/** With `overlapping:true`: the events it overlaps, as `event:<id>`. */
|
|
2708
2739
|
overlaps: optional(array(text5))
|
|
2709
2740
|
});
|
|
2710
2741
|
var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
@@ -2725,10 +2756,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
2725
2756
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
2726
2757
|
}), "eventItem");
|
|
2727
2758
|
|
|
2728
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
2729
2760
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
2730
2761
|
|
|
2731
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2762
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
2732
2763
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
2733
2764
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2734
2765
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -2758,14 +2789,14 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
2758
2789
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
2759
2790
|
}, "validateMeetingRelatedHistory");
|
|
2760
2791
|
|
|
2761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2792
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
2762
2793
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
2763
2794
|
|
|
2764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2795
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
2765
2796
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
2766
2797
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
2767
2798
|
|
|
2768
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2799
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
2769
2800
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
2770
2801
|
input.signal?.throwIfAborted();
|
|
2771
2802
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -2786,10 +2817,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
2786
2817
|
return { ...input, limit, maxReadBytes };
|
|
2787
2818
|
}, "validateMeetingSeriesHistory");
|
|
2788
2819
|
|
|
2789
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2820
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
2790
2821
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
2791
2822
|
|
|
2792
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2823
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
2793
2824
|
function invalid3(field, response = false) {
|
|
2794
2825
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
2795
2826
|
}
|
|
@@ -2818,7 +2849,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
2818
2849
|
cursorDetails(value);
|
|
2819
2850
|
}, "validateMeetingSeriesInventoryCursor");
|
|
2820
2851
|
|
|
2821
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
2822
2853
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
2823
2854
|
const zone = timeZone ?? "UTC";
|
|
2824
2855
|
try {
|
|
@@ -2897,7 +2928,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
2897
2928
|
};
|
|
2898
2929
|
}, "aggregateMeetingStats");
|
|
2899
2930
|
|
|
2900
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
2901
2932
|
var LINK_KINDS = [
|
|
2902
2933
|
"links-to",
|
|
2903
2934
|
"blocked-by",
|
|
@@ -2918,7 +2949,7 @@ var LINK_SOURCES = [...LINK_ORIGINS, "calendar"];
|
|
|
2918
2949
|
var RELATION_KINDS = ["member-of", "related-to"];
|
|
2919
2950
|
var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
|
|
2920
2951
|
|
|
2921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2952
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
2922
2953
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
2923
2954
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
2924
2955
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -2933,13 +2964,13 @@ function closeTask(task, state, by, at, reason) {
|
|
|
2933
2964
|
}
|
|
2934
2965
|
__name(closeTask, "closeTask");
|
|
2935
2966
|
|
|
2936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2967
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
2937
2968
|
function matches2(task, filter) {
|
|
2938
2969
|
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
2970
|
}
|
|
2940
2971
|
__name(matches2, "matches");
|
|
2941
2972
|
|
|
2942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2973
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
2943
2974
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
2944
2975
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
2945
2976
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -2962,11 +2993,13 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
2962
2993
|
return MIDDLE[word];
|
|
2963
2994
|
if (/^[0-4]$/.test(word))
|
|
2964
2995
|
return LEGACY_PRIORITY_SCORES[Number(word)];
|
|
2965
|
-
|
|
2996
|
+
if (/^(0?\.\d+|[01]\.\d*)$/.test(word) && Number(word) <= 1)
|
|
2997
|
+
return Number(word);
|
|
2998
|
+
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
2999
|
}, "priorityOf");
|
|
2967
3000
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
2968
3001
|
|
|
2969
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3002
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
2970
3003
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
2971
3004
|
async function find(id3) {
|
|
2972
3005
|
const task = await store.get(id3);
|
|
@@ -3026,7 +3059,7 @@ function median(values) {
|
|
|
3026
3059
|
}
|
|
3027
3060
|
__name(median, "median");
|
|
3028
3061
|
|
|
3029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3062
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
3030
3063
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
3031
3064
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
3032
3065
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
@@ -3044,6 +3077,7 @@ export {
|
|
|
3044
3077
|
queryError,
|
|
3045
3078
|
walkQuery,
|
|
3046
3079
|
timezoneOf,
|
|
3080
|
+
dayBoundary,
|
|
3047
3081
|
zonedMoment,
|
|
3048
3082
|
dateEndpoint,
|
|
3049
3083
|
dateRange,
|
|
@@ -3053,6 +3087,7 @@ export {
|
|
|
3053
3087
|
QUERY_BACKENDS,
|
|
3054
3088
|
queryFieldsOf,
|
|
3055
3089
|
fieldsHelp,
|
|
3090
|
+
queryDescription,
|
|
3056
3091
|
parseLucene,
|
|
3057
3092
|
implicitTextTerms,
|
|
3058
3093
|
validateQuery,
|