@wirecat/amo-cli 0.1.1 → 0.3.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/CHANGELOG.md +36 -0
- package/README.md +15 -10
- package/contracts/wirecat.json +55 -6
- package/dist/amo/button.d.ts +53 -0
- package/dist/amo/button.d.ts.map +1 -0
- package/dist/amo/button.js +234 -0
- package/dist/amo/button.js.map +1 -0
- package/dist/amo/oauth.d.ts +12 -3
- package/dist/amo/oauth.d.ts.map +1 -1
- package/dist/amo/oauth.js +19 -6
- package/dist/amo/oauth.js.map +1 -1
- package/dist/bin/amo.js +2 -2
- package/dist/bundle/agent-FDNP27SW.js +40 -0
- package/dist/bundle/{all-profiles-3KQVWDV4.js → all-profiles-PPUN52SP.js} +63 -21
- package/dist/bundle/amo.js +28 -26
- package/dist/bundle/{anthropic-N5NOX7K7.js → anthropic-RDNDT6ZP.js} +5 -5
- package/dist/bundle/{app-server-2MST5EZ5.js → app-server-MMALJDBP.js} +79 -68
- package/dist/bundle/{bun-4NHWOFX2.js → bun-Y4FRPURU.js} +2 -2
- package/dist/bundle/{bun-sqlite-DRSXPWPR.js → bun-sqlite-7NXJGZCO.js} +6 -6
- package/dist/bundle/{chunk-GNTJMB6X.js → chunk-2YEDK2XV.js} +4 -4
- package/dist/bundle/chunk-3NDMVXGS.js +80 -0
- package/dist/bundle/{chunk-Y37A3232.js → chunk-3RP57VDS.js} +114 -7
- package/dist/bundle/{chunk-ODNQU7DH.js → chunk-3YOZTGZ6.js} +43 -64
- package/dist/bundle/{chunk-ESZSMZKT.js → chunk-4EYPFFTN.js} +2 -2
- package/dist/bundle/{chunk-TZSUZGWM.js → chunk-4MVTSMWP.js} +2 -2
- package/dist/bundle/{chunk-LJQUYECN.js → chunk-5DPMNYQT.js} +1 -1
- package/dist/bundle/{chunk-7PKFYX7V.js → chunk-5POLHHDZ.js} +8 -8
- package/dist/bundle/{chunk-A33TIM5D.js → chunk-5RXH35ZA.js} +225 -225
- package/dist/bundle/{chunk-BVMNXI53.js → chunk-77FP6AWC.js} +25 -25
- package/dist/bundle/{chunk-L6AFE73L.js → chunk-7E6QSIRQ.js} +1 -1
- package/dist/bundle/chunk-7SBAHYZW.js +734 -0
- package/dist/bundle/{chunk-GQ7VFIYM.js → chunk-7USADF2W.js} +23 -7
- package/dist/bundle/{chunk-AHJ4W2IL.js → chunk-7VSYOMEH.js} +2 -2
- package/dist/bundle/chunk-7Z6NYSAN.js +52 -0
- package/dist/bundle/chunk-AYR6FIXN.js +30 -0
- package/dist/bundle/{chunk-ADEWU4P4.js → chunk-B4ITT55D.js} +1 -1
- package/dist/bundle/{chunk-AUBB72VF.js → chunk-BKTLAXUK.js} +41 -10
- package/dist/bundle/{chunk-63F65DHU.js → chunk-BYVDMPLX.js} +2 -2
- package/dist/bundle/{chunk-V77XNPXG.js → chunk-CQ472K6W.js} +11 -11
- package/dist/bundle/{chunk-FKR3M62D.js → chunk-CUZISGWH.js} +13 -13
- package/dist/bundle/{chunk-LDEBZ3IX.js → chunk-D6UPCAPD.js} +1 -1
- package/dist/bundle/{chunk-P3WQRTYZ.js → chunk-E2DLRLJ5.js} +1 -1
- package/dist/bundle/{chunk-NJYAL3UW.js → chunk-EHULZEXQ.js} +1 -1
- package/dist/bundle/chunk-EKNP326Q.js +108 -0
- package/dist/bundle/{chunk-DJD7TBYG.js → chunk-ELJGALVX.js} +76 -74
- package/dist/bundle/{chunk-RPWAJYI6.js → chunk-FI2TP6TY.js} +3 -3
- package/dist/bundle/{chunk-CDY2NJFE.js → chunk-FPDTIQOK.js} +2 -2
- package/dist/bundle/{chunk-NC76INB2.js → chunk-FPIUFSWK.js} +3099 -2266
- package/dist/bundle/{chunk-SZ2V62HB.js → chunk-GCUFGDKE.js} +2 -2
- package/dist/bundle/{chunk-LRBPT7LQ.js → chunk-GKP7CKW2.js} +6 -6
- package/dist/bundle/chunk-H34RBRS3.js +209 -0
- package/dist/bundle/{chunk-O2UCU52O.js → chunk-HQH4YPO5.js} +134 -569
- package/dist/bundle/{chunk-TNUFLULO.js → chunk-I4QCJZW7.js} +8 -8
- package/dist/bundle/{chunk-DXGGCGRP.js → chunk-IDQ7BNCZ.js} +14 -14
- package/dist/bundle/{chunk-JMDLPBXK.js → chunk-IEAPNTHT.js} +17 -17
- package/dist/bundle/{chunk-XQL7FEF4.js → chunk-ILUREFWJ.js} +9 -9
- package/dist/bundle/{chunk-QRQYUHCZ.js → chunk-IYUWVMGP.js} +12 -12
- package/dist/bundle/chunk-JTFAG3BX.js +338 -0
- package/dist/bundle/{chunk-CHUKWON6.js → chunk-JZ2AITOE.js} +3 -3
- package/dist/bundle/{chunk-JR6TSMFX.js → chunk-KEOKH2OZ.js} +103 -70
- package/dist/bundle/{chunk-UMVRT7VQ.js → chunk-KKXF6TSS.js} +1 -1
- package/dist/bundle/{chunk-5E5R65CA.js → chunk-KTLCQ7GC.js} +2 -2
- package/dist/bundle/{chunk-QDMXZZG4.js → chunk-KZDBO2FT.js} +18 -8
- package/dist/bundle/{chunk-VX37MPTJ.js → chunk-L2ZQDTDU.js} +1 -1
- package/dist/bundle/{chunk-CUZRHF34.js → chunk-L3JDQNBC.js} +4 -4
- package/dist/bundle/{chunk-3IRJDH2U.js → chunk-L72UALL5.js} +2 -100
- package/dist/bundle/{chunk-XRTD2GCU.js → chunk-LOSOWTAZ.js} +19 -258
- package/dist/bundle/{chunk-LGQXGOPJ.js → chunk-LYRICHEK.js} +2 -2
- package/dist/bundle/{chunk-UBRREVLJ.js → chunk-MMOEAH5G.js} +2 -2
- package/dist/bundle/{chunk-EQ7A6NA6.js → chunk-MPXKBF37.js} +1 -1
- package/dist/bundle/{chunk-SMSTGO2G.js → chunk-MYMBPQPQ.js} +4 -4
- package/dist/bundle/chunk-N4A6E2LL.js +559 -0
- package/dist/bundle/{chunk-5HGGG3QO.js → chunk-NJ2LJKNH.js} +16 -3
- package/dist/bundle/{chunk-TGEQNS6G.js → chunk-OMH3WP7F.js} +1 -1
- package/dist/bundle/{chunk-ULXQ5MJM.js → chunk-ORFLQGWH.js} +4 -4
- package/dist/bundle/{chunk-DQV2IKCF.js → chunk-PFZ7WG2B.js} +10 -3
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-6RS7OYTD.js → chunk-Q2YVY7IR.js} +3 -3
- package/dist/bundle/{chunk-DOSJONCX.js → chunk-QHA33ZS6.js} +7 -7
- package/dist/bundle/{chunk-JH3UOHRE.js → chunk-QQT7WUR4.js} +4 -4
- package/dist/bundle/{chunk-EROSAUNP.js → chunk-R23DRW2T.js} +5 -5
- package/dist/bundle/{chunk-WCYCUTSK.js → chunk-SBQ5MFHM.js} +7 -7
- package/dist/bundle/{chunk-DAY6TSPF.js → chunk-SJYVKR54.js} +62 -50
- package/dist/bundle/{chunk-T2UDLX76.js → chunk-SJZ52MZE.js} +6 -6
- package/dist/bundle/{chunk-ZM7I52EP.js → chunk-T6D34X5S.js} +3 -4
- package/dist/bundle/{chunk-P5LYZRKW.js → chunk-TCDER3G7.js} +1586 -749
- package/dist/bundle/{chunk-2I5UVMLW.js → chunk-TWZF7VO6.js} +1726 -1159
- package/dist/bundle/{chunk-VVHRQ46X.js → chunk-UA7C57IB.js} +2 -2
- package/dist/bundle/{chunk-5SBLU7D7.js → chunk-UM6SDFB6.js} +1 -1
- package/dist/bundle/{chunk-7U5HJEPZ.js → chunk-UOPP6ORQ.js} +21 -19
- package/dist/bundle/{chunk-U7RLVJ34.js → chunk-UT3ODJMI.js} +4 -4
- package/dist/bundle/{chunk-7GTUZY7M.js → chunk-UZLT6VSP.js} +3 -3
- package/dist/bundle/{chunk-5RLUHTK6.js → chunk-V3ZWYMXT.js} +1 -1
- package/dist/bundle/{chunk-LSND5QYI.js → chunk-VD7HD25M.js} +9 -9
- package/dist/bundle/{chunk-PFO76YFP.js → chunk-VEGNZPQU.js} +18 -18
- package/dist/bundle/{chunk-5Z5PEEKP.js → chunk-VFU25P57.js} +4 -4
- package/dist/bundle/{chunk-4ZAK773N.js → chunk-VJHOBOJR.js} +3 -3
- package/dist/bundle/{chunk-PM77PRB6.js → chunk-VPBSZ4HQ.js} +185 -162
- package/dist/bundle/{chunk-Q2VNBY4Y.js → chunk-VY27K2SH.js} +746 -1205
- package/dist/bundle/{chunk-XEFAMLSD.js → chunk-W4KY5JF5.js} +3 -3
- package/dist/bundle/{chunk-73CXFE36.js → chunk-WBWVBEHH.js} +29 -1
- package/dist/bundle/{chunk-NHXJYS4R.js → chunk-XDT74W5P.js} +32 -28
- package/dist/bundle/{chunk-EPOV5UIO.js → chunk-XI75EKLG.js} +11 -11
- package/dist/bundle/{chunk-2B24PDH7.js → chunk-XM2G62YF.js} +8 -6
- package/dist/bundle/{chunk-5D4Z2B5B.js → chunk-YSOGGUK3.js} +9 -9
- package/dist/bundle/chunk-YVO2YGML.js +353 -0
- package/dist/bundle/{chunk-EQUKVVHX.js → chunk-ZIFEIJRK.js} +7 -7
- package/dist/bundle/{cli-QVWTXADI.js → cli-GAO7LDDA.js} +150 -103
- package/dist/bundle/command-contract-RLIBGIDT.js +39 -0
- package/dist/bundle/{command-server-entry-5VL5U5EE.js → command-server-entry-BCDJP7XE.js} +28 -28
- package/dist/bundle/{decode-SQ5WGNDX.js → decode-OY2GR442.js} +5 -5
- package/dist/bundle/{dispatch-LA4DFXJD.js → dispatch-JWEJCBTF.js} +8 -8
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/{echarts-25Z3RINX.js → echarts-AHEPEA5P.js} +2 -2
- package/dist/bundle/{embed-BNOTNXMA.js → embed-RVSUV54Z.js} +6 -6
- package/dist/bundle/{embedder-BCUT7KKV.js → embedder-GRZXZUXR.js} +9 -9
- package/dist/bundle/{failure-PKAC6XCT.js → failure-DDCSR54L.js} +2 -2
- package/dist/bundle/{first-run-EO5K5GME.js → first-run-G3WI4DH4.js} +12 -12
- package/dist/bundle/first-screen-6MLCMW2U.js +39 -0
- package/dist/bundle/{instructions-VLM3QAYB.js → instructions-NWQC5IP4.js} +1 -1
- package/dist/bundle/{mcp-7ILNMJH5.js → mcp-KGWT6TGO.js} +2 -2
- package/dist/bundle/meeting-combined-SVTFVZNJ.js +24 -0
- package/dist/bundle/{meeting-model-GHMMUQ34.js → meeting-model-I6T5HIZ5.js} +11 -11
- package/dist/bundle/{meeting-semantic-BMP6323L.js → meeting-semantic-47UA5JBF.js} +6 -6
- package/dist/bundle/{node-CT3N3TNL.js → node-7VXN7F4B.js} +2 -2
- package/dist/bundle/{node-sqlite-MELD2SBX.js → node-sqlite-BSEON57L.js} +7 -7
- package/dist/bundle/{oauth-YBH5OKC2.js → oauth-V6UAT4YD.js} +8 -8
- package/dist/bundle/{open-WNSBWTAG.js → open-7LVAY7ZU.js} +5 -5
- package/dist/bundle/{openai-XSNMNLW6.js → openai-OIEH342H.js} +15 -15
- package/dist/bundle/{process-I2QKOMM7.js → process-PTUCNLZ7.js} +1 -1
- package/dist/bundle/{program-DV73CIGP.js → program-S5WY5IZP.js} +643 -852
- package/dist/bundle/{prompt-SOG4AKPM.js → prompt-7XWTEQ62.js} +5 -5
- package/dist/bundle/{recognize-WMQLWMXH.js → recognize-HGIAJXDR.js} +4 -4
- package/dist/bundle/{remote-4BTFOLFY.js → remote-X4SVEMHS.js} +9 -9
- package/dist/bundle/{rerank-LJ3TWRNV.js → rerank-QWM3DQMU.js} +7 -7
- package/dist/bundle/{serve-B6UANKXN.js → serve-VVG3TXYT.js} +10 -10
- package/dist/bundle/{server-YRH6GJ5Z.js → server-EHYK62BJ.js} +73 -61
- package/dist/bundle/server-WRPTBVNW.js +86 -0
- package/dist/bundle/source-YISMYLBQ.js +44 -0
- package/dist/bundle/{sqlite-runtime-R7QFWFE7.js → sqlite-runtime-MCKXDNYC.js} +6 -6
- package/dist/bundle/{state-DIJ5YUOE.js → state-MYNYQJCT.js} +6 -6
- package/dist/bundle/store-A7R2SZVD.js +34 -0
- package/dist/bundle/{store-MYTYDV6A.js → store-B7O3F3QB.js} +28 -21
- package/dist/bundle/{store-6WFWW7EC.js → store-FPIU2546.js} +24 -23
- package/dist/bundle/store-maintenance-command-D55FRTIK.js +73 -0
- package/dist/bundle/surface-3EX6IGHW.js +72 -0
- package/dist/bundle/writer-XDHZ54JD.js +46 -0
- package/dist/commands/session.d.ts +23 -0
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +115 -45
- package/dist/commands/session.js.map +1 -1
- package/dist/identity.js +1 -1
- package/dist/identity.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +3 -1
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +2 -0
- package/dist/reasons.js.map +1 -1
- package/dist/setup/flow.d.ts.map +1 -1
- package/dist/setup/flow.js +74 -4
- package/dist/setup/flow.js.map +1 -1
- package/dist/setup/texts.en.json +22 -1
- package/dist/setup/texts.es.json +22 -1
- package/dist/setup/texts.ru.json +22 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -3
- package/scenarios/first-sync.md +23 -0
- package/scenarios/keep-in-sync.md +18 -0
- package/scenarios/safe-agent-writes.md +21 -0
- package/skills/amo-cli/SKILL.md +1 -1
- package/skills/amo-cli/references/mcp.md +1 -1
- package/skills/amo-cli/references/setup.md +9 -3
- package/dist/bundle/command-contract-QBUQBXH7.js +0 -39
- package/dist/bundle/first-screen-GMN3T6RW.js +0 -39
- package/dist/bundle/meeting-combined-LAMF7S2B.js +0 -24
- package/dist/bundle/server-S6XD6V6E.js +0 -77
- package/dist/bundle/source-DGFTA2TN.js +0 -42
- package/dist/bundle/store-FJCNZULV.js +0 -32
- package/dist/bundle/store-maintenance-command-B5TMKFMG.js +0 -68
- package/dist/bundle/writer-GP7VIMAU.js +0 -44
|
@@ -32,149 +32,55 @@ import {
|
|
|
32
32
|
string,
|
|
33
33
|
union,
|
|
34
34
|
variant
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-BKTLAXUK.js";
|
|
36
36
|
import {
|
|
37
37
|
CliError,
|
|
38
38
|
isCliError,
|
|
39
39
|
singleLine,
|
|
40
40
|
visibleControls
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-GCUFGDKE.js";
|
|
42
42
|
import {
|
|
43
43
|
__name
|
|
44
44
|
} from "./chunk-ZVVMGPBJ.js";
|
|
45
45
|
|
|
46
|
-
// node_modules/.pnpm/@wirecat+cli-
|
|
47
|
-
var
|
|
48
|
-
var
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
}, "
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/meetings/payment.js
|
|
84
|
-
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
85
|
-
var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
|
|
86
|
-
var PAYMENT_STATES = ["expected", "paid", "cancelled"];
|
|
87
|
-
var invalid2 = /* @__PURE__ */ __name((message) => {
|
|
88
|
-
throw new CliError("validation_error", message);
|
|
89
|
-
}, "invalid");
|
|
90
|
-
var CURRENCIES = new Set(Intl.supportedValuesOf("currency"));
|
|
91
|
-
var AMOUNT = /^(\d{1,15})(?:\.(\d{1,2}))?$/;
|
|
92
|
-
var COUNTERPARTY = /^(person|organization|project):[1-9]\d*$/;
|
|
93
|
-
var amountOf = /* @__PURE__ */ __name((value) => {
|
|
94
|
-
const match = AMOUNT.exec(typeof value === "number" ? String(value) : typeof value === "string" ? value.trim() : "");
|
|
95
|
-
if (!match)
|
|
96
|
-
return invalid2("a payment's amount is a positive number with at most 2 decimals, such as 1200.50");
|
|
97
|
-
const amount = `${BigInt(match[1] ?? "0")}.${(match[2] ?? "").padEnd(2, "0")}`;
|
|
98
|
-
if (amount === "0.00")
|
|
99
|
-
return invalid2("a payment's amount is more than 0");
|
|
100
|
-
return amount;
|
|
101
|
-
}, "amountOf");
|
|
102
|
-
var dateOf = /* @__PURE__ */ __name((value) => {
|
|
103
|
-
const date = typeof value === "string" ? value.trim() : "";
|
|
104
|
-
if (!/^\d{4}-\d{2}-\d{2}$/.test(date) || (/* @__PURE__ */ new Date(`${date}T00:00:00Z`)).toISOString().slice(0, 10) !== date)
|
|
105
|
-
return invalid2("a payment's dates are ISO dates, such as 2026-10-31");
|
|
106
|
-
return date;
|
|
107
|
-
}, "dateOf");
|
|
108
|
-
var optionalText = /* @__PURE__ */ __name((value, what, limit) => {
|
|
109
|
-
if (value === void 0 || value === null)
|
|
110
|
-
return null;
|
|
111
|
-
if (typeof value !== "string" || !value.trim() || value.length > limit || value.includes("\0"))
|
|
112
|
-
return invalid2(`a payment's ${what} takes 1\u2013${limit} characters`);
|
|
113
|
-
return value.trim();
|
|
114
|
-
}, "optionalText");
|
|
115
|
-
var oneOf = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
116
|
-
if (typeof value !== "string" || !allowed.includes(value))
|
|
117
|
-
return invalid2(`a payment's ${what} is one of ${allowed.join(", ")}`);
|
|
118
|
-
return value;
|
|
119
|
-
}, "oneOf");
|
|
120
|
-
var FIELDS = [
|
|
121
|
-
"amount",
|
|
122
|
-
"currency",
|
|
123
|
-
"direction",
|
|
124
|
-
"counterparty",
|
|
125
|
-
"counterparty_name",
|
|
126
|
-
"due_at",
|
|
127
|
-
"state",
|
|
128
|
-
"item",
|
|
129
|
-
"paid_at"
|
|
130
|
-
];
|
|
131
|
-
var validatePayment = /* @__PURE__ */ __name((input) => {
|
|
132
|
-
if (!input || typeof input !== "object" || Array.isArray(input))
|
|
133
|
-
return invalid2("a payment is an object");
|
|
134
|
-
const raw = input;
|
|
135
|
-
const unknown = Object.keys(raw).filter((key) => !FIELDS.includes(key));
|
|
136
|
-
if (unknown.length)
|
|
137
|
-
return invalid2(`a payment has no field ${unknown.join(", ")}; its fields are ${FIELDS.join(", ")}`);
|
|
138
|
-
const currency = typeof raw.currency === "string" ? raw.currency.trim().toUpperCase() : "";
|
|
139
|
-
if (!/^[A-Z]{3}$/.test(currency) || !CURRENCIES.has(currency))
|
|
140
|
-
return invalid2("a payment's currency is an ISO 4217 code, such as EUR or RUB");
|
|
141
|
-
const counterparty = optionalText(raw.counterparty, "counterparty", 80);
|
|
142
|
-
if (counterparty !== null && !COUNTERPARTY.test(counterparty))
|
|
143
|
-
return invalid2("a payment's counterparty is a person:, organization: or project: reference");
|
|
144
|
-
const state = oneOf(raw.state, PAYMENT_STATES, "state");
|
|
145
|
-
if (raw.paid_at != null && state !== "paid")
|
|
146
|
-
return invalid2("only a paid payment has paid_at");
|
|
147
|
-
return {
|
|
148
|
-
amount: amountOf(raw.amount),
|
|
149
|
-
currency,
|
|
150
|
-
direction: oneOf(raw.direction, PAYMENT_DIRECTIONS, "direction"),
|
|
151
|
-
counterparty,
|
|
152
|
-
counterparty_name: optionalText(raw.counterparty_name, "counterparty name", 200),
|
|
153
|
-
due_at: raw.due_at === void 0 || raw.due_at === null ? null : dateOf(raw.due_at),
|
|
154
|
-
state,
|
|
155
|
-
item: optionalText(raw.item, "item", 200),
|
|
156
|
-
// Left out when absent, so a finding staged before the field keeps its fingerprint.
|
|
157
|
-
...raw.paid_at == null ? {} : { paid_at: dateOf(raw.paid_at) }
|
|
158
|
-
};
|
|
159
|
-
}, "validatePayment");
|
|
160
|
-
var grouped = /* @__PURE__ */ __name((amount) => {
|
|
161
|
-
const [whole = "0", cents = "00"] = amount.split(".");
|
|
162
|
-
const digits = whole.replace(/\B(?=(\d{3})+(?!\d))/g, " ");
|
|
163
|
-
return cents === "00" ? digits : `${digits}.${cents}`;
|
|
164
|
-
}, "grouped");
|
|
165
|
-
var paymentTitle = /* @__PURE__ */ __name((fact) => {
|
|
166
|
-
const payment = fact.payment;
|
|
167
|
-
if (!payment)
|
|
168
|
-
return "";
|
|
169
|
-
const who = payment.counterparty_name ?? payment.counterparty;
|
|
170
|
-
const way = payment.direction === "to_us" ? "to us" : "from us";
|
|
171
|
-
const party = who === null ? "" : payment.direction === "to_us" ? ` from ${who}` : ` to ${who}`;
|
|
172
|
-
const due = payment.due_at === null ? "" : `, due ${payment.due_at.slice(8, 10)}.${payment.due_at.slice(5, 7)}`;
|
|
173
|
-
const item = payment.item === null ? "" : ` for ${payment.item}`;
|
|
174
|
-
return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
|
|
175
|
-
}, "paymentTitle");
|
|
46
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_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
|
|
47
|
+
var shownOf = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "shownOf");
|
|
48
|
+
var leftOut = /* @__PURE__ */ __name((fields) => fields.filter((field) => field.negatable).map((field) => field.name), "leftOut");
|
|
49
|
+
var has = /* @__PURE__ */ __name((fields, operator) => fields.some((field) => field.operators.includes(operator)), "has");
|
|
50
|
+
var syntaxOf = /* @__PURE__ */ __name((shown, backend) => [
|
|
51
|
+
"field:value",
|
|
52
|
+
...has(shown, "phrase") ? ['"a phrase"'] : [],
|
|
53
|
+
...has(shown, "wildcard") ? ["word*"] : [],
|
|
54
|
+
...backend === "native" ? ["terms joined by AND"] : ["AND OR NOT", "( )"],
|
|
55
|
+
...has(shown, "range") ? ["[a TO b] \xB7 > >= < <="] : []
|
|
56
|
+
].join(" \xB7 "), "syntaxOf");
|
|
57
|
+
var kindOf = /* @__PURE__ */ __name((field) => field.values ? `${field.type}: ${field.values.join("|")}` : `${field.type}: ${field.operators.join(", ")}`, "kindOf");
|
|
58
|
+
var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
|
|
59
|
+
const shown = shownOf(registry);
|
|
60
|
+
const negatable = leftOut(shown);
|
|
61
|
+
const rows = shown.map((field) => [field.name, kindOf(field), field.example]);
|
|
62
|
+
const widths = [0, 1].map((at) => Math.max(...rows.map((row) => (row[at] ?? "").length)));
|
|
63
|
+
return [
|
|
64
|
+
"Fields:",
|
|
65
|
+
...rows.map(([name = "", kind2 = "", example = ""]) => ` ${name.padEnd(widths[0] ?? 0)} ${kind2.padEnd(widths[1] ?? 0)} ${example}`.trimEnd()),
|
|
66
|
+
...registry.defaults && registry.defaults.length > 0 ? [`Defaults: ${registry.defaults.join(" ")} \u2014 name the field to change it`] : [],
|
|
67
|
+
...negatable.length > 0 ? [`Leave out: -${negatable[0]}:value or NOT ${negatable[0]}:value, for ${negatable.join(", ")}`] : [],
|
|
68
|
+
`Syntax: ${syntaxOf(shown, registry.backend)}`,
|
|
69
|
+
...guide ? [`Guide: ${guide}`] : []
|
|
70
|
+
].join("\n");
|
|
71
|
+
}, "fieldsHelp");
|
|
72
|
+
var queryDescription = /* @__PURE__ */ __name((registry) => {
|
|
73
|
+
const shown = shownOf(registry);
|
|
74
|
+
if (shown.length === 0)
|
|
75
|
+
return "field:value terms; this list filters by none yet, so any term is refused";
|
|
76
|
+
const negatable = leftOut(shown);
|
|
77
|
+
const terms = registry.backend === "native" ? `field:value terms joined by AND that narrow the list${negatable.length > 0 ? `; -field:value or NOT field:value leaves out what matches, for ${negatable.join(", ")} only` : ""}` : `field:value terms that narrow the list (Lucene: AND OR NOT, -field:value${has(shown, "range") ? ", [a TO b], > <" : ""})`;
|
|
78
|
+
const fields = shown.map((field) => field.values ? `${field.name} (${field.values.join("|")})` : field.name);
|
|
79
|
+
const defaults = registry.defaults?.length ? `; unless named: ${registry.defaults.join(" ")}` : "";
|
|
80
|
+
return `${terms}; fields: ${fields.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
|
|
81
|
+
}, "queryDescription");
|
|
176
82
|
|
|
177
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
83
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_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
|
|
178
84
|
var QUERY_LIMITS = {
|
|
179
85
|
bytes: 8192,
|
|
180
86
|
depth: 32,
|
|
@@ -218,7 +124,7 @@ function queryError(reason, span, alternative, context3 = {}, details = {}) {
|
|
|
218
124
|
__name(queryError, "queryError");
|
|
219
125
|
var walkQuery = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => walkQuery(node2)), "walkQuery");
|
|
220
126
|
|
|
221
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
127
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_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
|
|
222
128
|
var timezoneOf = /* @__PURE__ */ __name((given) => {
|
|
223
129
|
const zone = given ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? "UTC";
|
|
224
130
|
try {
|
|
@@ -368,7 +274,7 @@ var dateRange = /* @__PURE__ */ __name((lower, upper, lowerInclusive, upperInclu
|
|
|
368
274
|
};
|
|
369
275
|
}, "dateRange");
|
|
370
276
|
|
|
371
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
277
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_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
|
|
372
278
|
var wordsOf = /* @__PURE__ */ __name((text6) => text6.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
|
|
373
279
|
var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
|
|
374
280
|
var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
|
|
@@ -423,7 +329,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
|
|
|
423
329
|
}, "matches");
|
|
424
330
|
var evaluate = /* @__PURE__ */ __name((ast, fields, item, options = {}) => matches(ast.root, item, new Map(fields.map((field) => [field.name, field])), options), "evaluate");
|
|
425
331
|
|
|
426
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
332
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_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
|
|
427
333
|
var FIELD_TYPES = ["kw", "txt", "enum", "num", "time", "bool", "ref"];
|
|
428
334
|
var OPERATORS_BY_TYPE = {
|
|
429
335
|
kw: ["term", "phrase", "wildcard"],
|
|
@@ -502,44 +408,7 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
|
|
|
502
408
|
return [...own, ...relations, ...states];
|
|
503
409
|
}, "queryFieldsOf");
|
|
504
410
|
|
|
505
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
506
|
-
var shownOf = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "shownOf");
|
|
507
|
-
var leftOut = /* @__PURE__ */ __name((fields) => fields.filter((field) => field.negatable).map((field) => field.name), "leftOut");
|
|
508
|
-
var has = /* @__PURE__ */ __name((fields, operator) => fields.some((field) => field.operators.includes(operator)), "has");
|
|
509
|
-
var syntaxOf = /* @__PURE__ */ __name((shown, backend) => [
|
|
510
|
-
"field:value",
|
|
511
|
-
...has(shown, "phrase") ? ['"a phrase"'] : [],
|
|
512
|
-
...has(shown, "wildcard") ? ["word*"] : [],
|
|
513
|
-
...backend === "native" ? ["terms joined by AND"] : ["AND OR NOT", "( )"],
|
|
514
|
-
...has(shown, "range") ? ["[a TO b] \xB7 > >= < <="] : []
|
|
515
|
-
].join(" \xB7 "), "syntaxOf");
|
|
516
|
-
var kindOf = /* @__PURE__ */ __name((field) => field.values ? `${field.type}: ${field.values.join("|")}` : `${field.type}: ${field.operators.join(", ")}`, "kindOf");
|
|
517
|
-
var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
|
|
518
|
-
const shown = shownOf(registry);
|
|
519
|
-
const negatable = leftOut(shown);
|
|
520
|
-
const rows = shown.map((field) => [field.name, kindOf(field), field.example]);
|
|
521
|
-
const widths = [0, 1].map((at) => Math.max(...rows.map((row) => (row[at] ?? "").length)));
|
|
522
|
-
return [
|
|
523
|
-
"Fields:",
|
|
524
|
-
...rows.map(([name = "", kind2 = "", example = ""]) => ` ${name.padEnd(widths[0] ?? 0)} ${kind2.padEnd(widths[1] ?? 0)} ${example}`.trimEnd()),
|
|
525
|
-
...registry.defaults && registry.defaults.length > 0 ? [`Defaults: ${registry.defaults.join(" ")} \u2014 name the field to change it`] : [],
|
|
526
|
-
...negatable.length > 0 ? [`Leave out: -${negatable[0]}:value or NOT ${negatable[0]}:value, for ${negatable.join(", ")}`] : [],
|
|
527
|
-
`Syntax: ${syntaxOf(shown, registry.backend)}`,
|
|
528
|
-
...guide ? [`Guide: ${guide}`] : []
|
|
529
|
-
].join("\n");
|
|
530
|
-
}, "fieldsHelp");
|
|
531
|
-
var queryDescription = /* @__PURE__ */ __name((registry) => {
|
|
532
|
-
const shown = shownOf(registry);
|
|
533
|
-
if (shown.length === 0)
|
|
534
|
-
return "field:value terms; this list filters by none yet, so any term is refused";
|
|
535
|
-
const negatable = leftOut(shown);
|
|
536
|
-
const terms = registry.backend === "native" ? `field:value terms joined by AND that narrow the list${negatable.length > 0 ? `; -field:value or NOT field:value leaves out what matches, for ${negatable.join(", ")} only` : ""}` : `field:value terms that narrow the list (Lucene: AND OR NOT, -field:value${has(shown, "range") ? ", [a TO b], > <" : ""})`;
|
|
537
|
-
const fields = shown.map((field) => field.values ? `${field.name} (${field.values.join("|")})` : field.name);
|
|
538
|
-
const defaults = registry.defaults?.length ? `; unless named: ${registry.defaults.join(" ")}` : "";
|
|
539
|
-
return `${terms}; fields: ${fields.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
|
|
540
|
-
}, "queryDescription");
|
|
541
|
-
|
|
542
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.113.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
|
|
411
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_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
|
|
543
412
|
var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
|
|
544
413
|
var reserved = /* @__PURE__ */ new Set([
|
|
545
414
|
"+",
|
|
@@ -848,7 +717,7 @@ var implicitTextTerms = /* @__PURE__ */ __name((text6) => {
|
|
|
848
717
|
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] : []));
|
|
849
718
|
}, "implicitTextTerms");
|
|
850
719
|
|
|
851
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
720
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_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
|
|
852
721
|
var inContext = /* @__PURE__ */ __name((context3, run2) => {
|
|
853
722
|
try {
|
|
854
723
|
run2();
|
|
@@ -923,7 +792,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry, options = {}) => {
|
|
|
923
792
|
}, "validateQuery");
|
|
924
793
|
var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
|
|
925
794
|
|
|
926
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
795
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_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
|
|
927
796
|
var describeQuery = /* @__PURE__ */ __name((registry) => ({
|
|
928
797
|
entity: registry.entity,
|
|
929
798
|
backend: registry.backend,
|
|
@@ -994,7 +863,138 @@ var QUERY_REASONS = defineReasons([
|
|
|
994
863
|
details: [...SPAN, ...details]
|
|
995
864
|
})));
|
|
996
865
|
|
|
997
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/reference.js
|
|
867
|
+
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
|
|
868
|
+
var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
|
|
869
|
+
if (!Number.isSafeInteger(value) || value < minimum)
|
|
870
|
+
throw invalid();
|
|
871
|
+
return value;
|
|
872
|
+
}, "integer");
|
|
873
|
+
var formatMeetingReference = /* @__PURE__ */ __name((reference2) => {
|
|
874
|
+
const parts = [integer2(reference2.accountId), integer2(reference2.meetingId)];
|
|
875
|
+
if (reference2.transcriptId !== void 0)
|
|
876
|
+
parts.push(integer2(reference2.transcriptId));
|
|
877
|
+
if (reference2.cuePosition !== void 0) {
|
|
878
|
+
if (reference2.transcriptId === void 0)
|
|
879
|
+
throw invalid();
|
|
880
|
+
parts.push(integer2(reference2.cuePosition, 0));
|
|
881
|
+
}
|
|
882
|
+
return `meeting:${parts.join("/")}`;
|
|
883
|
+
}, "formatMeetingReference");
|
|
884
|
+
var parseMeetingReference = /* @__PURE__ */ __name((text6) => {
|
|
885
|
+
const value = text6.trim();
|
|
886
|
+
if (!value.startsWith("meeting:"))
|
|
887
|
+
throw invalid();
|
|
888
|
+
const parts = value.slice(8).split("/");
|
|
889
|
+
if (parts.length < 2 || parts.length > 4 || parts.some((part) => !/^\d+$/.test(part)))
|
|
890
|
+
throw invalid();
|
|
891
|
+
const ids2 = parts.map(Number);
|
|
892
|
+
const reference2 = {
|
|
893
|
+
type: "meeting",
|
|
894
|
+
accountId: integer2(ids2[0]),
|
|
895
|
+
meetingId: integer2(ids2[1]),
|
|
896
|
+
...ids2.length > 2 ? { transcriptId: integer2(ids2[2]) } : {},
|
|
897
|
+
...ids2.length > 3 ? { cuePosition: integer2(ids2[3], 0) } : {}
|
|
898
|
+
};
|
|
899
|
+
return reference2;
|
|
900
|
+
}, "parseMeetingReference");
|
|
901
|
+
var canonicalMeetingReference = /* @__PURE__ */ __name((text6) => formatMeetingReference(parseMeetingReference(text6)), "canonicalMeetingReference");
|
|
902
|
+
|
|
903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/payment.js
|
|
904
|
+
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
905
|
+
var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
|
|
906
|
+
var PAYMENT_STATES = ["expected", "paid", "cancelled"];
|
|
907
|
+
var invalid2 = /* @__PURE__ */ __name((message) => {
|
|
908
|
+
throw new CliError("validation_error", message);
|
|
909
|
+
}, "invalid");
|
|
910
|
+
var CURRENCIES = new Set(Intl.supportedValuesOf("currency"));
|
|
911
|
+
var AMOUNT = /^(\d{1,15})(?:\.(\d{1,2}))?$/;
|
|
912
|
+
var COUNTERPARTY = /^(person|organization|project):[1-9]\d*$/;
|
|
913
|
+
var amountOf = /* @__PURE__ */ __name((value) => {
|
|
914
|
+
const match = AMOUNT.exec(typeof value === "number" ? String(value) : typeof value === "string" ? value.trim() : "");
|
|
915
|
+
if (!match)
|
|
916
|
+
return invalid2("a payment's amount is a positive number with at most 2 decimals, such as 1200.50");
|
|
917
|
+
const amount = `${BigInt(match[1] ?? "0")}.${(match[2] ?? "").padEnd(2, "0")}`;
|
|
918
|
+
if (amount === "0.00")
|
|
919
|
+
return invalid2("a payment's amount is more than 0");
|
|
920
|
+
return amount;
|
|
921
|
+
}, "amountOf");
|
|
922
|
+
var dateOf = /* @__PURE__ */ __name((value) => {
|
|
923
|
+
const date = typeof value === "string" ? value.trim() : "";
|
|
924
|
+
if (!/^\d{4}-\d{2}-\d{2}$/.test(date) || (/* @__PURE__ */ new Date(`${date}T00:00:00Z`)).toISOString().slice(0, 10) !== date)
|
|
925
|
+
return invalid2("a payment's dates are ISO dates, such as 2026-10-31");
|
|
926
|
+
return date;
|
|
927
|
+
}, "dateOf");
|
|
928
|
+
var optionalText = /* @__PURE__ */ __name((value, what, limit) => {
|
|
929
|
+
if (value === void 0 || value === null)
|
|
930
|
+
return null;
|
|
931
|
+
if (typeof value !== "string" || !value.trim() || value.length > limit || value.includes("\0"))
|
|
932
|
+
return invalid2(`a payment's ${what} takes 1\u2013${limit} characters`);
|
|
933
|
+
return value.trim();
|
|
934
|
+
}, "optionalText");
|
|
935
|
+
var oneOf = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
936
|
+
if (typeof value !== "string" || !allowed.includes(value))
|
|
937
|
+
return invalid2(`a payment's ${what} is one of ${allowed.join(", ")}`);
|
|
938
|
+
return value;
|
|
939
|
+
}, "oneOf");
|
|
940
|
+
var FIELDS = [
|
|
941
|
+
"amount",
|
|
942
|
+
"currency",
|
|
943
|
+
"direction",
|
|
944
|
+
"counterparty",
|
|
945
|
+
"counterparty_name",
|
|
946
|
+
"due_at",
|
|
947
|
+
"state",
|
|
948
|
+
"item",
|
|
949
|
+
"paid_at"
|
|
950
|
+
];
|
|
951
|
+
var validatePayment = /* @__PURE__ */ __name((input) => {
|
|
952
|
+
if (!input || typeof input !== "object" || Array.isArray(input))
|
|
953
|
+
return invalid2("a payment is an object");
|
|
954
|
+
const raw = input;
|
|
955
|
+
const unknown = Object.keys(raw).filter((key) => !FIELDS.includes(key));
|
|
956
|
+
if (unknown.length)
|
|
957
|
+
return invalid2(`a payment has no field ${unknown.join(", ")}; its fields are ${FIELDS.join(", ")}`);
|
|
958
|
+
const currency = typeof raw.currency === "string" ? raw.currency.trim().toUpperCase() : "";
|
|
959
|
+
if (!/^[A-Z]{3}$/.test(currency) || !CURRENCIES.has(currency))
|
|
960
|
+
return invalid2("a payment's currency is an ISO 4217 code, such as EUR or RUB");
|
|
961
|
+
const counterparty = optionalText(raw.counterparty, "counterparty", 80);
|
|
962
|
+
if (counterparty !== null && !COUNTERPARTY.test(counterparty))
|
|
963
|
+
return invalid2("a payment's counterparty is a person:, organization: or project: reference");
|
|
964
|
+
const state = oneOf(raw.state, PAYMENT_STATES, "state");
|
|
965
|
+
if (raw.paid_at != null && state !== "paid")
|
|
966
|
+
return invalid2("only a paid payment has paid_at");
|
|
967
|
+
return {
|
|
968
|
+
amount: amountOf(raw.amount),
|
|
969
|
+
currency,
|
|
970
|
+
direction: oneOf(raw.direction, PAYMENT_DIRECTIONS, "direction"),
|
|
971
|
+
counterparty,
|
|
972
|
+
counterparty_name: optionalText(raw.counterparty_name, "counterparty name", 200),
|
|
973
|
+
due_at: raw.due_at === void 0 || raw.due_at === null ? null : dateOf(raw.due_at),
|
|
974
|
+
state,
|
|
975
|
+
item: optionalText(raw.item, "item", 200),
|
|
976
|
+
// Left out when absent, so a finding staged before the field keeps its fingerprint.
|
|
977
|
+
...raw.paid_at == null ? {} : { paid_at: dateOf(raw.paid_at) }
|
|
978
|
+
};
|
|
979
|
+
}, "validatePayment");
|
|
980
|
+
var grouped = /* @__PURE__ */ __name((amount) => {
|
|
981
|
+
const [whole = "0", cents = "00"] = amount.split(".");
|
|
982
|
+
const digits = whole.replace(/\B(?=(\d{3})+(?!\d))/g, " ");
|
|
983
|
+
return cents === "00" ? digits : `${digits}.${cents}`;
|
|
984
|
+
}, "grouped");
|
|
985
|
+
var paymentTitle = /* @__PURE__ */ __name((fact) => {
|
|
986
|
+
const payment = fact.payment;
|
|
987
|
+
if (!payment)
|
|
988
|
+
return "";
|
|
989
|
+
const who = payment.counterparty_name ?? payment.counterparty;
|
|
990
|
+
const way = payment.direction === "to_us" ? "to us" : "from us";
|
|
991
|
+
const party = who === null ? "" : payment.direction === "to_us" ? ` from ${who}` : ` to ${who}`;
|
|
992
|
+
const due = payment.due_at === null ? "" : `, due ${payment.due_at.slice(8, 10)}.${payment.due_at.slice(5, 7)}`;
|
|
993
|
+
const item = payment.item === null ? "" : ` for ${payment.item}`;
|
|
994
|
+
return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
|
|
995
|
+
}, "paymentTitle");
|
|
996
|
+
|
|
997
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
998
998
|
var context = {
|
|
999
999
|
command: "search meetings",
|
|
1000
1000
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -1106,7 +1106,7 @@ var liftMeetingFields = /* @__PURE__ */ __name((query, request, now, timezone) =
|
|
|
1106
1106
|
}, "liftMeetingFields");
|
|
1107
1107
|
var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
|
|
1108
1108
|
|
|
1109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/search-store.js
|
|
1110
1110
|
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
1111
1111
|
let before = Number.POSITIVE_INFINITY;
|
|
1112
1112
|
for (; ; ) {
|
|
@@ -1123,7 +1123,7 @@ var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, sig
|
|
|
1123
1123
|
}
|
|
1124
1124
|
}, "refreshMeetingIndex");
|
|
1125
1125
|
|
|
1126
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
1127
1127
|
var text = string();
|
|
1128
1128
|
var identifier = pipe(text, minLength(1));
|
|
1129
1129
|
var nullableText = nullable(text);
|
|
@@ -1295,7 +1295,7 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
1295
1295
|
meeting_repair: repair
|
|
1296
1296
|
};
|
|
1297
1297
|
|
|
1298
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1298
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/search/service-query.js
|
|
1299
1299
|
var BACKENDS = ["archive", "server", "both"];
|
|
1300
1300
|
var MAX_BRANCHES = 64;
|
|
1301
1301
|
var some = /* @__PURE__ */ __name((value) => value === void 0 ? [] : [value], "some");
|
|
@@ -1334,10 +1334,10 @@ var RELATIVE_TIME = /^\d+[mhd]$/i;
|
|
|
1334
1334
|
var OFFSET = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
1335
1335
|
var readsZone = /* @__PURE__ */ __name((ast, times) => walkQuery(ast.root).some((term) => times.has(term.field) && [term.value, term.upper].some((value) => value !== void 0 && value !== "*" && !RELATIVE_TIME.test(value) && !OFFSET.test(value))), "readsZone");
|
|
1336
1336
|
|
|
1337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1337
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/model.js
|
|
1338
1338
|
var MEETING_CALL_DIRECTIONS = ["in", "out"];
|
|
1339
1339
|
|
|
1340
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
1341
1341
|
var text2 = string();
|
|
1342
1342
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
1343
1343
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -1437,7 +1437,7 @@ var MEETING_QUERY = {
|
|
|
1437
1437
|
})
|
|
1438
1438
|
};
|
|
1439
1439
|
|
|
1440
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1440
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/store.js
|
|
1441
1441
|
var MEETING_DOCUMENT_ROLES = ["transcript", "recording", "notes"];
|
|
1442
1442
|
var TRANSCRIPT_WORDS = [
|
|
1443
1443
|
"Transcript",
|
|
@@ -1449,7 +1449,7 @@ var TRANSCRIPT_WORDS = [
|
|
|
1449
1449
|
];
|
|
1450
1450
|
var READ_BUDGET_EXCEEDED = "Meeting search exceeds its stored text byte budget";
|
|
1451
1451
|
|
|
1452
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1452
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
1453
1453
|
var text3 = string();
|
|
1454
1454
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
1455
1455
|
var iso2 = /* @__PURE__ */ __name((ms2) => ms2 === null ? null : new Date(ms2).toISOString(), "iso");
|
|
@@ -1733,7 +1733,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
1733
1733
|
};
|
|
1734
1734
|
}, "meetingHitsList");
|
|
1735
1735
|
|
|
1736
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
1737
1737
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
1738
1738
|
const parsed = urlOf(url);
|
|
1739
1739
|
if (!parsed)
|
|
@@ -1767,7 +1767,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
1767
1767
|
}
|
|
1768
1768
|
}, "urlOf");
|
|
1769
1769
|
|
|
1770
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1770
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
1771
1771
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
1772
1772
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
1773
1773
|
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");
|
|
@@ -1804,11 +1804,11 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
1804
1804
|
return kept;
|
|
1805
1805
|
}, "entryMetadata");
|
|
1806
1806
|
|
|
1807
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1807
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/calls.js
|
|
1808
1808
|
var CALL_DIRECTIONS = ["incoming", "outgoing", "internal"];
|
|
1809
1809
|
var CALL_OUTCOMES = ["answered", "voicemail", "busy", "no_answer", "failed"];
|
|
1810
1810
|
|
|
1811
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/call-answers.js
|
|
1812
1812
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
1813
1813
|
var ms = count4;
|
|
1814
1814
|
var id = pipe(number(), integer(), minValue(1));
|
|
@@ -1971,7 +1971,7 @@ var callStatsItem = /* @__PURE__ */ __name((found) => {
|
|
|
1971
1971
|
};
|
|
1972
1972
|
}, "callStatsItem");
|
|
1973
1973
|
|
|
1974
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1974
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
1975
1975
|
var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
|
|
1976
1976
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
1977
1977
|
const zone = timeZone ?? "UTC";
|
|
@@ -2106,10 +2106,10 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
2106
2106
|
};
|
|
2107
2107
|
}, "aggregateMeetingStats");
|
|
2108
2108
|
|
|
2109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/call-stats.js
|
|
2110
2110
|
var CALLBACK_WITHIN_MS = 24 * 60 * 60 * 1e3;
|
|
2111
2111
|
|
|
2112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
2113
2113
|
import { createHash } from "node:crypto";
|
|
2114
2114
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
2115
2115
|
reference: cue2.reference,
|
|
@@ -2123,7 +2123,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
2123
2123
|
text: cue2.text
|
|
2124
2124
|
})).digest("hex"), "meetingCueFingerprint");
|
|
2125
2125
|
|
|
2126
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
2127
2127
|
var EVENT_QUERY = defineQuery({
|
|
2128
2128
|
entity: "event",
|
|
2129
2129
|
backend: "sql",
|
|
@@ -2139,7 +2139,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
2139
2139
|
]
|
|
2140
2140
|
});
|
|
2141
2141
|
|
|
2142
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2142
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
2143
2143
|
var PARTICIPANT_RESPONSES = ["needs-action", "accepted", "tentative", "declined", "delegated"];
|
|
2144
2144
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
2145
2145
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
@@ -2163,7 +2163,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
2163
2163
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
2164
2164
|
}, "entryInWindow");
|
|
2165
2165
|
|
|
2166
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
2167
2167
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now(), { create = true } = {}) => {
|
|
2168
2168
|
const current = await store.meeting(details.meeting.id);
|
|
2169
2169
|
if (!current)
|
|
@@ -2208,7 +2208,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now(),
|
|
|
2208
2208
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
2209
2209
|
}, "linkEvent");
|
|
2210
2210
|
|
|
2211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
2212
2212
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text6) => text6.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
2213
2213
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
2214
2214
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -2232,7 +2232,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
2232
2232
|
};
|
|
2233
2233
|
}, "validateMeetingParticipantSearch");
|
|
2234
2234
|
|
|
2235
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2235
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
2236
2236
|
var MeetingError = class extends CliError {
|
|
2237
2237
|
static {
|
|
2238
2238
|
__name(this, "MeetingError");
|
|
@@ -2371,7 +2371,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id4, accountId)
|
|
|
2371
2371
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
2372
2372
|
}, "meetingSummaryAnswer");
|
|
2373
2373
|
|
|
2374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
2375
2375
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
2376
2376
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
2377
2377
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -2468,10 +2468,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id4, options) => {
|
|
|
2468
2468
|
};
|
|
2469
2469
|
}, "exportMeeting");
|
|
2470
2470
|
|
|
2471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
2472
2472
|
import { createHash as createHash2 } from "node:crypto";
|
|
2473
2473
|
|
|
2474
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2474
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
2475
2475
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
2476
2476
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
2477
2477
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone, such as 2026-11-09T09:00:00Z`);
|
|
@@ -2482,7 +2482,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
2482
2482
|
return new Date(value).toISOString();
|
|
2483
2483
|
}, "meetingTimestamp");
|
|
2484
2484
|
|
|
2485
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2485
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
2486
2486
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
2487
2487
|
var invalid3 = /* @__PURE__ */ __name((message) => {
|
|
2488
2488
|
throw new CliError("validation_error", message);
|
|
@@ -2657,7 +2657,7 @@ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
|
|
|
2657
2657
|
var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
|
|
2658
2658
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
2659
2659
|
|
|
2660
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2660
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
2661
2661
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
2662
2662
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
2663
2663
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -2668,7 +2668,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
2668
2668
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
2669
2669
|
var meetingFindingFingerprint = findingFingerprint;
|
|
2670
2670
|
|
|
2671
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2671
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/language.js
|
|
2672
2672
|
var LATIN_WORDS = {
|
|
2673
2673
|
en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
|
|
2674
2674
|
es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
|
|
@@ -2717,7 +2717,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
|
|
|
2717
2717
|
return null;
|
|
2718
2718
|
}, "transcriptLanguage");
|
|
2719
2719
|
|
|
2720
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
2721
2721
|
var contentHash = /* @__PURE__ */ __name(async (text6) => {
|
|
2722
2722
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text6));
|
|
2723
2723
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -2754,7 +2754,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
2754
2754
|
return time;
|
|
2755
2755
|
}, "timestamp");
|
|
2756
2756
|
|
|
2757
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2757
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
2758
2758
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2759
2759
|
const { identityExternalId, phone, ...fields } = p;
|
|
2760
2760
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -2970,7 +2970,7 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
|
2970
2970
|
return report;
|
|
2971
2971
|
}, "pull");
|
|
2972
2972
|
|
|
2973
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2973
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
2974
2974
|
var TranscriptTextError = class extends Error {
|
|
2975
2975
|
static {
|
|
2976
2976
|
__name(this, "TranscriptTextError");
|
|
@@ -3025,7 +3025,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
3025
3025
|
return { header, lines };
|
|
3026
3026
|
}, "parseTranscriptText");
|
|
3027
3027
|
|
|
3028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3028
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
3029
3029
|
var VttError = class extends Error {
|
|
3030
3030
|
static {
|
|
3031
3031
|
__name(this, "VttError");
|
|
@@ -3077,7 +3077,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
3077
3077
|
return cues;
|
|
3078
3078
|
}, "parseVtt");
|
|
3079
3079
|
|
|
3080
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3080
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
3081
3081
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
3082
3082
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
3083
3083
|
for (const file of files) {
|
|
@@ -3111,10 +3111,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
3111
3111
|
return report;
|
|
3112
3112
|
}, "importFiles");
|
|
3113
3113
|
|
|
3114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
3115
3115
|
var CHAT_MESSAGES_READ = 1e5;
|
|
3116
3116
|
|
|
3117
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3117
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
3118
3118
|
var MEETING_FIELD_KEYS = Object.freeze({
|
|
3119
3119
|
title: "title",
|
|
3120
3120
|
kind: "kind",
|
|
@@ -3127,7 +3127,7 @@ var MEETING_FIELDS2 = Object.freeze(Object.keys(MEETING_FIELD_KEYS));
|
|
|
3127
3127
|
var meetingFieldFlag = /* @__PURE__ */ __name((field) => `--${MEETING_FIELD_KEYS[field].replaceAll("_", "-")}`, "meetingFieldFlag");
|
|
3128
3128
|
var SNAKE_CASE2 = /^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$/;
|
|
3129
3129
|
|
|
3130
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3130
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
3131
3131
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
3132
3132
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
3133
3133
|
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)))
|
|
@@ -3148,7 +3148,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
3148
3148
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
3149
3149
|
}, "validateMeetingPassage");
|
|
3150
3150
|
|
|
3151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
3152
3152
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
3153
3153
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
3154
3154
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -3173,7 +3173,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
3173
3173
|
return { ...input, limit, maxReadBytes };
|
|
3174
3174
|
}, "validateMeetingPreparationContext");
|
|
3175
3175
|
|
|
3176
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3176
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
3177
3177
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
3178
3178
|
var id2 = pipe(string(), minLength(1));
|
|
3179
3179
|
var meetingProjectEvidence = strictObject({
|
|
@@ -3294,7 +3294,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
3294
3294
|
};
|
|
3295
3295
|
}, "meetingProjectEvidenceAnswer");
|
|
3296
3296
|
|
|
3297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3297
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
3298
3298
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
3299
3299
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
3300
3300
|
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) || [
|
|
@@ -3314,7 +3314,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
3314
3314
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
3315
3315
|
}, "validateMeetingHitSearch");
|
|
3316
3316
|
|
|
3317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3317
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
3318
3318
|
var ids = {
|
|
3319
3319
|
meeting_id: "meetingId",
|
|
3320
3320
|
identity_id: "participantIdentityId",
|
|
@@ -3405,7 +3405,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
|
|
|
3405
3405
|
return { project: project.trim(), options, query: frozen.join(" AND ") };
|
|
3406
3406
|
}, "prepareMeetingProjectEvidence");
|
|
3407
3407
|
|
|
3408
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3408
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
3409
3409
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
|
|
3410
3410
|
const prepared = prepareMeetingProjectEvidence(project, request, now);
|
|
3411
3411
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -3413,7 +3413,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
|
|
|
3413
3413
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
3414
3414
|
}, "readMeetingProjectEvidence");
|
|
3415
3415
|
|
|
3416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3416
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
3417
3417
|
var text4 = string();
|
|
3418
3418
|
var count6 = pipe(number(), integer(), minValue(0));
|
|
3419
3419
|
var id3 = pipe(number(), integer(), minValue(1));
|
|
@@ -3611,7 +3611,7 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
3611
3611
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
3612
3612
|
}), "eventItem");
|
|
3613
3613
|
|
|
3614
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3614
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/read-through.js
|
|
3615
3615
|
var MEETING_SERVER_BOUNDS = { calls: 3, pages: 2 };
|
|
3616
3616
|
var ISSUES = {
|
|
3617
3617
|
offline: ["permission_error", "meetings.server-offline"],
|
|
@@ -3908,10 +3908,10 @@ var meetingShowThrough = /* @__PURE__ */ __name(async (source, store, accountId,
|
|
|
3908
3908
|
return { details: fresh, foundIn: step.found.get(details.meeting.id) ?? "server", server: step.report };
|
|
3909
3909
|
}, "meetingShowThrough");
|
|
3910
3910
|
|
|
3911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
3912
3912
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
3913
3913
|
|
|
3914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
3915
3915
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
3916
3916
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
3917
3917
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -3941,14 +3941,14 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
3941
3941
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
3942
3942
|
}, "validateMeetingRelatedHistory");
|
|
3943
3943
|
|
|
3944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
3945
3945
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
3946
3946
|
|
|
3947
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
3948
3948
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
3949
3949
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
3950
3950
|
|
|
3951
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3951
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
3952
3952
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
3953
3953
|
input.signal?.throwIfAborted();
|
|
3954
3954
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -3969,10 +3969,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
3969
3969
|
return { ...input, limit, maxReadBytes };
|
|
3970
3970
|
}, "validateMeetingSeriesHistory");
|
|
3971
3971
|
|
|
3972
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3972
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
3973
3973
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
3974
3974
|
|
|
3975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
3976
3976
|
function invalid4(field, response = false) {
|
|
3977
3977
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
3978
3978
|
}
|
|
@@ -4001,7 +4001,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
4001
4001
|
cursorDetails(value);
|
|
4002
4002
|
}, "validateMeetingSeriesInventoryCursor");
|
|
4003
4003
|
|
|
4004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/meetings/tag-answers.js
|
|
4005
4005
|
var text5 = string();
|
|
4006
4006
|
var storeId = pipe(number(), integer(), minValue(1));
|
|
4007
4007
|
var meetingTagChange = strictObject({
|