@wirecat/zoom-cli 0.81.0 → 0.83.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/contracts/wirecat.json +54 -54
- package/dist/answers.d.ts +56 -0
- package/dist/answers.d.ts.map +1 -1
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +1 -1
- package/dist/api.js.map +1 -1
- package/dist/bin/main.js +2 -15
- package/dist/bin/main.js.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/agent-3HDWEZ5M.js +47 -0
- package/dist/bundle/{all-profiles-3ASMN35R.js → all-profiles-RY2OMSDL.js} +12 -12
- package/dist/bundle/answer-policy-IFVXPPGW.js +131 -0
- package/dist/bundle/{anthropic-XXI53VNI.js → anthropic-36VPSF7B.js} +6 -6
- package/dist/bundle/{app-server-B7WLNZNQ.js → app-server-ZVJVUGB7.js} +79 -76
- package/dist/bundle/{bun-2FLR4IV4.js → bun-F4M4KCNA.js} +2 -2
- package/dist/bundle/{bun-sqlite-3NNHTOGM.js → bun-sqlite-IOPYIUA7.js} +7 -7
- package/dist/bundle/{chunk-L54I45OX.js → chunk-26TW5RZ6.js} +33 -317
- package/dist/bundle/{chunk-JK24A3RP.js → chunk-2DK5BBFF.js} +3 -3
- package/dist/bundle/{chunk-4VOCXLMJ.js → chunk-2IBKKVVZ.js} +6 -6
- package/dist/bundle/{chunk-WKNYNK7W.js → chunk-2S54TM4N.js} +4 -4
- package/dist/bundle/{chunk-WHXYPLUE.js → chunk-3AQHKXVR.js} +4 -4
- package/dist/bundle/{chunk-YISJJNXT.js → chunk-3CW2C7ZA.js} +3 -3
- package/dist/bundle/{chunk-77TJ3AJH.js → chunk-3KUEZK5Z.js} +3 -3
- package/dist/bundle/{chunk-NQGGTO3B.js → chunk-3PXUQFHX.js} +8 -8
- package/dist/bundle/{chunk-N5ROXGY4.js → chunk-3QN5KDFZ.js} +167 -167
- package/dist/bundle/{chunk-AWJQ6FAX.js → chunk-434YFJAE.js} +2 -2
- package/dist/bundle/{chunk-4BU3LRTB.js → chunk-575JMTDR.js} +19 -18
- package/dist/bundle/{chunk-NM5XMKWO.js → chunk-5B2LV4MS.js} +2 -1
- package/dist/bundle/{chunk-3M436OO2.js → chunk-5WL5RHOO.js} +7 -102
- package/dist/bundle/{chunk-PS7HQ5LQ.js → chunk-6C7ESL5N.js} +3 -3
- package/dist/bundle/{chunk-SRUAUMBL.js → chunk-6E4KLYNP.js} +12 -12
- package/dist/bundle/chunk-7JDXR75Q.js +465 -0
- package/dist/bundle/{chunk-L2ERFXB7.js → chunk-AK3H2C65.js} +40 -31
- package/dist/bundle/{chunk-OEQNP56V.js → chunk-AQ5RIOUE.js} +1 -1
- package/dist/bundle/{chunk-35FVYRH5.js → chunk-AQLUAQXJ.js} +37 -180
- package/dist/bundle/{chunk-EPASOAEI.js → chunk-ASTLGFTR.js} +284 -184
- package/dist/bundle/{chunk-YNWBRDBX.js → chunk-ATHBB7OU.js} +2 -2
- package/dist/bundle/{chunk-ZFRYFDZN.js → chunk-B2NM65RD.js} +14 -6
- package/dist/bundle/{chunk-VQTYJ6XH.js → chunk-B4KHDXJE.js} +3 -3
- package/dist/bundle/{chunk-G3DWMG7Y.js → chunk-BAFC7WNI.js} +4 -4
- package/dist/bundle/{chunk-2GNGR265.js → chunk-BBGJQMRI.js} +1 -1
- package/dist/bundle/{chunk-C4BBCSGK.js → chunk-BTLZYRIW.js} +6 -6
- package/dist/bundle/{chunk-T2BHIC37.js → chunk-BZDS2X6Y.js} +65 -65
- package/dist/bundle/{chunk-3UX4VJWD.js → chunk-C7JPYWYQ.js} +3 -4
- package/dist/bundle/{chunk-R4CXFYQN.js → chunk-CDQUW25G.js} +180 -38
- package/dist/bundle/{chunk-YJKXCINQ.js → chunk-CJWGJBHW.js} +274 -60
- package/dist/bundle/{chunk-F2J2FQUB.js → chunk-D7RCUODT.js} +9 -9
- package/dist/bundle/{chunk-AV2ZJ4WX.js → chunk-DNCLQPOM.js} +1 -1
- package/dist/bundle/{chunk-LGESUPKO.js → chunk-DQJECJUE.js} +25 -90
- package/dist/bundle/{chunk-MA4UJNUI.js → chunk-E4JQ3MCW.js} +12 -12
- package/dist/bundle/{chunk-GW2A2FJH.js → chunk-E4ODYLEK.js} +8 -8
- package/dist/bundle/{chunk-Q26UFIH4.js → chunk-EE45N67Q.js} +16 -3
- package/dist/bundle/{chunk-5SEBLX6B.js → chunk-EEEU4MKK.js} +12 -12
- package/dist/bundle/{chunk-YRDQ54G5.js → chunk-ESN3W2MZ.js} +24 -11
- package/dist/bundle/{chunk-M7OYEMLI.js → chunk-ETIZGA4P.js} +7 -7
- package/dist/bundle/{chunk-IVZACJ6X.js → chunk-F44QK6CK.js} +4 -4
- package/dist/bundle/{chunk-JKEMW6E4.js → chunk-FH2UFNH6.js} +2 -2
- package/dist/bundle/{chunk-XYQVVW4R.js → chunk-FTH6WGYO.js} +1 -1
- package/dist/bundle/chunk-FWACRG4X.js +160 -0
- package/dist/bundle/chunk-G5SZL7G2.js +150 -0
- package/dist/bundle/{chunk-GDRFVBCB.js → chunk-G6CHEFAG.js} +2 -2
- package/dist/bundle/{chunk-2ELGSNX3.js → chunk-GHJD7PE6.js} +170 -170
- package/dist/bundle/{chunk-LECMHK2F.js → chunk-GZ7WBU5Y.js} +1 -1
- package/dist/bundle/{chunk-4ZXJ4AZW.js → chunk-H6A4NWYJ.js} +322 -45
- package/dist/bundle/{chunk-D26K6756.js → chunk-HKLRI2LB.js} +6 -6
- package/dist/bundle/{chunk-R6HP2XKD.js → chunk-HMD4FZYY.js} +5 -5
- package/dist/bundle/{chunk-2Z7UOXFC.js → chunk-HO4JGD4Q.js} +1 -1
- package/dist/bundle/chunk-HUAHLO6N.js +29 -0
- package/dist/bundle/{chunk-UHMJSSQO.js → chunk-IANKXHSE.js} +1 -1
- package/dist/bundle/{chunk-QFK52FG6.js → chunk-IQZXFWFI.js} +3 -3
- package/dist/bundle/{chunk-GPRJXJC7.js → chunk-ISQ23VKV.js} +22 -1
- package/dist/bundle/{chunk-ZLYICF6A.js → chunk-JEH33ZCD.js} +4 -4
- package/dist/bundle/{chunk-IDUKCXL7.js → chunk-JUNQYWQ2.js} +13 -9
- package/dist/bundle/{chunk-337ALCXQ.js → chunk-JUXMVQWJ.js} +312 -153
- package/dist/bundle/{chunk-5EWYDHBH.js → chunk-KHQDWYCG.js} +2 -2
- package/dist/bundle/{chunk-FMMYBVCH.js → chunk-KYRYD4CR.js} +1 -1
- package/dist/bundle/chunk-LBGT6W4R.js +377 -0
- package/dist/bundle/{chunk-UUVWAVKN.js → chunk-LN7HRYTH.js} +3 -3
- package/dist/bundle/{chunk-NS3JWBDR.js → chunk-MEB7HBTM.js} +6 -6
- package/dist/bundle/{chunk-K7CTCDYX.js → chunk-MEEFWYX3.js} +6 -6
- package/dist/bundle/{chunk-BQBC2WIG.js → chunk-MNOAMJ6H.js} +1 -1
- package/dist/bundle/{chunk-Y7XJA4EW.js → chunk-MYHPXJDG.js} +4 -4
- package/dist/bundle/{chunk-7JWVPJIP.js → chunk-NGI37RFW.js} +10 -10
- package/dist/bundle/{chunk-437DLSB3.js → chunk-NZMWD7Y3.js} +17227 -13055
- package/dist/bundle/chunk-O6IECJRM.js +54 -0
- package/dist/bundle/{chunk-LVCCZI5A.js → chunk-OBWL3BUV.js} +39 -39
- package/dist/bundle/{chunk-GCAJW4SR.js → chunk-OEEWVKJX.js} +1 -1
- package/dist/bundle/chunk-OGTN2KVG.js +147 -0
- package/dist/bundle/{chunk-B2WBWKYN.js → chunk-OQYZ3W4K.js} +12 -12
- package/dist/bundle/{chunk-IFM4G4MT.js → chunk-P3ZCTYGW.js} +4 -4
- package/dist/bundle/{chunk-VAW7QGJA.js → chunk-PVEBAHFU.js} +3 -3
- package/dist/bundle/{chunk-IYNICUCC.js → chunk-R2B6PUVI.js} +4 -4
- package/dist/bundle/{chunk-D7CDHBDX.js → chunk-R6IA5UQB.js} +1 -1
- package/dist/bundle/{chunk-T7QPZYRZ.js → chunk-RLOH7RDN.js} +7 -7
- package/dist/bundle/{chunk-V3ZTAAJ6.js → chunk-RQ4AXSCJ.js} +8 -8
- package/dist/bundle/{chunk-4BXLHSXY.js → chunk-RYGTCRFZ.js} +2 -2
- package/dist/bundle/{chunk-XWKUGAG6.js → chunk-S4PXWIE4.js} +85 -87
- package/dist/bundle/{chunk-ZMAPXIGC.js → chunk-SDZZYZLL.js} +2 -2
- package/dist/bundle/{chunk-ZNAX7GUV.js → chunk-SHQAYUK6.js} +8 -8
- package/dist/bundle/{chunk-YUDVRFXN.js → chunk-T3W4V4A6.js} +1 -1
- package/dist/bundle/{chunk-F5ZAN7OC.js → chunk-TCT5D2X2.js} +1 -1
- package/dist/bundle/{chunk-EEBSKMEA.js → chunk-TDWPOSPR.js} +12 -12
- package/dist/bundle/{chunk-WIX6BFRF.js → chunk-TER3N27H.js} +8 -8
- package/dist/bundle/{chunk-UMPUY77T.js → chunk-TMTNP7QN.js} +10 -10
- package/dist/bundle/{chunk-BZXHJKKI.js → chunk-TO5UEWXR.js} +2 -2
- package/dist/bundle/{chunk-HVXOA4FO.js → chunk-TXDR6YSF.js} +1 -1
- package/dist/bundle/{chunk-CFQQTDSA.js → chunk-TY7NDMFY.js} +1 -1
- package/dist/bundle/{chunk-YIIGF643.js → chunk-UAWSINMC.js} +10 -10
- package/dist/bundle/{chunk-RQFRXUI4.js → chunk-UBH7YF3C.js} +200 -112
- package/dist/bundle/{chunk-MBBR7QHI.js → chunk-UEAE3JUU.js} +2641 -1150
- package/dist/bundle/{chunk-2RFWRJFK.js → chunk-UHR363OD.js} +14 -10
- package/dist/bundle/{chunk-RRYHLP3A.js → chunk-UM52A76S.js} +6 -6
- package/dist/bundle/chunk-URP6BTHN.js +624 -0
- package/dist/bundle/{chunk-HHQROAJQ.js → chunk-UWQEAA6S.js} +1 -1
- package/dist/bundle/{chunk-DMJLJVD3.js → chunk-VR7QZGRU.js} +7 -7
- package/dist/bundle/{chunk-QNG27PGH.js → chunk-VRH5PBSL.js} +21 -17
- package/dist/bundle/chunk-VTLQTQKY.js +1756 -0
- package/dist/bundle/{chunk-NX3BLISW.js → chunk-VTYNLTDW.js} +6 -6
- package/dist/bundle/{chunk-HIFPHARA.js → chunk-WY7XG6TE.js} +4 -4
- package/dist/bundle/{chunk-IBYGNUO7.js → chunk-XEOZTA3H.js} +1 -1
- package/dist/bundle/{chunk-4FSH7K6N.js → chunk-XH23ML2V.js} +2 -2
- package/dist/bundle/{chunk-VXD65V67.js → chunk-XYF76A26.js} +2224 -2288
- package/dist/bundle/{chunk-J5EHZBO5.js → chunk-ZDYJAEVB.js} +19 -3
- package/dist/bundle/{chunk-FXZPAGHT.js → chunk-ZJ63HDBT.js} +2 -2
- package/dist/bundle/{chunk-N62P5FY4.js → chunk-ZT4ZPUIO.js} +12 -12
- package/dist/bundle/{cli-WTGAGSXV.js → cli-JK6PQSSN.js} +133 -116
- package/dist/bundle/command-contract-F3QNBKPX.js +46 -0
- package/dist/bundle/{command-server-entry-47CAYN3E.js → command-server-entry-DJLGN62J.js} +36 -35
- package/dist/bundle/config-TYYMV3HV.js +118 -0
- package/dist/bundle/{decode-2G7QS5IQ.js → decode-ZZICNNFF.js} +6 -6
- package/dist/bundle/{dispatch-ZAP3KBVJ.js → dispatch-FKMIPCPQ.js} +9 -9
- package/dist/bundle/{dist-WY6R3WH7.js → dist-NQPF25XI.js} +52 -49
- package/dist/bundle/{echarts-YRRVLEX3.js → echarts-QMAA7HH5.js} +2 -2
- package/dist/bundle/{embed-B5H3OW2O.js → embed-T64EUKUI.js} +7 -7
- package/dist/bundle/{embedder-3O73SP6Y.js → embedder-ZEKISZXI.js} +10 -10
- package/dist/bundle/{failure-EYGW7JMC.js → failure-XTWBYI2A.js} +3 -3
- package/dist/bundle/first-run-ZFNY4RRH.js +29 -0
- package/dist/bundle/first-screen-LPGCHRHZ.js +47 -0
- package/dist/bundle/{folders-4CGFWM6H.js → folders-ROKVKSCT.js} +5 -5
- package/dist/bundle/{instructions-AG7SRWTR.js → instructions-4H7UREH2.js} +1 -1
- package/dist/bundle/{main-DOGY6FJP.js → main-GCK3VYAA.js} +27 -37
- package/dist/bundle/{mcp-YGOAUNC3.js → mcp-5HFPWC3W.js} +2 -2
- package/dist/bundle/meeting-combined-7HDPOUPB.js +28 -0
- package/dist/bundle/meeting-model-MVUW7UPQ.js +26 -0
- package/dist/bundle/{meeting-semantic-FOEBWV3P.js → meeting-semantic-IF633WGX.js} +8 -8
- package/dist/bundle/{meetings-PVE4C2NF.js → meetings-RY2AAPHV.js} +7 -7
- package/dist/bundle/{node-GJQYN4FT.js → node-P3PUHKYH.js} +2 -2
- package/dist/bundle/{node-sqlite-MLRYKVCQ.js → node-sqlite-ASAZJNHE.js} +8 -8
- package/dist/bundle/{oauth-AC55C6SG.js → oauth-4U3OCK3W.js} +8 -8
- package/dist/bundle/oauth-AJARLPSY.js +46 -0
- package/dist/bundle/{open-3LGTYP6M.js → open-SEJRY2ZI.js} +6 -6
- package/dist/bundle/openai-FZDSC2AA.js +28 -0
- package/dist/bundle/{output-file-FXMTTLOI.js → output-file-RYIOIXMD.js} +6 -6
- package/dist/bundle/{process-MEKCZMX3.js → process-AFIXYXWL.js} +1 -1
- package/dist/bundle/{program-E5BSSIGY.js → program-OYLVYA4Z.js} +186 -247
- package/dist/bundle/{prompt-AIA6QSZK.js → prompt-BCRD64F4.js} +6 -6
- package/dist/bundle/public-SVJILCNI.js +206 -0
- package/dist/bundle/{recognize-M57VNTEV.js → recognize-25ITJWGX.js} +5 -5
- package/dist/bundle/{remote-3OTENZ7Z.js → remote-5FBAJX7O.js} +11 -11
- package/dist/bundle/{rerank-P5WHDFDU.js → rerank-2HGWWORY.js} +8 -8
- package/dist/bundle/run-log-7HRF4Y47.js +145 -0
- package/dist/bundle/{serve-BRLC2QVV.js → serve-RL35MSJD.js} +10 -10
- package/dist/bundle/{server-25NF7DMS.js → server-QUSBWACP.js} +71 -68
- package/dist/bundle/server-SCK2SRDK.js +96 -0
- package/dist/bundle/{services-MJE43OGD.js → services-BGRIQNDC.js} +66 -60
- package/dist/bundle/{speech-4AVCWTQH.js → speech-4W3ZMTFK.js} +25 -25
- package/dist/bundle/{sqlite-runtime-U4TQXWMC.js → sqlite-runtime-K3KLRZCV.js} +7 -7
- package/dist/bundle/{state-GNUGVMY7.js → state-GYL4C74G.js} +7 -7
- package/dist/bundle/{store-KBFZVQWF.js → store-27UQMNEO.js} +28 -26
- package/dist/bundle/{store-MHVBFUBB.js → store-NLYH5SQX.js} +64 -46
- package/dist/bundle/store-connection-CZILWRSR.js +112 -0
- package/dist/bundle/store-maintenance-command-Z3QLNSXJ.js +84 -0
- package/dist/bundle/{streaming-6F7AFEHD.js → streaming-73EKEGPF.js} +7 -7
- package/dist/bundle/surface-CV3C4RV2.js +82 -0
- package/dist/bundle/tokens-PY3S22LY.js +27 -0
- package/dist/bundle/zm.js +9 -9
- package/dist/bundle/{zoom-app-YTGOZ2FS.js → zoom-app-4F4YY4OI.js} +11 -9
- package/dist/commands.d.ts +1 -8
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +3 -33
- package/dist/commands.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/program-bindings.d.ts.map +1 -1
- package/dist/program-bindings.js +2 -12
- package/dist/program-bindings.js.map +1 -1
- package/dist/program.d.ts +3 -5
- package/dist/program.d.ts.map +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +6 -1
- package/dist/run.js.map +1 -1
- package/dist/setup-commands.d.ts +5 -14
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +7 -142
- package/dist/setup-commands.js.map +1 -1
- package/dist/tokens.d.ts +20 -44
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +95 -308
- package/dist/tokens.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/zoom-app.js +1 -1
- package/dist/zoom-app.js.map +1 -1
- package/dist/zoom-session.d.ts +6 -0
- package/dist/zoom-session.d.ts.map +1 -0
- package/dist/zoom-session.js +72 -0
- package/dist/zoom-session.js.map +1 -0
- package/package.json +3 -3
- package/skills/zoom-cli/references/setup.md +2 -2
- package/dist/bundle/agent-VYAJCJLE.js +0 -45
- package/dist/bundle/answer-policy-PTH4F2DW.js +0 -129
- package/dist/bundle/chunk-46EF6P2J.js +0 -72
- package/dist/bundle/chunk-4B335BCJ.js +0 -330
- package/dist/bundle/chunk-EWEQ7AXL.js +0 -719
- package/dist/bundle/chunk-FXCR4DGU.js +0 -37
- package/dist/bundle/chunk-KZ3B6HW5.js +0 -31
- package/dist/bundle/chunk-TI4WJOEX.js +0 -789
- package/dist/bundle/chunk-UPR2S5IE.js +0 -773
- package/dist/bundle/command-contract-3IKVWPDL.js +0 -45
- package/dist/bundle/config-ZOGOKGTU.js +0 -116
- package/dist/bundle/first-run-MPKMDEMA.js +0 -29
- package/dist/bundle/first-screen-AIAAC3KF.js +0 -45
- package/dist/bundle/meeting-combined-YKPKTKGA.js +0 -26
- package/dist/bundle/meeting-model-HTXSGHNM.js +0 -26
- package/dist/bundle/openai-E2MSLVIX.js +0 -28
- package/dist/bundle/run-log-EOQ4EQDS.js +0 -143
- package/dist/bundle/server-EW2RL2EL.js +0 -93
- package/dist/bundle/store-connection-SKRUAI4L.js +0 -109
- package/dist/bundle/store-maintenance-command-G6EXJSHJ.js +0 -81
- package/dist/bundle/surface-DWEWB5RG.js +0 -79
- package/dist/bundle/tokens-BB4MQBLH.js +0 -25
- package/dist/login.d.ts +0 -16
- package/dist/login.d.ts.map +0 -1
- package/dist/login.js +0 -98
- package/dist/login.js.map +0 -1
- /package/dist/bundle/{chunk-7O7XM37N.js → chunk-7ECP5ZQR.js} +0 -0
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
CliError
|
|
5
|
+
} from "./chunk-IANKXHSE.js";
|
|
6
|
+
import {
|
|
7
|
+
__name
|
|
8
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
9
|
+
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/money.js
|
|
11
|
+
var CURRENCY_SCALES = {
|
|
12
|
+
AED: 2,
|
|
13
|
+
AMD: 2,
|
|
14
|
+
AUD: 2,
|
|
15
|
+
BHD: 3,
|
|
16
|
+
BYN: 2,
|
|
17
|
+
CAD: 2,
|
|
18
|
+
CHF: 2,
|
|
19
|
+
CLP: 0,
|
|
20
|
+
CNY: 2,
|
|
21
|
+
CZK: 2,
|
|
22
|
+
DKK: 2,
|
|
23
|
+
EUR: 2,
|
|
24
|
+
GBP: 2,
|
|
25
|
+
GEL: 2,
|
|
26
|
+
HUF: 2,
|
|
27
|
+
ILS: 2,
|
|
28
|
+
INR: 2,
|
|
29
|
+
ISK: 0,
|
|
30
|
+
JPY: 0,
|
|
31
|
+
KGS: 2,
|
|
32
|
+
KRW: 0,
|
|
33
|
+
KWD: 3,
|
|
34
|
+
KZT: 2,
|
|
35
|
+
NOK: 2,
|
|
36
|
+
PLN: 2,
|
|
37
|
+
RSD: 2,
|
|
38
|
+
RUB: 2,
|
|
39
|
+
SEK: 2,
|
|
40
|
+
THB: 2,
|
|
41
|
+
TRY: 2,
|
|
42
|
+
UAH: 2,
|
|
43
|
+
USD: 2,
|
|
44
|
+
UZS: 2,
|
|
45
|
+
VND: 0
|
|
46
|
+
};
|
|
47
|
+
var refuse = /* @__PURE__ */ __name((message, reason) => {
|
|
48
|
+
throw new CliError("validation_error", message, { reason });
|
|
49
|
+
}, "refuse");
|
|
50
|
+
var DECIMAL = /^(\d{1,15})(?:\.(\d+))?$/;
|
|
51
|
+
var parseDecimal = /* @__PURE__ */ __name((text, scale) => {
|
|
52
|
+
const match = DECIMAL.exec(text.trim());
|
|
53
|
+
if (!match || (match[2] ?? "").length > scale)
|
|
54
|
+
return void 0;
|
|
55
|
+
return BigInt(`${match[1]}${(match[2] ?? "").padEnd(scale, "0")}`);
|
|
56
|
+
}, "parseDecimal");
|
|
57
|
+
var formatDecimal = /* @__PURE__ */ __name((units, scale) => {
|
|
58
|
+
const value = BigInt(units);
|
|
59
|
+
if (value < 0n)
|
|
60
|
+
return `-${formatDecimal(-value, scale)}`;
|
|
61
|
+
const digits = value.toString().padStart(scale + 1, "0");
|
|
62
|
+
return scale === 0 ? digits : `${digits.slice(0, -scale)}.${digits.slice(-scale)}`;
|
|
63
|
+
}, "formatDecimal");
|
|
64
|
+
var groupDigits = /* @__PURE__ */ __name((decimal) => {
|
|
65
|
+
const [whole = "0", fraction] = decimal.split(".");
|
|
66
|
+
const grouped = whole.replace(/\B(?=(\d{3})+(?!\d))/g, " ");
|
|
67
|
+
return fraction === void 0 ? grouped : `${grouped}.${fraction}`;
|
|
68
|
+
}, "groupDigits");
|
|
69
|
+
var currencyOf = /* @__PURE__ */ __name((text) => {
|
|
70
|
+
const code = typeof text === "string" ? text.trim().toUpperCase() : "";
|
|
71
|
+
if (CURRENCY_SCALES[code] === void 0)
|
|
72
|
+
return refuse(`${typeof text === "string" && text.trim() ? text.trim() : "an empty currency"} is not a currency the store keeps; use one of ${Object.keys(CURRENCY_SCALES).join(", ")}`, "money.currency");
|
|
73
|
+
return code;
|
|
74
|
+
}, "currencyOf");
|
|
75
|
+
var scaleOf = /* @__PURE__ */ __name((currency) => CURRENCY_SCALES[currencyOf(currency)], "scaleOf");
|
|
76
|
+
var minorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
|
|
77
|
+
const scale = scaleOf(currency);
|
|
78
|
+
const units = typeof amount === "string" ? parseDecimal(amount, scale) : void 0;
|
|
79
|
+
if (units === void 0 || units > BigInt(Number.MAX_SAFE_INTEGER))
|
|
80
|
+
return refuse(`${what} is a decimal string with at most ${scale} decimal${scale === 1 ? "" : "s"} for ${currency}, such as "${formatDecimal(5e3 * 10 ** scale, scale)}"`, "money.amount");
|
|
81
|
+
return Number(units);
|
|
82
|
+
}, "minorUnits");
|
|
83
|
+
var signedMinorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
|
|
84
|
+
if (typeof amount !== "string" || !amount.trim().startsWith("-"))
|
|
85
|
+
return minorUnits(amount, currency, what);
|
|
86
|
+
const units = minorUnits(amount.trim().slice(1), currency, what);
|
|
87
|
+
return units === 0 ? 0 : -units;
|
|
88
|
+
}, "signedMinorUnits");
|
|
89
|
+
var moneyOf = /* @__PURE__ */ __name((units, currency) => ({
|
|
90
|
+
amount: formatDecimal(units, scaleOf(currency)),
|
|
91
|
+
currency
|
|
92
|
+
}), "moneyOf");
|
|
93
|
+
var moneyLabel = /* @__PURE__ */ __name((units, currency) => `${groupDigits(formatDecimal(units, scaleOf(currency)))} ${currency}`, "moneyLabel");
|
|
94
|
+
var QUANTITY_SCALE = 3;
|
|
95
|
+
var quantityOf = /* @__PURE__ */ __name((text) => {
|
|
96
|
+
const thousandths = typeof text === "string" ? parseDecimal(text, QUANTITY_SCALE) : void 0;
|
|
97
|
+
if (thousandths === void 0 || thousandths === 0n)
|
|
98
|
+
return refuse('a quantity is a decimal string above 0 with at most 3 decimals, such as "1.5"', "money.quantity");
|
|
99
|
+
const plain = formatDecimal(thousandths, QUANTITY_SCALE).replace(/\.?0+$/, "");
|
|
100
|
+
return { text: plain, thousandths };
|
|
101
|
+
}, "quantityOf");
|
|
102
|
+
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
103
|
+
|
|
104
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/deals.js
|
|
105
|
+
var DEAL_KINDS = ["deal", "lead"];
|
|
106
|
+
var DEAL_STATUSES = ["open", "won", "lost"];
|
|
107
|
+
var STAGE_OUTCOMES = DEAL_STATUSES;
|
|
108
|
+
var DEAL_ROLES = ["owner", "contact", "decision-maker", "influencer"];
|
|
109
|
+
var dealLine = /* @__PURE__ */ __name((deal) => {
|
|
110
|
+
const money = deal.amount === null || deal.currency === null ? "" : `, ${moneyLabel(deal.amount, deal.currency)}`;
|
|
111
|
+
return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
|
|
112
|
+
}, "dealLine");
|
|
113
|
+
|
|
114
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/finance.js
|
|
115
|
+
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
116
|
+
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
117
|
+
var MONEY_DIRECTIONS = ["in", "out"];
|
|
118
|
+
var FINANCE_REVIEWS = ["proposed", "confirmed", "rejected"];
|
|
119
|
+
var settledStatus = /* @__PURE__ */ __name((current, total, paid) => {
|
|
120
|
+
if (current === "draft" || current === "void")
|
|
121
|
+
return current;
|
|
122
|
+
if (paid <= 0)
|
|
123
|
+
return "issued";
|
|
124
|
+
return paid < total ? "partly_paid" : "paid";
|
|
125
|
+
}, "settledStatus");
|
|
126
|
+
var dayMonth = /* @__PURE__ */ __name((date) => date === null ? null : `${date.slice(8, 10)}.${date.slice(5, 7)}`, "dayMonth");
|
|
127
|
+
var notes = /* @__PURE__ */ __name((...words) => {
|
|
128
|
+
const kept = words.filter((word) => word !== null);
|
|
129
|
+
return kept.length === 0 ? "" : ` (${kept.join(", ")})`;
|
|
130
|
+
}, "notes");
|
|
131
|
+
var invoiceLine = /* @__PURE__ */ __name((invoice) => {
|
|
132
|
+
const party = invoice.counterpartyName === null ? "" : `${invoice.direction === "receivable" ? " to" : " from"} ${invoice.counterpartyName}`;
|
|
133
|
+
const due = invoice.dueDate === null ? "" : `, due ${dayMonth(invoice.dueDate)}`;
|
|
134
|
+
return `${invoice.number ?? `#${invoice.id}`} \xB7 ${moneyLabel(invoice.total, invoice.currency)}${party}${due}` + notes(invoice.status.replace("_", " "), invoice.review === "confirmed" ? null : invoice.review);
|
|
135
|
+
}, "invoiceLine");
|
|
136
|
+
var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
137
|
+
const party = payment.partyName === null ? "" : `${payment.direction === "in" ? " from" : " to"} ${payment.partyName}`;
|
|
138
|
+
return `${moneyLabel(payment.amount, payment.currency)}${party}, ${dayMonth(payment.date)}` + notes(payment.review === "confirmed" ? null : payment.review);
|
|
139
|
+
}, "paymentLine");
|
|
140
|
+
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
141
|
+
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
142
|
+
|
|
143
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/orders.js
|
|
144
|
+
var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
|
|
145
|
+
var ORDER_PURPOSES = ["personal", "business", "client", "other"];
|
|
146
|
+
var orderLine = /* @__PURE__ */ __name((order) => {
|
|
147
|
+
const party = order.direction === "sale" && order.customerName !== null ? `to ${order.customerName}` : order.supplierName;
|
|
148
|
+
const money = order.total === null || order.currency === null ? "" : `, ${moneyLabel(order.total, order.currency)}`;
|
|
149
|
+
const notes2 = [order.status, order.review === "confirmed" ? null : order.review].filter(Boolean).join(", ");
|
|
150
|
+
return `${order.number ?? `#${order.id}`} \xB7 ${party}${money} (${notes2})`;
|
|
151
|
+
}, "orderLine");
|
|
152
|
+
var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
|
|
153
|
+
|
|
154
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/relations.js
|
|
155
|
+
var ORGANIZATION_ROLES = [
|
|
156
|
+
"employee",
|
|
157
|
+
"contractor",
|
|
158
|
+
"founder",
|
|
159
|
+
"owner",
|
|
160
|
+
"manager",
|
|
161
|
+
"adviser",
|
|
162
|
+
"contact"
|
|
163
|
+
];
|
|
164
|
+
var PROJECT_ROLES = ["owner", "manager", "contributor", "client-contact", "approver"];
|
|
165
|
+
var CONTRACT_ROLES = ["customer", "supplier", "signatory", "guarantor"];
|
|
166
|
+
var RELATED_ROLES = ["colleague", "adviser", "investor", "mentor", "family", "friend"];
|
|
167
|
+
var ENGAGEMENT_LEVELS = ["none", "low", "medium", "high"];
|
|
168
|
+
var isEngagement = /* @__PURE__ */ __name((value) => typeof value === "string" && ENGAGEMENT_LEVELS.includes(value), "isEngagement");
|
|
169
|
+
var checkEngagement = /* @__PURE__ */ __name((kind, from, to, level) => {
|
|
170
|
+
if (kind !== "member-of" || from !== "person" || to !== "project")
|
|
171
|
+
throw new CliError("validation_error", "an engagement level is set only on a person's member-of a project", {
|
|
172
|
+
reason: "relationship.engagement-ends"
|
|
173
|
+
});
|
|
174
|
+
if (!isEngagement(level))
|
|
175
|
+
throw new CliError("validation_error", `an engagement level is one of ${ENGAGEMENT_LEVELS.join(", ")}`, {
|
|
176
|
+
reason: "relationship.engagement-unknown"
|
|
177
|
+
});
|
|
178
|
+
return level;
|
|
179
|
+
}, "checkEngagement");
|
|
180
|
+
var ENGAGEMENT_ORDER = { high: 0, medium: 1, unknown: 2, low: 3, none: 4 };
|
|
181
|
+
var engagementRank = /* @__PURE__ */ __name((level) => ENGAGEMENT_ORDER[level ?? "unknown"], "engagementRank");
|
|
182
|
+
var byEngagement = /* @__PURE__ */ __name((items) => items.map((item, index) => ({ item, index })).sort((a, b) => engagementRank(a.item.engagement) - engagementRank(b.item.engagement) || a.index - b.index).map(({ item }) => item), "byEngagement");
|
|
183
|
+
var RELATIONS = {
|
|
184
|
+
"member-of": {
|
|
185
|
+
from: ["person", "organization", "project", "chat", "email_thread"],
|
|
186
|
+
to: ["organization", "project"],
|
|
187
|
+
roles: { to: { organization: ORGANIZATION_ROLES, project: PROJECT_ROLES } }
|
|
188
|
+
},
|
|
189
|
+
"reports-to": { from: ["person"], to: ["person"], inverse: "manages" },
|
|
190
|
+
"customer-of": { from: ["person", "organization"], to: ["organization"], inverse: "supplier of" },
|
|
191
|
+
"partner-of": { from: ["organization"], to: ["organization"], symmetric: true },
|
|
192
|
+
"related-to": {
|
|
193
|
+
from: ["person", "organization", "project", "task", "deal", "lead", "contract"],
|
|
194
|
+
to: ["person", "organization", "project", "task"],
|
|
195
|
+
roles: { from: { deal: DEAL_ROLES, lead: DEAL_ROLES, contract: CONTRACT_ROLES } }
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
var RELATION_KINDS = Object.keys(RELATIONS);
|
|
199
|
+
var specOf = /* @__PURE__ */ __name((kind) => Object.hasOwn(RELATIONS, kind) ? RELATIONS[kind] : void 0, "specOf");
|
|
200
|
+
var isRelationKind = /* @__PURE__ */ __name((kind) => specOf(kind) !== void 0, "isRelationKind");
|
|
201
|
+
var memberOnly = /* @__PURE__ */ __name((type) => type === "chat" || type === "email_thread", "memberOnly");
|
|
202
|
+
var partyOnly = /* @__PURE__ */ __name((from, to) => from === "contract" && to !== "person" && to !== "organization", "partyOnly");
|
|
203
|
+
var checkEnds = /* @__PURE__ */ __name((kind, from, to) => {
|
|
204
|
+
const spec = specOf(kind);
|
|
205
|
+
if (!spec)
|
|
206
|
+
throw new CliError("validation_error", `a relationship's kind is one of ${RELATION_KINDS.join(", ")}`);
|
|
207
|
+
if (memberOnly(from) && (kind !== "member-of" || to !== "project"))
|
|
208
|
+
throw new CliError("validation_error", `a ${from === "chat" ? "chat" : "mail thread"} is related only as member-of a project`);
|
|
209
|
+
if (partyOnly(from, to))
|
|
210
|
+
throw new CliError("validation_error", "a contract is related only to a person or an organization");
|
|
211
|
+
if (!spec.from.includes(from) || !spec.to.includes(to))
|
|
212
|
+
throw new CliError("validation_error", `${kind} joins ${spec.from.join(", ")} to ${spec.to.join(", ")}, not ${from} to ${to}`);
|
|
213
|
+
return spec;
|
|
214
|
+
}, "checkEnds");
|
|
215
|
+
var isParty = /* @__PURE__ */ __name((type) => type === "person" || type === "organization", "isParty");
|
|
216
|
+
var rolesOf = /* @__PURE__ */ __name((kind, from, to) => {
|
|
217
|
+
const spec = specOf(kind);
|
|
218
|
+
if (kind === "member-of" && from !== "person")
|
|
219
|
+
return void 0;
|
|
220
|
+
return spec?.roles?.from?.[from] ?? spec?.roles?.to?.[to];
|
|
221
|
+
}, "rolesOf");
|
|
222
|
+
var ROLE_LISTS = {
|
|
223
|
+
organization: ORGANIZATION_ROLES,
|
|
224
|
+
project: PROJECT_ROLES,
|
|
225
|
+
deal: DEAL_ROLES,
|
|
226
|
+
contract: CONTRACT_ROLES,
|
|
227
|
+
related: RELATED_ROLES
|
|
228
|
+
};
|
|
229
|
+
var roleListOf = /* @__PURE__ */ __name((kind, from, to) => {
|
|
230
|
+
if (kind === "related-to" && isParty(from) && isParty(to))
|
|
231
|
+
return "related";
|
|
232
|
+
const roles = rolesOf(kind, from, to);
|
|
233
|
+
return Object.keys(ROLE_LISTS).find((list) => ROLE_LISTS[list] === roles);
|
|
234
|
+
}, "roleListOf");
|
|
235
|
+
var checkRole = /* @__PURE__ */ __name((kind, from, to, role, extra = []) => {
|
|
236
|
+
const roles = rolesOf(kind, from, to)?.concat(extra);
|
|
237
|
+
if (roles && !roles.includes(role))
|
|
238
|
+
throw new CliError("validation_error", `a ${from}'s role on ${kind} ${to} is one of ${roles.join(", ")}`, {
|
|
239
|
+
reason: "relationship.role-unknown"
|
|
240
|
+
});
|
|
241
|
+
return role;
|
|
242
|
+
}, "checkRole");
|
|
243
|
+
var isSymmetric = /* @__PURE__ */ __name((kind) => specOf(kind)?.symmetric === true, "isSymmetric");
|
|
244
|
+
var inverseOf = /* @__PURE__ */ __name((kind) => specOf(kind)?.symmetric ? kind : specOf(kind)?.inverse ?? null, "inverseOf");
|
|
245
|
+
var STANDINGS = ["confirmed", "reported", "proposed", "ended"];
|
|
246
|
+
var standingOf = /* @__PURE__ */ __name((link, now) => {
|
|
247
|
+
if (link.endsAt != null && link.endsAt <= now)
|
|
248
|
+
return "ended";
|
|
249
|
+
if (link.confirmed)
|
|
250
|
+
return "confirmed";
|
|
251
|
+
if (link.deletedAt != null)
|
|
252
|
+
return "ended";
|
|
253
|
+
return link.accountId != null ? "reported" : "proposed";
|
|
254
|
+
}, "standingOf");
|
|
255
|
+
var isUsable = /* @__PURE__ */ __name((standing) => standing === "confirmed" || standing === "reported", "isUsable");
|
|
256
|
+
var usableLink = /* @__PURE__ */ __name((link, now) => isUsable(standingOf(link, now)), "usableLink");
|
|
257
|
+
var KEYED = "kind IN ('member-of', 'related-to', 'reports-to', 'customer-of', 'partner-of') AND to_id IS NOT NULL";
|
|
258
|
+
var notOverriddenSql = /* @__PURE__ */ __name((alias) => `NOT EXISTS (SELECT 1 FROM links override WHERE ${KEYED} AND override.kind = ${alias}.kind AND override.from_type = ${alias}.from_type AND override.from_id = ${alias}.from_id AND override.to_type = ${alias}.to_type AND override.to_id = ${alias}.to_id AND json_extract(override.metadata, '$.overrides') = ${alias}.id)`, "notOverriddenSql");
|
|
259
|
+
var usableLinkSql = /* @__PURE__ */ __name((alias, now) => `(${alias}.confirmed = 1 OR (${alias}.account_id IS NOT NULL AND ${alias}.deleted_at IS NULL))` + (now === void 0 ? "" : ` AND (${alias}.ends_at IS NULL OR ${alias}.ends_at > ${Math.trunc(now)})`), "usableLinkSql");
|
|
260
|
+
|
|
261
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/crm.js
|
|
262
|
+
var CRM_KINDS = ["organization", "person", "deal", "lead"];
|
|
263
|
+
var CRM_ACTIVITY_KINDS = ["call", "email", "meeting", "todo", "task", "comment", "other"];
|
|
264
|
+
var isCrmUserId = /* @__PURE__ */ __name((id) => /^\d{1,20}$/.test(id), "isCrmUserId");
|
|
265
|
+
var normalCrmUserId = /* @__PURE__ */ __name((id) => {
|
|
266
|
+
const text = id.trim();
|
|
267
|
+
return /^\d+$/.test(text) ? text.replace(/^0+(?=\d)/, "") : text;
|
|
268
|
+
}, "normalCrmUserId");
|
|
269
|
+
var isItemKind = /* @__PURE__ */ __name((kind) => kind === "deal" || kind === "lead", "isItemKind");
|
|
270
|
+
|
|
271
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/business.js
|
|
272
|
+
var CATALOG_KINDS = ["product", "service"];
|
|
273
|
+
var BUSINESS_KINDS = ["invoice", "payment", "order", "contract", "subscription", "product", "wallet"];
|
|
274
|
+
var CONTRACT_KINDS = ["sale", "purchase", "service", "lease", "employment", "nda", "license", "other"];
|
|
275
|
+
var CONTRACT_STATUSES = ["draft", "active", "ended", "terminated"];
|
|
276
|
+
var PERIOD_UNITS = ["day", "week", "month", "year"];
|
|
277
|
+
var SUBSCRIPTION_STATUSES = ["trial", "active", "paused", "cancelled", "ended"];
|
|
278
|
+
var WALLET_KINDS = ["bank", "card", "cash", "wallet", "other"];
|
|
279
|
+
var TRANSACTION_STATUSES = ["pending", "booked"];
|
|
280
|
+
var ORDER_DIRECTIONS = ["purchase", "sale"];
|
|
281
|
+
var intervalOf = /* @__PURE__ */ __name((text, reason = "subscription.interval") => {
|
|
282
|
+
const match = typeof text === "string" ? /^(?:([1-9]\d{0,2})-)?(day|week|month|year)$/.exec(text.trim()) : null;
|
|
283
|
+
if (!match)
|
|
284
|
+
throw new CliError("validation_error", "an interval is a count and a unit, such as 1-month or 2-week", { reason });
|
|
285
|
+
return { count: match[1] === void 0 ? 1 : Number(match[1]), unit: match[2] };
|
|
286
|
+
}, "intervalOf");
|
|
287
|
+
var intervalText = /* @__PURE__ */ __name(({ count, unit }) => `${count}-${unit}`, "intervalText");
|
|
288
|
+
var priced = /* @__PURE__ */ __name((units, currency) => units === null || currency === null ? "" : `, ${moneyLabel(units, currency)}`, "priced");
|
|
289
|
+
var pending = /* @__PURE__ */ __name((review) => review === "confirmed" ? null : review, "pending");
|
|
290
|
+
var productLine = /* @__PURE__ */ __name((product) => {
|
|
291
|
+
const price = product.unitPrice === null || product.currency === null ? "" : moneyLabel(product.unitPrice, product.currency);
|
|
292
|
+
const per = price && product.unit !== null ? ` per ${product.unit}` : "";
|
|
293
|
+
return `${product.name}${price ? ` \xB7 ${price}${per}` : ""}${notes(product.kind, product.archived ? "archived" : null)}`;
|
|
294
|
+
}, "productLine");
|
|
295
|
+
var contractLine = /* @__PURE__ */ __name((contract) => `${contract.number ?? `#${contract.id}`} \xB7 ${contract.name}${priced(contract.value, contract.currency)}` + notes(contract.status, pending(contract.review)), "contractLine");
|
|
296
|
+
var subscriptionLine = /* @__PURE__ */ __name((subscription) => `${subscription.name}${priced(subscription.price, subscription.currency)} every ${intervalText(subscription.interval)}` + notes(subscription.status, pending(subscription.review)), "subscriptionLine");
|
|
297
|
+
var walletLine = /* @__PURE__ */ __name((wallet) => `${wallet.name} \xB7 ${wallet.kind}, ${wallet.currency}${wallet.numberHint === null ? "" : `, \u2026${wallet.numberHint}`}` + notes(wallet.closed ? "closed" : null), "walletLine");
|
|
298
|
+
var transactionLine = /* @__PURE__ */ __name((transaction) => `${moneyLabel(transaction.amount, transaction.currency)} ${transaction.direction}${transaction.label === null ? "" : ` \xB7 ${transaction.label}`}, ${dayMonth(transaction.date)}` + notes(transaction.status === "pending" ? "pending" : null, pending(transaction.review)), "transactionLine");
|
|
299
|
+
|
|
300
|
+
export {
|
|
301
|
+
CURRENCY_SCALES,
|
|
302
|
+
parseDecimal,
|
|
303
|
+
formatDecimal,
|
|
304
|
+
currencyOf,
|
|
305
|
+
scaleOf,
|
|
306
|
+
minorUnits,
|
|
307
|
+
signedMinorUnits,
|
|
308
|
+
moneyOf,
|
|
309
|
+
moneyLabel,
|
|
310
|
+
quantityOf,
|
|
311
|
+
lineUnits,
|
|
312
|
+
DEAL_KINDS,
|
|
313
|
+
DEAL_STATUSES,
|
|
314
|
+
STAGE_OUTCOMES,
|
|
315
|
+
DEAL_ROLES,
|
|
316
|
+
dealLine,
|
|
317
|
+
INVOICE_DIRECTIONS,
|
|
318
|
+
INVOICE_STATUSES,
|
|
319
|
+
MONEY_DIRECTIONS,
|
|
320
|
+
FINANCE_REVIEWS,
|
|
321
|
+
settledStatus,
|
|
322
|
+
invoiceLine,
|
|
323
|
+
paymentLine,
|
|
324
|
+
invoiceTitle,
|
|
325
|
+
paymentEntryTitle,
|
|
326
|
+
ORDER_STATUSES,
|
|
327
|
+
ORDER_PURPOSES,
|
|
328
|
+
orderLine,
|
|
329
|
+
orderTitle,
|
|
330
|
+
ORGANIZATION_ROLES,
|
|
331
|
+
PROJECT_ROLES,
|
|
332
|
+
CONTRACT_ROLES,
|
|
333
|
+
RELATED_ROLES,
|
|
334
|
+
ENGAGEMENT_LEVELS,
|
|
335
|
+
isEngagement,
|
|
336
|
+
checkEngagement,
|
|
337
|
+
engagementRank,
|
|
338
|
+
byEngagement,
|
|
339
|
+
RELATIONS,
|
|
340
|
+
RELATION_KINDS,
|
|
341
|
+
isRelationKind,
|
|
342
|
+
checkEnds,
|
|
343
|
+
rolesOf,
|
|
344
|
+
ROLE_LISTS,
|
|
345
|
+
roleListOf,
|
|
346
|
+
checkRole,
|
|
347
|
+
isSymmetric,
|
|
348
|
+
inverseOf,
|
|
349
|
+
STANDINGS,
|
|
350
|
+
standingOf,
|
|
351
|
+
isUsable,
|
|
352
|
+
usableLink,
|
|
353
|
+
KEYED,
|
|
354
|
+
notOverriddenSql,
|
|
355
|
+
usableLinkSql,
|
|
356
|
+
CRM_KINDS,
|
|
357
|
+
CRM_ACTIVITY_KINDS,
|
|
358
|
+
isCrmUserId,
|
|
359
|
+
normalCrmUserId,
|
|
360
|
+
isItemKind,
|
|
361
|
+
CATALOG_KINDS,
|
|
362
|
+
BUSINESS_KINDS,
|
|
363
|
+
CONTRACT_KINDS,
|
|
364
|
+
CONTRACT_STATUSES,
|
|
365
|
+
PERIOD_UNITS,
|
|
366
|
+
SUBSCRIPTION_STATUSES,
|
|
367
|
+
WALLET_KINDS,
|
|
368
|
+
TRANSACTION_STATUSES,
|
|
369
|
+
ORDER_DIRECTIONS,
|
|
370
|
+
intervalOf,
|
|
371
|
+
intervalText,
|
|
372
|
+
productLine,
|
|
373
|
+
contractLine,
|
|
374
|
+
subscriptionLine,
|
|
375
|
+
walletLine,
|
|
376
|
+
transactionLine
|
|
377
|
+
};
|
|
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
timezoneOf,
|
|
5
5
|
zonedMoment
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UAWSINMC.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IANKXHSE.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/moment.js
|
|
15
15
|
var calendarMoment = /* @__PURE__ */ __name((wanted, flag, { zone, end = false } = {}) => {
|
|
16
16
|
try {
|
|
17
17
|
return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
PRAGMAS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KYRYD4CR.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IANKXHSE.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
|
|
14
14
|
var SQLITE_WARNING = "SQLite is an experimental feature";
|
|
15
15
|
var quieted = /* @__PURE__ */ new WeakSet();
|
|
16
16
|
var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
|
|
@@ -31,7 +31,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
|
|
|
31
31
|
return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
|
|
32
32
|
}, "isSqliteWarning");
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/store/open.js
|
|
35
35
|
var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
36
36
|
const database = await openFile(path);
|
|
37
37
|
try {
|
|
@@ -44,12 +44,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
|
44
44
|
}, "openCache");
|
|
45
45
|
var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
|
|
46
46
|
var openUnderBun = /* @__PURE__ */ __name(async (path) => {
|
|
47
|
-
const { openWithBunSqlite } = await import("./bun-sqlite-
|
|
47
|
+
const { openWithBunSqlite } = await import("./bun-sqlite-IOPYIUA7.js");
|
|
48
48
|
return await openWithBunSqlite(path);
|
|
49
49
|
}, "openUnderBun");
|
|
50
50
|
var openUnderNode = /* @__PURE__ */ __name(async (path) => {
|
|
51
51
|
quietSqliteWarning();
|
|
52
|
-
const { openWithNodeSqlite } = await import("./node-sqlite-
|
|
52
|
+
const { openWithNodeSqlite } = await import("./node-sqlite-ASAZJNHE.js");
|
|
53
53
|
return openWithNodeSqlite(path);
|
|
54
54
|
}, "openUnderNode");
|
|
55
55
|
var runtime = /* @__PURE__ */ __name(() => {
|
|
@@ -5,31 +5,31 @@ import {
|
|
|
5
5
|
isNewer,
|
|
6
6
|
readNoticeState,
|
|
7
7
|
writeUpdateState
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MYHPXJDG.js";
|
|
9
9
|
import {
|
|
10
10
|
executableEnvironment,
|
|
11
11
|
executableOnPath
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TY7NDMFY.js";
|
|
13
13
|
import {
|
|
14
14
|
Command,
|
|
15
15
|
Option,
|
|
16
16
|
annotate
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ASTLGFTR.js";
|
|
18
18
|
import {
|
|
19
19
|
require_cross_spawn
|
|
20
20
|
} from "./chunk-D72URWJE.js";
|
|
21
21
|
import {
|
|
22
22
|
refuseOwnerHomeInTests
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-3QN5KDFZ.js";
|
|
24
24
|
import {
|
|
25
25
|
CliError
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-IANKXHSE.js";
|
|
27
27
|
import {
|
|
28
28
|
__name,
|
|
29
29
|
__toESM
|
|
30
30
|
} from "./chunk-ZVVMGPBJ.js";
|
|
31
31
|
|
|
32
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/skill/index.js
|
|
33
33
|
import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
34
34
|
import { homedir } from "node:os";
|
|
35
35
|
import { basename, dirname, join, relative, resolve, sep } from "node:path";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/runs/secrets.js
|
|
8
8
|
var SECRET_WORDS = /* @__PURE__ */ new Set([
|
|
9
9
|
"authorization",
|
|
10
10
|
"cookie",
|
|
@@ -3,26 +3,26 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
executableEnvironment,
|
|
5
5
|
executableOnPath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TY7NDMFY.js";
|
|
7
7
|
import {
|
|
8
8
|
require_cross_spawn
|
|
9
9
|
} from "./chunk-D72URWJE.js";
|
|
10
10
|
import {
|
|
11
11
|
loadConfigFile,
|
|
12
12
|
saveConfigFile
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3QN5KDFZ.js";
|
|
14
14
|
import {
|
|
15
15
|
number,
|
|
16
16
|
object,
|
|
17
17
|
optional,
|
|
18
18
|
string
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ESN3W2MZ.js";
|
|
20
20
|
import {
|
|
21
21
|
__name,
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-ZVVMGPBJ.js";
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/update/index.js
|
|
26
26
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
27
27
|
import { existsSync } from "node:fs";
|
|
28
28
|
var updateCommand = /* @__PURE__ */ __name((installer, packageName) => {
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
LEVELS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RQ4AXSCJ.js";
|
|
6
6
|
import {
|
|
7
7
|
WORD_BODY,
|
|
8
8
|
e164Of
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DQJECJUE.js";
|
|
10
10
|
import {
|
|
11
11
|
resolvePaths,
|
|
12
12
|
writeSecurely
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3QN5KDFZ.js";
|
|
14
14
|
import {
|
|
15
15
|
array,
|
|
16
16
|
getDotPath,
|
|
@@ -29,18 +29,18 @@ import {
|
|
|
29
29
|
string,
|
|
30
30
|
transform,
|
|
31
31
|
unknown
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-ESN3W2MZ.js";
|
|
33
33
|
import {
|
|
34
34
|
CliError
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-IANKXHSE.js";
|
|
36
36
|
import {
|
|
37
37
|
visibleControls
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-BBGJQMRI.js";
|
|
39
39
|
import {
|
|
40
40
|
__name
|
|
41
41
|
} from "./chunk-ZVVMGPBJ.js";
|
|
42
42
|
|
|
43
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/vcard.js
|
|
44
44
|
import { createHash } from "node:crypto";
|
|
45
45
|
var MAX_ID = 512;
|
|
46
46
|
var AS_WORD = new RegExp(`^${WORD_BODY}$`);
|
|
@@ -271,7 +271,7 @@ var envelopeOfVcard = /* @__PURE__ */ __name((text, { provider, account, batchId
|
|
|
271
271
|
};
|
|
272
272
|
}, "envelopeOfVcard");
|
|
273
273
|
|
|
274
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
274
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
275
275
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
276
276
|
var validateFormattedText = /* @__PURE__ */ __name((formatted) => {
|
|
277
277
|
const { text, spans } = formatted;
|
|
@@ -331,7 +331,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted) => {
|
|
|
331
331
|
};
|
|
332
332
|
}, "visibleFormattedText");
|
|
333
333
|
|
|
334
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
334
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
335
335
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
336
336
|
var LINK = /https?:\/\/\S+/i;
|
|
337
337
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -519,7 +519,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
519
519
|
}, "nextPoint");
|
|
520
520
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
521
521
|
|
|
522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
522
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
523
523
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
524
524
|
import { join } from "node:path";
|
|
525
525
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|