@wirecat/hubspot-cli 0.2.0 → 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 +17 -0
- package/contracts/wirecat.json +40 -2
- package/dist/bin/hubspot.js +2 -2
- package/dist/bundle/agent-A7ARC3QB.js +40 -0
- package/dist/bundle/{all-profiles-64JAUYW4.js → all-profiles-6452VSJB.js} +64 -22
- package/dist/bundle/{anthropic-VJOS4OUM.js → anthropic-VQUOVYOW.js} +6 -6
- package/dist/bundle/{app-server-GXV2OFML.js → app-server-FFYKM37G.js} +79 -68
- package/dist/bundle/{bun-M3J2QTR3.js → bun-AJPJ4ZUN.js} +2 -2
- package/dist/bundle/{bun-sqlite-IX3XYA5F.js → bun-sqlite-AGXGSF6D.js} +7 -7
- package/dist/bundle/{chunk-N2XADGL4.js → chunk-2A64XS22.js} +4 -4
- package/dist/bundle/{chunk-Q2OLOMHL.js → chunk-2HYGCLKN.js} +93 -565
- package/dist/bundle/{chunk-FOZYMDRL.js → chunk-2NCO4E4T.js} +6 -6
- package/dist/bundle/{chunk-FBCCBCFH.js → chunk-2PRVWEJC.js} +3 -3
- package/dist/bundle/{chunk-LOBVOGOE.js → chunk-3DIXAEGH.js} +4 -4
- package/dist/bundle/{chunk-O3DYRCIT.js → chunk-3I2FGNWO.js} +1 -1
- package/dist/bundle/{chunk-65TWQ7BV.js → chunk-3PEKYGZ3.js} +2 -2
- package/dist/bundle/{chunk-DRWWJLI6.js → chunk-3R4KRNUZ.js} +8 -8
- package/dist/bundle/{chunk-2VGD63G6.js → chunk-3TEFE6YU.js} +7 -7
- package/dist/bundle/{chunk-3WLYWRGG.js → chunk-3WIVJJNB.js} +19 -17
- package/dist/bundle/{chunk-TI46WQXQ.js → chunk-4DNHXRCJ.js} +7 -7
- package/dist/bundle/{chunk-QU25DA5N.js → chunk-5AYKCKSE.js} +11 -11
- package/dist/bundle/chunk-5HD64ETI.js +561 -0
- package/dist/bundle/{chunk-CWXOXIWS.js → chunk-5K3FGXZH.js} +1 -1
- package/dist/bundle/{chunk-24ERVFJP.js → chunk-5YNAVVCW.js} +3 -3
- package/dist/bundle/{chunk-2UOJ7DLZ.js → chunk-77CUE3VX.js} +3 -3
- package/dist/bundle/{chunk-36ITRDYY.js → chunk-7LQRXVQ3.js} +783 -482
- package/dist/bundle/{chunk-E5WLE7BM.js → chunk-7NZT7Y55.js} +1 -1
- package/dist/bundle/{chunk-C32AKHTY.js → chunk-7UEL65GQ.js} +35 -12
- package/dist/bundle/chunk-7VHBS5BJ.js +108 -0
- package/dist/bundle/{chunk-O55RWNSH.js → chunk-A6UFH3QU.js} +4 -4
- package/dist/bundle/{chunk-WE4UFASG.js → chunk-ABXVU5O4.js} +8 -1
- package/dist/bundle/{chunk-4W6BMH45.js → chunk-AF7DANIR.js} +2 -100
- package/dist/bundle/{chunk-TLKEPUAV.js → chunk-AFL2C4JR.js} +60 -50
- package/dist/bundle/{chunk-2VGZRYEH.js → chunk-ARTJLL7W.js} +6 -6
- package/dist/bundle/chunk-AVUMH42T.js +194 -0
- package/dist/bundle/chunk-B2W3C4N6.js +338 -0
- package/dist/bundle/{chunk-FKA7DOCK.js → chunk-B3EH22CO.js} +1 -1
- package/dist/bundle/{chunk-E52JAS35.js → chunk-BAUK2MD5.js} +6 -6
- package/dist/bundle/{chunk-JLDBMEKZ.js → chunk-BN22EKQQ.js} +2 -2
- package/dist/bundle/{chunk-DB2XKHI4.js → chunk-BUGROVF3.js} +2 -2
- package/dist/bundle/{chunk-DSP36YHQ.js → chunk-CBCEMFCF.js} +2 -2
- package/dist/bundle/{chunk-MFNMKHML.js → chunk-CYADK744.js} +1020 -1637
- package/dist/bundle/{chunk-HZRQLAHO.js → chunk-DQB5JMTY.js} +1 -1
- package/dist/bundle/{chunk-URX6YDUL.js → chunk-DQP2GAAO.js} +75 -66
- package/dist/bundle/{chunk-FPUGMDJV.js → chunk-DSRXCLPO.js} +1 -1
- package/dist/bundle/{chunk-UUMUL4L3.js → chunk-DW23LM47.js} +2 -2
- package/dist/bundle/{chunk-TKVL2C3B.js → chunk-E4X7JAFC.js} +3 -3
- package/dist/bundle/{chunk-NUU4WZVL.js → chunk-EE4JSYGZ.js} +3 -3
- package/dist/bundle/{chunk-NWHEHV3K.js → chunk-EMOVVERN.js} +5 -5
- package/dist/bundle/{chunk-PVKF24ZW.js → chunk-FIVD4HM4.js} +8 -8
- package/dist/bundle/{chunk-QJW35N5V.js → chunk-GC6FLHZF.js} +12 -12
- package/dist/bundle/{chunk-TP7GDWVF.js → chunk-GRFICQTZ.js} +1 -1
- package/dist/bundle/{chunk-X2M6NIQG.js → chunk-HPZRUY6S.js} +1 -1
- package/dist/bundle/{chunk-CLAN3FES.js → chunk-IBTMK5KD.js} +54 -34
- package/dist/bundle/{chunk-5A6ZYNAQ.js → chunk-IQ2XZ62J.js} +18 -18
- package/dist/bundle/{chunk-DBEQI5YM.js → chunk-ITGNDZRR.js} +3 -3
- package/dist/bundle/{chunk-W53EJOFQ.js → chunk-IXZLMFPO.js} +1 -1
- package/dist/bundle/{chunk-TOSCB4SO.js → chunk-J5P5VSRG.js} +16 -10
- package/dist/bundle/{chunk-Z73OL5HV.js → chunk-J6C2QWL5.js} +3 -3
- package/dist/bundle/{chunk-VOH7S5M4.js → chunk-JG7YMHNB.js} +3229 -3116
- package/dist/bundle/{chunk-RMIYKDUL.js → chunk-JK2SNLU5.js} +17 -17
- package/dist/bundle/{chunk-43EKCUBJ.js → chunk-JP2HJXFO.js} +3 -3
- package/dist/bundle/{chunk-DFCHHR5M.js → chunk-JUKAIXKY.js} +1 -1
- package/dist/bundle/{chunk-5GBUCHRU.js → chunk-KO4VR5NK.js} +4 -4
- package/dist/bundle/{chunk-PPHBRESD.js → chunk-KVXEEKBB.js} +2 -2
- package/dist/bundle/{chunk-SDQGB4KB.js → chunk-L433IDOX.js} +9 -9
- package/dist/bundle/chunk-LA3YU4K7.js +40 -0
- package/dist/bundle/{chunk-ECEZOLOD.js → chunk-LKSNISYV.js} +4 -4
- package/dist/bundle/{chunk-5K7QLJMM.js → chunk-LT5KE44Q.js} +226 -226
- package/dist/bundle/chunk-M763RNWP.js +733 -0
- package/dist/bundle/chunk-M7XLG6AN.js +353 -0
- package/dist/bundle/{chunk-IMJQRPLN.js → chunk-NNMU2TDU.js} +1 -1
- package/dist/bundle/chunk-NTQBS2JL.js +52 -0
- package/dist/bundle/{chunk-HCAZV5NP.js → chunk-NZGI74GS.js} +6 -6
- package/dist/bundle/{chunk-W7HM2VGO.js → chunk-O3VM5PTJ.js} +1 -1
- package/dist/bundle/{chunk-IJADZW42.js → chunk-OPVNUI4M.js} +3 -3
- package/dist/bundle/{chunk-7ELMWE3P.js → chunk-PHXOL5HZ.js} +176 -160
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-B3MANLNK.js → chunk-PLRUUXK7.js} +19 -233
- package/dist/bundle/{chunk-RR5MX5TM.js → chunk-PMP37KLR.js} +4 -4
- package/dist/bundle/{chunk-FTFV3HFW.js → chunk-Q27QAB4X.js} +9 -9
- package/dist/bundle/{chunk-LXZ66MCH.js → chunk-QFZD6MTF.js} +35 -29
- package/dist/bundle/{chunk-2QZK5BEP.js → chunk-RVWGFD32.js} +30 -15
- package/dist/bundle/{chunk-MVA5HVKL.js → chunk-S4UUN6LD.js} +18 -0
- package/dist/bundle/{chunk-QGFX5MXL.js → chunk-SEELWPRD.js} +9 -9
- package/dist/bundle/{chunk-GPYCBYX5.js → chunk-SMTTIKZ5.js} +12 -12
- package/dist/bundle/{chunk-YMCY7VRE.js → chunk-TDQJS3JG.js} +7 -7
- package/dist/bundle/{chunk-HC5ZWE5X.js → chunk-TIHDBKA7.js} +2 -2
- package/dist/bundle/{chunk-NHHJHXMQ.js → chunk-U6XA3OOM.js} +2 -2
- package/dist/bundle/{chunk-NXERIDPJ.js → chunk-VQEAZXTV.js} +7 -7
- package/dist/bundle/{chunk-P5BHKKBI.js → chunk-VW5F6FK3.js} +4 -4
- package/dist/bundle/{chunk-XRREFEIW.js → chunk-WCQW4GYO.js} +7 -7
- package/dist/bundle/{chunk-H3TNVEQX.js → chunk-WGBVRDY3.js} +29 -4
- package/dist/bundle/chunk-WRCKE5ND.js +80 -0
- package/dist/bundle/{chunk-TBJYLC5K.js → chunk-X5S5KUSU.js} +75 -75
- package/dist/bundle/command-contract-R2FGN7CQ.js +40 -0
- package/dist/bundle/{command-server-entry-DJKVVZCQ.js → command-server-entry-GJSMDSNE.js} +29 -29
- package/dist/bundle/{decode-FC65Y4IV.js → decode-6PLXHVHW.js} +6 -6
- package/dist/bundle/{dispatch-KOISQ5QJ.js → dispatch-TAQ7635E.js} +8 -8
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/{echarts-FVTUDXDU.js → echarts-UZ7QLRE2.js} +2 -2
- package/dist/bundle/{embed-VNBZFPYH.js → embed-AWLL4EBF.js} +7 -7
- package/dist/bundle/{embedder-6U4NOFRO.js → embedder-MM225YJ6.js} +10 -10
- package/dist/bundle/{failure-FZ6VYKEQ.js → failure-MR2XVHFP.js} +3 -3
- package/dist/bundle/first-run-MAUI6QJ7.js +29 -0
- package/dist/bundle/first-screen-SCDV7TXT.js +40 -0
- package/dist/bundle/hubspot.js +26 -26
- package/dist/bundle/{instructions-HET7BCYK.js → instructions-ZJ7U3QUE.js} +1 -1
- package/dist/bundle/{mcp-RGNRW77S.js → mcp-CNV7F2XZ.js} +2 -2
- package/dist/bundle/meeting-combined-EL5XZIJ5.js +25 -0
- package/dist/bundle/meeting-model-OYXB2NOE.js +25 -0
- package/dist/bundle/{meeting-semantic-JY3OGCBS.js → meeting-semantic-S3DBB7XD.js} +7 -7
- package/dist/bundle/{node-CXZIFHZC.js → node-HGCZGZ4R.js} +2 -2
- package/dist/bundle/{node-sqlite-P3O7XN7Q.js → node-sqlite-RKYSRKEB.js} +8 -8
- package/dist/bundle/oauth-PYDCAQ7Y.js +20 -0
- package/dist/bundle/{open-F4P6YV54.js → open-UCDSQUN2.js} +6 -6
- package/dist/bundle/{openai-4AICLIK3.js → openai-Y4F5ZC7O.js} +16 -16
- package/dist/bundle/{process-5RUXWGYS.js → process-P7FB7YO7.js} +1 -1
- package/dist/bundle/{program-XA4C44Z4.js → program-2D5D32HK.js} +682 -241
- package/dist/bundle/{prompt-NFMDVBZ4.js → prompt-E5TKZ37Q.js} +6 -6
- package/dist/bundle/{recognize-DKN3RY4V.js → recognize-5NYPTSLT.js} +5 -5
- package/dist/bundle/{remote-6QHAGQWY.js → remote-U4LUAHF2.js} +10 -10
- package/dist/bundle/{rerank-M4KHEHUZ.js → rerank-AJAVKK5L.js} +8 -8
- package/dist/bundle/{schemas-JRL3DLMP.js → schemas-QLQ2K6DL.js} +7 -33
- package/dist/bundle/{serve-DNU43ND6.js → serve-4UJ3R5IP.js} +11 -11
- package/dist/bundle/server-CN6VQNNF.js +86 -0
- package/dist/bundle/{server-ATG5KY7K.js → server-OJPCTV77.js} +73 -61
- package/dist/bundle/{source-54HR4IWG.js → source-VHDK74YS.js} +73 -66
- package/dist/bundle/{sqlite-runtime-EMQAC63N.js → sqlite-runtime-KLEA4XAU.js} +7 -7
- package/dist/bundle/{state-T45CX7VY.js → state-COGSYMVH.js} +7 -7
- package/dist/bundle/{store-6TZ2FCVA.js → store-BJXCSP26.js} +25 -24
- package/dist/bundle/store-HXA2MRWI.js +32 -0
- package/dist/bundle/{store-6LCEVBAZ.js → store-V5UMSWK4.js} +27 -22
- package/dist/bundle/store-maintenance-command-AC7GGLYC.js +73 -0
- package/dist/bundle/surface-ZZNG3OW2.js +72 -0
- package/dist/bundle/writer-CZYA657G.js +86 -0
- package/dist/config.d.ts +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -5
- package/dist/config.js.map +1 -1
- package/dist/generated/manifest.d.ts.map +1 -1
- package/dist/generated/manifest.js +0 -115
- package/dist/generated/manifest.js.map +1 -1
- package/dist/generated/types.d.ts +160 -0
- package/dist/generated/types.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-C6CBFXZF.js +0 -40
- package/dist/bundle/first-run-UWAFSINQ.js +0 -29
- package/dist/bundle/first-screen-RTVMGHAE.js +0 -40
- package/dist/bundle/meeting-combined-L5AGBPYX.js +0 -25
- package/dist/bundle/meeting-model-NTB4RK3F.js +0 -25
- package/dist/bundle/oauth-HNCY4B2S.js +0 -20
- package/dist/bundle/server-VNWVVH7A.js +0 -77
- package/dist/bundle/store-DXWYNVVB.js +0 -32
- package/dist/bundle/store-maintenance-command-J57HCJYY.js +0 -68
- package/dist/bundle/writer-NLLI5YRM.js +0 -79
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
pageSchema,
|
|
12
12
|
reference,
|
|
13
13
|
stepOf
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-J5P5VSRG.js";
|
|
15
15
|
import {
|
|
16
16
|
array,
|
|
17
17
|
boolean,
|
|
@@ -34,149 +34,55 @@ import {
|
|
|
34
34
|
string,
|
|
35
35
|
union,
|
|
36
36
|
variant
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-S4UUN6LD.js";
|
|
38
38
|
import {
|
|
39
39
|
CliError,
|
|
40
40
|
isCliError,
|
|
41
41
|
singleLine,
|
|
42
42
|
visibleControls
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-BUGROVF3.js";
|
|
44
44
|
import {
|
|
45
45
|
__name
|
|
46
46
|
} from "./chunk-ZVVMGPBJ.js";
|
|
47
47
|
|
|
48
|
-
// node_modules/.pnpm/@wirecat+cli-
|
|
49
|
-
var
|
|
50
|
-
var
|
|
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
|
-
|
|
84
|
-
|
|
85
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/meetings/payment.js
|
|
86
|
-
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
87
|
-
var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
|
|
88
|
-
var PAYMENT_STATES = ["expected", "paid", "cancelled"];
|
|
89
|
-
var invalid2 = /* @__PURE__ */ __name((message) => {
|
|
90
|
-
throw new CliError("validation_error", message);
|
|
91
|
-
}, "invalid");
|
|
92
|
-
var CURRENCIES = new Set(Intl.supportedValuesOf("currency"));
|
|
93
|
-
var AMOUNT = /^(\d{1,15})(?:\.(\d{1,2}))?$/;
|
|
94
|
-
var COUNTERPARTY = /^(person|organization|project):[1-9]\d*$/;
|
|
95
|
-
var amountOf = /* @__PURE__ */ __name((value) => {
|
|
96
|
-
const match = AMOUNT.exec(typeof value === "number" ? String(value) : typeof value === "string" ? value.trim() : "");
|
|
97
|
-
if (!match)
|
|
98
|
-
return invalid2("a payment's amount is a positive number with at most 2 decimals, such as 1200.50");
|
|
99
|
-
const amount = `${BigInt(match[1] ?? "0")}.${(match[2] ?? "").padEnd(2, "0")}`;
|
|
100
|
-
if (amount === "0.00")
|
|
101
|
-
return invalid2("a payment's amount is more than 0");
|
|
102
|
-
return amount;
|
|
103
|
-
}, "amountOf");
|
|
104
|
-
var dateOf = /* @__PURE__ */ __name((value) => {
|
|
105
|
-
const date = typeof value === "string" ? value.trim() : "";
|
|
106
|
-
if (!/^\d{4}-\d{2}-\d{2}$/.test(date) || (/* @__PURE__ */ new Date(`${date}T00:00:00Z`)).toISOString().slice(0, 10) !== date)
|
|
107
|
-
return invalid2("a payment's dates are ISO dates, such as 2026-10-31");
|
|
108
|
-
return date;
|
|
109
|
-
}, "dateOf");
|
|
110
|
-
var optionalText = /* @__PURE__ */ __name((value, what, limit) => {
|
|
111
|
-
if (value === void 0 || value === null)
|
|
112
|
-
return null;
|
|
113
|
-
if (typeof value !== "string" || !value.trim() || value.length > limit || value.includes("\0"))
|
|
114
|
-
return invalid2(`a payment's ${what} takes 1\u2013${limit} characters`);
|
|
115
|
-
return value.trim();
|
|
116
|
-
}, "optionalText");
|
|
117
|
-
var oneOf = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
118
|
-
if (typeof value !== "string" || !allowed.includes(value))
|
|
119
|
-
return invalid2(`a payment's ${what} is one of ${allowed.join(", ")}`);
|
|
120
|
-
return value;
|
|
121
|
-
}, "oneOf");
|
|
122
|
-
var FIELDS = [
|
|
123
|
-
"amount",
|
|
124
|
-
"currency",
|
|
125
|
-
"direction",
|
|
126
|
-
"counterparty",
|
|
127
|
-
"counterparty_name",
|
|
128
|
-
"due_at",
|
|
129
|
-
"state",
|
|
130
|
-
"item",
|
|
131
|
-
"paid_at"
|
|
132
|
-
];
|
|
133
|
-
var validatePayment = /* @__PURE__ */ __name((input) => {
|
|
134
|
-
if (!input || typeof input !== "object" || Array.isArray(input))
|
|
135
|
-
return invalid2("a payment is an object");
|
|
136
|
-
const raw = input;
|
|
137
|
-
const unknown = Object.keys(raw).filter((key) => !FIELDS.includes(key));
|
|
138
|
-
if (unknown.length)
|
|
139
|
-
return invalid2(`a payment has no field ${unknown.join(", ")}; its fields are ${FIELDS.join(", ")}`);
|
|
140
|
-
const currency = typeof raw.currency === "string" ? raw.currency.trim().toUpperCase() : "";
|
|
141
|
-
if (!/^[A-Z]{3}$/.test(currency) || !CURRENCIES.has(currency))
|
|
142
|
-
return invalid2("a payment's currency is an ISO 4217 code, such as EUR or RUB");
|
|
143
|
-
const counterparty = optionalText(raw.counterparty, "counterparty", 80);
|
|
144
|
-
if (counterparty !== null && !COUNTERPARTY.test(counterparty))
|
|
145
|
-
return invalid2("a payment's counterparty is a person:, organization: or project: reference");
|
|
146
|
-
const state = oneOf(raw.state, PAYMENT_STATES, "state");
|
|
147
|
-
if (raw.paid_at != null && state !== "paid")
|
|
148
|
-
return invalid2("only a paid payment has paid_at");
|
|
149
|
-
return {
|
|
150
|
-
amount: amountOf(raw.amount),
|
|
151
|
-
currency,
|
|
152
|
-
direction: oneOf(raw.direction, PAYMENT_DIRECTIONS, "direction"),
|
|
153
|
-
counterparty,
|
|
154
|
-
counterparty_name: optionalText(raw.counterparty_name, "counterparty name", 200),
|
|
155
|
-
due_at: raw.due_at === void 0 || raw.due_at === null ? null : dateOf(raw.due_at),
|
|
156
|
-
state,
|
|
157
|
-
item: optionalText(raw.item, "item", 200),
|
|
158
|
-
// Left out when absent, so a finding staged before the field keeps its fingerprint.
|
|
159
|
-
...raw.paid_at == null ? {} : { paid_at: dateOf(raw.paid_at) }
|
|
160
|
-
};
|
|
161
|
-
}, "validatePayment");
|
|
162
|
-
var grouped = /* @__PURE__ */ __name((amount) => {
|
|
163
|
-
const [whole = "0", cents = "00"] = amount.split(".");
|
|
164
|
-
const digits = whole.replace(/\B(?=(\d{3})+(?!\d))/g, " ");
|
|
165
|
-
return cents === "00" ? digits : `${digits}.${cents}`;
|
|
166
|
-
}, "grouped");
|
|
167
|
-
var paymentTitle = /* @__PURE__ */ __name((fact) => {
|
|
168
|
-
const payment = fact.payment;
|
|
169
|
-
if (!payment)
|
|
170
|
-
return "";
|
|
171
|
-
const who = payment.counterparty_name ?? payment.counterparty;
|
|
172
|
-
const way = payment.direction === "to_us" ? "to us" : "from us";
|
|
173
|
-
const party = who === null ? "" : payment.direction === "to_us" ? ` from ${who}` : ` to ${who}`;
|
|
174
|
-
const due = payment.due_at === null ? "" : `, due ${payment.due_at.slice(8, 10)}.${payment.due_at.slice(5, 7)}`;
|
|
175
|
-
const item = payment.item === null ? "" : ` for ${payment.item}`;
|
|
176
|
-
return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
|
|
177
|
-
}, "paymentTitle");
|
|
48
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.119.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
|
|
49
|
+
var shownOf = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "shownOf");
|
|
50
|
+
var leftOut = /* @__PURE__ */ __name((fields) => fields.filter((field) => field.negatable).map((field) => field.name), "leftOut");
|
|
51
|
+
var has = /* @__PURE__ */ __name((fields, operator) => fields.some((field) => field.operators.includes(operator)), "has");
|
|
52
|
+
var syntaxOf = /* @__PURE__ */ __name((shown, backend) => [
|
|
53
|
+
"field:value",
|
|
54
|
+
...has(shown, "phrase") ? ['"a phrase"'] : [],
|
|
55
|
+
...has(shown, "wildcard") ? ["word*"] : [],
|
|
56
|
+
...backend === "native" ? ["terms joined by AND"] : ["AND OR NOT", "( )"],
|
|
57
|
+
...has(shown, "range") ? ["[a TO b] \xB7 > >= < <="] : []
|
|
58
|
+
].join(" \xB7 "), "syntaxOf");
|
|
59
|
+
var kindOf = /* @__PURE__ */ __name((field) => field.values ? `${field.type}: ${field.values.join("|")}` : `${field.type}: ${field.operators.join(", ")}`, "kindOf");
|
|
60
|
+
var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
|
|
61
|
+
const shown = shownOf(registry);
|
|
62
|
+
const negatable = leftOut(shown);
|
|
63
|
+
const rows = shown.map((field) => [field.name, kindOf(field), field.example]);
|
|
64
|
+
const widths = [0, 1].map((at) => Math.max(...rows.map((row) => (row[at] ?? "").length)));
|
|
65
|
+
return [
|
|
66
|
+
"Fields:",
|
|
67
|
+
...rows.map(([name = "", kind2 = "", example = ""]) => ` ${name.padEnd(widths[0] ?? 0)} ${kind2.padEnd(widths[1] ?? 0)} ${example}`.trimEnd()),
|
|
68
|
+
...registry.defaults && registry.defaults.length > 0 ? [`Defaults: ${registry.defaults.join(" ")} \u2014 name the field to change it`] : [],
|
|
69
|
+
...negatable.length > 0 ? [`Leave out: -${negatable[0]}:value or NOT ${negatable[0]}:value, for ${negatable.join(", ")}`] : [],
|
|
70
|
+
`Syntax: ${syntaxOf(shown, registry.backend)}`,
|
|
71
|
+
...guide ? [`Guide: ${guide}`] : []
|
|
72
|
+
].join("\n");
|
|
73
|
+
}, "fieldsHelp");
|
|
74
|
+
var queryDescription = /* @__PURE__ */ __name((registry) => {
|
|
75
|
+
const shown = shownOf(registry);
|
|
76
|
+
if (shown.length === 0)
|
|
77
|
+
return "field:value terms; this list filters by none yet, so any term is refused";
|
|
78
|
+
const negatable = leftOut(shown);
|
|
79
|
+
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], > <" : ""})`;
|
|
80
|
+
const fields = shown.map((field) => field.values ? `${field.name} (${field.values.join("|")})` : field.name);
|
|
81
|
+
const defaults = registry.defaults?.length ? `; unless named: ${registry.defaults.join(" ")}` : "";
|
|
82
|
+
return `${terms}; fields: ${fields.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
|
|
83
|
+
}, "queryDescription");
|
|
178
84
|
|
|
179
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
85
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.119.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
|
|
180
86
|
var QUERY_LIMITS = {
|
|
181
87
|
bytes: 8192,
|
|
182
88
|
depth: 32,
|
|
@@ -220,7 +126,7 @@ function queryError(reason, span, alternative, context3 = {}, details = {}) {
|
|
|
220
126
|
__name(queryError, "queryError");
|
|
221
127
|
var walkQuery = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => walkQuery(node2)), "walkQuery");
|
|
222
128
|
|
|
223
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
129
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.119.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
|
|
224
130
|
var timezoneOf = /* @__PURE__ */ __name((given) => {
|
|
225
131
|
const zone = given ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? "UTC";
|
|
226
132
|
try {
|
|
@@ -370,7 +276,7 @@ var dateRange = /* @__PURE__ */ __name((lower, upper, lowerInclusive, upperInclu
|
|
|
370
276
|
};
|
|
371
277
|
}, "dateRange");
|
|
372
278
|
|
|
373
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
279
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.119.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
|
|
374
280
|
var wordsOf = /* @__PURE__ */ __name((text6) => text6.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
|
|
375
281
|
var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
|
|
376
282
|
var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
|
|
@@ -425,7 +331,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
|
|
|
425
331
|
}, "matches");
|
|
426
332
|
var evaluate = /* @__PURE__ */ __name((ast, fields, item, options = {}) => matches(ast.root, item, new Map(fields.map((field) => [field.name, field])), options), "evaluate");
|
|
427
333
|
|
|
428
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
334
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.119.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
|
|
429
335
|
var FIELD_TYPES = ["kw", "txt", "enum", "num", "time", "bool", "ref"];
|
|
430
336
|
var OPERATORS_BY_TYPE = {
|
|
431
337
|
kw: ["term", "phrase", "wildcard"],
|
|
@@ -504,44 +410,7 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
|
|
|
504
410
|
return [...own, ...relations, ...states];
|
|
505
411
|
}, "queryFieldsOf");
|
|
506
412
|
|
|
507
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
508
|
-
var shownOf = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "shownOf");
|
|
509
|
-
var leftOut = /* @__PURE__ */ __name((fields) => fields.filter((field) => field.negatable).map((field) => field.name), "leftOut");
|
|
510
|
-
var has = /* @__PURE__ */ __name((fields, operator) => fields.some((field) => field.operators.includes(operator)), "has");
|
|
511
|
-
var syntaxOf = /* @__PURE__ */ __name((shown, backend) => [
|
|
512
|
-
"field:value",
|
|
513
|
-
...has(shown, "phrase") ? ['"a phrase"'] : [],
|
|
514
|
-
...has(shown, "wildcard") ? ["word*"] : [],
|
|
515
|
-
...backend === "native" ? ["terms joined by AND"] : ["AND OR NOT", "( )"],
|
|
516
|
-
...has(shown, "range") ? ["[a TO b] \xB7 > >= < <="] : []
|
|
517
|
-
].join(" \xB7 "), "syntaxOf");
|
|
518
|
-
var kindOf = /* @__PURE__ */ __name((field) => field.values ? `${field.type}: ${field.values.join("|")}` : `${field.type}: ${field.operators.join(", ")}`, "kindOf");
|
|
519
|
-
var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
|
|
520
|
-
const shown = shownOf(registry);
|
|
521
|
-
const negatable = leftOut(shown);
|
|
522
|
-
const rows = shown.map((field) => [field.name, kindOf(field), field.example]);
|
|
523
|
-
const widths = [0, 1].map((at) => Math.max(...rows.map((row) => (row[at] ?? "").length)));
|
|
524
|
-
return [
|
|
525
|
-
"Fields:",
|
|
526
|
-
...rows.map(([name = "", kind2 = "", example = ""]) => ` ${name.padEnd(widths[0] ?? 0)} ${kind2.padEnd(widths[1] ?? 0)} ${example}`.trimEnd()),
|
|
527
|
-
...registry.defaults && registry.defaults.length > 0 ? [`Defaults: ${registry.defaults.join(" ")} \u2014 name the field to change it`] : [],
|
|
528
|
-
...negatable.length > 0 ? [`Leave out: -${negatable[0]}:value or NOT ${negatable[0]}:value, for ${negatable.join(", ")}`] : [],
|
|
529
|
-
`Syntax: ${syntaxOf(shown, registry.backend)}`,
|
|
530
|
-
...guide ? [`Guide: ${guide}`] : []
|
|
531
|
-
].join("\n");
|
|
532
|
-
}, "fieldsHelp");
|
|
533
|
-
var queryDescription = /* @__PURE__ */ __name((registry) => {
|
|
534
|
-
const shown = shownOf(registry);
|
|
535
|
-
if (shown.length === 0)
|
|
536
|
-
return "field:value terms; this list filters by none yet, so any term is refused";
|
|
537
|
-
const negatable = leftOut(shown);
|
|
538
|
-
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], > <" : ""})`;
|
|
539
|
-
const fields = shown.map((field) => field.values ? `${field.name} (${field.values.join("|")})` : field.name);
|
|
540
|
-
const defaults = registry.defaults?.length ? `; unless named: ${registry.defaults.join(" ")}` : "";
|
|
541
|
-
return `${terms}; fields: ${fields.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
|
|
542
|
-
}, "queryDescription");
|
|
543
|
-
|
|
544
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.109.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
|
|
413
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.119.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
|
|
545
414
|
var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
|
|
546
415
|
var reserved = /* @__PURE__ */ new Set([
|
|
547
416
|
"+",
|
|
@@ -850,7 +719,7 @@ var implicitTextTerms = /* @__PURE__ */ __name((text6) => {
|
|
|
850
719
|
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] : []));
|
|
851
720
|
}, "implicitTextTerms");
|
|
852
721
|
|
|
853
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
722
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.119.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
|
|
854
723
|
var inContext = /* @__PURE__ */ __name((context3, run2) => {
|
|
855
724
|
try {
|
|
856
725
|
run2();
|
|
@@ -925,7 +794,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry, options = {}) => {
|
|
|
925
794
|
}, "validateQuery");
|
|
926
795
|
var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
|
|
927
796
|
|
|
928
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
797
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.119.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
|
|
929
798
|
var describeQuery = /* @__PURE__ */ __name((registry) => ({
|
|
930
799
|
entity: registry.entity,
|
|
931
800
|
backend: registry.backend,
|
|
@@ -996,7 +865,138 @@ var QUERY_REASONS = defineReasons([
|
|
|
996
865
|
details: [...SPAN, ...details]
|
|
997
866
|
})));
|
|
998
867
|
|
|
999
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/reference.js
|
|
869
|
+
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
|
|
870
|
+
var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
|
|
871
|
+
if (!Number.isSafeInteger(value) || value < minimum)
|
|
872
|
+
throw invalid();
|
|
873
|
+
return value;
|
|
874
|
+
}, "integer");
|
|
875
|
+
var formatMeetingReference = /* @__PURE__ */ __name((reference2) => {
|
|
876
|
+
const parts = [integer2(reference2.accountId), integer2(reference2.meetingId)];
|
|
877
|
+
if (reference2.transcriptId !== void 0)
|
|
878
|
+
parts.push(integer2(reference2.transcriptId));
|
|
879
|
+
if (reference2.cuePosition !== void 0) {
|
|
880
|
+
if (reference2.transcriptId === void 0)
|
|
881
|
+
throw invalid();
|
|
882
|
+
parts.push(integer2(reference2.cuePosition, 0));
|
|
883
|
+
}
|
|
884
|
+
return `meeting:${parts.join("/")}`;
|
|
885
|
+
}, "formatMeetingReference");
|
|
886
|
+
var parseMeetingReference = /* @__PURE__ */ __name((text6) => {
|
|
887
|
+
const value = text6.trim();
|
|
888
|
+
if (!value.startsWith("meeting:"))
|
|
889
|
+
throw invalid();
|
|
890
|
+
const parts = value.slice(8).split("/");
|
|
891
|
+
if (parts.length < 2 || parts.length > 4 || parts.some((part) => !/^\d+$/.test(part)))
|
|
892
|
+
throw invalid();
|
|
893
|
+
const ids2 = parts.map(Number);
|
|
894
|
+
const reference2 = {
|
|
895
|
+
type: "meeting",
|
|
896
|
+
accountId: integer2(ids2[0]),
|
|
897
|
+
meetingId: integer2(ids2[1]),
|
|
898
|
+
...ids2.length > 2 ? { transcriptId: integer2(ids2[2]) } : {},
|
|
899
|
+
...ids2.length > 3 ? { cuePosition: integer2(ids2[3], 0) } : {}
|
|
900
|
+
};
|
|
901
|
+
return reference2;
|
|
902
|
+
}, "parseMeetingReference");
|
|
903
|
+
var canonicalMeetingReference = /* @__PURE__ */ __name((text6) => formatMeetingReference(parseMeetingReference(text6)), "canonicalMeetingReference");
|
|
904
|
+
|
|
905
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/payment.js
|
|
906
|
+
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
907
|
+
var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
|
|
908
|
+
var PAYMENT_STATES = ["expected", "paid", "cancelled"];
|
|
909
|
+
var invalid2 = /* @__PURE__ */ __name((message) => {
|
|
910
|
+
throw new CliError("validation_error", message);
|
|
911
|
+
}, "invalid");
|
|
912
|
+
var CURRENCIES = new Set(Intl.supportedValuesOf("currency"));
|
|
913
|
+
var AMOUNT = /^(\d{1,15})(?:\.(\d{1,2}))?$/;
|
|
914
|
+
var COUNTERPARTY = /^(person|organization|project):[1-9]\d*$/;
|
|
915
|
+
var amountOf = /* @__PURE__ */ __name((value) => {
|
|
916
|
+
const match = AMOUNT.exec(typeof value === "number" ? String(value) : typeof value === "string" ? value.trim() : "");
|
|
917
|
+
if (!match)
|
|
918
|
+
return invalid2("a payment's amount is a positive number with at most 2 decimals, such as 1200.50");
|
|
919
|
+
const amount = `${BigInt(match[1] ?? "0")}.${(match[2] ?? "").padEnd(2, "0")}`;
|
|
920
|
+
if (amount === "0.00")
|
|
921
|
+
return invalid2("a payment's amount is more than 0");
|
|
922
|
+
return amount;
|
|
923
|
+
}, "amountOf");
|
|
924
|
+
var dateOf = /* @__PURE__ */ __name((value) => {
|
|
925
|
+
const date = typeof value === "string" ? value.trim() : "";
|
|
926
|
+
if (!/^\d{4}-\d{2}-\d{2}$/.test(date) || (/* @__PURE__ */ new Date(`${date}T00:00:00Z`)).toISOString().slice(0, 10) !== date)
|
|
927
|
+
return invalid2("a payment's dates are ISO dates, such as 2026-10-31");
|
|
928
|
+
return date;
|
|
929
|
+
}, "dateOf");
|
|
930
|
+
var optionalText = /* @__PURE__ */ __name((value, what, limit) => {
|
|
931
|
+
if (value === void 0 || value === null)
|
|
932
|
+
return null;
|
|
933
|
+
if (typeof value !== "string" || !value.trim() || value.length > limit || value.includes("\0"))
|
|
934
|
+
return invalid2(`a payment's ${what} takes 1\u2013${limit} characters`);
|
|
935
|
+
return value.trim();
|
|
936
|
+
}, "optionalText");
|
|
937
|
+
var oneOf = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
938
|
+
if (typeof value !== "string" || !allowed.includes(value))
|
|
939
|
+
return invalid2(`a payment's ${what} is one of ${allowed.join(", ")}`);
|
|
940
|
+
return value;
|
|
941
|
+
}, "oneOf");
|
|
942
|
+
var FIELDS = [
|
|
943
|
+
"amount",
|
|
944
|
+
"currency",
|
|
945
|
+
"direction",
|
|
946
|
+
"counterparty",
|
|
947
|
+
"counterparty_name",
|
|
948
|
+
"due_at",
|
|
949
|
+
"state",
|
|
950
|
+
"item",
|
|
951
|
+
"paid_at"
|
|
952
|
+
];
|
|
953
|
+
var validatePayment = /* @__PURE__ */ __name((input) => {
|
|
954
|
+
if (!input || typeof input !== "object" || Array.isArray(input))
|
|
955
|
+
return invalid2("a payment is an object");
|
|
956
|
+
const raw = input;
|
|
957
|
+
const unknown = Object.keys(raw).filter((key) => !FIELDS.includes(key));
|
|
958
|
+
if (unknown.length)
|
|
959
|
+
return invalid2(`a payment has no field ${unknown.join(", ")}; its fields are ${FIELDS.join(", ")}`);
|
|
960
|
+
const currency = typeof raw.currency === "string" ? raw.currency.trim().toUpperCase() : "";
|
|
961
|
+
if (!/^[A-Z]{3}$/.test(currency) || !CURRENCIES.has(currency))
|
|
962
|
+
return invalid2("a payment's currency is an ISO 4217 code, such as EUR or RUB");
|
|
963
|
+
const counterparty = optionalText(raw.counterparty, "counterparty", 80);
|
|
964
|
+
if (counterparty !== null && !COUNTERPARTY.test(counterparty))
|
|
965
|
+
return invalid2("a payment's counterparty is a person:, organization: or project: reference");
|
|
966
|
+
const state = oneOf(raw.state, PAYMENT_STATES, "state");
|
|
967
|
+
if (raw.paid_at != null && state !== "paid")
|
|
968
|
+
return invalid2("only a paid payment has paid_at");
|
|
969
|
+
return {
|
|
970
|
+
amount: amountOf(raw.amount),
|
|
971
|
+
currency,
|
|
972
|
+
direction: oneOf(raw.direction, PAYMENT_DIRECTIONS, "direction"),
|
|
973
|
+
counterparty,
|
|
974
|
+
counterparty_name: optionalText(raw.counterparty_name, "counterparty name", 200),
|
|
975
|
+
due_at: raw.due_at === void 0 || raw.due_at === null ? null : dateOf(raw.due_at),
|
|
976
|
+
state,
|
|
977
|
+
item: optionalText(raw.item, "item", 200),
|
|
978
|
+
// Left out when absent, so a finding staged before the field keeps its fingerprint.
|
|
979
|
+
...raw.paid_at == null ? {} : { paid_at: dateOf(raw.paid_at) }
|
|
980
|
+
};
|
|
981
|
+
}, "validatePayment");
|
|
982
|
+
var grouped = /* @__PURE__ */ __name((amount) => {
|
|
983
|
+
const [whole = "0", cents = "00"] = amount.split(".");
|
|
984
|
+
const digits = whole.replace(/\B(?=(\d{3})+(?!\d))/g, " ");
|
|
985
|
+
return cents === "00" ? digits : `${digits}.${cents}`;
|
|
986
|
+
}, "grouped");
|
|
987
|
+
var paymentTitle = /* @__PURE__ */ __name((fact) => {
|
|
988
|
+
const payment = fact.payment;
|
|
989
|
+
if (!payment)
|
|
990
|
+
return "";
|
|
991
|
+
const who = payment.counterparty_name ?? payment.counterparty;
|
|
992
|
+
const way = payment.direction === "to_us" ? "to us" : "from us";
|
|
993
|
+
const party = who === null ? "" : payment.direction === "to_us" ? ` from ${who}` : ` to ${who}`;
|
|
994
|
+
const due = payment.due_at === null ? "" : `, due ${payment.due_at.slice(8, 10)}.${payment.due_at.slice(5, 7)}`;
|
|
995
|
+
const item = payment.item === null ? "" : ` for ${payment.item}`;
|
|
996
|
+
return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
|
|
997
|
+
}, "paymentTitle");
|
|
998
|
+
|
|
999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
1000
1000
|
var context = {
|
|
1001
1001
|
command: "search meetings",
|
|
1002
1002
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -1108,7 +1108,7 @@ var liftMeetingFields = /* @__PURE__ */ __name((query, request, now, timezone) =
|
|
|
1108
1108
|
}, "liftMeetingFields");
|
|
1109
1109
|
var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
|
|
1110
1110
|
|
|
1111
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1111
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/search-store.js
|
|
1112
1112
|
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
1113
1113
|
let before = Number.POSITIVE_INFINITY;
|
|
1114
1114
|
for (; ; ) {
|
|
@@ -1125,7 +1125,7 @@ var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, sig
|
|
|
1125
1125
|
}
|
|
1126
1126
|
}, "refreshMeetingIndex");
|
|
1127
1127
|
|
|
1128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1128
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/search/service-query.js
|
|
1129
1129
|
var BACKENDS = ["archive", "server", "both"];
|
|
1130
1130
|
var MAX_BRANCHES = 64;
|
|
1131
1131
|
var some = /* @__PURE__ */ __name((value) => value === void 0 ? [] : [value], "some");
|
|
@@ -1164,10 +1164,10 @@ var RELATIVE_TIME = /^\d+[mhd]$/i;
|
|
|
1164
1164
|
var OFFSET = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
1165
1165
|
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");
|
|
1166
1166
|
|
|
1167
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1167
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/model.js
|
|
1168
1168
|
var MEETING_CALL_DIRECTIONS = ["in", "out"];
|
|
1169
1169
|
|
|
1170
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1170
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
1171
1171
|
var text = string();
|
|
1172
1172
|
var count = pipe(number(), integer(), minValue(0));
|
|
1173
1173
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -1267,7 +1267,7 @@ var MEETING_QUERY = {
|
|
|
1267
1267
|
})
|
|
1268
1268
|
};
|
|
1269
1269
|
|
|
1270
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1270
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/store.js
|
|
1271
1271
|
var MEETING_DOCUMENT_ROLES = ["transcript", "recording", "notes"];
|
|
1272
1272
|
var TRANSCRIPT_WORDS = [
|
|
1273
1273
|
"Transcript",
|
|
@@ -1279,7 +1279,7 @@ var TRANSCRIPT_WORDS = [
|
|
|
1279
1279
|
];
|
|
1280
1280
|
var READ_BUDGET_EXCEEDED = "Meeting search exceeds its stored text byte budget";
|
|
1281
1281
|
|
|
1282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1282
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
1283
1283
|
var text2 = string();
|
|
1284
1284
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
1285
1285
|
var iso2 = /* @__PURE__ */ __name((ms2) => ms2 === null ? null : new Date(ms2).toISOString(), "iso");
|
|
@@ -1563,7 +1563,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
1563
1563
|
};
|
|
1564
1564
|
}, "meetingHitsList");
|
|
1565
1565
|
|
|
1566
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1566
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
1567
1567
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
1568
1568
|
const parsed = urlOf(url);
|
|
1569
1569
|
if (!parsed)
|
|
@@ -1597,7 +1597,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
1597
1597
|
}
|
|
1598
1598
|
}, "urlOf");
|
|
1599
1599
|
|
|
1600
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1600
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
1601
1601
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
1602
1602
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
1603
1603
|
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");
|
|
@@ -1634,11 +1634,11 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
1634
1634
|
return kept;
|
|
1635
1635
|
}, "entryMetadata");
|
|
1636
1636
|
|
|
1637
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1637
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/calls.js
|
|
1638
1638
|
var CALL_DIRECTIONS = ["incoming", "outgoing", "internal"];
|
|
1639
1639
|
var CALL_OUTCOMES = ["answered", "voicemail", "busy", "no_answer", "failed"];
|
|
1640
1640
|
|
|
1641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1641
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/call-answers.js
|
|
1642
1642
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
1643
1643
|
var ms = count3;
|
|
1644
1644
|
var id = pipe(number(), integer(), minValue(1));
|
|
@@ -1721,7 +1721,7 @@ var callStatsSchema = strictObject({
|
|
|
1721
1721
|
});
|
|
1722
1722
|
var callStats = callStatsSchema;
|
|
1723
1723
|
|
|
1724
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1724
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
1725
1725
|
var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
|
|
1726
1726
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
1727
1727
|
const zone = timeZone ?? "UTC";
|
|
@@ -1856,10 +1856,10 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
1856
1856
|
};
|
|
1857
1857
|
}, "aggregateMeetingStats");
|
|
1858
1858
|
|
|
1859
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1859
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/call-stats.js
|
|
1860
1860
|
var CALLBACK_WITHIN_MS = 24 * 60 * 60 * 1e3;
|
|
1861
1861
|
|
|
1862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1862
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
1863
1863
|
import { createHash } from "node:crypto";
|
|
1864
1864
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
1865
1865
|
reference: cue2.reference,
|
|
@@ -1873,7 +1873,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
1873
1873
|
text: cue2.text
|
|
1874
1874
|
})).digest("hex"), "meetingCueFingerprint");
|
|
1875
1875
|
|
|
1876
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1876
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
1877
1877
|
var EVENT_QUERY = defineQuery({
|
|
1878
1878
|
entity: "event",
|
|
1879
1879
|
backend: "sql",
|
|
@@ -1889,7 +1889,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
1889
1889
|
]
|
|
1890
1890
|
});
|
|
1891
1891
|
|
|
1892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1892
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
1893
1893
|
var PARTICIPANT_RESPONSES = ["needs-action", "accepted", "tentative", "declined", "delegated"];
|
|
1894
1894
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
1895
1895
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
@@ -1913,7 +1913,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
1913
1913
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
1914
1914
|
}, "entryInWindow");
|
|
1915
1915
|
|
|
1916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1916
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
1917
1917
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now(), { create = true } = {}) => {
|
|
1918
1918
|
const current = await store.meeting(details.meeting.id);
|
|
1919
1919
|
if (!current)
|
|
@@ -1958,7 +1958,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now(),
|
|
|
1958
1958
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
1959
1959
|
}, "linkEvent");
|
|
1960
1960
|
|
|
1961
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1961
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
1962
1962
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text6) => text6.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
1963
1963
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
1964
1964
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -1982,7 +1982,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
1982
1982
|
};
|
|
1983
1983
|
}, "validateMeetingParticipantSearch");
|
|
1984
1984
|
|
|
1985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
1986
1986
|
var MeetingError = class extends CliError {
|
|
1987
1987
|
static {
|
|
1988
1988
|
__name(this, "MeetingError");
|
|
@@ -2121,7 +2121,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id4, accountId)
|
|
|
2121
2121
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
2122
2122
|
}, "meetingSummaryAnswer");
|
|
2123
2123
|
|
|
2124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
2125
2125
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
2126
2126
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
2127
2127
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -2218,10 +2218,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id4, options) => {
|
|
|
2218
2218
|
};
|
|
2219
2219
|
}, "exportMeeting");
|
|
2220
2220
|
|
|
2221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2221
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
2222
2222
|
import { createHash as createHash2 } from "node:crypto";
|
|
2223
2223
|
|
|
2224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
2225
2225
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
2226
2226
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
2227
2227
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone, such as 2026-11-09T09:00:00Z`);
|
|
@@ -2232,7 +2232,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
2232
2232
|
return new Date(value).toISOString();
|
|
2233
2233
|
}, "meetingTimestamp");
|
|
2234
2234
|
|
|
2235
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2235
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
2236
2236
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
2237
2237
|
var invalid3 = /* @__PURE__ */ __name((message) => {
|
|
2238
2238
|
throw new CliError("validation_error", message);
|
|
@@ -2407,7 +2407,7 @@ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
|
|
|
2407
2407
|
var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
|
|
2408
2408
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
2409
2409
|
|
|
2410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
2411
2411
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
2412
2412
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
2413
2413
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -2418,7 +2418,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
2418
2418
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
2419
2419
|
var meetingFindingFingerprint = findingFingerprint;
|
|
2420
2420
|
|
|
2421
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2421
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/language.js
|
|
2422
2422
|
var LATIN_WORDS = {
|
|
2423
2423
|
en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
|
|
2424
2424
|
es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
|
|
@@ -2467,7 +2467,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
|
|
|
2467
2467
|
return null;
|
|
2468
2468
|
}, "transcriptLanguage");
|
|
2469
2469
|
|
|
2470
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2470
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
2471
2471
|
var contentHash = /* @__PURE__ */ __name(async (text6) => {
|
|
2472
2472
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text6));
|
|
2473
2473
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -2504,7 +2504,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
2504
2504
|
return time;
|
|
2505
2505
|
}, "timestamp");
|
|
2506
2506
|
|
|
2507
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2507
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
2508
2508
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2509
2509
|
const { identityExternalId, phone, ...fields } = p;
|
|
2510
2510
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -2720,7 +2720,7 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
|
2720
2720
|
return report;
|
|
2721
2721
|
}, "pull");
|
|
2722
2722
|
|
|
2723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
2724
2724
|
var TranscriptTextError = class extends Error {
|
|
2725
2725
|
static {
|
|
2726
2726
|
__name(this, "TranscriptTextError");
|
|
@@ -2775,7 +2775,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
2775
2775
|
return { header, lines };
|
|
2776
2776
|
}, "parseTranscriptText");
|
|
2777
2777
|
|
|
2778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
2779
2779
|
var VttError = class extends Error {
|
|
2780
2780
|
static {
|
|
2781
2781
|
__name(this, "VttError");
|
|
@@ -2827,7 +2827,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
2827
2827
|
return cues;
|
|
2828
2828
|
}, "parseVtt");
|
|
2829
2829
|
|
|
2830
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2830
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
2831
2831
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
2832
2832
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2833
2833
|
for (const file of files) {
|
|
@@ -2861,10 +2861,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2861
2861
|
return report;
|
|
2862
2862
|
}, "importFiles");
|
|
2863
2863
|
|
|
2864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2864
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
2865
2865
|
var CHAT_MESSAGES_READ = 1e5;
|
|
2866
2866
|
|
|
2867
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2867
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
2868
2868
|
var MEETING_FIELD_KEYS = Object.freeze({
|
|
2869
2869
|
title: "title",
|
|
2870
2870
|
kind: "kind",
|
|
@@ -2877,7 +2877,7 @@ var MEETING_FIELDS2 = Object.freeze(Object.keys(MEETING_FIELD_KEYS));
|
|
|
2877
2877
|
var meetingFieldFlag = /* @__PURE__ */ __name((field) => `--${MEETING_FIELD_KEYS[field].replaceAll("_", "-")}`, "meetingFieldFlag");
|
|
2878
2878
|
var SNAKE_CASE2 = /^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$/;
|
|
2879
2879
|
|
|
2880
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2880
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
2881
2881
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
2882
2882
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
2883
2883
|
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)))
|
|
@@ -2898,7 +2898,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
2898
2898
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
2899
2899
|
}, "validateMeetingPassage");
|
|
2900
2900
|
|
|
2901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2901
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
2902
2902
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
2903
2903
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2904
2904
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -2923,7 +2923,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
2923
2923
|
return { ...input, limit, maxReadBytes };
|
|
2924
2924
|
}, "validateMeetingPreparationContext");
|
|
2925
2925
|
|
|
2926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
2927
2927
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
2928
2928
|
var id2 = pipe(string(), minLength(1));
|
|
2929
2929
|
var meetingProjectEvidence = strictObject({
|
|
@@ -3044,7 +3044,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
3044
3044
|
};
|
|
3045
3045
|
}, "meetingProjectEvidenceAnswer");
|
|
3046
3046
|
|
|
3047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3047
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
3048
3048
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
3049
3049
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
3050
3050
|
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) || [
|
|
@@ -3064,7 +3064,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
3064
3064
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
3065
3065
|
}, "validateMeetingHitSearch");
|
|
3066
3066
|
|
|
3067
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3067
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
3068
3068
|
var ids = {
|
|
3069
3069
|
meeting_id: "meetingId",
|
|
3070
3070
|
identity_id: "participantIdentityId",
|
|
@@ -3155,7 +3155,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
|
|
|
3155
3155
|
return { project: project.trim(), options, query: frozen.join(" AND ") };
|
|
3156
3156
|
}, "prepareMeetingProjectEvidence");
|
|
3157
3157
|
|
|
3158
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
3159
3159
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
|
|
3160
3160
|
const prepared = prepareMeetingProjectEvidence(project, request, now);
|
|
3161
3161
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -3163,7 +3163,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
|
|
|
3163
3163
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
3164
3164
|
}, "readMeetingProjectEvidence");
|
|
3165
3165
|
|
|
3166
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
3167
3167
|
var text3 = string();
|
|
3168
3168
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
3169
3169
|
var id3 = pipe(number(), integer(), minValue(1));
|
|
@@ -3361,7 +3361,7 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
3361
3361
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
3362
3362
|
}), "eventItem");
|
|
3363
3363
|
|
|
3364
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3364
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/read-through.js
|
|
3365
3365
|
var MEETING_SERVER_BOUNDS = { calls: 3, pages: 2 };
|
|
3366
3366
|
var ISSUES = {
|
|
3367
3367
|
offline: ["permission_error", "meetings.server-offline"],
|
|
@@ -3658,10 +3658,10 @@ var meetingShowThrough = /* @__PURE__ */ __name(async (source, store, accountId,
|
|
|
3658
3658
|
return { details: fresh, foundIn: step.found.get(details.meeting.id) ?? "server", server: step.report };
|
|
3659
3659
|
}, "meetingShowThrough");
|
|
3660
3660
|
|
|
3661
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
3662
3662
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
3663
3663
|
|
|
3664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
3665
3665
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
3666
3666
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
3667
3667
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -3691,7 +3691,7 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
3691
3691
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
3692
3692
|
}, "validateMeetingRelatedHistory");
|
|
3693
3693
|
|
|
3694
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3694
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
3695
3695
|
var text4 = string();
|
|
3696
3696
|
var identifier = pipe(text4, minLength(1));
|
|
3697
3697
|
var nullableText = nullable(text4);
|
|
@@ -3863,14 +3863,14 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
3863
3863
|
meeting_repair: repair
|
|
3864
3864
|
};
|
|
3865
3865
|
|
|
3866
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
3867
3867
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
3868
3868
|
|
|
3869
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3869
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
3870
3870
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
3871
3871
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
3872
3872
|
|
|
3873
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3873
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
3874
3874
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
3875
3875
|
input.signal?.throwIfAborted();
|
|
3876
3876
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -3891,10 +3891,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
3891
3891
|
return { ...input, limit, maxReadBytes };
|
|
3892
3892
|
}, "validateMeetingSeriesHistory");
|
|
3893
3893
|
|
|
3894
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3894
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
3895
3895
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
3896
3896
|
|
|
3897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
3898
3898
|
function invalid4(field, response = false) {
|
|
3899
3899
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
3900
3900
|
}
|
|
@@ -3923,7 +3923,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
3923
3923
|
cursorDetails(value);
|
|
3924
3924
|
}, "validateMeetingSeriesInventoryCursor");
|
|
3925
3925
|
|
|
3926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/tag-answers.js
|
|
3927
3927
|
var text5 = string();
|
|
3928
3928
|
var storeId = pipe(number(), integer(), minValue(1));
|
|
3929
3929
|
var meetingTagChange = strictObject({
|