@wirecat/cli-memo 0.131.55 → 0.131.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/memo.js +2 -2
- package/dist/bundle/{all-profiles-PJR2VHDP.js → all-profiles-XWRUFNP2.js} +7 -7
- package/dist/bundle/{anthropic-ZUDIWREK.js → anthropic-266QJJGV.js} +5 -5
- package/dist/bundle/{app-server-EYNQ4L2V.js → app-server-CS3FQXPR.js} +38 -38
- package/dist/bundle/auto-XHUADK6H.js +86 -0
- package/dist/bundle/{bun-W2ZP6I6Z.js → bun-22MM6T54.js} +2 -2
- package/dist/bundle/{bun-sqlite-T2CTJ6AR.js → bun-sqlite-V73FFF2C.js} +4 -4
- package/dist/bundle/{chunk-LWWJW5V7.js → chunk-2BVVXH5V.js} +6 -6
- package/dist/bundle/{chunk-MGDBKE7E.js → chunk-2CF2R7SA.js} +7 -7
- package/dist/bundle/{chunk-VQTU4ILC.js → chunk-2LPPNYOZ.js} +1 -1
- package/dist/bundle/{chunk-T5WGWLY2.js → chunk-2Q3O33AD.js} +11 -11
- package/dist/bundle/{chunk-6NJ5OI2S.js → chunk-3BWYMNWP.js} +1 -1
- package/dist/bundle/{chunk-2NVP4FZH.js → chunk-3N7LEJRT.js} +2 -2
- package/dist/bundle/{chunk-4335SGVD.js → chunk-4XKHXETB.js} +7007 -2683
- package/dist/bundle/{chunk-7ZO2LAFF.js → chunk-5FYDQEM7.js} +5 -5
- package/dist/bundle/{chunk-KK2ATSEC.js → chunk-5LFQPARU.js} +7 -7
- package/dist/bundle/{chunk-DIFRVXKQ.js → chunk-62DGJ757.js} +1124 -435
- package/dist/bundle/{chunk-IVDBHH3N.js → chunk-6FABO4WB.js} +1 -1
- package/dist/bundle/{chunk-OSPAMIIY.js → chunk-72ZEEKOJ.js} +3 -3
- package/dist/bundle/{chunk-MZMJALJT.js → chunk-ASWLM74P.js} +2 -2
- package/dist/bundle/{chunk-5UM2OEOR.js → chunk-ATEHG5O6.js} +2 -2
- package/dist/bundle/{chunk-JBQP2M7J.js → chunk-BLCYVRW3.js} +8 -8
- package/dist/bundle/{chunk-MMWIVZ7F.js → chunk-CKNH2HT6.js} +2 -2
- package/dist/bundle/{chunk-PSJB456T.js → chunk-CQPMBTB6.js} +1 -1
- package/dist/bundle/{chunk-O7CBAY6J.js → chunk-DQWHLOKG.js} +4 -4
- package/dist/bundle/{chunk-MU4MPJCU.js → chunk-DUBGCFRO.js} +3 -3
- package/dist/bundle/{chunk-WLKDS65F.js → chunk-EMNQPMZO.js} +1 -1
- package/dist/bundle/{chunk-LCE5LBZC.js → chunk-EQQIUVLP.js} +4 -4
- package/dist/bundle/{chunk-4VQ7FPNW.js → chunk-EUE76Q4D.js} +3 -3
- package/dist/bundle/{chunk-JGY2PJ3N.js → chunk-F5DOQOCK.js} +12 -12
- package/dist/bundle/{chunk-DDD3CXHR.js → chunk-FCWUSKUI.js} +31 -24
- package/dist/bundle/{chunk-OKERVM3M.js → chunk-FG7ZGEZ6.js} +4 -4
- package/dist/bundle/{chunk-26QKDK5P.js → chunk-FU3XDL34.js} +5 -5
- package/dist/bundle/{chunk-KTVYCPJW.js → chunk-HVHUHYNF.js} +1 -1
- package/dist/bundle/{chunk-WYZDNDQ5.js → chunk-IF3RIN4C.js} +734 -491
- package/dist/bundle/{chunk-P3MKPY7D.js → chunk-IFUB2B2A.js} +74 -15
- package/dist/bundle/{chunk-ACSHPLHQ.js → chunk-IX5KCS2V.js} +7 -7
- package/dist/bundle/{chunk-P5UTNYA7.js → chunk-IY7GB2SJ.js} +2 -2
- package/dist/bundle/{chunk-YHHR7NQ3.js → chunk-KKBA3FAY.js} +33 -33
- package/dist/bundle/{chunk-IR45YH4T.js → chunk-KO24NP3R.js} +5 -5
- package/dist/bundle/{chunk-MV5W4FLV.js → chunk-N2TGYTKE.js} +1 -1
- package/dist/bundle/{chunk-UBZN4EWJ.js → chunk-NDCURVJS.js} +5 -5
- package/dist/bundle/{chunk-VPCNLTME.js → chunk-NEWKSMXP.js} +2 -2
- package/dist/bundle/{chunk-AYY5CYJJ.js → chunk-ONJNZ2RJ.js} +1 -1
- package/dist/bundle/{chunk-RSBROHX4.js → chunk-OROO3KYQ.js} +2 -2
- package/dist/bundle/{chunk-PHP3T567.js → chunk-PBVG3KJR.js} +3 -3
- package/dist/bundle/{chunk-BEO6VJ2E.js → chunk-PWUR2XTO.js} +106 -96
- package/dist/bundle/{chunk-B5VQSSL2.js → chunk-QWZPIELU.js} +14 -14
- package/dist/bundle/{chunk-64JCY7XJ.js → chunk-RCGFSWZE.js} +44 -0
- package/dist/bundle/{chunk-BC7N6IQ6.js → chunk-RJWL3NEL.js} +1 -1
- package/dist/bundle/{chunk-GESLAB4N.js → chunk-RTROEIYE.js} +2 -2
- package/dist/bundle/{chunk-JB43Q2QL.js → chunk-RYDNM3K2.js} +1 -1
- package/dist/bundle/{chunk-AF2ZDP3M.js → chunk-TB4IRRAC.js} +1 -1
- package/dist/bundle/{chunk-BSA22I76.js → chunk-UCTUYZER.js} +5 -5
- package/dist/bundle/{chunk-CADGAURO.js → chunk-USZH2ELR.js} +29 -29
- package/dist/bundle/{chunk-SR3ZNX24.js → chunk-V4BKQWDS.js} +132 -114
- package/dist/bundle/{chunk-RX6JTLKD.js → chunk-VEDOHZEU.js} +7 -7
- package/dist/bundle/{chunk-VXZ7FWKU.js → chunk-VQKSJO45.js} +3 -3
- package/dist/bundle/{chunk-FUINFNUC.js → chunk-XEQPZBIH.js} +1 -1
- package/dist/bundle/{chunk-MFVZXEQN.js → chunk-XIS7K5HT.js} +22 -22
- package/dist/bundle/{chunk-643B3X4D.js → chunk-XLYMVYMU.js} +2 -2
- package/dist/bundle/{chunk-IRFHHNSX.js → chunk-XN5POYJL.js} +319 -182
- package/dist/bundle/{chunk-3MWNNJII.js → chunk-Y6PP45D4.js} +9 -9
- package/dist/bundle/{chunk-34GJQ4ZR.js → chunk-YTAQKOAW.js} +1 -1
- package/dist/bundle/{chunk-VBYV6XQI.js → chunk-Z6RSOFHK.js} +2 -2
- package/dist/bundle/{chunk-XD52BEML.js → chunk-ZA6ZKUGT.js} +5 -5
- package/dist/bundle/{chunk-ZTM4UUCP.js → chunk-ZGSAA2H5.js} +10 -10
- package/dist/bundle/{command-contract-EWPKHGAZ.js → command-contract-RST6OGMR.js} +13 -13
- package/dist/bundle/{decode-UWT3Y66W.js → decode-JHVAOF3N.js} +4 -4
- package/dist/bundle/{dispatch-W4ZVXTJT.js → dispatch-CRYB6Q2V.js} +1 -1
- package/dist/bundle/{echarts-7VGTR45R.js → echarts-KCOXA225.js} +2 -2
- package/dist/bundle/{embed-CM2QSTNK.js → embed-4NYYOVNS.js} +5 -5
- package/dist/bundle/{embedder-CDCAMVV7.js → embedder-SHPWEDIQ.js} +8 -8
- package/dist/bundle/{entry-WHEWBNJL.js → entry-4WKYFX5K.js} +6 -6
- package/dist/bundle/failure-BBE2DUGO.js +66 -0
- package/dist/bundle/{failure-GQHAQVGH.js → failure-ZMQJF3RO.js} +1 -1
- package/dist/bundle/{first-run-ZBIQO5RZ.js → first-run-2JHWQLHM.js} +8 -8
- package/dist/bundle/first-screen-AVSHZ6KK.js +30 -0
- package/dist/bundle/{instructions-LYKSTUGQ.js → instructions-ER3ONEOR.js} +1 -1
- package/dist/bundle/mcp-VBBKPKEG.js +90 -0
- package/dist/bundle/memo.js +9 -9
- package/dist/bundle/{node-LFRTSZBZ.js → node-DBZKVPDA.js} +2 -2
- package/dist/bundle/{node-sqlite-Y47T5FTT.js → node-sqlite-UZVU7EXS.js} +5 -5
- package/dist/bundle/{oauth-YM5C6VS3.js → oauth-VEFHKRWG.js} +6 -6
- package/dist/bundle/{open-WPA4DW5G.js → open-XNRAMLOK.js} +4 -4
- package/dist/bundle/{openai-RCPT23DA.js → openai-4XIX5RN2.js} +9 -9
- package/dist/bundle/{process-P2X2KFMR.js → process-EIGF77RB.js} +1 -1
- package/dist/bundle/{program-W35YGVVL.js → program-RWAKY3P6.js} +69 -59
- package/dist/bundle/{prompt-65WPTVYC.js → prompt-V7RFTWTA.js} +4 -4
- package/dist/bundle/{recognize-MEFMK7HT.js → recognize-7PWWI67V.js} +3 -3
- package/dist/bundle/{remote-4XIR3ZYK.js → remote-NOKKQ2U5.js} +6 -6
- package/dist/bundle/{rerank-YRLAXFFL.js → rerank-X7UWX2ZF.js} +6 -6
- package/dist/bundle/{serve-6SPZH6CY.js → serve-Z6YCLXXP.js} +8 -8
- package/dist/bundle/server-GWH7J45V.js +48 -0
- package/dist/bundle/{server-7VLGYAOI.js → server-PIJV3LG4.js} +53 -53
- package/dist/bundle/server-WDE4WIHG.js +61 -0
- package/dist/bundle/{state-G34NVZ7F.js → state-K5D3BMKT.js} +5 -5
- package/dist/bundle/{store-6U4SYK4Q.js → store-6SZBCSUF.js} +21 -11
- package/dist/bundle/store-maintenance-command-Q2ABF4CG.js +48 -0
- package/dist/bundle/update-EKDVFRAG.js +69 -0
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +4 -0
- package/dist/examples.js.map +1 -1
- package/dist/search/answers.d.ts.map +1 -1
- package/dist/search/answers.js +8 -0
- package/dist/search/answers.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/auto-K7FXWNR2.js +0 -86
- package/dist/bundle/failure-PFBL75CT.js +0 -66
- package/dist/bundle/first-screen-CUAY5N6E.js +0 -30
- package/dist/bundle/mcp-I72UY3QP.js +0 -90
- package/dist/bundle/server-FB75UHSF.js +0 -48
- package/dist/bundle/server-IELXA6S2.js +0 -61
- package/dist/bundle/store-maintenance-command-ONVPBZLT.js +0 -48
- package/dist/bundle/update-WJ2N47FV.js +0 -69
- /package/dist/bundle/{chunk-2H36DXV7.js → chunk-SO2HNIPX.js} +0 -0
|
@@ -3,10 +3,10 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
isCliFailure,
|
|
5
5
|
isStoreDamage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IY7GB2SJ.js";
|
|
7
7
|
import {
|
|
8
8
|
refuseOwnerStoreInTests
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OROO3KYQ.js";
|
|
10
10
|
import {
|
|
11
11
|
RegistryError,
|
|
12
12
|
SNAKE_CASE,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
union,
|
|
41
41
|
unknown,
|
|
42
42
|
variant
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-RCGFSWZE.js";
|
|
44
44
|
import {
|
|
45
45
|
CliError,
|
|
46
46
|
isCliError,
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
__name
|
|
52
52
|
} from "./chunk-ZVVMGPBJ.js";
|
|
53
53
|
|
|
54
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
54
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/store/marks.js
|
|
55
55
|
import { readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
56
56
|
var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
|
|
57
57
|
var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
|
|
@@ -967,7 +967,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
|
|
|
967
967
|
}, "matches");
|
|
968
968
|
var evaluate = /* @__PURE__ */ __name((ast, fields, item, options = {}) => matches(ast.root, item, new Map(fields.map((field) => [field.name, field])), options), "evaluate");
|
|
969
969
|
|
|
970
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
970
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/reference.js
|
|
971
971
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
|
|
972
972
|
var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
|
|
973
973
|
if (!Number.isSafeInteger(value) || value < minimum)
|
|
@@ -1004,7 +1004,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text6) => {
|
|
|
1004
1004
|
}, "parseMeetingReference");
|
|
1005
1005
|
var canonicalMeetingReference = /* @__PURE__ */ __name((text6) => formatMeetingReference(parseMeetingReference(text6)), "canonicalMeetingReference");
|
|
1006
1006
|
|
|
1007
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1007
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
1008
1008
|
var text = string();
|
|
1009
1009
|
var count = pipe(number(), integer(), minValue(0));
|
|
1010
1010
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -1069,7 +1069,7 @@ var MEETING_QUERY = {
|
|
|
1069
1069
|
})
|
|
1070
1070
|
};
|
|
1071
1071
|
|
|
1072
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1072
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
1073
1073
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
1074
1074
|
const parsed = urlOf(url);
|
|
1075
1075
|
if (!parsed)
|
|
@@ -1103,7 +1103,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
1103
1103
|
}
|
|
1104
1104
|
}, "urlOf");
|
|
1105
1105
|
|
|
1106
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
1107
1107
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
1108
1108
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
1109
1109
|
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");
|
|
@@ -1122,7 +1122,11 @@ var ENTRY_METADATA_KEYS = [
|
|
|
1122
1122
|
"guestsCanSeeOtherGuests",
|
|
1123
1123
|
"hangoutLink",
|
|
1124
1124
|
"locked",
|
|
1125
|
-
"privateCopy"
|
|
1125
|
+
"privateCopy",
|
|
1126
|
+
// A phone call's, from a records import: the entry's other columns have no place for them.
|
|
1127
|
+
"callDirection",
|
|
1128
|
+
"callSeconds",
|
|
1129
|
+
"callNumber"
|
|
1126
1130
|
];
|
|
1127
1131
|
var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
1128
1132
|
const kept = {};
|
|
@@ -1136,7 +1140,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
1136
1140
|
return kept;
|
|
1137
1141
|
}, "entryMetadata");
|
|
1138
1142
|
|
|
1139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
1140
1144
|
import { createHash } from "node:crypto";
|
|
1141
1145
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
1142
1146
|
reference: cue2.reference,
|
|
@@ -1150,7 +1154,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
1150
1154
|
text: cue2.text
|
|
1151
1155
|
})).digest("hex"), "meetingCueFingerprint");
|
|
1152
1156
|
|
|
1153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
1154
1158
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
1155
1159
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
1156
1160
|
if (entry.recurrenceEndsAt !== null)
|
|
@@ -1173,7 +1177,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
1173
1177
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
1174
1178
|
}, "entryInWindow");
|
|
1175
1179
|
|
|
1176
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1180
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
1177
1181
|
var text2 = string();
|
|
1178
1182
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
1179
1183
|
var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
@@ -1408,7 +1412,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
1408
1412
|
};
|
|
1409
1413
|
}, "meetingHitsList");
|
|
1410
1414
|
|
|
1411
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1415
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
1412
1416
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text6) => text6.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
1413
1417
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
1414
1418
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -1432,7 +1436,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
1432
1436
|
};
|
|
1433
1437
|
}, "validateMeetingParticipantSearch");
|
|
1434
1438
|
|
|
1435
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
1436
1440
|
var MeetingError = class extends CliError {
|
|
1437
1441
|
static {
|
|
1438
1442
|
__name(this, "MeetingError");
|
|
@@ -1564,7 +1568,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id4, accountId)
|
|
|
1564
1568
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
1565
1569
|
}, "meetingSummaryAnswer");
|
|
1566
1570
|
|
|
1567
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1571
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
1568
1572
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
1569
1573
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
1570
1574
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -1660,7 +1664,7 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id4, options) => {
|
|
|
1660
1664
|
};
|
|
1661
1665
|
}, "exportMeeting");
|
|
1662
1666
|
|
|
1663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1667
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/payment.js
|
|
1664
1668
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
1665
1669
|
var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
|
|
1666
1670
|
var PAYMENT_STATES = ["expected", "paid", "cancelled"];
|
|
@@ -1754,10 +1758,10 @@ var paymentTitle = /* @__PURE__ */ __name((fact) => {
|
|
|
1754
1758
|
return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
|
|
1755
1759
|
}, "paymentTitle");
|
|
1756
1760
|
|
|
1757
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1761
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1758
1762
|
import { createHash as createHash2 } from "node:crypto";
|
|
1759
1763
|
|
|
1760
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1764
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
1761
1765
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
1762
1766
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
1763
1767
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone, such as 2026-11-09T09:00:00Z`);
|
|
@@ -1768,7 +1772,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
1768
1772
|
return new Date(value).toISOString();
|
|
1769
1773
|
}, "meetingTimestamp");
|
|
1770
1774
|
|
|
1771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1775
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1772
1776
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
1773
1777
|
var invalid3 = /* @__PURE__ */ __name((message) => {
|
|
1774
1778
|
throw new CliError("validation_error", message);
|
|
@@ -1941,7 +1945,7 @@ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
|
|
|
1941
1945
|
var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
|
|
1942
1946
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
1943
1947
|
|
|
1944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1948
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
1945
1949
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
1946
1950
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
1947
1951
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -1952,7 +1956,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
1952
1956
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
1953
1957
|
var meetingFindingFingerprint = findingFingerprint;
|
|
1954
1958
|
|
|
1955
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1959
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
1956
1960
|
var text3 = string();
|
|
1957
1961
|
var identifier = pipe(text3, minLength(1));
|
|
1958
1962
|
var nullableText = nullable(text3);
|
|
@@ -2085,7 +2089,7 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
2085
2089
|
meeting_repair: repair
|
|
2086
2090
|
};
|
|
2087
2091
|
|
|
2088
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2092
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
2089
2093
|
var EVENT_QUERY = defineQuery({
|
|
2090
2094
|
entity: "event",
|
|
2091
2095
|
backend: "sql",
|
|
@@ -2101,7 +2105,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
2101
2105
|
]
|
|
2102
2106
|
});
|
|
2103
2107
|
|
|
2104
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2108
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
2105
2109
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
|
|
2106
2110
|
const current = await store.meeting(details.meeting.id);
|
|
2107
2111
|
if (!current)
|
|
@@ -2144,7 +2148,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
2144
2148
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
2145
2149
|
}, "linkEvent");
|
|
2146
2150
|
|
|
2147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
2148
2152
|
var context = {
|
|
2149
2153
|
command: "search meetings",
|
|
2150
2154
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -2264,7 +2268,7 @@ var meetingWordsQuery = /* @__PURE__ */ __name((text6) => {
|
|
|
2264
2268
|
return { version: 1, language: "lucene-v1", root };
|
|
2265
2269
|
}, "meetingWordsQuery");
|
|
2266
2270
|
|
|
2267
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2271
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/language.js
|
|
2268
2272
|
var LATIN_WORDS = {
|
|
2269
2273
|
en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
|
|
2270
2274
|
es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
|
|
@@ -2313,7 +2317,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
|
|
|
2313
2317
|
return null;
|
|
2314
2318
|
}, "transcriptLanguage");
|
|
2315
2319
|
|
|
2316
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2320
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
2317
2321
|
var contentHash = /* @__PURE__ */ __name(async (text6) => {
|
|
2318
2322
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text6));
|
|
2319
2323
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -2350,7 +2354,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
2350
2354
|
return time2;
|
|
2351
2355
|
}, "timestamp");
|
|
2352
2356
|
|
|
2353
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
2354
2358
|
var TranscriptTextError = class extends Error {
|
|
2355
2359
|
static {
|
|
2356
2360
|
__name(this, "TranscriptTextError");
|
|
@@ -2405,7 +2409,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
2405
2409
|
return { header, lines };
|
|
2406
2410
|
}, "parseTranscriptText");
|
|
2407
2411
|
|
|
2408
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2412
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
2409
2413
|
var VttError = class extends Error {
|
|
2410
2414
|
static {
|
|
2411
2415
|
__name(this, "VttError");
|
|
@@ -2457,7 +2461,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
2457
2461
|
return cues;
|
|
2458
2462
|
}, "parseVtt");
|
|
2459
2463
|
|
|
2460
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2464
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
2461
2465
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
2462
2466
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2463
2467
|
for (const file of files) {
|
|
@@ -2490,10 +2494,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2490
2494
|
return report;
|
|
2491
2495
|
}, "importFiles");
|
|
2492
2496
|
|
|
2493
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2497
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
2494
2498
|
var CHAT_MESSAGES_READ = 1e5;
|
|
2495
2499
|
|
|
2496
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2500
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/provider.js
|
|
2497
2501
|
var snapshotMeetingScope = /* @__PURE__ */ __name((scope2) => {
|
|
2498
2502
|
const provider = scope2?.provider;
|
|
2499
2503
|
const account = scope2?.account;
|
|
@@ -2502,7 +2506,7 @@ var snapshotMeetingScope = /* @__PURE__ */ __name((scope2) => {
|
|
|
2502
2506
|
return Object.freeze({ provider, account });
|
|
2503
2507
|
}, "snapshotMeetingScope");
|
|
2504
2508
|
|
|
2505
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
2506
2510
|
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
2507
2511
|
if (typeof value !== "string" || !value.trim())
|
|
2508
2512
|
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
@@ -2553,7 +2557,7 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
|
|
|
2553
2557
|
return Object.freeze(result);
|
|
2554
2558
|
}, "validateMeetingChange");
|
|
2555
2559
|
|
|
2556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2560
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
2557
2561
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
2558
2562
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
2559
2563
|
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)))
|
|
@@ -2566,7 +2570,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
2566
2570
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
2567
2571
|
}, "validateMeetingPassage");
|
|
2568
2572
|
|
|
2569
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2573
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
2570
2574
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
2571
2575
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2572
2576
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -2591,7 +2595,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
2591
2595
|
return { ...input, limit, maxReadBytes };
|
|
2592
2596
|
}, "validateMeetingPreparationContext");
|
|
2593
2597
|
|
|
2594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2598
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
2595
2599
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
2596
2600
|
var id = pipe(string(), minLength(1));
|
|
2597
2601
|
var meetingProjectEvidence = strictObject({
|
|
@@ -2712,7 +2716,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
2712
2716
|
};
|
|
2713
2717
|
}, "meetingProjectEvidenceAnswer");
|
|
2714
2718
|
|
|
2715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2719
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
2716
2720
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
2717
2721
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
2718
2722
|
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) || [
|
|
@@ -2732,7 +2736,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
2732
2736
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
2733
2737
|
}, "validateMeetingHitSearch");
|
|
2734
2738
|
|
|
2735
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2739
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
2736
2740
|
var ids = {
|
|
2737
2741
|
meeting_id: "meetingId",
|
|
2738
2742
|
identity_id: "participantIdentityId",
|
|
@@ -2823,7 +2827,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project2, request =
|
|
|
2823
2827
|
return { project: project2.trim(), options, query: frozen.join(" AND ") };
|
|
2824
2828
|
}, "prepareMeetingProjectEvidence");
|
|
2825
2829
|
|
|
2826
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2830
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
2827
2831
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project2, request = {}, now = Date.now()) => {
|
|
2828
2832
|
const prepared = prepareMeetingProjectEvidence(project2, request, now);
|
|
2829
2833
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -2831,7 +2835,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project2, r
|
|
|
2831
2835
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
2832
2836
|
}, "readMeetingProjectEvidence");
|
|
2833
2837
|
|
|
2834
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2838
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
2835
2839
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2836
2840
|
const { identityExternalId, ...fields } = p;
|
|
2837
2841
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -2993,7 +2997,7 @@ unlinked`, format)],
|
|
|
2993
2997
|
return report;
|
|
2994
2998
|
}, "pull");
|
|
2995
2999
|
|
|
2996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3000
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
2997
3001
|
var text4 = string();
|
|
2998
3002
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
2999
3003
|
var id2 = pipe(number(), integer(), minValue(1));
|
|
@@ -3187,10 +3191,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
3187
3191
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
3188
3192
|
}), "eventItem");
|
|
3189
3193
|
|
|
3190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
3191
3195
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
3192
3196
|
|
|
3193
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3197
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
3194
3198
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
3195
3199
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
3196
3200
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -3220,14 +3224,14 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
3220
3224
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
3221
3225
|
}, "validateMeetingRelatedHistory");
|
|
3222
3226
|
|
|
3223
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
3224
3228
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
3225
3229
|
|
|
3226
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3230
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
3227
3231
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
3228
3232
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
3229
3233
|
|
|
3230
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3234
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
3231
3235
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
3232
3236
|
input.signal?.throwIfAborted();
|
|
3233
3237
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -3248,7 +3252,7 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
3248
3252
|
return { ...input, limit, maxReadBytes };
|
|
3249
3253
|
}, "validateMeetingSeriesHistory");
|
|
3250
3254
|
|
|
3251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3255
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
3252
3256
|
var invalid4 = /* @__PURE__ */ __name((field) => {
|
|
3253
3257
|
throw new CliError("invalid_response", `meeting occurrence ${field} is invalid`);
|
|
3254
3258
|
}, "invalid");
|
|
@@ -3317,7 +3321,7 @@ var readOccurrenceSchedule = /* @__PURE__ */ __name((input, meetingId, limit, ma
|
|
|
3317
3321
|
return result;
|
|
3318
3322
|
}, "readOccurrenceSchedule");
|
|
3319
3323
|
|
|
3320
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
3321
3325
|
function invalid5(field, response = false) {
|
|
3322
3326
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
3323
3327
|
}
|
|
@@ -3346,7 +3350,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
3346
3350
|
cursorDetails(value);
|
|
3347
3351
|
}, "validateMeetingSeriesInventoryCursor");
|
|
3348
3352
|
|
|
3349
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3353
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
3350
3354
|
var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
|
|
3351
3355
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
3352
3356
|
const zone = timeZone ?? "UTC";
|
|
@@ -3481,7 +3485,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
3481
3485
|
};
|
|
3482
3486
|
}, "aggregateMeetingStats");
|
|
3483
3487
|
|
|
3484
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3488
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/meetings/upcoming.js
|
|
3485
3489
|
var cancelled = /* @__PURE__ */ __name((signal) => {
|
|
3486
3490
|
if (!signal?.aborted)
|
|
3487
3491
|
return;
|
|
@@ -3551,7 +3555,7 @@ var createUpcomingMeetingReader = /* @__PURE__ */ __name((scope2, port) => {
|
|
|
3551
3555
|
};
|
|
3552
3556
|
}, "createUpcomingMeetingReader");
|
|
3553
3557
|
|
|
3554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3558
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/domain/money.js
|
|
3555
3559
|
var CURRENCY_SCALES = {
|
|
3556
3560
|
AED: 2,
|
|
3557
3561
|
AMD: 2,
|
|
@@ -3599,7 +3603,10 @@ var parseDecimal = /* @__PURE__ */ __name((text6, scale) => {
|
|
|
3599
3603
|
return BigInt(`${match[1]}${(match[2] ?? "").padEnd(scale, "0")}`);
|
|
3600
3604
|
}, "parseDecimal");
|
|
3601
3605
|
var formatDecimal = /* @__PURE__ */ __name((units, scale) => {
|
|
3602
|
-
const
|
|
3606
|
+
const value = BigInt(units);
|
|
3607
|
+
if (value < 0n)
|
|
3608
|
+
return `-${formatDecimal(-value, scale)}`;
|
|
3609
|
+
const digits = value.toString().padStart(scale + 1, "0");
|
|
3603
3610
|
return scale === 0 ? digits : `${digits.slice(0, -scale)}.${digits.slice(-scale)}`;
|
|
3604
3611
|
}, "formatDecimal");
|
|
3605
3612
|
var groupDigits = /* @__PURE__ */ __name((decimal) => {
|
|
@@ -3621,6 +3628,12 @@ var minorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") =
|
|
|
3621
3628
|
return refuse(`${what} is a decimal string with at most ${scale} decimal${scale === 1 ? "" : "s"} for ${currency}, such as "${formatDecimal(5e3 * 10 ** scale, scale)}"`, "money.amount");
|
|
3622
3629
|
return Number(units);
|
|
3623
3630
|
}, "minorUnits");
|
|
3631
|
+
var signedMinorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
|
|
3632
|
+
if (typeof amount !== "string" || !amount.trim().startsWith("-"))
|
|
3633
|
+
return minorUnits(amount, currency, what);
|
|
3634
|
+
const units = minorUnits(amount.trim().slice(1), currency, what);
|
|
3635
|
+
return units === 0 ? 0 : -units;
|
|
3636
|
+
}, "signedMinorUnits");
|
|
3624
3637
|
var moneyOf = /* @__PURE__ */ __name((units, currency) => ({
|
|
3625
3638
|
amount: formatDecimal(units, scaleOf(currency)),
|
|
3626
3639
|
currency
|
|
@@ -3636,7 +3649,36 @@ var quantityOf = /* @__PURE__ */ __name((text6) => {
|
|
|
3636
3649
|
}, "quantityOf");
|
|
3637
3650
|
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
3638
3651
|
|
|
3639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3652
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/domain/finance.js
|
|
3653
|
+
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
3654
|
+
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
3655
|
+
var MONEY_DIRECTIONS = ["in", "out"];
|
|
3656
|
+
var FINANCE_REVIEWS = ["proposed", "confirmed", "rejected"];
|
|
3657
|
+
var settledStatus = /* @__PURE__ */ __name((current, total, paid) => {
|
|
3658
|
+
if (current === "draft" || current === "void")
|
|
3659
|
+
return current;
|
|
3660
|
+
if (paid <= 0)
|
|
3661
|
+
return "issued";
|
|
3662
|
+
return paid < total ? "partly_paid" : "paid";
|
|
3663
|
+
}, "settledStatus");
|
|
3664
|
+
var dayMonth = /* @__PURE__ */ __name((date) => date === null ? null : `${date.slice(8, 10)}.${date.slice(5, 7)}`, "dayMonth");
|
|
3665
|
+
var notes = /* @__PURE__ */ __name((...words2) => {
|
|
3666
|
+
const kept = words2.filter((word) => word !== null);
|
|
3667
|
+
return kept.length === 0 ? "" : ` (${kept.join(", ")})`;
|
|
3668
|
+
}, "notes");
|
|
3669
|
+
var invoiceLine = /* @__PURE__ */ __name((invoice) => {
|
|
3670
|
+
const party = invoice.counterpartyName === null ? "" : `${invoice.direction === "receivable" ? " to" : " from"} ${invoice.counterpartyName}`;
|
|
3671
|
+
const due = invoice.dueDate === null ? "" : `, due ${dayMonth(invoice.dueDate)}`;
|
|
3672
|
+
return `${invoice.number ?? `#${invoice.id}`} \xB7 ${moneyLabel(invoice.total, invoice.currency)}${party}${due}` + notes(invoice.status.replace("_", " "), invoice.review === "confirmed" ? null : invoice.review);
|
|
3673
|
+
}, "invoiceLine");
|
|
3674
|
+
var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
3675
|
+
const party = payment.partyName === null ? "" : `${payment.direction === "in" ? " from" : " to"} ${payment.partyName}`;
|
|
3676
|
+
return `${moneyLabel(payment.amount, payment.currency)}${party}, ${dayMonth(payment.date)}` + notes(payment.review === "confirmed" ? null : payment.review);
|
|
3677
|
+
}, "paymentLine");
|
|
3678
|
+
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
3679
|
+
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
3680
|
+
|
|
3681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/domain/deals.js
|
|
3640
3682
|
var DEAL_KINDS = ["deal", "lead"];
|
|
3641
3683
|
var DEAL_STATUSES = ["open", "won", "lost"];
|
|
3642
3684
|
var STAGE_OUTCOMES = DEAL_STATUSES;
|
|
@@ -3646,7 +3688,17 @@ var dealLine = /* @__PURE__ */ __name((deal) => {
|
|
|
3646
3688
|
return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
|
|
3647
3689
|
}, "dealLine");
|
|
3648
3690
|
|
|
3649
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3691
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/domain/orders.js
|
|
3692
|
+
var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
|
|
3693
|
+
var ORDER_PURPOSES = ["personal", "business", "client", "other"];
|
|
3694
|
+
var orderLine = /* @__PURE__ */ __name((order) => {
|
|
3695
|
+
const money = order.total === null || order.currency === null ? "" : `, ${moneyLabel(order.total, order.currency)}`;
|
|
3696
|
+
const notes2 = [order.status, order.review === "confirmed" ? null : order.review].filter(Boolean).join(", ");
|
|
3697
|
+
return `${order.number ?? `#${order.id}`} \xB7 ${order.supplierName}${money} (${notes2})`;
|
|
3698
|
+
}, "orderLine");
|
|
3699
|
+
var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
|
|
3700
|
+
|
|
3701
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/domain/relations.js
|
|
3650
3702
|
var ORGANIZATION_ROLES = [
|
|
3651
3703
|
"employee",
|
|
3652
3704
|
"contractor",
|
|
@@ -3721,7 +3773,7 @@ var isUsable = /* @__PURE__ */ __name((standing) => standing === "confirmed" ||
|
|
|
3721
3773
|
var notOverriddenSql = /* @__PURE__ */ __name((alias) => `NOT EXISTS (SELECT 1 FROM links override WHERE override.kind = ${alias}.kind AND override.from_type = ${alias}.from_type AND override.from_id = ${alias}.from_id AND override.to_type = ${alias}.to_type AND override.to_id = ${alias}.to_id AND json_extract(override.metadata, '$.overrides') = ${alias}.id)`, "notOverriddenSql");
|
|
3722
3774
|
var usableLinkSql = /* @__PURE__ */ __name((alias, now) => `(${alias}.confirmed = 1 OR (${alias}.account_id IS NOT NULL AND ${alias}.deleted_at IS NULL))` + (now === void 0 ? "" : ` AND (${alias}.ends_at IS NULL OR ${alias}.ends_at > ${Math.trunc(now)})`), "usableLinkSql");
|
|
3723
3775
|
|
|
3724
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
3725
3777
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
3726
3778
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
3727
3779
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -3735,7 +3787,7 @@ var normalizeTag = /* @__PURE__ */ __name((value) => {
|
|
|
3735
3787
|
return tag;
|
|
3736
3788
|
}, "normalizeTag");
|
|
3737
3789
|
|
|
3738
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3790
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
3739
3791
|
var LINK_KINDS = [
|
|
3740
3792
|
"links-to",
|
|
3741
3793
|
"blocked-by",
|
|
@@ -3757,8 +3809,9 @@ var LINK_KINDS = [
|
|
|
3757
3809
|
var LINK_ORIGINS = ["file", "owner", "suggested", "message"];
|
|
3758
3810
|
var LINK_SOURCES = [...LINK_ORIGINS, "calendar"];
|
|
3759
3811
|
var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
|
|
3812
|
+
var COUNTERPART_ROLE = "counterpart";
|
|
3760
3813
|
|
|
3761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3814
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
3762
3815
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
3763
3816
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
3764
3817
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -3773,7 +3826,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
3773
3826
|
}
|
|
3774
3827
|
__name(closeTask, "closeTask");
|
|
3775
3828
|
|
|
3776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3829
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
3777
3830
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
3778
3831
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
3779
3832
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -3802,13 +3855,13 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
3802
3855
|
}, "priorityOf");
|
|
3803
3856
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
3804
3857
|
|
|
3805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
3806
3859
|
function matches2(task, filter) {
|
|
3807
3860
|
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);
|
|
3808
3861
|
}
|
|
3809
3862
|
__name(matches2, "matches");
|
|
3810
3863
|
|
|
3811
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3864
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
3812
3865
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
3813
3866
|
async function find(id4) {
|
|
3814
3867
|
const task = await store.get(id4);
|
|
@@ -3868,7 +3921,7 @@ function median(values) {
|
|
|
3868
3921
|
}
|
|
3869
3922
|
__name(median, "median");
|
|
3870
3923
|
|
|
3871
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3924
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
3872
3925
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
3873
3926
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
3874
3927
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
@@ -3876,46 +3929,7 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
3876
3929
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
3877
3930
|
var TASK_TYPES2 = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
3878
3931
|
|
|
3879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3880
|
-
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
3881
|
-
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
3882
|
-
var MONEY_DIRECTIONS = ["in", "out"];
|
|
3883
|
-
var FINANCE_REVIEWS = ["proposed", "confirmed", "rejected"];
|
|
3884
|
-
var settledStatus = /* @__PURE__ */ __name((current, total, paid) => {
|
|
3885
|
-
if (current === "draft" || current === "void")
|
|
3886
|
-
return current;
|
|
3887
|
-
if (paid <= 0)
|
|
3888
|
-
return "issued";
|
|
3889
|
-
return paid < total ? "partly_paid" : "paid";
|
|
3890
|
-
}, "settledStatus");
|
|
3891
|
-
var dayMonth = /* @__PURE__ */ __name((date) => date === null ? null : `${date.slice(8, 10)}.${date.slice(5, 7)}`, "dayMonth");
|
|
3892
|
-
var notes = /* @__PURE__ */ __name((...words2) => {
|
|
3893
|
-
const kept = words2.filter((word) => word !== null);
|
|
3894
|
-
return kept.length === 0 ? "" : ` (${kept.join(", ")})`;
|
|
3895
|
-
}, "notes");
|
|
3896
|
-
var invoiceLine = /* @__PURE__ */ __name((invoice) => {
|
|
3897
|
-
const party = invoice.counterpartyName === null ? "" : `${invoice.direction === "receivable" ? " to" : " from"} ${invoice.counterpartyName}`;
|
|
3898
|
-
const due = invoice.dueDate === null ? "" : `, due ${dayMonth(invoice.dueDate)}`;
|
|
3899
|
-
return `${invoice.number ?? `#${invoice.id}`} \xB7 ${moneyLabel(invoice.total, invoice.currency)}${party}${due}` + notes(invoice.status.replace("_", " "), invoice.review === "confirmed" ? null : invoice.review);
|
|
3900
|
-
}, "invoiceLine");
|
|
3901
|
-
var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
3902
|
-
const party = payment.partyName === null ? "" : `${payment.direction === "in" ? " from" : " to"} ${payment.partyName}`;
|
|
3903
|
-
return `${moneyLabel(payment.amount, payment.currency)}${party}, ${dayMonth(payment.date)}` + notes(payment.review === "confirmed" ? null : payment.review);
|
|
3904
|
-
}, "paymentLine");
|
|
3905
|
-
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
3906
|
-
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
3907
|
-
|
|
3908
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/domain/orders.js
|
|
3909
|
-
var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
|
|
3910
|
-
var ORDER_PURPOSES = ["personal", "business", "client", "other"];
|
|
3911
|
-
var orderLine = /* @__PURE__ */ __name((order) => {
|
|
3912
|
-
const money = order.total === null || order.currency === null ? "" : `, ${moneyLabel(order.total, order.currency)}`;
|
|
3913
|
-
const notes2 = [order.status, order.review === "confirmed" ? null : order.review].filter(Boolean).join(", ");
|
|
3914
|
-
return `${order.number ?? `#${order.id}`} \xB7 ${order.supplierName}${money} (${notes2})`;
|
|
3915
|
-
}, "orderLine");
|
|
3916
|
-
var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
|
|
3917
|
-
|
|
3918
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
3932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
3919
3933
|
var text5 = string();
|
|
3920
3934
|
var id3 = pipe(string(), minLength(1));
|
|
3921
3935
|
var time = isoTime;
|
|
@@ -3939,7 +3953,7 @@ var author = strictObject({
|
|
|
3939
3953
|
name: nullable(text5)
|
|
3940
3954
|
});
|
|
3941
3955
|
|
|
3942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3956
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
3943
3957
|
var organization = strictObject({
|
|
3944
3958
|
id: id3,
|
|
3945
3959
|
ref: reference,
|
|
@@ -4082,15 +4096,31 @@ export {
|
|
|
4082
4096
|
currencyOf,
|
|
4083
4097
|
scaleOf,
|
|
4084
4098
|
minorUnits,
|
|
4099
|
+
signedMinorUnits,
|
|
4085
4100
|
moneyOf,
|
|
4086
4101
|
moneyLabel,
|
|
4087
4102
|
quantityOf,
|
|
4088
4103
|
lineUnits,
|
|
4104
|
+
INVOICE_DIRECTIONS,
|
|
4105
|
+
INVOICE_STATUSES,
|
|
4106
|
+
MONEY_DIRECTIONS,
|
|
4107
|
+
FINANCE_REVIEWS,
|
|
4108
|
+
settledStatus,
|
|
4109
|
+
dayMonth,
|
|
4110
|
+
notes,
|
|
4111
|
+
invoiceLine,
|
|
4112
|
+
paymentLine,
|
|
4113
|
+
invoiceTitle,
|
|
4114
|
+
paymentEntryTitle,
|
|
4089
4115
|
DEAL_KINDS,
|
|
4090
4116
|
DEAL_STATUSES,
|
|
4091
4117
|
STAGE_OUTCOMES,
|
|
4092
4118
|
DEAL_ROLES,
|
|
4093
4119
|
dealLine,
|
|
4120
|
+
ORDER_STATUSES,
|
|
4121
|
+
ORDER_PURPOSES,
|
|
4122
|
+
orderLine,
|
|
4123
|
+
orderTitle,
|
|
4094
4124
|
RELATION_KINDS,
|
|
4095
4125
|
isRelationKind,
|
|
4096
4126
|
checkEnds,
|
|
@@ -4112,6 +4142,7 @@ export {
|
|
|
4112
4142
|
LINK_ORIGINS,
|
|
4113
4143
|
LINK_SOURCES,
|
|
4114
4144
|
linkKind,
|
|
4145
|
+
COUNTERPART_ROLE,
|
|
4115
4146
|
TASK_KINDS,
|
|
4116
4147
|
TASK_STATES,
|
|
4117
4148
|
TASK_ORIGINS,
|
|
@@ -4132,19 +4163,6 @@ export {
|
|
|
4132
4163
|
MEMORY_SCOPES,
|
|
4133
4164
|
WORK_TASK_TYPES,
|
|
4134
4165
|
TASK_TYPES2 as TASK_TYPES,
|
|
4135
|
-
INVOICE_DIRECTIONS,
|
|
4136
|
-
INVOICE_STATUSES,
|
|
4137
|
-
MONEY_DIRECTIONS,
|
|
4138
|
-
FINANCE_REVIEWS,
|
|
4139
|
-
settledStatus,
|
|
4140
|
-
invoiceLine,
|
|
4141
|
-
paymentLine,
|
|
4142
|
-
invoiceTitle,
|
|
4143
|
-
paymentEntryTitle,
|
|
4144
|
-
ORDER_STATUSES,
|
|
4145
|
-
ORDER_PURPOSES,
|
|
4146
|
-
orderLine,
|
|
4147
|
-
orderTitle,
|
|
4148
4166
|
text5 as text,
|
|
4149
4167
|
id3 as id,
|
|
4150
4168
|
time,
|