@wirecat/tg-cli 0.117.0 → 0.119.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/contracts/wirecat.json +7621 -0
- package/dist/bin/tg.js +2 -2
- package/dist/bot/transport.d.ts.map +1 -1
- package/dist/bot/transport.js +15 -8
- package/dist/bot/transport.js.map +1 -1
- package/dist/bundle/{adapter-VNQ72MBK.js → adapter-NEQQOANM.js} +47 -48
- package/dist/bundle/{all-profiles-3W2UQTCK.js → all-profiles-QFT46FTF.js} +10 -10
- package/dist/bundle/{anthropic-DFUW2KTG.js → anthropic-UJ4RYCWU.js} +10 -8
- package/dist/bundle/{app-server-5XJIMLHB.js → app-server-NE3EL5IK.js} +43 -43
- package/dist/bundle/{bot-api-HRRBF3W6.js → bot-api-D4H5SCP5.js} +49 -49
- package/dist/bundle/{bot-history-GBH5XE4N.js → bot-history-KF2PUMWA.js} +18 -18
- package/dist/bundle/{bun-ZMOYGG6F.js → bun-F7MH5YKA.js} +2 -2
- package/dist/bundle/{bun-sqlite-6FZFMA7K.js → bun-sqlite-FYDJXUHF.js} +5 -5
- package/dist/bundle/{chunk-HZZGOLGP.js → chunk-23JGV5FQ.js} +11 -11
- package/dist/bundle/{chunk-PTIB7NEE.js → chunk-2BAJ6ORN.js} +1 -1
- package/dist/bundle/{chunk-L5WNE4WS.js → chunk-3EQ7USKJ.js} +2 -2
- package/dist/bundle/{chunk-YIXXH74F.js → chunk-3K65KTXD.js} +16 -3
- package/dist/bundle/{chunk-66FZBLRJ.js → chunk-4AACB23H.js} +13 -13
- package/dist/bundle/{chunk-NUCDEOFC.js → chunk-5EHJWIW4.js} +2 -2
- package/dist/bundle/{chunk-VW6BF6M7.js → chunk-5FEEFXJA.js} +1 -1
- package/dist/bundle/{chunk-HWYSRB64.js → chunk-65BWMPCI.js} +2 -2
- package/dist/bundle/{chunk-Q7O4CQDO.js → chunk-6ERQJRL2.js} +2 -2
- package/dist/bundle/{chunk-3GRX7WP6.js → chunk-6K5R3YPN.js} +2 -2
- package/dist/bundle/{chunk-KVTLT4V7.js → chunk-6OE5I3PR.js} +6 -6
- package/dist/bundle/{chunk-B2YPB5AE.js → chunk-72QLHHSO.js} +93 -29
- package/dist/bundle/{chunk-FEKXHILZ.js → chunk-7C6POLLO.js} +1 -1
- package/dist/bundle/{chunk-F6KBVIJP.js → chunk-7VUNJDYU.js} +22 -14
- package/dist/bundle/{chunk-EZTYJ43A.js → chunk-BXIPT2BO.js} +1 -1
- package/dist/bundle/{chunk-GFHNQBD2.js → chunk-CIDFV3IT.js} +1 -1
- package/dist/bundle/{chunk-C6TUVV7E.js → chunk-CX2WCEQU.js} +552 -222
- package/dist/bundle/{chunk-UYK5AXSW.js → chunk-D4Y2KL5V.js} +4 -4
- package/dist/bundle/{chunk-EL6I4WTB.js → chunk-D6YTBJY6.js} +1 -1
- package/dist/bundle/{chunk-X3CD475M.js → chunk-DQELQ7BL.js} +419 -198
- package/dist/bundle/{chunk-4JDGN6OD.js → chunk-F223KYWG.js} +1 -1
- package/dist/bundle/{chunk-RDH2QBUE.js → chunk-FJKP6MMP.js} +5 -3
- package/dist/bundle/{chunk-2452HCIV.js → chunk-FQ3C6DFV.js} +3 -3
- package/dist/bundle/{chunk-7Y3RUEVY.js → chunk-FQZSS3AB.js} +6 -6
- package/dist/bundle/{chunk-V47NPSSV.js → chunk-FRW3CWC7.js} +31 -29
- package/dist/bundle/{chunk-AG6HWPQP.js → chunk-G3MQOH6Z.js} +3 -3
- package/dist/bundle/{chunk-RDSLSV4M.js → chunk-HGMMRT4G.js} +2 -2
- package/dist/bundle/{chunk-SQXB5ZUZ.js → chunk-HPQQ76WF.js} +23 -5
- package/dist/bundle/{chunk-3RJYLN5V.js → chunk-HV5YYAJX.js} +158 -20
- package/dist/bundle/{chunk-3MQOLYAN.js → chunk-IAGX5VFL.js} +4 -4
- package/dist/bundle/{chunk-TFBHDIGY.js → chunk-JKKEMVW3.js} +18 -4
- package/dist/bundle/{chunk-P3ASN72F.js → chunk-KBHK5UGL.js} +1 -1
- package/dist/bundle/{chunk-EPCFXKTX.js → chunk-KC4MQRAB.js} +34 -8
- package/dist/bundle/{chunk-VMCQGZIA.js → chunk-L33G5ARH.js} +2801 -718
- package/dist/bundle/{chunk-V2T7NYNU.js → chunk-MDLSI3EN.js} +25 -23
- package/dist/bundle/chunk-NDSRND3E.js +138 -0
- package/dist/bundle/{chunk-HORGORHK.js → chunk-OG2CG2GS.js} +12 -12
- package/dist/bundle/{chunk-ZPILMEFY.js → chunk-QD27C3BG.js} +8 -21
- package/dist/bundle/{chunk-QOGYHU3Q.js → chunk-QG5U6HCI.js} +61 -21
- package/dist/bundle/{chunk-TG6ZYL4B.js → chunk-QQ3QZFFD.js} +8 -8
- package/dist/bundle/{chunk-56Q5JV3Z.js → chunk-QTFXYR5W.js} +24 -2
- package/dist/bundle/{chunk-FAHHERJ7.js → chunk-RGU2G3KL.js} +4 -4
- package/dist/bundle/{chunk-Z4QKLHJW.js → chunk-ROOUBFUW.js} +10148 -3906
- package/dist/bundle/{chunk-MLHKQDUN.js → chunk-RUNFFBJU.js} +872 -562
- package/dist/bundle/{chunk-G7B5UIE7.js → chunk-S3HAFJVC.js} +37 -11
- package/dist/bundle/{chunk-BXTDAGM4.js → chunk-SMHLQEE2.js} +2 -2
- package/dist/bundle/{chunk-JWIUK3SK.js → chunk-TEZKCH5B.js} +2 -2
- package/dist/bundle/{chunk-VRDVXXXD.js → chunk-TKHEVAEG.js} +9 -8
- package/dist/bundle/{chunk-MP7M6FFU.js → chunk-TT4CIXVH.js} +6 -6
- package/dist/bundle/{chunk-M7V5XRM6.js → chunk-UBCLVM7C.js} +3 -3
- package/dist/bundle/{chunk-YHZFGUAP.js → chunk-V5Z2JO6X.js} +19 -19
- package/dist/bundle/{chunk-6GFUL4OU.js → chunk-W2BIBPRU.js} +237 -38
- package/dist/bundle/{chunk-6HRN7BW6.js → chunk-X5PDWCG7.js} +1 -1
- package/dist/bundle/{chunk-AUBRELCM.js → chunk-XDMJVWWR.js} +3 -3
- package/dist/bundle/{chunk-EA2PGDER.js → chunk-XM3P7LLT.js} +2 -2
- package/dist/bundle/{chunk-UGPZCNYC.js → chunk-YMWPRHXG.js} +1411 -809
- package/dist/bundle/{chunk-2XLKZL6K.js → chunk-Z4CGZAFQ.js} +65 -31
- package/dist/bundle/{chunk-XW5C4TI7.js → chunk-ZEQ7ONPZ.js} +47 -1
- package/dist/bundle/command-contract-7TGMZRBE.js +33 -0
- package/dist/bundle/{decode-YMSOY2AY.js → decode-5N4ERCHC.js} +5 -5
- package/dist/bundle/{dispatch-OP27MWX5.js → dispatch-TBGXBDHE.js} +10 -10
- package/dist/bundle/{echarts-7XS55TQY.js → echarts-YDEBAMXT.js} +2 -2
- package/dist/bundle/{embed-QTOE7NN3.js → embed-T7H62XFR.js} +6 -6
- package/dist/bundle/{embedder-KBBRYSNH.js → embedder-AW3O2TR3.js} +9 -9
- package/dist/bundle/{entry-HGEUYYMX.js → entry-L2LJ2VPY.js} +7 -7
- package/dist/bundle/{failure-4JUQFXJT.js → failure-AWHPW2HE.js} +2 -2
- package/dist/bundle/{first-run-CSGMEJXY.js → first-run-6PBZSRZU.js} +11 -11
- package/dist/bundle/first-screen-UKCD7D2R.js +31 -0
- package/dist/bundle/{instructions-S6ZXCTFH.js → instructions-C3NJERO7.js} +1 -1
- package/dist/bundle/{mcp-M4QN2E7R.js → mcp-CWLASTLV.js} +2 -2
- package/dist/bundle/{node-LCIUWXXG.js → node-P3CIIYWU.js} +2 -2
- package/dist/bundle/{node-sqlite-HL4WY4N2.js → node-sqlite-YVHMNRVA.js} +6 -6
- package/dist/bundle/{oauth-U4KIMDKG.js → oauth-5OQYA2SV.js} +7 -7
- package/dist/bundle/{open-EH7OS7M7.js → open-YGWUVSU7.js} +5 -5
- package/dist/bundle/{openai-W5TB3NA5.js → openai-U45JBQ6F.js} +16 -37
- package/dist/bundle/{process-3CVLTCTA.js → process-DCYX5EDG.js} +1 -1
- package/dist/bundle/{program-LOIZTK2P.js → program-UZBFH2EZ.js} +55 -52
- package/dist/bundle/{prompt-IDNH7N3W.js → prompt-HPVTPTFI.js} +7 -5
- package/dist/bundle/{proxy-transport-4DPZB2W2.js → proxy-transport-D7MCHGSV.js} +5 -5
- package/dist/bundle/{recognize-G5EWYXIF.js → recognize-IJCPFJ76.js} +4 -4
- package/dist/bundle/{remote-4XTBZVZD.js → remote-MWDYQWFW.js} +7 -7
- package/dist/bundle/{rerank-OWSTDLZN.js → rerank-SXG64475.js} +7 -7
- package/dist/bundle/{serve-YCPSEWP3.js → serve-KJQENHEH.js} +9 -9
- package/dist/bundle/{server-ODG4A2KK.js → server-MXVXZWN6.js} +35 -35
- package/dist/bundle/server-RTMCRKQF.js +60 -0
- package/dist/bundle/{state-OL2235G5.js → state-CKKJWH27.js} +6 -6
- package/dist/bundle/{store-5AACYNDM.js → store-R3BE4V56.js} +44 -13
- package/dist/bundle/store-maintenance-command-KDGBSBNU.js +49 -0
- package/dist/bundle/tg.js +38 -14
- package/dist/commands/account-removal.d.ts +3 -0
- package/dist/commands/account-removal.d.ts.map +1 -0
- package/dist/commands/account-removal.js +57 -0
- package/dist/commands/account-removal.js.map +1 -0
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +2 -0
- package/dist/commands/context.js.map +1 -1
- package/dist/http.d.ts +6 -0
- package/dist/http.d.ts.map +1 -0
- package/dist/http.js +8 -0
- package/dist/http.js.map +1 -0
- package/dist/identity.d.ts +4 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +14 -0
- package/dist/identity.js.map +1 -1
- package/dist/telegram/map.d.ts.map +1 -1
- package/dist/telegram/map.js +3 -0
- package/dist/telegram/map.js.map +1 -1
- package/dist/telegram/registration.d.ts +1 -1
- package/dist/telegram/registration.d.ts.map +1 -1
- package/dist/telegram/registration.js +4 -1
- package/dist/telegram/registration.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wcat.d.ts +3 -0
- package/dist/wcat.d.ts.map +1 -0
- package/dist/wcat.js +4 -0
- package/dist/wcat.js.map +1 -0
- package/package.json +7 -6
- package/dist/bundle/chunk-7NBUT62O.js +0 -33
- package/dist/bundle/command-contract-KMMHARMR.js +0 -33
- package/dist/bundle/first-screen-K2PBNJNE.js +0 -31
- package/dist/bundle/server-KELKX6S3.js +0 -60
- package/dist/bundle/store-maintenance-command-3J7WZYVN.js +0 -50
- /package/dist/bundle/{chunk-VOXIGICJ.js → chunk-DWX4DE2I.js} +0 -0
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
isCliFailure,
|
|
5
|
+
isStoreDamage
|
|
6
|
+
} from "./chunk-ZEQ7ONPZ.js";
|
|
7
|
+
import {
|
|
8
|
+
refuseOwnerStoreInTests
|
|
9
|
+
} from "./chunk-6K5R3YPN.js";
|
|
3
10
|
import {
|
|
4
11
|
RegistryError,
|
|
5
12
|
SNAKE_CASE,
|
|
@@ -33,18 +40,270 @@ import {
|
|
|
33
40
|
union,
|
|
34
41
|
unknown,
|
|
35
42
|
variant
|
|
36
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-KC4MQRAB.js";
|
|
37
44
|
import {
|
|
38
45
|
CliError,
|
|
39
46
|
isCliError,
|
|
40
47
|
singleLine,
|
|
41
48
|
visibleControls
|
|
42
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-SMHLQEE2.js";
|
|
43
50
|
import {
|
|
44
51
|
__name
|
|
45
52
|
} from "./chunk-ZVVMGPBJ.js";
|
|
46
53
|
|
|
47
|
-
// node_modules/.pnpm/@wirecat+cli-
|
|
54
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/domain/money.js
|
|
55
|
+
var CURRENCY_SCALES = {
|
|
56
|
+
AED: 2,
|
|
57
|
+
AMD: 2,
|
|
58
|
+
AUD: 2,
|
|
59
|
+
BHD: 3,
|
|
60
|
+
BYN: 2,
|
|
61
|
+
CAD: 2,
|
|
62
|
+
CHF: 2,
|
|
63
|
+
CLP: 0,
|
|
64
|
+
CNY: 2,
|
|
65
|
+
CZK: 2,
|
|
66
|
+
DKK: 2,
|
|
67
|
+
EUR: 2,
|
|
68
|
+
GBP: 2,
|
|
69
|
+
GEL: 2,
|
|
70
|
+
HUF: 2,
|
|
71
|
+
ILS: 2,
|
|
72
|
+
INR: 2,
|
|
73
|
+
ISK: 0,
|
|
74
|
+
JPY: 0,
|
|
75
|
+
KGS: 2,
|
|
76
|
+
KRW: 0,
|
|
77
|
+
KWD: 3,
|
|
78
|
+
KZT: 2,
|
|
79
|
+
NOK: 2,
|
|
80
|
+
PLN: 2,
|
|
81
|
+
RSD: 2,
|
|
82
|
+
RUB: 2,
|
|
83
|
+
SEK: 2,
|
|
84
|
+
THB: 2,
|
|
85
|
+
TRY: 2,
|
|
86
|
+
UAH: 2,
|
|
87
|
+
USD: 2,
|
|
88
|
+
UZS: 2,
|
|
89
|
+
VND: 0
|
|
90
|
+
};
|
|
91
|
+
var refuse = /* @__PURE__ */ __name((message, reason) => {
|
|
92
|
+
throw new CliError("validation_error", message, { reason });
|
|
93
|
+
}, "refuse");
|
|
94
|
+
var DECIMAL = /^(\d{1,15})(?:\.(\d+))?$/;
|
|
95
|
+
var parseDecimal = /* @__PURE__ */ __name((text6, scale) => {
|
|
96
|
+
const match = DECIMAL.exec(text6.trim());
|
|
97
|
+
if (!match || (match[2] ?? "").length > scale)
|
|
98
|
+
return void 0;
|
|
99
|
+
return BigInt(`${match[1]}${(match[2] ?? "").padEnd(scale, "0")}`);
|
|
100
|
+
}, "parseDecimal");
|
|
101
|
+
var formatDecimal = /* @__PURE__ */ __name((units, scale) => {
|
|
102
|
+
const value = BigInt(units);
|
|
103
|
+
if (value < 0n)
|
|
104
|
+
return `-${formatDecimal(-value, scale)}`;
|
|
105
|
+
const digits = value.toString().padStart(scale + 1, "0");
|
|
106
|
+
return scale === 0 ? digits : `${digits.slice(0, -scale)}.${digits.slice(-scale)}`;
|
|
107
|
+
}, "formatDecimal");
|
|
108
|
+
var groupDigits = /* @__PURE__ */ __name((decimal) => {
|
|
109
|
+
const [whole = "0", fraction] = decimal.split(".");
|
|
110
|
+
const grouped2 = whole.replace(/\B(?=(\d{3})+(?!\d))/g, " ");
|
|
111
|
+
return fraction === void 0 ? grouped2 : `${grouped2}.${fraction}`;
|
|
112
|
+
}, "groupDigits");
|
|
113
|
+
var currencyOf = /* @__PURE__ */ __name((text6) => {
|
|
114
|
+
const code = typeof text6 === "string" ? text6.trim().toUpperCase() : "";
|
|
115
|
+
if (CURRENCY_SCALES[code] === void 0)
|
|
116
|
+
return refuse(`${typeof text6 === "string" && text6.trim() ? text6.trim() : "an empty currency"} is not a currency the store keeps; use one of ${Object.keys(CURRENCY_SCALES).join(", ")}`, "money.currency");
|
|
117
|
+
return code;
|
|
118
|
+
}, "currencyOf");
|
|
119
|
+
var scaleOf = /* @__PURE__ */ __name((currency) => CURRENCY_SCALES[currencyOf(currency)], "scaleOf");
|
|
120
|
+
var minorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
|
|
121
|
+
const scale = scaleOf(currency);
|
|
122
|
+
const units = typeof amount === "string" ? parseDecimal(amount, scale) : void 0;
|
|
123
|
+
if (units === void 0 || units > BigInt(Number.MAX_SAFE_INTEGER))
|
|
124
|
+
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");
|
|
125
|
+
return Number(units);
|
|
126
|
+
}, "minorUnits");
|
|
127
|
+
var signedMinorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
|
|
128
|
+
if (typeof amount !== "string" || !amount.trim().startsWith("-"))
|
|
129
|
+
return minorUnits(amount, currency, what);
|
|
130
|
+
const units = minorUnits(amount.trim().slice(1), currency, what);
|
|
131
|
+
return units === 0 ? 0 : -units;
|
|
132
|
+
}, "signedMinorUnits");
|
|
133
|
+
var moneyOf = /* @__PURE__ */ __name((units, currency) => ({
|
|
134
|
+
amount: formatDecimal(units, scaleOf(currency)),
|
|
135
|
+
currency
|
|
136
|
+
}), "moneyOf");
|
|
137
|
+
var moneyLabel = /* @__PURE__ */ __name((units, currency) => `${groupDigits(formatDecimal(units, scaleOf(currency)))} ${currency}`, "moneyLabel");
|
|
138
|
+
var QUANTITY_SCALE = 3;
|
|
139
|
+
var quantityOf = /* @__PURE__ */ __name((text6) => {
|
|
140
|
+
const thousandths = typeof text6 === "string" ? parseDecimal(text6, QUANTITY_SCALE) : void 0;
|
|
141
|
+
if (thousandths === void 0 || thousandths === 0n)
|
|
142
|
+
return refuse('a quantity is a decimal string above 0 with at most 3 decimals, such as "1.5"', "money.quantity");
|
|
143
|
+
const plain = formatDecimal(thousandths, QUANTITY_SCALE).replace(/\.?0+$/, "");
|
|
144
|
+
return { text: plain, thousandths };
|
|
145
|
+
}, "quantityOf");
|
|
146
|
+
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
147
|
+
|
|
148
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/domain/finance.js
|
|
149
|
+
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
150
|
+
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
151
|
+
var MONEY_DIRECTIONS = ["in", "out"];
|
|
152
|
+
var FINANCE_REVIEWS = ["proposed", "confirmed", "rejected"];
|
|
153
|
+
var settledStatus = /* @__PURE__ */ __name((current, total, paid) => {
|
|
154
|
+
if (current === "draft" || current === "void")
|
|
155
|
+
return current;
|
|
156
|
+
if (paid <= 0)
|
|
157
|
+
return "issued";
|
|
158
|
+
return paid < total ? "partly_paid" : "paid";
|
|
159
|
+
}, "settledStatus");
|
|
160
|
+
var dayMonth = /* @__PURE__ */ __name((date) => date === null ? null : `${date.slice(8, 10)}.${date.slice(5, 7)}`, "dayMonth");
|
|
161
|
+
var notes = /* @__PURE__ */ __name((...words2) => {
|
|
162
|
+
const kept = words2.filter((word) => word !== null);
|
|
163
|
+
return kept.length === 0 ? "" : ` (${kept.join(", ")})`;
|
|
164
|
+
}, "notes");
|
|
165
|
+
var invoiceLine = /* @__PURE__ */ __name((invoice) => {
|
|
166
|
+
const party = invoice.counterpartyName === null ? "" : `${invoice.direction === "receivable" ? " to" : " from"} ${invoice.counterpartyName}`;
|
|
167
|
+
const due = invoice.dueDate === null ? "" : `, due ${dayMonth(invoice.dueDate)}`;
|
|
168
|
+
return `${invoice.number ?? `#${invoice.id}`} \xB7 ${moneyLabel(invoice.total, invoice.currency)}${party}${due}` + notes(invoice.status.replace("_", " "), invoice.review === "confirmed" ? null : invoice.review);
|
|
169
|
+
}, "invoiceLine");
|
|
170
|
+
var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
171
|
+
const party = payment.partyName === null ? "" : `${payment.direction === "in" ? " from" : " to"} ${payment.partyName}`;
|
|
172
|
+
return `${moneyLabel(payment.amount, payment.currency)}${party}, ${dayMonth(payment.date)}` + notes(payment.review === "confirmed" ? null : payment.review);
|
|
173
|
+
}, "paymentLine");
|
|
174
|
+
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
175
|
+
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
176
|
+
|
|
177
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/domain/business.js
|
|
178
|
+
var CATALOG_KINDS = ["product", "service"];
|
|
179
|
+
var BUSINESS_KINDS = ["invoice", "payment", "order", "contract", "subscription", "product", "wallet"];
|
|
180
|
+
var CONTRACT_KINDS = ["sale", "purchase", "service", "lease", "employment", "nda", "license", "other"];
|
|
181
|
+
var CONTRACT_STATUSES = ["draft", "active", "ended", "terminated"];
|
|
182
|
+
var SUBSCRIPTION_STATUSES = ["trial", "active", "paused", "cancelled", "ended"];
|
|
183
|
+
var WALLET_KINDS = ["bank", "card", "cash", "wallet", "other"];
|
|
184
|
+
var TRANSACTION_STATUSES = ["pending", "booked"];
|
|
185
|
+
var ORDER_DIRECTIONS = ["purchase", "sale"];
|
|
186
|
+
var intervalOf = /* @__PURE__ */ __name((text6, reason = "subscription.interval") => {
|
|
187
|
+
const match = typeof text6 === "string" ? /^(?:([1-9]\d{0,2})-)?(day|week|month|year)$/.exec(text6.trim()) : null;
|
|
188
|
+
if (!match)
|
|
189
|
+
throw new CliError("validation_error", "an interval is a count and a unit, such as 1-month or 2-week", { reason });
|
|
190
|
+
return { count: match[1] === void 0 ? 1 : Number(match[1]), unit: match[2] };
|
|
191
|
+
}, "intervalOf");
|
|
192
|
+
var intervalText = /* @__PURE__ */ __name(({ count: count7, unit }) => `${count7}-${unit}`, "intervalText");
|
|
193
|
+
var priced = /* @__PURE__ */ __name((units, currency) => units === null || currency === null ? "" : `, ${moneyLabel(units, currency)}`, "priced");
|
|
194
|
+
var pending = /* @__PURE__ */ __name((review) => review === "confirmed" ? null : review, "pending");
|
|
195
|
+
var productLine = /* @__PURE__ */ __name((product) => {
|
|
196
|
+
const price = product.unitPrice === null || product.currency === null ? "" : moneyLabel(product.unitPrice, product.currency);
|
|
197
|
+
const per = price && product.unit !== null ? ` per ${product.unit}` : "";
|
|
198
|
+
return `${product.name}${price ? ` \xB7 ${price}${per}` : ""}${notes(product.kind, product.archived ? "archived" : null)}`;
|
|
199
|
+
}, "productLine");
|
|
200
|
+
var contractLine = /* @__PURE__ */ __name((contract) => `${contract.number ?? `#${contract.id}`} \xB7 ${contract.name}${priced(contract.value, contract.currency)}` + notes(contract.status, pending(contract.review)), "contractLine");
|
|
201
|
+
var subscriptionLine = /* @__PURE__ */ __name((subscription) => `${subscription.name}${priced(subscription.price, subscription.currency)} every ${intervalText(subscription.interval)}` + notes(subscription.status, pending(subscription.review)), "subscriptionLine");
|
|
202
|
+
var walletLine = /* @__PURE__ */ __name((wallet) => `${wallet.name} \xB7 ${wallet.kind}, ${wallet.currency}${wallet.numberHint === null ? "" : `, \u2026${wallet.numberHint}`}` + notes(wallet.closed ? "closed" : null), "walletLine");
|
|
203
|
+
var transactionLine = /* @__PURE__ */ __name((transaction) => `${moneyLabel(transaction.amount, transaction.currency)} ${transaction.direction}${transaction.label === null ? "" : ` \xB7 ${transaction.label}`}, ${dayMonth(transaction.date)}` + notes(transaction.status === "pending" ? "pending" : null, pending(transaction.review)), "transactionLine");
|
|
204
|
+
|
|
205
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/store/marks.js
|
|
206
|
+
import { readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
207
|
+
var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
|
|
208
|
+
var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
|
|
209
|
+
var inodeOf = /* @__PURE__ */ __name((store) => statSync(store, { throwIfNoEntry: false })?.ino, "inodeOf");
|
|
210
|
+
var readJson = /* @__PURE__ */ __name((path) => {
|
|
211
|
+
try {
|
|
212
|
+
return JSON.parse(readFileSync(path, "utf8"));
|
|
213
|
+
} catch (error) {
|
|
214
|
+
if (error.code === "ENOENT")
|
|
215
|
+
return null;
|
|
216
|
+
throw error;
|
|
217
|
+
}
|
|
218
|
+
}, "readJson");
|
|
219
|
+
var ownerStoreInTests = /* @__PURE__ */ __name((store) => {
|
|
220
|
+
try {
|
|
221
|
+
refuseOwnerStoreInTests(store);
|
|
222
|
+
return false;
|
|
223
|
+
} catch {
|
|
224
|
+
return true;
|
|
225
|
+
}
|
|
226
|
+
}, "ownerStoreInTests");
|
|
227
|
+
var sqliteFailure = /* @__PURE__ */ __name((error) => isCliFailure(error) && error.details?.reason === "store.damaged" ? error.cause : error, "sqliteFailure");
|
|
228
|
+
var markStoreDamaged = /* @__PURE__ */ __name((error, { store, command, version, runId, now = Date.now }) => {
|
|
229
|
+
const failure = sqliteFailure(error);
|
|
230
|
+
if (!isStoreDamage(failure) || ownerStoreInTests(store))
|
|
231
|
+
return false;
|
|
232
|
+
const inode = inodeOf(store);
|
|
233
|
+
if (inode === void 0)
|
|
234
|
+
return false;
|
|
235
|
+
const mark = {
|
|
236
|
+
at: new Date(now()).toISOString(),
|
|
237
|
+
command,
|
|
238
|
+
...version ? { cli_version: version } : {},
|
|
239
|
+
...runId ? { run_id: runId } : {},
|
|
240
|
+
error: failure.message.slice(0, 500),
|
|
241
|
+
inode
|
|
242
|
+
};
|
|
243
|
+
try {
|
|
244
|
+
writeFileSync(damageMarkPath(store), `${JSON.stringify(mark, null, 2)}
|
|
245
|
+
`, { flag: "wx", mode: 384 });
|
|
246
|
+
return true;
|
|
247
|
+
} catch {
|
|
248
|
+
return false;
|
|
249
|
+
}
|
|
250
|
+
}, "markStoreDamaged");
|
|
251
|
+
var readDamageMark = /* @__PURE__ */ __name((store) => {
|
|
252
|
+
const path = damageMarkPath(store);
|
|
253
|
+
let mark;
|
|
254
|
+
try {
|
|
255
|
+
mark = readJson(path);
|
|
256
|
+
} catch {
|
|
257
|
+
return { at: "unknown", command: "unknown", error: `${path} cannot be read`, inode: inodeOf(store) ?? 0 };
|
|
258
|
+
}
|
|
259
|
+
if (mark === null)
|
|
260
|
+
return null;
|
|
261
|
+
if (mark.inode !== inodeOf(store)) {
|
|
262
|
+
clearDamageMark(store);
|
|
263
|
+
return null;
|
|
264
|
+
}
|
|
265
|
+
return mark;
|
|
266
|
+
}, "readDamageMark");
|
|
267
|
+
var clearDamageMark = /* @__PURE__ */ __name((store) => rmSync(damageMarkPath(store), { force: true }), "clearDamageMark");
|
|
268
|
+
var refuseDamagedStore = /* @__PURE__ */ __name((store, cli) => {
|
|
269
|
+
const mark = readDamageMark(store);
|
|
270
|
+
if (!mark)
|
|
271
|
+
return;
|
|
272
|
+
throw new CliError("configuration_error", `the store was found damaged at ${mark.at} by \`${mark.command}\` (${mark.error}), so nothing writes to it until it is recovered; \`${cli ?? "<cli>"} store recover\` says what is damaged and what to do`, { reason: "store.damaged" });
|
|
273
|
+
}, "refuseDamagedStore");
|
|
274
|
+
var readHealthMark = /* @__PURE__ */ __name((store) => {
|
|
275
|
+
try {
|
|
276
|
+
return readJson(healthMarkPath(store));
|
|
277
|
+
} catch {
|
|
278
|
+
return null;
|
|
279
|
+
}
|
|
280
|
+
}, "readHealthMark");
|
|
281
|
+
var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, schema, now = Date.now }) => {
|
|
282
|
+
const previous = readHealthMark(store);
|
|
283
|
+
if (ownerStoreInTests(store))
|
|
284
|
+
return { previous, cleared: null };
|
|
285
|
+
const checkedAt = new Date(now()).toISOString();
|
|
286
|
+
const mark = {
|
|
287
|
+
checked_at: checkedAt,
|
|
288
|
+
ok: health.ok,
|
|
289
|
+
problems: health.problems ?? 0,
|
|
290
|
+
schema,
|
|
291
|
+
cli,
|
|
292
|
+
...version ? { cli_version: version } : {},
|
|
293
|
+
last_ok_at: health.ok ? checkedAt : previous?.last_ok_at ?? null
|
|
294
|
+
};
|
|
295
|
+
const cleared = health.ok ? readDamageMark(store) : null;
|
|
296
|
+
try {
|
|
297
|
+
writeFileSync(healthMarkPath(store), `${JSON.stringify(mark, null, 2)}
|
|
298
|
+
`, { mode: 384 });
|
|
299
|
+
} catch {
|
|
300
|
+
}
|
|
301
|
+
if (cleared)
|
|
302
|
+
clearDamageMark(store);
|
|
303
|
+
return { previous, cleared };
|
|
304
|
+
}, "recordDeepCheck");
|
|
305
|
+
|
|
306
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.87.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
|
|
48
307
|
var QUERY_LIMITS = {
|
|
49
308
|
bytes: 8192,
|
|
50
309
|
depth: 32,
|
|
@@ -88,7 +347,7 @@ function queryError(reason, span, alternative, context3 = {}, details = {}) {
|
|
|
88
347
|
__name(queryError, "queryError");
|
|
89
348
|
var walkQuery = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => walkQuery(node2)), "walkQuery");
|
|
90
349
|
|
|
91
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
350
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.87.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
|
|
92
351
|
var timezoneOf = /* @__PURE__ */ __name((given) => {
|
|
93
352
|
const zone = given ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? "UTC";
|
|
94
353
|
try {
|
|
@@ -233,7 +492,7 @@ var dateRange = /* @__PURE__ */ __name((lower, upper, lowerInclusive, upperInclu
|
|
|
233
492
|
};
|
|
234
493
|
}, "dateRange");
|
|
235
494
|
|
|
236
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
495
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.87.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
|
|
237
496
|
var FIELD_TYPES = ["kw", "txt", "enum", "num", "time", "bool", "ref"];
|
|
238
497
|
var OPERATORS_BY_TYPE = {
|
|
239
498
|
kw: ["term", "phrase", "wildcard"],
|
|
@@ -312,7 +571,7 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
|
|
|
312
571
|
return [...own, ...relations, ...states];
|
|
313
572
|
}, "queryFieldsOf");
|
|
314
573
|
|
|
315
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
574
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.87.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
|
|
316
575
|
var shownOf = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "shownOf");
|
|
317
576
|
var leftOut = /* @__PURE__ */ __name((fields) => fields.filter((field) => field.negatable).map((field) => field.name), "leftOut");
|
|
318
577
|
var has = /* @__PURE__ */ __name((fields, operator) => fields.some((field) => field.operators.includes(operator)), "has");
|
|
@@ -349,7 +608,7 @@ var queryDescription = /* @__PURE__ */ __name((registry) => {
|
|
|
349
608
|
return `${terms}; fields: ${fields.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
|
|
350
609
|
}, "queryDescription");
|
|
351
610
|
|
|
352
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
611
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.87.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
|
|
353
612
|
var inContext = /* @__PURE__ */ __name((context3, run2) => {
|
|
354
613
|
try {
|
|
355
614
|
run2();
|
|
@@ -424,7 +683,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry, options = {}) => {
|
|
|
424
683
|
}, "validateQuery");
|
|
425
684
|
var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
|
|
426
685
|
|
|
427
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
686
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.87.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
|
|
428
687
|
var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
|
|
429
688
|
var reserved = /* @__PURE__ */ new Set([
|
|
430
689
|
"+",
|
|
@@ -733,7 +992,7 @@ var implicitTextTerms = /* @__PURE__ */ __name((text6) => {
|
|
|
733
992
|
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] : []));
|
|
734
993
|
}, "implicitTextTerms");
|
|
735
994
|
|
|
736
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
995
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.87.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
|
|
737
996
|
var describeQuery = /* @__PURE__ */ __name((registry) => ({
|
|
738
997
|
entity: registry.entity,
|
|
739
998
|
backend: registry.backend,
|
|
@@ -804,7 +1063,7 @@ var QUERY_REASONS = defineReasons([
|
|
|
804
1063
|
details: [...SPAN, ...details]
|
|
805
1064
|
})));
|
|
806
1065
|
|
|
807
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1066
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.87.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
|
|
808
1067
|
var wordsOf = /* @__PURE__ */ __name((text6) => text6.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
|
|
809
1068
|
var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
|
|
810
1069
|
var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
|
|
@@ -859,7 +1118,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
|
|
|
859
1118
|
}, "matches");
|
|
860
1119
|
var evaluate = /* @__PURE__ */ __name((ast, fields, item, options = {}) => matches(ast.root, item, new Map(fields.map((field) => [field.name, field])), options), "evaluate");
|
|
861
1120
|
|
|
862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1121
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/reference.js
|
|
863
1122
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
|
|
864
1123
|
var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
|
|
865
1124
|
if (!Number.isSafeInteger(value) || value < minimum)
|
|
@@ -896,7 +1155,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text6) => {
|
|
|
896
1155
|
}, "parseMeetingReference");
|
|
897
1156
|
var canonicalMeetingReference = /* @__PURE__ */ __name((text6) => formatMeetingReference(parseMeetingReference(text6)), "canonicalMeetingReference");
|
|
898
1157
|
|
|
899
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
900
1159
|
var text = string();
|
|
901
1160
|
var count = pipe(number(), integer(), minValue(0));
|
|
902
1161
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -961,7 +1220,7 @@ var MEETING_QUERY = {
|
|
|
961
1220
|
})
|
|
962
1221
|
};
|
|
963
1222
|
|
|
964
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1223
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
965
1224
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
966
1225
|
const parsed = urlOf(url);
|
|
967
1226
|
if (!parsed)
|
|
@@ -995,7 +1254,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
995
1254
|
}
|
|
996
1255
|
}, "urlOf");
|
|
997
1256
|
|
|
998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1257
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
999
1258
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
1000
1259
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
1001
1260
|
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");
|
|
@@ -1014,7 +1273,11 @@ var ENTRY_METADATA_KEYS = [
|
|
|
1014
1273
|
"guestsCanSeeOtherGuests",
|
|
1015
1274
|
"hangoutLink",
|
|
1016
1275
|
"locked",
|
|
1017
|
-
"privateCopy"
|
|
1276
|
+
"privateCopy",
|
|
1277
|
+
// A phone call's, from a records import: the entry's other columns have no place for them.
|
|
1278
|
+
"callDirection",
|
|
1279
|
+
"callSeconds",
|
|
1280
|
+
"callNumber"
|
|
1018
1281
|
];
|
|
1019
1282
|
var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
1020
1283
|
const kept = {};
|
|
@@ -1028,7 +1291,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
1028
1291
|
return kept;
|
|
1029
1292
|
}, "entryMetadata");
|
|
1030
1293
|
|
|
1031
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1294
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
1032
1295
|
import { createHash } from "node:crypto";
|
|
1033
1296
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
1034
1297
|
reference: cue2.reference,
|
|
@@ -1042,7 +1305,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
1042
1305
|
text: cue2.text
|
|
1043
1306
|
})).digest("hex"), "meetingCueFingerprint");
|
|
1044
1307
|
|
|
1045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1308
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
1046
1309
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
1047
1310
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
1048
1311
|
if (entry.recurrenceEndsAt !== null)
|
|
@@ -1065,7 +1328,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
1065
1328
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
1066
1329
|
}, "entryInWindow");
|
|
1067
1330
|
|
|
1068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1331
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
1069
1332
|
var text2 = string();
|
|
1070
1333
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
1071
1334
|
var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
@@ -1268,10 +1531,10 @@ var meetingHitItem = /* @__PURE__ */ __name((hit) => ({
|
|
|
1268
1531
|
var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search meetings", args = {}, meta = {}) => {
|
|
1269
1532
|
const items = found.items.map(meetingHitItem);
|
|
1270
1533
|
const cursor = found.hasMore && found.nextCursor !== null ? found.nextCursor : void 0;
|
|
1271
|
-
const
|
|
1534
|
+
const pending2 = found.coverage.indexing === "pending";
|
|
1272
1535
|
const next = [
|
|
1273
1536
|
...cursor === void 0 ? [] : [stepOf(PAGE_NEXT, { command, args: { ...args, cursor, limit }, values: { shown: items.length } })],
|
|
1274
|
-
...
|
|
1537
|
+
...pending2 ? [
|
|
1275
1538
|
stepOf(SEARCH_AGAIN, {
|
|
1276
1539
|
command,
|
|
1277
1540
|
args: Object.fromEntries(Object.entries(args).filter(([key]) => key !== "cursor"))
|
|
@@ -1287,7 +1550,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
1287
1550
|
...cursor === void 0 ? {} : { next_cursor: cursor }
|
|
1288
1551
|
},
|
|
1289
1552
|
...next.length > 0 ? { next } : {},
|
|
1290
|
-
...
|
|
1553
|
+
...pending2 ? {
|
|
1291
1554
|
missing: [
|
|
1292
1555
|
{
|
|
1293
1556
|
field: "excerpt",
|
|
@@ -1300,7 +1563,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
1300
1563
|
};
|
|
1301
1564
|
}, "meetingHitsList");
|
|
1302
1565
|
|
|
1303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1566
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
1304
1567
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text6) => text6.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
1305
1568
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
1306
1569
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -1324,7 +1587,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
1324
1587
|
};
|
|
1325
1588
|
}, "validateMeetingParticipantSearch");
|
|
1326
1589
|
|
|
1327
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1590
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
1328
1591
|
var MeetingError = class extends CliError {
|
|
1329
1592
|
static {
|
|
1330
1593
|
__name(this, "MeetingError");
|
|
@@ -1456,7 +1719,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id4, accountId)
|
|
|
1456
1719
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
1457
1720
|
}, "meetingSummaryAnswer");
|
|
1458
1721
|
|
|
1459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1722
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
1460
1723
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
1461
1724
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
1462
1725
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -1552,7 +1815,7 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id4, options) => {
|
|
|
1552
1815
|
};
|
|
1553
1816
|
}, "exportMeeting");
|
|
1554
1817
|
|
|
1555
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/payment.js
|
|
1556
1819
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
1557
1820
|
var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
|
|
1558
1821
|
var PAYMENT_STATES = ["expected", "paid", "cancelled"];
|
|
@@ -1646,10 +1909,10 @@ var paymentTitle = /* @__PURE__ */ __name((fact) => {
|
|
|
1646
1909
|
return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
|
|
1647
1910
|
}, "paymentTitle");
|
|
1648
1911
|
|
|
1649
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1912
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1650
1913
|
import { createHash as createHash2 } from "node:crypto";
|
|
1651
1914
|
|
|
1652
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1915
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
1653
1916
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
1654
1917
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
1655
1918
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone, such as 2026-11-09T09:00:00Z`);
|
|
@@ -1660,7 +1923,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
1660
1923
|
return new Date(value).toISOString();
|
|
1661
1924
|
}, "meetingTimestamp");
|
|
1662
1925
|
|
|
1663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1664
1927
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
1665
1928
|
var invalid3 = /* @__PURE__ */ __name((message) => {
|
|
1666
1929
|
throw new CliError("validation_error", message);
|
|
@@ -1833,7 +2096,7 @@ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
|
|
|
1833
2096
|
var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
|
|
1834
2097
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
1835
2098
|
|
|
1836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2099
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
1837
2100
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
1838
2101
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
1839
2102
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -1844,7 +2107,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
1844
2107
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
1845
2108
|
var meetingFindingFingerprint = findingFingerprint;
|
|
1846
2109
|
|
|
1847
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2110
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
1848
2111
|
var text3 = string();
|
|
1849
2112
|
var identifier = pipe(text3, minLength(1));
|
|
1850
2113
|
var nullableText = nullable(text3);
|
|
@@ -1977,7 +2240,7 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
1977
2240
|
meeting_repair: repair
|
|
1978
2241
|
};
|
|
1979
2242
|
|
|
1980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
1981
2244
|
var EVENT_QUERY = defineQuery({
|
|
1982
2245
|
entity: "event",
|
|
1983
2246
|
backend: "sql",
|
|
@@ -1993,7 +2256,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
1993
2256
|
]
|
|
1994
2257
|
});
|
|
1995
2258
|
|
|
1996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2259
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
1997
2260
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
|
|
1998
2261
|
const current = await store.meeting(details.meeting.id);
|
|
1999
2262
|
if (!current)
|
|
@@ -2036,7 +2299,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
2036
2299
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
2037
2300
|
}, "linkEvent");
|
|
2038
2301
|
|
|
2039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2302
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
2040
2303
|
var context = {
|
|
2041
2304
|
command: "search meetings",
|
|
2042
2305
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -2097,9 +2360,10 @@ var MEETING_FIELDS = defineQuery({
|
|
|
2097
2360
|
}))
|
|
2098
2361
|
]
|
|
2099
2362
|
});
|
|
2363
|
+
var MEETING_FIELD_NAMES = new Set(MEETING_FIELDS.fields.map(({ name }) => name));
|
|
2100
2364
|
var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
|
|
2101
2365
|
|
|
2102
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2366
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/language.js
|
|
2103
2367
|
var LATIN_WORDS = {
|
|
2104
2368
|
en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
|
|
2105
2369
|
es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
|
|
@@ -2148,7 +2412,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
|
|
|
2148
2412
|
return null;
|
|
2149
2413
|
}, "transcriptLanguage");
|
|
2150
2414
|
|
|
2151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2415
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
2152
2416
|
var contentHash = /* @__PURE__ */ __name(async (text6) => {
|
|
2153
2417
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text6));
|
|
2154
2418
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -2185,7 +2449,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
2185
2449
|
return time2;
|
|
2186
2450
|
}, "timestamp");
|
|
2187
2451
|
|
|
2188
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2452
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
2189
2453
|
var TranscriptTextError = class extends Error {
|
|
2190
2454
|
static {
|
|
2191
2455
|
__name(this, "TranscriptTextError");
|
|
@@ -2240,7 +2504,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
2240
2504
|
return { header, lines };
|
|
2241
2505
|
}, "parseTranscriptText");
|
|
2242
2506
|
|
|
2243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2507
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
2244
2508
|
var VttError = class extends Error {
|
|
2245
2509
|
static {
|
|
2246
2510
|
__name(this, "VttError");
|
|
@@ -2292,7 +2556,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
2292
2556
|
return cues;
|
|
2293
2557
|
}, "parseVtt");
|
|
2294
2558
|
|
|
2295
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2559
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
2296
2560
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
2297
2561
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2298
2562
|
for (const file of files) {
|
|
@@ -2325,10 +2589,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2325
2589
|
return report;
|
|
2326
2590
|
}, "importFiles");
|
|
2327
2591
|
|
|
2328
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2592
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
2329
2593
|
var CHAT_MESSAGES_READ = 1e5;
|
|
2330
2594
|
|
|
2331
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
2332
2596
|
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
2333
2597
|
if (typeof value !== "string" || !value.trim())
|
|
2334
2598
|
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
@@ -2379,7 +2643,7 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
|
|
|
2379
2643
|
return Object.freeze(result);
|
|
2380
2644
|
}, "validateMeetingChange");
|
|
2381
2645
|
|
|
2382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2646
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
2383
2647
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
2384
2648
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
2385
2649
|
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)))
|
|
@@ -2392,7 +2656,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
2392
2656
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
2393
2657
|
}, "validateMeetingPassage");
|
|
2394
2658
|
|
|
2395
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2659
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
2396
2660
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
2397
2661
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2398
2662
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -2417,7 +2681,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
2417
2681
|
return { ...input, limit, maxReadBytes };
|
|
2418
2682
|
}, "validateMeetingPreparationContext");
|
|
2419
2683
|
|
|
2420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2684
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
2421
2685
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
2422
2686
|
var id = pipe(string(), minLength(1));
|
|
2423
2687
|
var meetingProjectEvidence = strictObject({
|
|
@@ -2538,7 +2802,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
2538
2802
|
};
|
|
2539
2803
|
}, "meetingProjectEvidenceAnswer");
|
|
2540
2804
|
|
|
2541
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
2542
2806
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
2543
2807
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
2544
2808
|
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) || [
|
|
@@ -2558,7 +2822,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
2558
2822
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
2559
2823
|
}, "validateMeetingHitSearch");
|
|
2560
2824
|
|
|
2561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2825
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
2562
2826
|
var ids = {
|
|
2563
2827
|
meeting_id: "meetingId",
|
|
2564
2828
|
identity_id: "participantIdentityId",
|
|
@@ -2649,7 +2913,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project2, request =
|
|
|
2649
2913
|
return { project: project2.trim(), options, query: frozen.join(" AND ") };
|
|
2650
2914
|
}, "prepareMeetingProjectEvidence");
|
|
2651
2915
|
|
|
2652
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2916
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
2653
2917
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project2, request = {}, now = Date.now()) => {
|
|
2654
2918
|
const prepared = prepareMeetingProjectEvidence(project2, request, now);
|
|
2655
2919
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -2657,7 +2921,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project2, r
|
|
|
2657
2921
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
2658
2922
|
}, "readMeetingProjectEvidence");
|
|
2659
2923
|
|
|
2660
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2924
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
2661
2925
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2662
2926
|
const { identityExternalId, ...fields } = p;
|
|
2663
2927
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -2672,24 +2936,47 @@ var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, posit
|
|
|
2672
2936
|
}
|
|
2673
2937
|
};
|
|
2674
2938
|
}, "participantInput");
|
|
2939
|
+
var startOf = /* @__PURE__ */ __name((m) => {
|
|
2940
|
+
const at = Date.parse(m.occurrence.startedAt);
|
|
2941
|
+
return Number.isFinite(at) ? at : Number.POSITIVE_INFINITY;
|
|
2942
|
+
}, "startOf");
|
|
2675
2943
|
var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
2676
2944
|
const now = options.now ?? Date.now();
|
|
2677
|
-
const
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2945
|
+
for (const [name, ms] of [
|
|
2946
|
+
["lookbackMs", options.lookbackMs ?? 0],
|
|
2947
|
+
["overlapMs", source.overlapMs ?? 0]
|
|
2948
|
+
])
|
|
2949
|
+
if (!Number.isSafeInteger(ms) || ms < 0 || ms > 31 * 864e5)
|
|
2950
|
+
throw new Error(`${name} must be an integer from 0 through 31 days`);
|
|
2951
|
+
const lookbackMs = Math.max(options.lookbackMs ?? 0, source.overlapMs ?? 0);
|
|
2952
|
+
const cursor = options.rescan ? void 0 : await store.cursor(options.accountId);
|
|
2953
|
+
const since = options.since ?? cursor ?? new Date(now - 30 * 864e5).toISOString();
|
|
2681
2954
|
timestamp2(since);
|
|
2682
2955
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2683
2956
|
let failed = false;
|
|
2957
|
+
let firstFailed;
|
|
2684
2958
|
const from = timestamp2(since) - lookbackMs;
|
|
2685
|
-
const meetings = await source.meetings(lookbackMs === 0 ? since : new Date(from).toISOString());
|
|
2686
|
-
for (const m of meetings) {
|
|
2959
|
+
const meetings = (await source.meetings(lookbackMs === 0 ? since : new Date(from).toISOString())).toSorted((a, b) => startOf(a) - startOf(b));
|
|
2960
|
+
for (const [index, m] of meetings.entries()) {
|
|
2961
|
+
const stop = options.budget?.take() ?? null;
|
|
2962
|
+
if (stop) {
|
|
2963
|
+
report.stopped = stop;
|
|
2964
|
+
report.remaining = meetings.length - index;
|
|
2965
|
+
const reached = Math.min(startOf(m), firstFailed ?? Number.POSITIVE_INFINITY);
|
|
2966
|
+
if (Number.isFinite(reached) && reached > timestamp2(since))
|
|
2967
|
+
await store.setCursor(options.accountId, new Date(reached).toISOString(), now);
|
|
2968
|
+
return report;
|
|
2969
|
+
}
|
|
2687
2970
|
const id4 = m.occurrence.id;
|
|
2971
|
+
const failedHere = /* @__PURE__ */ __name(() => {
|
|
2972
|
+
failed = true;
|
|
2973
|
+
firstFailed ??= startOf(m);
|
|
2974
|
+
}, "failedHere");
|
|
2688
2975
|
const read = /* @__PURE__ */ __name(async (part, call) => {
|
|
2689
2976
|
try {
|
|
2690
2977
|
return await call();
|
|
2691
2978
|
} catch (error) {
|
|
2692
|
-
|
|
2979
|
+
failedHere();
|
|
2693
2980
|
const message = error instanceof Error ? error.message : "could not be read";
|
|
2694
2981
|
report.warnings.push({ externalId: id4, message: `${part}: ${message}` });
|
|
2695
2982
|
return void 0;
|
|
@@ -2787,7 +3074,7 @@ unlinked`, format)],
|
|
|
2787
3074
|
report.transcriptRows += lines?.length ?? 0;
|
|
2788
3075
|
report.summaries += summary ? 1 : 0;
|
|
2789
3076
|
} catch (error) {
|
|
2790
|
-
|
|
3077
|
+
failedHere();
|
|
2791
3078
|
report.warnings.push({ externalId: id4, message: error instanceof Error ? error.message : "Meeting pull failed" });
|
|
2792
3079
|
}
|
|
2793
3080
|
}
|
|
@@ -2796,7 +3083,7 @@ unlinked`, format)],
|
|
|
2796
3083
|
return report;
|
|
2797
3084
|
}, "pull");
|
|
2798
3085
|
|
|
2799
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3086
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
2800
3087
|
var text4 = string();
|
|
2801
3088
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
2802
3089
|
var id2 = pipe(number(), integer(), minValue(1));
|
|
@@ -2990,10 +3277,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
2990
3277
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
2991
3278
|
}), "eventItem");
|
|
2992
3279
|
|
|
2993
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3280
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
2994
3281
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
2995
3282
|
|
|
2996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
2997
3284
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
2998
3285
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2999
3286
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -3023,14 +3310,14 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
3023
3310
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
3024
3311
|
}, "validateMeetingRelatedHistory");
|
|
3025
3312
|
|
|
3026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3313
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
3027
3314
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
3028
3315
|
|
|
3029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3316
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
3030
3317
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
3031
3318
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
3032
3319
|
|
|
3033
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3320
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
3034
3321
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
3035
3322
|
input.signal?.throwIfAborted();
|
|
3036
3323
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -3051,10 +3338,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
3051
3338
|
return { ...input, limit, maxReadBytes };
|
|
3052
3339
|
}, "validateMeetingSeriesHistory");
|
|
3053
3340
|
|
|
3054
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3341
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
3055
3342
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
3056
3343
|
|
|
3057
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3344
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
3058
3345
|
function invalid4(field, response = false) {
|
|
3059
3346
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
3060
3347
|
}
|
|
@@ -3083,7 +3370,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
3083
3370
|
cursorDetails(value);
|
|
3084
3371
|
}, "validateMeetingSeriesInventoryCursor");
|
|
3085
3372
|
|
|
3086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
3087
3374
|
var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
|
|
3088
3375
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
3089
3376
|
const zone = timeZone ?? "UTC";
|
|
@@ -3218,7 +3505,122 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
3218
3505
|
};
|
|
3219
3506
|
}, "aggregateMeetingStats");
|
|
3220
3507
|
|
|
3221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3508
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/domain/deals.js
|
|
3509
|
+
var DEAL_KINDS = ["deal", "lead"];
|
|
3510
|
+
var DEAL_STATUSES = ["open", "won", "lost"];
|
|
3511
|
+
var STAGE_OUTCOMES = DEAL_STATUSES;
|
|
3512
|
+
var DEAL_ROLES = ["owner", "contact", "decision-maker", "influencer"];
|
|
3513
|
+
var dealLine = /* @__PURE__ */ __name((deal) => {
|
|
3514
|
+
const money = deal.amount === null || deal.currency === null ? "" : `, ${moneyLabel(deal.amount, deal.currency)}`;
|
|
3515
|
+
return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
|
|
3516
|
+
}, "dealLine");
|
|
3517
|
+
|
|
3518
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/domain/orders.js
|
|
3519
|
+
var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
|
|
3520
|
+
var ORDER_PURPOSES = ["personal", "business", "client", "other"];
|
|
3521
|
+
var orderLine = /* @__PURE__ */ __name((order) => {
|
|
3522
|
+
const money = order.total === null || order.currency === null ? "" : `, ${moneyLabel(order.total, order.currency)}`;
|
|
3523
|
+
const notes2 = [order.status, order.review === "confirmed" ? null : order.review].filter(Boolean).join(", ");
|
|
3524
|
+
return `${order.number ?? `#${order.id}`} \xB7 ${order.supplierName}${money} (${notes2})`;
|
|
3525
|
+
}, "orderLine");
|
|
3526
|
+
var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
|
|
3527
|
+
|
|
3528
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/store/source-review.js
|
|
3529
|
+
var SOURCE_REVIEW_KIND = "memory_source_review";
|
|
3530
|
+
var SOURCE_REVIEW_CAUSES = ["changed", "outdated", "deleted", "contradicted"];
|
|
3531
|
+
var ERASED_TEXT = "[source erased]";
|
|
3532
|
+
var severity = /* @__PURE__ */ __name((cause) => SOURCE_REVIEW_CAUSES.indexOf(cause), "severity");
|
|
3533
|
+
var graver = /* @__PURE__ */ __name((a, b) => severity(b) > severity(a) ? b : a, "graver");
|
|
3534
|
+
|
|
3535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/domain/relations.js
|
|
3536
|
+
var ORGANIZATION_ROLES = [
|
|
3537
|
+
"employee",
|
|
3538
|
+
"contractor",
|
|
3539
|
+
"founder",
|
|
3540
|
+
"owner",
|
|
3541
|
+
"manager",
|
|
3542
|
+
"adviser",
|
|
3543
|
+
"contact"
|
|
3544
|
+
];
|
|
3545
|
+
var PROJECT_ROLES = ["owner", "manager", "contributor", "client-contact", "approver"];
|
|
3546
|
+
var ENGAGEMENT_LEVELS = ["none", "low", "medium", "high"];
|
|
3547
|
+
var isEngagement = /* @__PURE__ */ __name((value) => typeof value === "string" && ENGAGEMENT_LEVELS.includes(value), "isEngagement");
|
|
3548
|
+
var checkEngagement = /* @__PURE__ */ __name((kind, from, to, level) => {
|
|
3549
|
+
if (kind !== "member-of" || from !== "person" || to !== "project")
|
|
3550
|
+
throw new CliError("validation_error", "an engagement level is set only on a person's member-of a project", {
|
|
3551
|
+
reason: "relationship.engagement-ends"
|
|
3552
|
+
});
|
|
3553
|
+
if (!isEngagement(level))
|
|
3554
|
+
throw new CliError("validation_error", `an engagement level is one of ${ENGAGEMENT_LEVELS.join(", ")}`, {
|
|
3555
|
+
reason: "relationship.engagement-unknown"
|
|
3556
|
+
});
|
|
3557
|
+
return level;
|
|
3558
|
+
}, "checkEngagement");
|
|
3559
|
+
var RELATIONS = {
|
|
3560
|
+
"member-of": {
|
|
3561
|
+
from: ["person", "organization", "project", "chat", "email_thread"],
|
|
3562
|
+
to: ["organization", "project"],
|
|
3563
|
+
roles: { to: { organization: ORGANIZATION_ROLES, project: PROJECT_ROLES } }
|
|
3564
|
+
},
|
|
3565
|
+
"reports-to": { from: ["person"], to: ["person"], inverse: "manages" },
|
|
3566
|
+
"customer-of": { from: ["person", "organization"], to: ["organization"], inverse: "supplier of" },
|
|
3567
|
+
"partner-of": { from: ["organization"], to: ["organization"], symmetric: true },
|
|
3568
|
+
"related-to": {
|
|
3569
|
+
from: ["person", "organization", "project", "task", "deal", "lead"],
|
|
3570
|
+
to: ["person", "organization", "project", "task"],
|
|
3571
|
+
roles: { from: { deal: DEAL_ROLES, lead: DEAL_ROLES } }
|
|
3572
|
+
}
|
|
3573
|
+
};
|
|
3574
|
+
var RELATION_KINDS = Object.keys(RELATIONS);
|
|
3575
|
+
var specOf = /* @__PURE__ */ __name((kind) => Object.hasOwn(RELATIONS, kind) ? RELATIONS[kind] : void 0, "specOf");
|
|
3576
|
+
var isRelationKind = /* @__PURE__ */ __name((kind) => specOf(kind) !== void 0, "isRelationKind");
|
|
3577
|
+
var memberOnly = /* @__PURE__ */ __name((type) => type === "chat" || type === "email_thread", "memberOnly");
|
|
3578
|
+
var checkEnds = /* @__PURE__ */ __name((kind, from, to) => {
|
|
3579
|
+
const spec = specOf(kind);
|
|
3580
|
+
if (!spec)
|
|
3581
|
+
throw new CliError("validation_error", `a relationship's kind is one of ${RELATION_KINDS.join(", ")}`);
|
|
3582
|
+
if (memberOnly(from) && (kind !== "member-of" || to !== "project"))
|
|
3583
|
+
throw new CliError("validation_error", `a ${from === "chat" ? "chat" : "mail thread"} is related only as member-of a project`);
|
|
3584
|
+
if (!spec.from.includes(from) || !spec.to.includes(to))
|
|
3585
|
+
throw new CliError("validation_error", `${kind} joins ${spec.from.join(", ")} to ${spec.to.join(", ")}, not ${from} to ${to}`);
|
|
3586
|
+
return spec;
|
|
3587
|
+
}, "checkEnds");
|
|
3588
|
+
var rolesOf = /* @__PURE__ */ __name((kind, from, to) => {
|
|
3589
|
+
const spec = specOf(kind);
|
|
3590
|
+
if (kind === "member-of" && from !== "person")
|
|
3591
|
+
return void 0;
|
|
3592
|
+
return spec?.roles?.from?.[from] ?? spec?.roles?.to?.[to];
|
|
3593
|
+
}, "rolesOf");
|
|
3594
|
+
var ROLE_LISTS = { organization: ORGANIZATION_ROLES, project: PROJECT_ROLES, deal: DEAL_ROLES };
|
|
3595
|
+
var roleListOf = /* @__PURE__ */ __name((kind, from, to) => {
|
|
3596
|
+
const roles = rolesOf(kind, from, to);
|
|
3597
|
+
return Object.keys(ROLE_LISTS).find((list) => ROLE_LISTS[list] === roles);
|
|
3598
|
+
}, "roleListOf");
|
|
3599
|
+
var checkRole = /* @__PURE__ */ __name((kind, from, to, role, extra = []) => {
|
|
3600
|
+
const roles = rolesOf(kind, from, to)?.concat(extra);
|
|
3601
|
+
if (roles && !roles.includes(role))
|
|
3602
|
+
throw new CliError("validation_error", `a ${from}'s role on ${kind} ${to} is one of ${roles.join(", ")}`, {
|
|
3603
|
+
reason: "relationship.role-unknown"
|
|
3604
|
+
});
|
|
3605
|
+
return role;
|
|
3606
|
+
}, "checkRole");
|
|
3607
|
+
var isSymmetric = /* @__PURE__ */ __name((kind) => specOf(kind)?.symmetric === true, "isSymmetric");
|
|
3608
|
+
var inverseOf = /* @__PURE__ */ __name((kind) => specOf(kind)?.symmetric ? kind : specOf(kind)?.inverse ?? null, "inverseOf");
|
|
3609
|
+
var STANDINGS = ["confirmed", "reported", "proposed", "ended"];
|
|
3610
|
+
var standingOf = /* @__PURE__ */ __name((link, now) => {
|
|
3611
|
+
if (link.endsAt != null && link.endsAt <= now)
|
|
3612
|
+
return "ended";
|
|
3613
|
+
if (link.confirmed)
|
|
3614
|
+
return "confirmed";
|
|
3615
|
+
if (link.deletedAt != null)
|
|
3616
|
+
return "ended";
|
|
3617
|
+
return link.accountId != null ? "reported" : "proposed";
|
|
3618
|
+
}, "standingOf");
|
|
3619
|
+
var isUsable = /* @__PURE__ */ __name((standing) => standing === "confirmed" || standing === "reported", "isUsable");
|
|
3620
|
+
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");
|
|
3621
|
+
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");
|
|
3622
|
+
|
|
3623
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
3222
3624
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
3223
3625
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
3224
3626
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -3232,7 +3634,7 @@ var normalizeTag = /* @__PURE__ */ __name((value) => {
|
|
|
3232
3634
|
return tag;
|
|
3233
3635
|
}, "normalizeTag");
|
|
3234
3636
|
|
|
3235
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3637
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
3236
3638
|
var LINK_KINDS = [
|
|
3237
3639
|
"links-to",
|
|
3238
3640
|
"blocked-by",
|
|
@@ -3245,15 +3647,18 @@ var LINK_KINDS = [
|
|
|
3245
3647
|
"created-from",
|
|
3246
3648
|
"duplicate-of",
|
|
3247
3649
|
"related-to",
|
|
3650
|
+
"reports-to",
|
|
3651
|
+
"customer-of",
|
|
3652
|
+
"partner-of",
|
|
3248
3653
|
"assigned-to",
|
|
3249
3654
|
"attached"
|
|
3250
3655
|
];
|
|
3251
3656
|
var LINK_ORIGINS = ["file", "owner", "suggested", "message"];
|
|
3252
3657
|
var LINK_SOURCES = [...LINK_ORIGINS, "calendar"];
|
|
3253
|
-
var RELATION_KINDS = ["member-of", "related-to"];
|
|
3254
3658
|
var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
|
|
3659
|
+
var COUNTERPART_ROLE = "counterpart";
|
|
3255
3660
|
|
|
3256
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
3257
3662
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
3258
3663
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
3259
3664
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -3268,13 +3673,13 @@ function closeTask(task, state, by, at, reason) {
|
|
|
3268
3673
|
}
|
|
3269
3674
|
__name(closeTask, "closeTask");
|
|
3270
3675
|
|
|
3271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3676
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
3272
3677
|
function matches2(task, filter) {
|
|
3273
3678
|
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);
|
|
3274
3679
|
}
|
|
3275
3680
|
__name(matches2, "matches");
|
|
3276
3681
|
|
|
3277
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3682
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
3278
3683
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
3279
3684
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
3280
3685
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -3303,7 +3708,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
3303
3708
|
}, "priorityOf");
|
|
3304
3709
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
3305
3710
|
|
|
3306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3711
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
3307
3712
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
3308
3713
|
async function find(id4) {
|
|
3309
3714
|
const task = await store.get(id4);
|
|
@@ -3363,7 +3768,7 @@ function median(values) {
|
|
|
3363
3768
|
}
|
|
3364
3769
|
__name(median, "median");
|
|
3365
3770
|
|
|
3366
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
3367
3772
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
3368
3773
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
3369
3774
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
@@ -3371,131 +3776,7 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
3371
3776
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
3372
3777
|
var TASK_TYPES2 = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
3373
3778
|
|
|
3374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3375
|
-
var CURRENCY_SCALES = {
|
|
3376
|
-
AED: 2,
|
|
3377
|
-
AMD: 2,
|
|
3378
|
-
AUD: 2,
|
|
3379
|
-
BHD: 3,
|
|
3380
|
-
BYN: 2,
|
|
3381
|
-
CAD: 2,
|
|
3382
|
-
CHF: 2,
|
|
3383
|
-
CLP: 0,
|
|
3384
|
-
CNY: 2,
|
|
3385
|
-
CZK: 2,
|
|
3386
|
-
DKK: 2,
|
|
3387
|
-
EUR: 2,
|
|
3388
|
-
GBP: 2,
|
|
3389
|
-
GEL: 2,
|
|
3390
|
-
HUF: 2,
|
|
3391
|
-
ILS: 2,
|
|
3392
|
-
INR: 2,
|
|
3393
|
-
ISK: 0,
|
|
3394
|
-
JPY: 0,
|
|
3395
|
-
KGS: 2,
|
|
3396
|
-
KRW: 0,
|
|
3397
|
-
KWD: 3,
|
|
3398
|
-
KZT: 2,
|
|
3399
|
-
NOK: 2,
|
|
3400
|
-
PLN: 2,
|
|
3401
|
-
RSD: 2,
|
|
3402
|
-
RUB: 2,
|
|
3403
|
-
SEK: 2,
|
|
3404
|
-
THB: 2,
|
|
3405
|
-
TRY: 2,
|
|
3406
|
-
UAH: 2,
|
|
3407
|
-
USD: 2,
|
|
3408
|
-
UZS: 2,
|
|
3409
|
-
VND: 0
|
|
3410
|
-
};
|
|
3411
|
-
var refuse = /* @__PURE__ */ __name((message, reason) => {
|
|
3412
|
-
throw new CliError("validation_error", message, { reason });
|
|
3413
|
-
}, "refuse");
|
|
3414
|
-
var DECIMAL = /^(\d{1,15})(?:\.(\d+))?$/;
|
|
3415
|
-
var parseDecimal = /* @__PURE__ */ __name((text6, scale) => {
|
|
3416
|
-
const match = DECIMAL.exec(text6.trim());
|
|
3417
|
-
if (!match || (match[2] ?? "").length > scale)
|
|
3418
|
-
return void 0;
|
|
3419
|
-
return BigInt(`${match[1]}${(match[2] ?? "").padEnd(scale, "0")}`);
|
|
3420
|
-
}, "parseDecimal");
|
|
3421
|
-
var formatDecimal = /* @__PURE__ */ __name((units, scale) => {
|
|
3422
|
-
const digits = BigInt(units).toString().padStart(scale + 1, "0");
|
|
3423
|
-
return scale === 0 ? digits : `${digits.slice(0, -scale)}.${digits.slice(-scale)}`;
|
|
3424
|
-
}, "formatDecimal");
|
|
3425
|
-
var groupDigits = /* @__PURE__ */ __name((decimal) => {
|
|
3426
|
-
const [whole = "0", fraction] = decimal.split(".");
|
|
3427
|
-
const grouped2 = whole.replace(/\B(?=(\d{3})+(?!\d))/g, " ");
|
|
3428
|
-
return fraction === void 0 ? grouped2 : `${grouped2}.${fraction}`;
|
|
3429
|
-
}, "groupDigits");
|
|
3430
|
-
var currencyOf = /* @__PURE__ */ __name((text6) => {
|
|
3431
|
-
const code = typeof text6 === "string" ? text6.trim().toUpperCase() : "";
|
|
3432
|
-
if (CURRENCY_SCALES[code] === void 0)
|
|
3433
|
-
return refuse(`${typeof text6 === "string" && text6.trim() ? text6.trim() : "an empty currency"} is not a currency the store keeps; use one of ${Object.keys(CURRENCY_SCALES).join(", ")}`, "money.currency");
|
|
3434
|
-
return code;
|
|
3435
|
-
}, "currencyOf");
|
|
3436
|
-
var scaleOf = /* @__PURE__ */ __name((currency) => CURRENCY_SCALES[currencyOf(currency)], "scaleOf");
|
|
3437
|
-
var minorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
|
|
3438
|
-
const scale = scaleOf(currency);
|
|
3439
|
-
const units = typeof amount === "string" ? parseDecimal(amount, scale) : void 0;
|
|
3440
|
-
if (units === void 0 || units > BigInt(Number.MAX_SAFE_INTEGER))
|
|
3441
|
-
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");
|
|
3442
|
-
return Number(units);
|
|
3443
|
-
}, "minorUnits");
|
|
3444
|
-
var moneyOf = /* @__PURE__ */ __name((units, currency) => ({
|
|
3445
|
-
amount: formatDecimal(units, scaleOf(currency)),
|
|
3446
|
-
currency
|
|
3447
|
-
}), "moneyOf");
|
|
3448
|
-
var moneyLabel = /* @__PURE__ */ __name((units, currency) => `${groupDigits(formatDecimal(units, scaleOf(currency)))} ${currency}`, "moneyLabel");
|
|
3449
|
-
var QUANTITY_SCALE = 3;
|
|
3450
|
-
var quantityOf = /* @__PURE__ */ __name((text6) => {
|
|
3451
|
-
const thousandths = typeof text6 === "string" ? parseDecimal(text6, QUANTITY_SCALE) : void 0;
|
|
3452
|
-
if (thousandths === void 0 || thousandths === 0n)
|
|
3453
|
-
return refuse('a quantity is a decimal string above 0 with at most 3 decimals, such as "1.5"', "money.quantity");
|
|
3454
|
-
const plain = formatDecimal(thousandths, QUANTITY_SCALE).replace(/\.?0+$/, "");
|
|
3455
|
-
return { text: plain, thousandths };
|
|
3456
|
-
}, "quantityOf");
|
|
3457
|
-
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
3458
|
-
|
|
3459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/domain/finance.js
|
|
3460
|
-
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
3461
|
-
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
3462
|
-
var MONEY_DIRECTIONS = ["in", "out"];
|
|
3463
|
-
var FINANCE_REVIEWS = ["proposed", "confirmed", "rejected"];
|
|
3464
|
-
var settledStatus = /* @__PURE__ */ __name((current, total, paid) => {
|
|
3465
|
-
if (current === "draft" || current === "void")
|
|
3466
|
-
return current;
|
|
3467
|
-
if (paid <= 0)
|
|
3468
|
-
return "issued";
|
|
3469
|
-
return paid < total ? "partly_paid" : "paid";
|
|
3470
|
-
}, "settledStatus");
|
|
3471
|
-
var dayMonth = /* @__PURE__ */ __name((date) => date === null ? null : `${date.slice(8, 10)}.${date.slice(5, 7)}`, "dayMonth");
|
|
3472
|
-
var notes = /* @__PURE__ */ __name((...words2) => {
|
|
3473
|
-
const kept = words2.filter((word) => word !== null);
|
|
3474
|
-
return kept.length === 0 ? "" : ` (${kept.join(", ")})`;
|
|
3475
|
-
}, "notes");
|
|
3476
|
-
var invoiceLine = /* @__PURE__ */ __name((invoice) => {
|
|
3477
|
-
const party = invoice.counterpartyName === null ? "" : `${invoice.direction === "receivable" ? " to" : " from"} ${invoice.counterpartyName}`;
|
|
3478
|
-
const due = invoice.dueDate === null ? "" : `, due ${dayMonth(invoice.dueDate)}`;
|
|
3479
|
-
return `${invoice.number ?? `#${invoice.id}`} \xB7 ${moneyLabel(invoice.total, invoice.currency)}${party}${due}` + notes(invoice.status.replace("_", " "), invoice.review === "confirmed" ? null : invoice.review);
|
|
3480
|
-
}, "invoiceLine");
|
|
3481
|
-
var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
3482
|
-
const party = payment.partyName === null ? "" : `${payment.direction === "in" ? " from" : " to"} ${payment.partyName}`;
|
|
3483
|
-
return `${moneyLabel(payment.amount, payment.currency)}${party}, ${dayMonth(payment.date)}` + notes(payment.review === "confirmed" ? null : payment.review);
|
|
3484
|
-
}, "paymentLine");
|
|
3485
|
-
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
3486
|
-
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
3487
|
-
|
|
3488
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/domain/orders.js
|
|
3489
|
-
var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
|
|
3490
|
-
var ORDER_PURPOSES = ["personal", "business", "client", "other"];
|
|
3491
|
-
var orderLine = /* @__PURE__ */ __name((order) => {
|
|
3492
|
-
const money = order.total === null || order.currency === null ? "" : `, ${moneyLabel(order.total, order.currency)}`;
|
|
3493
|
-
const notes2 = [order.status, order.review === "confirmed" ? null : order.review].filter(Boolean).join(", ");
|
|
3494
|
-
return `${order.number ?? `#${order.id}`} \xB7 ${order.supplierName}${money} (${notes2})`;
|
|
3495
|
-
}, "orderLine");
|
|
3496
|
-
var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
|
|
3497
|
-
|
|
3498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
3779
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
3499
3780
|
var text5 = string();
|
|
3500
3781
|
var id3 = pipe(string(), minLength(1));
|
|
3501
3782
|
var time = isoTime;
|
|
@@ -3513,13 +3794,14 @@ var evidenceSource = strictObject({
|
|
|
3513
3794
|
tool: nullable(text5),
|
|
3514
3795
|
missing: boolean()
|
|
3515
3796
|
});
|
|
3797
|
+
var sourceReview = nullable(strictObject({ id: id3, cause: picklist(SOURCE_REVIEW_CAUSES) }));
|
|
3516
3798
|
var author = strictObject({
|
|
3517
3799
|
type: picklist(["person", "bot"]),
|
|
3518
3800
|
id: id3,
|
|
3519
3801
|
name: nullable(text5)
|
|
3520
3802
|
});
|
|
3521
3803
|
|
|
3522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3804
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
3523
3805
|
var organization = strictObject({
|
|
3524
3806
|
id: id3,
|
|
3525
3807
|
ref: reference,
|
|
@@ -3618,6 +3900,7 @@ export {
|
|
|
3618
3900
|
MEETING_FINDINGS_KIND,
|
|
3619
3901
|
validateMeetingFindings,
|
|
3620
3902
|
meetingFindingFingerprint,
|
|
3903
|
+
MEETING_FIELD_NAMES,
|
|
3621
3904
|
parseMeetingQuery,
|
|
3622
3905
|
transcriptLanguage,
|
|
3623
3906
|
importFiles,
|
|
@@ -3650,14 +3933,77 @@ export {
|
|
|
3650
3933
|
validateMeetingSeriesInventoryCursor,
|
|
3651
3934
|
aggregateMeetingCounts,
|
|
3652
3935
|
aggregateMeetingStats,
|
|
3936
|
+
parseDecimal,
|
|
3937
|
+
formatDecimal,
|
|
3938
|
+
currencyOf,
|
|
3939
|
+
scaleOf,
|
|
3940
|
+
minorUnits,
|
|
3941
|
+
signedMinorUnits,
|
|
3942
|
+
moneyOf,
|
|
3943
|
+
moneyLabel,
|
|
3944
|
+
quantityOf,
|
|
3945
|
+
lineUnits,
|
|
3946
|
+
INVOICE_DIRECTIONS,
|
|
3947
|
+
INVOICE_STATUSES,
|
|
3948
|
+
MONEY_DIRECTIONS,
|
|
3949
|
+
FINANCE_REVIEWS,
|
|
3950
|
+
settledStatus,
|
|
3951
|
+
invoiceLine,
|
|
3952
|
+
paymentLine,
|
|
3953
|
+
invoiceTitle,
|
|
3954
|
+
paymentEntryTitle,
|
|
3955
|
+
CATALOG_KINDS,
|
|
3956
|
+
BUSINESS_KINDS,
|
|
3957
|
+
CONTRACT_KINDS,
|
|
3958
|
+
CONTRACT_STATUSES,
|
|
3959
|
+
SUBSCRIPTION_STATUSES,
|
|
3960
|
+
WALLET_KINDS,
|
|
3961
|
+
TRANSACTION_STATUSES,
|
|
3962
|
+
ORDER_DIRECTIONS,
|
|
3963
|
+
intervalOf,
|
|
3964
|
+
productLine,
|
|
3965
|
+
contractLine,
|
|
3966
|
+
subscriptionLine,
|
|
3967
|
+
walletLine,
|
|
3968
|
+
transactionLine,
|
|
3969
|
+
DEAL_KINDS,
|
|
3970
|
+
DEAL_STATUSES,
|
|
3971
|
+
STAGE_OUTCOMES,
|
|
3972
|
+
DEAL_ROLES,
|
|
3973
|
+
dealLine,
|
|
3974
|
+
ORDER_STATUSES,
|
|
3975
|
+
ORDER_PURPOSES,
|
|
3976
|
+
orderLine,
|
|
3977
|
+
orderTitle,
|
|
3978
|
+
SOURCE_REVIEW_KIND,
|
|
3979
|
+
SOURCE_REVIEW_CAUSES,
|
|
3980
|
+
ERASED_TEXT,
|
|
3981
|
+
severity,
|
|
3982
|
+
graver,
|
|
3983
|
+
isEngagement,
|
|
3984
|
+
checkEngagement,
|
|
3985
|
+
RELATION_KINDS,
|
|
3986
|
+
isRelationKind,
|
|
3987
|
+
checkEnds,
|
|
3988
|
+
rolesOf,
|
|
3989
|
+
ROLE_LISTS,
|
|
3990
|
+
roleListOf,
|
|
3991
|
+
checkRole,
|
|
3992
|
+
isSymmetric,
|
|
3993
|
+
inverseOf,
|
|
3994
|
+
STANDINGS,
|
|
3995
|
+
standingOf,
|
|
3996
|
+
isUsable,
|
|
3997
|
+
notOverriddenSql,
|
|
3998
|
+
usableLinkSql,
|
|
3653
3999
|
TAG_TYPES,
|
|
3654
4000
|
tagOf,
|
|
3655
4001
|
normalizeTag,
|
|
3656
4002
|
LINK_KINDS,
|
|
3657
4003
|
LINK_ORIGINS,
|
|
3658
4004
|
LINK_SOURCES,
|
|
3659
|
-
RELATION_KINDS,
|
|
3660
4005
|
linkKind,
|
|
4006
|
+
COUNTERPART_ROLE,
|
|
3661
4007
|
TASK_KINDS,
|
|
3662
4008
|
TASK_STATES,
|
|
3663
4009
|
TASK_ORIGINS,
|
|
@@ -3677,28 +4023,6 @@ export {
|
|
|
3677
4023
|
MEMORY_SCOPES,
|
|
3678
4024
|
WORK_TASK_TYPES,
|
|
3679
4025
|
TASK_TYPES2 as TASK_TYPES,
|
|
3680
|
-
parseDecimal,
|
|
3681
|
-
formatDecimal,
|
|
3682
|
-
currencyOf,
|
|
3683
|
-
scaleOf,
|
|
3684
|
-
minorUnits,
|
|
3685
|
-
moneyOf,
|
|
3686
|
-
moneyLabel,
|
|
3687
|
-
quantityOf,
|
|
3688
|
-
lineUnits,
|
|
3689
|
-
INVOICE_DIRECTIONS,
|
|
3690
|
-
INVOICE_STATUSES,
|
|
3691
|
-
MONEY_DIRECTIONS,
|
|
3692
|
-
FINANCE_REVIEWS,
|
|
3693
|
-
settledStatus,
|
|
3694
|
-
invoiceLine,
|
|
3695
|
-
paymentLine,
|
|
3696
|
-
invoiceTitle,
|
|
3697
|
-
paymentEntryTitle,
|
|
3698
|
-
ORDER_STATUSES,
|
|
3699
|
-
ORDER_PURPOSES,
|
|
3700
|
-
orderLine,
|
|
3701
|
-
orderTitle,
|
|
3702
4026
|
text5 as text,
|
|
3703
4027
|
id3 as id,
|
|
3704
4028
|
time,
|
|
@@ -3707,8 +4031,14 @@ export {
|
|
|
3707
4031
|
untrusted,
|
|
3708
4032
|
providerMetadata,
|
|
3709
4033
|
evidenceSource,
|
|
4034
|
+
sourceReview,
|
|
3710
4035
|
author,
|
|
3711
4036
|
organization,
|
|
3712
4037
|
project,
|
|
3713
|
-
reminder
|
|
4038
|
+
reminder,
|
|
4039
|
+
markStoreDamaged,
|
|
4040
|
+
readDamageMark,
|
|
4041
|
+
refuseDamagedStore,
|
|
4042
|
+
readHealthMark,
|
|
4043
|
+
recordDeepCheck
|
|
3714
4044
|
};
|