@wirecat/hubspot-cli 0.4.0 → 0.5.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 +16 -0
- package/README.md +2 -2
- package/dist/bin/hubspot.js +2 -2
- package/dist/bundle/agent-RBQMA24N.js +40 -0
- package/dist/bundle/{all-profiles-JVEE4PXX.js → all-profiles-PGFXLOKN.js} +11 -11
- package/dist/bundle/{anthropic-6HT57GNF.js → anthropic-LPOJ3TYF.js} +5 -5
- package/dist/bundle/{app-server-FOBFF6G6.js → app-server-EYWGCSRY.js} +68 -68
- package/dist/bundle/{bun-GW443QB3.js → bun-ZJOOKIIW.js} +2 -2
- package/dist/bundle/{bun-sqlite-TGIAICDN.js → bun-sqlite-Y6KKH2OW.js} +6 -6
- package/dist/bundle/{chunk-RFGIUCKU.js → chunk-23CLSKY7.js} +3 -3
- package/dist/bundle/{chunk-ETKLP4VE.js → chunk-34HDRZIL.js} +14 -14
- package/dist/bundle/{chunk-PQUZ2YDC.js → chunk-3CHJYWA2.js} +6 -6
- package/dist/bundle/{chunk-7QH5BZUG.js → chunk-4RZ4DUQT.js} +3 -3
- package/dist/bundle/{chunk-NLZADZ4F.js → chunk-5ENY4POG.js} +61 -61
- package/dist/bundle/{chunk-W5X37TBC.js → chunk-5HGS65I3.js} +2 -2
- package/dist/bundle/{chunk-HPRKSL5S.js → chunk-5UPNDUAA.js} +2 -2
- package/dist/bundle/{chunk-LS4S7PAP.js → chunk-5WADRBQG.js} +3 -3
- package/dist/bundle/{chunk-DBPFHJXX.js → chunk-6PWRJGX4.js} +4 -4
- package/dist/bundle/{chunk-Q7DIEU6L.js → chunk-6S422S22.js} +7 -7
- package/dist/bundle/{chunk-E33KM3DB.js → chunk-7Q64D56R.js} +11 -11
- package/dist/bundle/{chunk-HM72O37C.js → chunk-7RIE3DAW.js} +174 -161
- package/dist/bundle/{chunk-LX7QMRRG.js → chunk-A5UTNGI4.js} +13 -13
- package/dist/bundle/{chunk-FWW2CUXH.js → chunk-ABPZOI3C.js} +4 -4
- package/dist/bundle/{chunk-MQACXJLG.js → chunk-AHZQMSXW.js} +10 -10
- package/dist/bundle/{chunk-3BM6KBWP.js → chunk-AIQT2GGK.js} +19 -19
- package/dist/bundle/{chunk-ATGD64VO.js → chunk-AVBKXCEY.js} +8 -8
- package/dist/bundle/{chunk-3SRGN5MQ.js → chunk-BCW7DAVV.js} +2 -2
- package/dist/bundle/{chunk-QNQ4V4UT.js → chunk-BGUGTMTS.js} +8 -8
- package/dist/bundle/{chunk-EU7AVWSX.js → chunk-BH5FEFZB.js} +2 -2
- package/dist/bundle/{chunk-XDDTJYGA.js → chunk-BVK4GUUI.js} +1254 -803
- package/dist/bundle/{chunk-HQYJ66ZX.js → chunk-BW7NPFVC.js} +18 -8
- package/dist/bundle/{chunk-QJHRRJKD.js → chunk-CWCJEAHZ.js} +3 -3
- package/dist/bundle/{chunk-Z3YOKGVZ.js → chunk-DDMBPYHP.js} +2 -2
- package/dist/bundle/{chunk-3MUHCLRY.js → chunk-DEUCWBBH.js} +81 -5
- package/dist/bundle/{chunk-GJSHLF43.js → chunk-DJUUQG6Y.js} +8 -8
- package/dist/bundle/{chunk-7JVKQ6NM.js → chunk-EGR3YUWD.js} +4 -4
- package/dist/bundle/{chunk-FOLKK6FW.js → chunk-EPBHJMF6.js} +20 -14
- package/dist/bundle/{chunk-VMF2UIQI.js → chunk-GZJP3KQQ.js} +3 -4
- package/dist/bundle/{chunk-YYYRE4AV.js → chunk-HBFSGL5E.js} +26 -26
- package/dist/bundle/{chunk-NL3RKJR6.js → chunk-HPRGUUHY.js} +1 -1
- package/dist/bundle/{chunk-AV2ZJ4WX.js → chunk-HPSESLOZ.js} +1 -1
- package/dist/bundle/{chunk-WBUVNKHJ.js → chunk-I334AT2H.js} +7 -7
- package/dist/bundle/{chunk-K4DWBOO6.js → chunk-K3WCBNH4.js} +6 -6
- package/dist/bundle/{chunk-XCDRFC6G.js → chunk-K5S7MKBB.js} +17 -17
- package/dist/bundle/{chunk-3LMW7U7F.js → chunk-KAW5VEER.js} +21 -8
- package/dist/bundle/{chunk-3MPMYAII.js → chunk-KC4ILAKO.js} +1 -1
- package/dist/bundle/{chunk-UHHXZKB2.js → chunk-KRTXJMCD.js} +16 -16
- package/dist/bundle/{chunk-5KLNBGPU.js → chunk-KXWRVLSU.js} +1 -1
- package/dist/bundle/{chunk-7OJ43BAH.js → chunk-L4SVHQ7H.js} +7 -7
- package/dist/bundle/{chunk-2BCWK5BF.js → chunk-L6WSFVTD.js} +8 -8
- package/dist/bundle/{chunk-A6PVEUGN.js → chunk-LWS5AO3H.js} +17 -17
- package/dist/bundle/{chunk-OLDIP4CV.js → chunk-LXLXF2OE.js} +3 -3
- package/dist/bundle/{chunk-QV4GDVBN.js → chunk-MENMD5Y5.js} +8 -8
- package/dist/bundle/{chunk-EBJYK7UM.js → chunk-MFWECOO3.js} +77 -62
- package/dist/bundle/{chunk-TAF4PKDS.js → chunk-MGMLSPIY.js} +1 -1
- package/dist/bundle/{chunk-F4ZLRS4B.js → chunk-MKBQFD37.js} +1 -1
- package/dist/bundle/{chunk-QIFCH5DZ.js → chunk-MPNMEWHA.js} +341 -278
- package/dist/bundle/{chunk-XMWMA2N5.js → chunk-MPQ4SPZG.js} +46 -32
- package/dist/bundle/{chunk-V23OHBGM.js → chunk-MW4ROXQ6.js} +3 -3
- package/dist/bundle/{chunk-QODPEZC5.js → chunk-NEDV6RCQ.js} +10 -3
- package/dist/bundle/{chunk-F3HJ2E3P.js → chunk-NEP67GLY.js} +6 -6
- package/dist/bundle/{chunk-5G4L6NQJ.js → chunk-NKIKMG33.js} +35 -35
- package/dist/bundle/{chunk-T3GZKV5A.js → chunk-NLPGUYCG.js} +12 -12
- package/dist/bundle/{chunk-6NUXFVJQ.js → chunk-OCISQFMW.js} +1 -1
- package/dist/bundle/{chunk-PKFLSX5F.js → chunk-ODRF47VS.js} +8 -8
- package/dist/bundle/{chunk-WATDMTDC.js → chunk-OFOA6VJ2.js} +3 -3
- package/dist/bundle/{chunk-HM6AMYHR.js → chunk-PMGAU6AP.js} +2 -2
- package/dist/bundle/{chunk-JWO3PB5Z.js → chunk-POTS24SH.js} +18 -18
- package/dist/bundle/{chunk-5ZVYIA56.js → chunk-PPQRWFJZ.js} +5 -5
- package/dist/bundle/{chunk-DG4RBKIV.js → chunk-QCHW7R7L.js} +1 -1
- package/dist/bundle/{chunk-CFQQTDSA.js → chunk-QDNYJOWJ.js} +1 -1
- package/dist/bundle/{chunk-M25KVDHA.js → chunk-QIHJKE4K.js} +7 -7
- package/dist/bundle/{chunk-WLFYEAZ6.js → chunk-QLFD3MOL.js} +402 -390
- package/dist/bundle/{chunk-N4EIJ53V.js → chunk-QPTHEZZ5.js} +2 -2
- package/dist/bundle/{chunk-PMJCZIV4.js → chunk-R7ZOCDNG.js} +1 -1
- package/dist/bundle/{chunk-AT43MYQL.js → chunk-RJBKDZGV.js} +8 -8
- package/dist/bundle/{chunk-UIWWAT3C.js → chunk-RZS7N3OZ.js} +7 -7
- package/dist/bundle/{chunk-Z4PY5BDP.js → chunk-SBNZYRVZ.js} +4 -4
- package/dist/bundle/{chunk-4OPN3KCN.js → chunk-STTHRJBX.js} +5 -5
- package/dist/bundle/{chunk-VDAYIXV4.js → chunk-V5VMAHDQ.js} +6 -6
- package/dist/bundle/{chunk-JKNUCEII.js → chunk-VCYUYFIV.js} +1 -1
- package/dist/bundle/{chunk-HVXOA4FO.js → chunk-VIJV474N.js} +1 -1
- package/dist/bundle/{chunk-5OBVICFK.js → chunk-WDR77HPO.js} +15 -1
- package/dist/bundle/{chunk-6ULR7N3T.js → chunk-WEM4FZPM.js} +2 -2
- package/dist/bundle/{chunk-FK4LEJZM.js → chunk-WQZENAPE.js} +3 -3
- package/dist/bundle/{chunk-X5U7GLHD.js → chunk-WXEN6AXQ.js} +16 -3
- package/dist/bundle/{chunk-IED6MKPU.js → chunk-YJLJZMEA.js} +25 -25
- package/dist/bundle/{chunk-XJVFXHDI.js → chunk-YQBGPBYN.js} +2 -2
- package/dist/bundle/{chunk-BXZRSXBL.js → chunk-YZ5MULJM.js} +3 -3
- package/dist/bundle/{chunk-2Q2XIXDL.js → chunk-Z7FC6VVM.js} +1 -1
- package/dist/bundle/{chunk-5WKJFMC3.js → chunk-ZKPM53YG.js} +4 -4
- package/dist/bundle/{chunk-V2B2OWTC.js → chunk-ZLWQPUPB.js} +2 -2
- package/dist/bundle/{chunk-GOOXUCJW.js → chunk-ZMHD76RE.js} +2 -2
- package/dist/bundle/command-contract-O2UKYHLD.js +40 -0
- package/dist/bundle/{command-server-entry-OJQ55UA2.js → command-server-entry-B7S5AUE6.js} +28 -28
- package/dist/bundle/{decode-CDQDRPRJ.js → decode-7L33C5UJ.js} +5 -5
- package/dist/bundle/{dispatch-JQBAZWCL.js → dispatch-BIGHHSXV.js} +8 -8
- package/dist/bundle/{echarts-GJ5JJG2A.js → echarts-CWR3QH55.js} +2 -2
- package/dist/bundle/{embed-BUQXGMKR.js → embed-GXQ3HOQ6.js} +6 -6
- package/dist/bundle/{embedder-FCX6LE4O.js → embedder-47OYXGLS.js} +9 -9
- package/dist/bundle/{failure-I6AAF5R5.js → failure-VMZOU5GZ.js} +2 -2
- package/dist/bundle/{first-run-RPYEXXQK.js → first-run-YVQQOUQG.js} +12 -12
- package/dist/bundle/first-screen-TU3KE2B5.js +40 -0
- package/dist/bundle/hubspot.js +27 -25
- package/dist/bundle/{instructions-LPVTPERS.js → instructions-QFS2MPK3.js} +1 -1
- package/dist/bundle/{mcp-YGOAUNC3.js → mcp-Z2KZNCXB.js} +2 -2
- package/dist/bundle/meeting-combined-WBEOLQMP.js +25 -0
- package/dist/bundle/{meeting-model-TRGBEWCY.js → meeting-model-GLF2HVJG.js} +11 -11
- package/dist/bundle/{meeting-semantic-RSF5KNKD.js → meeting-semantic-RG56F4YX.js} +6 -6
- package/dist/bundle/{node-UAT3EIAP.js → node-3TSWTXGI.js} +2 -2
- package/dist/bundle/{node-sqlite-3HKDQNFD.js → node-sqlite-UPQCG7DJ.js} +7 -7
- package/dist/bundle/{oauth-DYW2NSZP.js → oauth-MCVEENW3.js} +7 -7
- package/dist/bundle/{open-KBRXJ5BC.js → open-JMUTKUYJ.js} +5 -5
- package/dist/bundle/{openai-YNCLRTSK.js → openai-HT7YDOK7.js} +15 -15
- package/dist/bundle/{process-63BB7LKP.js → process-7RC6DAGM.js} +1 -1
- package/dist/bundle/{program-VX52OB3O.js → program-3DLBMOEJ.js} +134 -114
- package/dist/bundle/{prompt-TWLJ3M2O.js → prompt-7EROPXPF.js} +5 -5
- package/dist/bundle/{recognize-GQ6DLGE7.js → recognize-B232GXD2.js} +4 -4
- package/dist/bundle/{remote-RKNSF3TT.js → remote-HGV64VRC.js} +9 -9
- package/dist/bundle/{rerank-H4HSGQUJ.js → rerank-5S6TDXHD.js} +7 -7
- package/dist/bundle/{schemas-LDK7O6VW.js → schemas-SB42IXEX.js} +1 -1
- package/dist/bundle/{serve-4ZNIAL7H.js → serve-D2WFCV6Z.js} +9 -9
- package/dist/bundle/{server-4G4QB3QN.js → server-4AXPTJPV.js} +60 -60
- package/dist/bundle/server-FFHVNABP.js +86 -0
- package/dist/bundle/{source-2UCNCCO7.js → source-DF63EC2B.js} +114 -86
- package/dist/bundle/{sqlite-runtime-C2JYC7JF.js → sqlite-runtime-DAFMZNLI.js} +6 -6
- package/dist/bundle/{state-3KDXCXHG.js → state-7OEBDXVV.js} +6 -6
- package/dist/bundle/{store-LXLG5HTS.js → store-2ZWSWF76.js} +24 -24
- package/dist/bundle/{store-J5FQBZYR.js → store-KC6US326.js} +22 -22
- package/dist/bundle/store-Q3ZKD4FJ.js +34 -0
- package/dist/bundle/store-maintenance-command-24A4GBRP.js +73 -0
- package/dist/bundle/surface-SPTM57EP.js +72 -0
- package/dist/bundle/writer-EQQ55HOS.js +86 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +3 -2
- package/dist/config.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/dist/bundle/agent-NST4YXJR.js +0 -40
- package/dist/bundle/command-contract-LYX2QNIA.js +0 -40
- package/dist/bundle/first-screen-Y4EH3HZS.js +0 -40
- package/dist/bundle/meeting-combined-FEEVVUGC.js +0 -25
- package/dist/bundle/server-3IYIZEEQ.js +0 -86
- package/dist/bundle/store-2MNUHHZC.js +0 -32
- package/dist/bundle/store-maintenance-command-DDB7TR6V.js +0 -73
- package/dist/bundle/surface-ZTZANYKC.js +0 -72
- package/dist/bundle/writer-X7PGBLDH.js +0 -86
|
@@ -2,16 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
HUBSPOT_WRITES
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WQZENAPE.js";
|
|
6
6
|
import {
|
|
7
7
|
accountDetails
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5HGS65I3.js";
|
|
9
9
|
import {
|
|
10
10
|
LONGEST_PACE_WAIT_MS,
|
|
11
11
|
PACE,
|
|
12
12
|
ProfileTokenStore,
|
|
13
13
|
REPORT_FORMAT,
|
|
14
|
-
SECTION_CAPS,
|
|
15
14
|
SERVICE,
|
|
16
15
|
accountRemoveCommand,
|
|
17
16
|
appDoctorCommand,
|
|
@@ -37,37 +36,37 @@ import {
|
|
|
37
36
|
skillCommand,
|
|
38
37
|
upgradeCommand,
|
|
39
38
|
writeCsv
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-BVK4GUUI.js";
|
|
40
|
+
import "./chunk-HPRGUUHY.js";
|
|
42
41
|
import {
|
|
43
42
|
PROVIDER
|
|
44
|
-
} from "./chunk-
|
|
45
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-5WADRBQG.js";
|
|
44
|
+
import "./chunk-GZJP3KQQ.js";
|
|
46
45
|
import {
|
|
47
46
|
SOURCE_SEARCHED,
|
|
48
47
|
allAnswer,
|
|
49
48
|
historySkipsOf,
|
|
50
49
|
offsetOf,
|
|
51
50
|
refuseOffline
|
|
52
|
-
} from "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
51
|
+
} from "./chunk-HBFSGL5E.js";
|
|
52
|
+
import "./chunk-NEP67GLY.js";
|
|
53
|
+
import "./chunk-AVBKXCEY.js";
|
|
54
|
+
import "./chunk-MGMLSPIY.js";
|
|
56
55
|
import {
|
|
57
56
|
addStoreMaintenanceCommands
|
|
58
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-MFWECOO3.js";
|
|
59
58
|
import {
|
|
60
59
|
commandPathKey,
|
|
61
60
|
commandPermissions,
|
|
62
61
|
terminalAsker
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
62
|
+
} from "./chunk-KRTXJMCD.js";
|
|
63
|
+
import "./chunk-MENMD5Y5.js";
|
|
64
|
+
import "./chunk-L4SVHQ7H.js";
|
|
65
|
+
import "./chunk-34HDRZIL.js";
|
|
66
|
+
import "./chunk-BH5FEFZB.js";
|
|
67
|
+
import "./chunk-ABPZOI3C.js";
|
|
68
|
+
import "./chunk-PPQRWFJZ.js";
|
|
69
|
+
import "./chunk-ODRF47VS.js";
|
|
71
70
|
import {
|
|
72
71
|
CRM_ASSIGN_OTHERS_KEY,
|
|
73
72
|
CRM_WRITE_DEFAULTS,
|
|
@@ -112,18 +111,18 @@ import {
|
|
|
112
111
|
wantedCodes,
|
|
113
112
|
withCustomFields,
|
|
114
113
|
withReadableDeal
|
|
115
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-MPNMEWHA.js";
|
|
116
115
|
import {
|
|
117
116
|
safeName
|
|
118
|
-
} from "./chunk-
|
|
119
|
-
import "./chunk-
|
|
120
|
-
import "./chunk-
|
|
117
|
+
} from "./chunk-A5UTNGI4.js";
|
|
118
|
+
import "./chunk-VCYUYFIV.js";
|
|
119
|
+
import "./chunk-WDR77HPO.js";
|
|
121
120
|
import {
|
|
122
121
|
latestVersion,
|
|
123
122
|
runUpdate,
|
|
124
123
|
updateNotice
|
|
125
|
-
} from "./chunk-
|
|
126
|
-
import "./chunk-
|
|
124
|
+
} from "./chunk-4RZ4DUQT.js";
|
|
125
|
+
import "./chunk-QDNYJOWJ.js";
|
|
127
126
|
import {
|
|
128
127
|
commandPath,
|
|
129
128
|
dateWindow,
|
|
@@ -136,15 +135,16 @@ import {
|
|
|
136
135
|
timeBounds,
|
|
137
136
|
typedQuery,
|
|
138
137
|
unfilteredQuery,
|
|
139
|
-
withQuery
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
import "./chunk-
|
|
143
|
-
import "./chunk-
|
|
144
|
-
import "./chunk-
|
|
145
|
-
import "./chunk-
|
|
146
|
-
import "./chunk-
|
|
147
|
-
import "./chunk-
|
|
138
|
+
withQuery,
|
|
139
|
+
withWords
|
|
140
|
+
} from "./chunk-EPBHJMF6.js";
|
|
141
|
+
import "./chunk-23CLSKY7.js";
|
|
142
|
+
import "./chunk-V5VMAHDQ.js";
|
|
143
|
+
import "./chunk-7Q64D56R.js";
|
|
144
|
+
import "./chunk-LXLXF2OE.js";
|
|
145
|
+
import "./chunk-SBNZYRVZ.js";
|
|
146
|
+
import "./chunk-WXEN6AXQ.js";
|
|
147
|
+
import "./chunk-STTHRJBX.js";
|
|
148
148
|
import {
|
|
149
149
|
Argument,
|
|
150
150
|
Command,
|
|
@@ -188,13 +188,13 @@ import {
|
|
|
188
188
|
sharedCommand,
|
|
189
189
|
snakeKeys,
|
|
190
190
|
snakeKeysKeeping
|
|
191
|
-
} from "./chunk-
|
|
192
|
-
import "./chunk-
|
|
193
|
-
import "./chunk-
|
|
194
|
-
import "./chunk-
|
|
195
|
-
import "./chunk-
|
|
196
|
-
import "./chunk-
|
|
197
|
-
import "./chunk-
|
|
191
|
+
} from "./chunk-7RIE3DAW.js";
|
|
192
|
+
import "./chunk-RJBKDZGV.js";
|
|
193
|
+
import "./chunk-OFOA6VJ2.js";
|
|
194
|
+
import "./chunk-L6WSFVTD.js";
|
|
195
|
+
import "./chunk-R7ZOCDNG.js";
|
|
196
|
+
import "./chunk-K5S7MKBB.js";
|
|
197
|
+
import "./chunk-YZ5MULJM.js";
|
|
198
198
|
import {
|
|
199
199
|
CRM_CHANGES,
|
|
200
200
|
CRM_SCOPES,
|
|
@@ -204,48 +204,47 @@ import {
|
|
|
204
204
|
crmSettingKey,
|
|
205
205
|
seenBy,
|
|
206
206
|
viewerSql
|
|
207
|
-
} from "./chunk-
|
|
208
|
-
import "./chunk-
|
|
207
|
+
} from "./chunk-QLFD3MOL.js";
|
|
208
|
+
import "./chunk-BGUGTMTS.js";
|
|
209
209
|
import {
|
|
210
210
|
dayIn
|
|
211
|
-
} from "./chunk-
|
|
212
|
-
import "./chunk-
|
|
211
|
+
} from "./chunk-CWCJEAHZ.js";
|
|
212
|
+
import "./chunk-I334AT2H.js";
|
|
213
213
|
import {
|
|
214
214
|
count,
|
|
215
215
|
createTaskService,
|
|
216
216
|
text,
|
|
217
217
|
time
|
|
218
|
-
} from "./chunk-
|
|
219
|
-
import "./chunk-
|
|
220
|
-
import "./chunk-
|
|
218
|
+
} from "./chunk-YJLJZMEA.js";
|
|
219
|
+
import "./chunk-DDMBPYHP.js";
|
|
220
|
+
import "./chunk-AHZQMSXW.js";
|
|
221
221
|
import {
|
|
222
222
|
hostFetch,
|
|
223
223
|
retrying
|
|
224
|
-
} from "./chunk-
|
|
225
|
-
import "./chunk-
|
|
226
|
-
import "./chunk-
|
|
227
|
-
import "./chunk-DBPFHJXX.js";
|
|
224
|
+
} from "./chunk-QIHJKE4K.js";
|
|
225
|
+
import "./chunk-K3WCBNH4.js";
|
|
226
|
+
import "./chunk-6PWRJGX4.js";
|
|
228
227
|
import {
|
|
229
228
|
DESKTOP,
|
|
230
229
|
IDENTITY,
|
|
231
230
|
PACKAGE,
|
|
232
231
|
SKILL
|
|
233
|
-
} from "./chunk-
|
|
234
|
-
import "./chunk-
|
|
232
|
+
} from "./chunk-6S422S22.js";
|
|
233
|
+
import "./chunk-BCW7DAVV.js";
|
|
235
234
|
import "./chunk-EH6ZEJGT.js";
|
|
236
|
-
import "./chunk-
|
|
237
|
-
import "./chunk-
|
|
235
|
+
import "./chunk-DEUCWBBH.js";
|
|
236
|
+
import "./chunk-DJUUQG6Y.js";
|
|
238
237
|
import {
|
|
239
238
|
installerOf
|
|
240
|
-
} from "./chunk-
|
|
239
|
+
} from "./chunk-VIJV474N.js";
|
|
241
240
|
import {
|
|
242
241
|
fieldsOf
|
|
243
|
-
} from "./chunk-
|
|
242
|
+
} from "./chunk-BW7NPFVC.js";
|
|
244
243
|
import {
|
|
245
244
|
foldName
|
|
246
|
-
} from "./chunk-
|
|
247
|
-
import "./chunk-
|
|
248
|
-
import "./chunk-
|
|
245
|
+
} from "./chunk-POTS24SH.js";
|
|
246
|
+
import "./chunk-NEDV6RCQ.js";
|
|
247
|
+
import "./chunk-KXWRVLSU.js";
|
|
249
248
|
import {
|
|
250
249
|
CRM_ACTIVITY_KINDS,
|
|
251
250
|
CRM_KINDS,
|
|
@@ -256,32 +255,33 @@ import {
|
|
|
256
255
|
normalCrmUserId,
|
|
257
256
|
parseDecimal,
|
|
258
257
|
scaleOf
|
|
259
|
-
} from "./chunk-
|
|
260
|
-
import "./chunk-
|
|
261
|
-
import "./chunk-
|
|
258
|
+
} from "./chunk-NLPGUYCG.js";
|
|
259
|
+
import "./chunk-KC4ILAKO.js";
|
|
260
|
+
import "./chunk-ZMHD76RE.js";
|
|
262
261
|
import {
|
|
263
262
|
SAVE_HELP,
|
|
264
263
|
defineQuery,
|
|
265
264
|
queryFieldsOf,
|
|
266
265
|
timezoneOf,
|
|
267
266
|
zonedMoment
|
|
268
|
-
} from "./chunk-
|
|
269
|
-
import "./chunk-
|
|
267
|
+
} from "./chunk-5ENY4POG.js";
|
|
268
|
+
import "./chunk-HPSESLOZ.js";
|
|
269
|
+
import "./chunk-RZS7N3OZ.js";
|
|
270
270
|
import "./chunk-D72URWJE.js";
|
|
271
271
|
import {
|
|
272
272
|
readSecret
|
|
273
|
-
} from "./chunk-
|
|
274
|
-
import "./chunk-
|
|
275
|
-
import "./chunk-
|
|
276
|
-
import "./chunk-
|
|
277
|
-
import "./chunk-
|
|
273
|
+
} from "./chunk-MW4ROXQ6.js";
|
|
274
|
+
import "./chunk-5UPNDUAA.js";
|
|
275
|
+
import "./chunk-WEM4FZPM.js";
|
|
276
|
+
import "./chunk-3CHJYWA2.js";
|
|
277
|
+
import "./chunk-Z7FC6VVM.js";
|
|
278
278
|
import {
|
|
279
279
|
renderPretty,
|
|
280
280
|
resolvePaths
|
|
281
|
-
} from "./chunk-
|
|
281
|
+
} from "./chunk-AIQT2GGK.js";
|
|
282
282
|
import {
|
|
283
283
|
isoTime
|
|
284
|
-
} from "./chunk-
|
|
284
|
+
} from "./chunk-KAW5VEER.js";
|
|
285
285
|
import {
|
|
286
286
|
array,
|
|
287
287
|
boolean,
|
|
@@ -301,8 +301,8 @@ import "./chunk-Y5E2WNWB.js";
|
|
|
301
301
|
import {
|
|
302
302
|
CliError,
|
|
303
303
|
isCliError
|
|
304
|
-
} from "./chunk-
|
|
305
|
-
import "./chunk-
|
|
304
|
+
} from "./chunk-PMGAU6AP.js";
|
|
305
|
+
import "./chunk-QCHW7R7L.js";
|
|
306
306
|
import {
|
|
307
307
|
__export,
|
|
308
308
|
__name
|
|
@@ -311,7 +311,7 @@ import {
|
|
|
311
311
|
// dist/program.js
|
|
312
312
|
import { join as join4 } from "node:path";
|
|
313
313
|
|
|
314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/update/index.js
|
|
315
315
|
import { realpathSync } from "node:fs";
|
|
316
316
|
import { fileURLToPath } from "node:url";
|
|
317
317
|
var npmRegistry = /* @__PURE__ */ __name(() => hostFetch({ hosts: ["registry.npmjs.org"] }), "npmRegistry");
|
|
@@ -6916,6 +6916,7 @@ var permissions = commandPermissions({
|
|
|
6916
6916
|
defaults: {
|
|
6917
6917
|
...api.defaults,
|
|
6918
6918
|
...COMMAND_DEFAULTS,
|
|
6919
|
+
[ERASE_KEY]: "deny",
|
|
6919
6920
|
...CRM_WRITE_DEFAULTS
|
|
6920
6921
|
}
|
|
6921
6922
|
});
|
|
@@ -7257,12 +7258,12 @@ var apiCommand = /* @__PURE__ */ __name(() => {
|
|
|
7257
7258
|
timeZone: sent.timeZone
|
|
7258
7259
|
}), "failure"),
|
|
7259
7260
|
token: tokenOf,
|
|
7260
|
-
schemas: /* @__PURE__ */ __name(() => import("./schemas-
|
|
7261
|
+
schemas: /* @__PURE__ */ __name(() => import("./schemas-SB42IXEX.js").then((module) => module.schemas), "schemas"),
|
|
7261
7262
|
definitions: /* @__PURE__ */ __name(() => import("./definitions-MVPICAWV.js").then((module) => module.definitions), "definitions")
|
|
7262
7263
|
});
|
|
7263
7264
|
}, "apiCommand");
|
|
7264
7265
|
|
|
7265
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7266
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/stage-tasks.js
|
|
7266
7267
|
var DAY = 864e5;
|
|
7267
7268
|
var openStageTasks = /* @__PURE__ */ __name(async (store, account, now, { history = false } = {}) => {
|
|
7268
7269
|
const rules = await store.crm.stageTasks(account);
|
|
@@ -7299,8 +7300,9 @@ var openStageTasks = /* @__PURE__ */ __name(async (store, account, now, { histor
|
|
|
7299
7300
|
return opened;
|
|
7300
7301
|
}, "openStageTasks");
|
|
7301
7302
|
|
|
7302
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/digest.js
|
|
7303
7304
|
var HOUR = 36e5;
|
|
7305
|
+
var SHOWN = 7;
|
|
7304
7306
|
var STALE_HOURS = 24;
|
|
7305
7307
|
var WORDS = {
|
|
7306
7308
|
en: {
|
|
@@ -7336,7 +7338,7 @@ var endOfDay = /* @__PURE__ */ __name((now, zone) => {
|
|
|
7336
7338
|
var crmDigest = /* @__PURE__ */ __name(async (store, account, options) => {
|
|
7337
7339
|
const { since, until, now, zone, viewer } = options;
|
|
7338
7340
|
const words = WORDS[options.language] ?? WORDS.en;
|
|
7339
|
-
const cap =
|
|
7341
|
+
const cap = SHOWN;
|
|
7340
7342
|
const window = { since, until, ...viewer ? { viewer } : {} };
|
|
7341
7343
|
const counts = await store.crm.changeCounts(account, window);
|
|
7342
7344
|
const changesOf = /* @__PURE__ */ __name(async (kind) => counts[kind] ? (await store.crm.changes(account, { ...window, changes: [kind], limit: cap, offset: 0 })).items : [], "changesOf");
|
|
@@ -7442,7 +7444,7 @@ var healthOf = /* @__PURE__ */ __name(async (store, account, { now, profile }) =
|
|
|
7442
7444
|
return stale > STALE_HOURS ? [{ ...named, stale_hours: Math.floor(stale) }] : [];
|
|
7443
7445
|
}, "healthOf");
|
|
7444
7446
|
|
|
7445
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7447
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/cli/csv.js
|
|
7446
7448
|
var csvFormatOption = /* @__PURE__ */ __name(() => annotateOption(new Option("--format <format>", "csv: this page as a table for a spreadsheet; --json=a,b picks its columns").choices(["csv"]), { mcp: false }), "csvFormatOption");
|
|
7447
7449
|
var DEAL_CSV_COLUMNS = [
|
|
7448
7450
|
"ref",
|
|
@@ -7564,7 +7566,7 @@ var renderCsv = /* @__PURE__ */ __name((command, open2, read, defaults = DEAL_CS
|
|
|
7564
7566
|
});
|
|
7565
7567
|
}, "renderCsv");
|
|
7566
7568
|
|
|
7567
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7569
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/cli/records.js
|
|
7568
7570
|
var time2 = nullable(isoTime);
|
|
7569
7571
|
var metadata = optional(record(string(), strictObject({
|
|
7570
7572
|
label: nullable(string()),
|
|
@@ -7739,13 +7741,16 @@ var addCrmRecordCommands = /* @__PURE__ */ __name((program, options) => {
|
|
|
7739
7741
|
const stored = await run3.store.crm.fields(run3.account, kind);
|
|
7740
7742
|
return stored.length ? stored : await run3.source().fields?.(kind) ?? [];
|
|
7741
7743
|
}, "liveFields");
|
|
7744
|
+
const words = options.liveQuery === "words";
|
|
7742
7745
|
const records = /* @__PURE__ */ __name((noun) => {
|
|
7743
7746
|
const group = annotate(program.command(noun.noun), { effects: REMOTE_READ }).description(`the CRM's ${noun.what}, read live: the copy holds only your own`);
|
|
7744
|
-
|
|
7747
|
+
const query = words ? { ...noun.query, fields: noun.query.fields.filter(({ name }) => name === "name") } : noun.query;
|
|
7748
|
+
const list = answerEntity(annotate(group.command("list"), { effects: REMOTE_READ, offline: false }), noun.entity, noun.schema);
|
|
7749
|
+
example((words ? withWords(list, query, `words the CRM's own search looks for in ${noun.what}`) : withQuery(list, query).addHelpText("after", CUSTOM_HELP)).description(`${noun.what} in the CRM, newest first; another client is found here, never in the copy`).option("--limit <n>", `${noun.what} per page, 1\u2013${MOST}`, integer(MOST), 50).option("--page <n>", "which page, starting at 1", integer(1e6), 1).addOption(csvFormatOption()), `${noun.noun} list`, words ? `${noun.noun} list anna --json` : `${noun.noun} list name:anna* --json`, `${noun.noun} list --format csv > ${noun.noun}.csv`).action(async (words2, opts, command) => {
|
|
7745
7750
|
const csv = opts.format === "csv";
|
|
7746
7751
|
const path = commandPath(command);
|
|
7747
|
-
const text2 = typedQuery(
|
|
7748
|
-
const names = customNames(text2,
|
|
7752
|
+
const text2 = typedQuery(words2);
|
|
7753
|
+
const names = customNames(text2, query, path, "name");
|
|
7749
7754
|
const columns = command.optsWithGlobals().fields;
|
|
7750
7755
|
const wanted = csv && columns === void 0 ? "all" : wantedCodes(columns);
|
|
7751
7756
|
const read = /* @__PURE__ */ __name(async (run3) => {
|
|
@@ -7753,7 +7758,7 @@ var addCrmRecordCommands = /* @__PURE__ */ __name((program, options) => {
|
|
|
7753
7758
|
const fields = names.length || wanted !== void 0 || csv ? await liveFields(run3, noun.kind) : [];
|
|
7754
7759
|
const chosen = filterableFields(fields, names);
|
|
7755
7760
|
selectedCodes(fields, wanted);
|
|
7756
|
-
const terms = nativeTerms(listQuery(text2, withCustomFields(
|
|
7761
|
+
const terms = nativeTerms(listQuery(text2, withCustomFields(query, chosen), path, { defaultField: "name" }), path);
|
|
7757
7762
|
const custom = customConditions(terms, chosen);
|
|
7758
7763
|
const name = searchText(terms.get("name"));
|
|
7759
7764
|
terms.delete("name");
|
|
@@ -7778,7 +7783,7 @@ var addCrmRecordCommands = /* @__PURE__ */ __name((program, options) => {
|
|
|
7778
7783
|
limit: opts.limit,
|
|
7779
7784
|
page: opts.page,
|
|
7780
7785
|
has_more: found.hasMore,
|
|
7781
|
-
...
|
|
7786
|
+
...words2.length ? { args: { query: words2 } } : {}
|
|
7782
7787
|
});
|
|
7783
7788
|
});
|
|
7784
7789
|
});
|
|
@@ -7797,9 +7802,18 @@ var addCrmRecordCommands = /* @__PURE__ */ __name((program, options) => {
|
|
|
7797
7802
|
if (options.live.includes("user"))
|
|
7798
7803
|
users(program, options);
|
|
7799
7804
|
}, "addCrmRecordCommands");
|
|
7805
|
+
var byIdOrNone = /* @__PURE__ */ __name(async (run3, noun, id) => {
|
|
7806
|
+
try {
|
|
7807
|
+
return await sourceWith(run3, "get", noun.what).get(noun.kind, id);
|
|
7808
|
+
} catch (error) {
|
|
7809
|
+
if (isCliError(error) && error.code === "validation_error")
|
|
7810
|
+
return null;
|
|
7811
|
+
throw error;
|
|
7812
|
+
}
|
|
7813
|
+
}, "byIdOrNone");
|
|
7800
7814
|
var recordNamed = /* @__PURE__ */ __name(async (run3, noun, given) => {
|
|
7801
7815
|
const id = given.trim();
|
|
7802
|
-
const byId = RECORD_ID.test(id) ? await
|
|
7816
|
+
const byId = RECORD_ID.test(id) ? await byIdOrNone(run3, noun, id) : null;
|
|
7803
7817
|
if (byId)
|
|
7804
7818
|
return byId;
|
|
7805
7819
|
const want = foldName(id);
|
|
@@ -7933,7 +7947,7 @@ var addRecordWrites = /* @__PURE__ */ __name((group, noun, { within, example, wr
|
|
|
7933
7947
|
}, "addRecordWrites");
|
|
7934
7948
|
var idOf = /* @__PURE__ */ __name((opts) => opts.operationId === void 0 ? {} : { operationId: opts.operationId }, "idOf");
|
|
7935
7949
|
|
|
7936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7950
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/cli/activities.js
|
|
7937
7951
|
var MOST2 = 500;
|
|
7938
7952
|
var nullableText = nullable(text);
|
|
7939
7953
|
var REFS = ["deal", "lead", "person", "organization"];
|
|
@@ -8046,7 +8060,7 @@ var addCrmActivityCommands = /* @__PURE__ */ __name((program, options) => {
|
|
|
8046
8060
|
}, "addCrmActivityCommands");
|
|
8047
8061
|
var refOf = /* @__PURE__ */ __name((kind, value) => value.includes(":") ? value : `${kind}:${value}`, "refOf");
|
|
8048
8062
|
|
|
8049
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8063
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/cli/changes.js
|
|
8050
8064
|
var MOST3 = 500;
|
|
8051
8065
|
var DAY2 = 864e5;
|
|
8052
8066
|
var nullableText2 = nullable(text);
|
|
@@ -8150,10 +8164,11 @@ var positionOf = /* @__PURE__ */ __name((cursor) => {
|
|
|
8150
8164
|
var digestState = /* @__PURE__ */ __name((schedule) => `crm:digest:${schedule}`, "digestState");
|
|
8151
8165
|
var addCrmChangeCommands = /* @__PURE__ */ __name((program, options) => {
|
|
8152
8166
|
const { within, example, now, ownerOf: ownerOf2, pathOf: pathOf2 } = options;
|
|
8167
|
+
const deals = options.leads === false ? "deals" : "deals and leads";
|
|
8153
8168
|
if (options.activities)
|
|
8154
8169
|
addCrmActivityCommands(program, { within, example, now, ownerOf: ownerOf2, pathOf: pathOf2 });
|
|
8155
|
-
const group = annotate(program.command("changes"), { effects: NO_EFFECTS }).description(
|
|
8156
|
-
example(withQuery(answerEntity(annotate(group.command("list"), { effects: LOCAL_READ }), "crm_change", crmChange).description(
|
|
8170
|
+
const group = annotate(program.command("changes"), { effects: NO_EFFECTS }).description(`what changed in the CRM's ${options.leads === false ? "deals" : "deals, leads"}, activities and contacts, as the syncs copied it`);
|
|
8171
|
+
example(withQuery(answerEntity(annotate(group.command("list"), { effects: LOCAL_READ }), "crm_change", crmChange).description(`${deals} made, moved, won, lost and given another owner, activities added and done, and contacts added, newest first; the last day unless at: says otherwise`).option("--limit <n>", `changes per page, 1\u2013${MOST3}`, integer(MOST3), 50).option("--cursor <cursor>", "the next page, as the last answer's page.next gave it").addOption(annotateOption(new Option("--format <format>", "csv: this page as a table; report: the window as a morning digest document, for schedule command. Run by a schedule, the report starts where that schedule's last one ended").choices(["csv", "report"]), { mcp: false })), CHANGES_QUERY), 'changes list "at>=1d"', "changes list change:won at>=7d --json", 'changes list "at>=1d" --format report').action(async (words, opts, command) => {
|
|
8157
8172
|
const name = "changes list";
|
|
8158
8173
|
const terms = queryTerms(words, CHANGES_QUERY, name, ["at"]);
|
|
8159
8174
|
const zone = timezoneOf();
|
|
@@ -8265,7 +8280,7 @@ var pipelineOf2 = /* @__PURE__ */ __name(async (run3, value) => {
|
|
|
8265
8280
|
}) : new CliError("not_found", `no pipeline ${value} in this account`, { reason: "pipeline.not-found" });
|
|
8266
8281
|
}, "pipelineOf");
|
|
8267
8282
|
|
|
8268
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/cli/files.js
|
|
8269
8284
|
import { createHash } from "node:crypto";
|
|
8270
8285
|
import { chmodSync, constants, copyFileSync, existsSync, linkSync, mkdirSync, readFileSync as readFileSync2, renameSync, rmSync } from "node:fs";
|
|
8271
8286
|
import { open } from "node:fs/promises";
|
|
@@ -8802,7 +8817,7 @@ var syncFiles = /* @__PURE__ */ __name(async (context, outOfTime, deadline = (ms
|
|
|
8802
8817
|
return report;
|
|
8803
8818
|
}, "syncFiles");
|
|
8804
8819
|
|
|
8805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8820
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/cli/pipeline-view.js
|
|
8806
8821
|
var sumOf = /* @__PURE__ */ __name((amounts) => amounts.map(({ amount, currency }) => `${groupDigits(amount)} ${currency}`).join(", ") || "\u2014", "sumOf");
|
|
8807
8822
|
var percent = /* @__PURE__ */ __name((share) => share === null ? "\u2014" : `${Math.round(share * 100)}%`, "percent");
|
|
8808
8823
|
var openStages = /* @__PURE__ */ __name((stages) => {
|
|
@@ -8848,11 +8863,12 @@ ${outcomes.join("\n")}`
|
|
|
8848
8863
|
].join("\n\n");
|
|
8849
8864
|
}, "pipelineView");
|
|
8850
8865
|
|
|
8851
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/cli/search-all.js
|
|
8852
8867
|
var SEARCHED = ["crm", ...SOURCE_SEARCHED];
|
|
8853
8868
|
var DEFAULT_LIMIT = 20;
|
|
8854
|
-
var addCrmSearchAll = /* @__PURE__ */ __name((searches, { within, app, example, viewerOf: viewerOf2 }) => {
|
|
8855
|
-
const
|
|
8869
|
+
var addCrmSearchAll = /* @__PURE__ */ __name((searches, { within, app, example, viewerOf: viewerOf2, leads = true }) => {
|
|
8870
|
+
const deals = leads ? "deals and leads" : "deals";
|
|
8871
|
+
const all = annotate(new Command("all"), { effects: LOCAL_READ, partial: true, output: { entity: "hit" } }).summary(`search stored ${deals}, messages, notes, calendar events and meetings`).description(`search the CRM's ${deals} by the words of their title, company, contacts and activities, and the messages, notes, calendar events and meetings other WireCat tools stored \u2014 best match first. Use it when you do not know where something was written`).argument("<query...>", `words and "phrases"; ${deals} match the words of their title, company, contacts and activities`).addHelpText("after", SAVE_HELP);
|
|
8856
8872
|
searches.addCommand(searchAllOptions(all, SEARCHED));
|
|
8857
8873
|
example(all, "search all Example LLC", "search all website --only crm --json");
|
|
8858
8874
|
all.action(async (words, _opts, leaf) => {
|
|
@@ -8914,7 +8930,7 @@ var addCrmSearchAll = /* @__PURE__ */ __name((searches, { within, app, example,
|
|
|
8914
8930
|
});
|
|
8915
8931
|
}, "addCrmSearchAll");
|
|
8916
8932
|
|
|
8917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/cli/store.js
|
|
8918
8934
|
import { mkdtempSync, rmSync as rmSync2 } from "node:fs";
|
|
8919
8935
|
import { tmpdir } from "node:os";
|
|
8920
8936
|
import { join as join3 } from "node:path";
|
|
@@ -8963,7 +8979,7 @@ var withProfile = /* @__PURE__ */ __name(async ({ app, profile, open: open2 }, e
|
|
|
8963
8979
|
}
|
|
8964
8980
|
}, "withProfile");
|
|
8965
8981
|
|
|
8966
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8982
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/cli/index.js
|
|
8967
8983
|
var MOST4 = 500;
|
|
8968
8984
|
var STAGE_REF = /^stage:\d+$/;
|
|
8969
8985
|
var timeField = /* @__PURE__ */ __name((name, example, relation) => nativeField({ name, type: "time", operators: ["term", "range"], example, relation }), "timeField");
|
|
@@ -8985,7 +9001,7 @@ var LEADS_QUERY = { entity: "lead", backend: "native", fields: DEAL_FIELDS };
|
|
|
8985
9001
|
var PIPELINES_QUERY = {
|
|
8986
9002
|
entity: "pipeline",
|
|
8987
9003
|
backend: "native",
|
|
8988
|
-
fields: [termField("kind", "enum", "kind:
|
|
9004
|
+
fields: [termField("kind", "enum", "kind:deal", { values: DEAL_KINDS })]
|
|
8989
9005
|
};
|
|
8990
9006
|
var STAGES_QUERY = {
|
|
8991
9007
|
entity: "stage",
|
|
@@ -9131,7 +9147,10 @@ var addCrmCommandsDefinition = /* @__PURE__ */ __name((program, options) => {
|
|
|
9131
9147
|
renderAnswer(command, outputFor(command), body, view);
|
|
9132
9148
|
}), "within");
|
|
9133
9149
|
const example = /* @__PURE__ */ __name((command, ...lines) => annotate(command, { examples: lines.map((line) => `${options.app.command} work ${line}`) }), "example");
|
|
9134
|
-
|
|
9150
|
+
const hasLeads = options.leads !== false;
|
|
9151
|
+
const dealsAndLeads = hasLeads ? "deals and leads" : "deals";
|
|
9152
|
+
example(answerEntity(annotate(program.command("sync"), { effects: FETCH, offline: false, cooperative: true, partial: true }), "crm_sync", crmSync).description(`bring the CRM's copy in the local store up to date: pipelines, companies, contacts, ${dealsAndLeads} that changed since the last sync, or everything with --rescan; a run stops before its deadline or --max-pages and the next one goes on from there`).addHelpText("after", `
|
|
9153
|
+
With the activities setting on, it also copies the activities and tasks on the ${dealsAndLeads} it keeps. Then each ${hasLeads ? "deal or lead" : "deal"} that moved into a stage the stage-tasks setting names opens a local task, once per move.`), "sync", "sync --rescan", "sync --max-pages 20").option("--rescan", "list everything again, every id too, dropping a round in progress").option("--max-pages <pages>", "at most this many requests to the CRM in this run", integer(1e5)).action(async (opts, command) => {
|
|
9135
9154
|
const { signal } = environmentOf(command);
|
|
9136
9155
|
await within(command, async (run3) => {
|
|
9137
9156
|
const source = run3.source();
|
|
@@ -9188,7 +9207,7 @@ var addCrmCommandsDefinition = /* @__PURE__ */ __name((program, options) => {
|
|
|
9188
9207
|
await within(command, async (run3) => {
|
|
9189
9208
|
const status = await crmStatus(run3.store, run3.account, { profile: run3.profile, now: now() });
|
|
9190
9209
|
if (await viewerOf(run3))
|
|
9191
|
-
outputFor(command).renderer.note(
|
|
9210
|
+
outputFor(command).renderer.note(`stored counts the whole copy, more than the ${dealsAndLeads} you may read`);
|
|
9192
9211
|
return listOf(pathOf(command).join(" "), {
|
|
9193
9212
|
items: status.items,
|
|
9194
9213
|
limit: status.limit,
|
|
@@ -9197,7 +9216,7 @@ var addCrmCommandsDefinition = /* @__PURE__ */ __name((program, options) => {
|
|
|
9197
9216
|
});
|
|
9198
9217
|
});
|
|
9199
9218
|
});
|
|
9200
|
-
example(answerEntity(annotate(store.command("apply"), { effects: LOCAL_WRITE }), "crm_contacts_removed", crmContactsApplied).description(
|
|
9219
|
+
example(answerEntity(annotate(store.command("apply"), { effects: LOCAL_WRITE }), "crm_contacts_removed", crmContactsApplied).description(`apply scope mine to the contacts already stored: remove those no ${hasLeads ? "deal or lead" : "deal"} of the chosen users and no kept company names, and the people they leave empty; counts only unless --yes, under scope all too. A sync that narrows the scope, or sync --rescan under mine, does this itself`), "store apply", "store apply --yes").option("--yes", "remove the contacts it counts; otherwise only count them").action(async (opts, command) => {
|
|
9201
9220
|
const yes = opts.yes === true;
|
|
9202
9221
|
await within(command, async (run3) => {
|
|
9203
9222
|
const scope = crmSettingKey(run3.account, "scope");
|
|
@@ -9372,7 +9391,7 @@ var addCrmCommandsDefinition = /* @__PURE__ */ __name((program, options) => {
|
|
|
9372
9391
|
const run3 = /* @__PURE__ */ __name((command, work) => within(command, (opened) => work(contextOf3(opened, command))), "run");
|
|
9373
9392
|
const create = write("create", "create", `make a ${kind} in the CRM, then store the CRM's copy of it`);
|
|
9374
9393
|
if (create)
|
|
9375
|
-
example(fields2(create), `${plural} create --title "Example kitchen" --amount 15000 --currency EUR`, `${plural} create --title "Example office" --pipeline Sales --stage "Quote sent" --field
|
|
9394
|
+
example(fields2(create), `${plural} create --title "Example kitchen" --amount 15000 --currency EUR`, `${plural} create --title "Example office" --pipeline Sales --stage "Quote sent" --field Source=web`).action(async (opts, command) => {
|
|
9376
9395
|
await run3(command, async (context) => {
|
|
9377
9396
|
const done = await createCrmItem(context, kind, inputOf(opts), idOf2(opts));
|
|
9378
9397
|
return answered(done.operationId, done.item);
|
|
@@ -9380,7 +9399,7 @@ var addCrmCommandsDefinition = /* @__PURE__ */ __name((program, options) => {
|
|
|
9380
9399
|
});
|
|
9381
9400
|
const update2 = write("update", "update", `change a ${kind} in the CRM; what is left out keeps its value; the CRM's copy is stored again`);
|
|
9382
9401
|
if (update2)
|
|
9383
|
-
example(fields2(reference(update2)), `${plural} update ${kind}:12 --amount 18000`, `${plural} update ${kind}:12 --field
|
|
9402
|
+
example(fields2(reference(update2)), `${plural} update ${kind}:12 --amount 18000`, `${plural} update ${kind}:12 --field Source=`).action(async (ref, opts, command) => {
|
|
9384
9403
|
await run3(command, async (context) => {
|
|
9385
9404
|
const done = await updateCrmItem(context, kind, ref, inputOf(opts), idOf2(opts));
|
|
9386
9405
|
return answered(done.operationId, done.item);
|
|
@@ -9423,7 +9442,7 @@ var addCrmCommandsDefinition = /* @__PURE__ */ __name((program, options) => {
|
|
|
9423
9442
|
if (options.leads !== false)
|
|
9424
9443
|
items("lead");
|
|
9425
9444
|
const pipelines = annotate(program.command("pipelines"), { effects: NO_EFFECTS }).description("the CRM's pipelines and their stages, as last synced");
|
|
9426
|
-
example(withQuery(annotate(pipelines.command("list"), { effects: LOCAL_READ, output: { entity: "pipeline" } }).description("pipelines copied from the CRM, with their stages in order and how many are open in each"), PIPELINES_QUERY), "pipelines list --json", "pipelines list kind:lead").action(async (words, _opts, command) => {
|
|
9445
|
+
example(withQuery(annotate(pipelines.command("list"), { effects: LOCAL_READ, output: { entity: "pipeline" } }).description("pipelines copied from the CRM, with their stages in order and how many are open in each"), PIPELINES_QUERY), "pipelines list --json", ...hasLeads ? ["pipelines list kind:lead"] : []).action(async (words, _opts, command) => {
|
|
9427
9446
|
const terms = queryTerms(words, PIPELINES_QUERY, "pipelines list");
|
|
9428
9447
|
await within(command, async (run3) => {
|
|
9429
9448
|
const found = await run3.store.deals.pipelines({
|
|
@@ -9458,7 +9477,7 @@ var addCrmCommandsDefinition = /* @__PURE__ */ __name((program, options) => {
|
|
|
9458
9477
|
}, (body) => pipelineView(body, outputFor(command).color));
|
|
9459
9478
|
});
|
|
9460
9479
|
const stages = annotate(program.command("stages"), { effects: NO_EFFECTS }).description("the stages of the CRM's pipelines, as last synced");
|
|
9461
|
-
example(withQuery(annotate(stages.command("list"), { effects: LOCAL_READ, output: { entity: "stage" } }).description("every stage of the CRM's pipelines in order, with its outcome and how many are open in it"), STAGES_QUERY), "stages list --json", "stages list kind:lead").action(async (words, _opts, command) => {
|
|
9480
|
+
example(withQuery(annotate(stages.command("list"), { effects: LOCAL_READ, output: { entity: "stage" } }).description("every stage of the CRM's pipelines in order, with its outcome and how many are open in it"), STAGES_QUERY), "stages list --json", ...hasLeads ? ["stages list kind:lead"] : []).action(async (words, _opts, command) => {
|
|
9462
9481
|
const terms = queryTerms(words, STAGES_QUERY, "stages list");
|
|
9463
9482
|
await within(command, async (run3) => {
|
|
9464
9483
|
const kind = terms.has("kind") ? terms.get("kind") : void 0;
|
|
@@ -9501,6 +9520,7 @@ var addCrmCommandsDefinition = /* @__PURE__ */ __name((program, options) => {
|
|
|
9501
9520
|
open: options.open,
|
|
9502
9521
|
app: options.app,
|
|
9503
9522
|
live: options.live ?? [],
|
|
9523
|
+
...options.liveQuery ? { liveQuery: options.liveQuery } : {},
|
|
9504
9524
|
...writes ? { writes } : {},
|
|
9505
9525
|
now
|
|
9506
9526
|
});
|
|
@@ -9508,7 +9528,7 @@ var addCrmCommandsDefinition = /* @__PURE__ */ __name((program, options) => {
|
|
|
9508
9528
|
if (options.files)
|
|
9509
9529
|
addCrmFileCommands(program, { ...options, within, example, now });
|
|
9510
9530
|
const fieldKinds = Object.keys(FIELD_KINDS).filter((word) => word !== "leads" || options.leads !== false);
|
|
9511
|
-
const fields = annotate(program.command("fields"), { effects: NO_EFFECTS }).description(
|
|
9531
|
+
const fields = annotate(program.command("fields"), { effects: NO_EFFECTS }).description(`the CRM's own fields on ${hasLeads ? "deals, leads" : "deals"}, people and organizations, as last synced`);
|
|
9512
9532
|
example(withQuery(answerEntity(annotate(fields.command("list"), { effects: LOCAL_READ }), "crm_field", crmField).description("the CRM's custom fields of one kind, in its order, with a list field's options").argument("<kind>", fieldKinds.join(", ")).option("--limit <n>", `fields per page, 1\u2013${MOST4}`, integer(MOST4), 50).option("--page <n>", "which page, starting at 1", integer(1e6)).option("--all", "every field, no paging"), FIELDS_QUERY), "fields list deals", "fields list people --json").action(async (kind, words, opts, command) => {
|
|
9513
9533
|
if (!fieldKinds.includes(kind))
|
|
9514
9534
|
throw new CliError("validation_error", `fields are listed for ${fieldKinds.join(", ")}; got ${kind}`, {
|
|
@@ -9531,13 +9551,13 @@ var addCrmCommandsDefinition = /* @__PURE__ */ __name((program, options) => {
|
|
|
9531
9551
|
});
|
|
9532
9552
|
});
|
|
9533
9553
|
const search = program.commands.find((one) => one.name() === "search") ?? annotate(program.command("search"), { effects: NO_EFFECTS }).description("search what the local store holds");
|
|
9534
|
-
addCrmSearchAll(search, { within, app: options.app, example, viewerOf });
|
|
9554
|
+
addCrmSearchAll(search, { within, app: options.app, example, viewerOf, leads: hasLeads });
|
|
9535
9555
|
}, "addCrmCommandsDefinition");
|
|
9536
9556
|
var addCrmCommands = honoursDryRun(sharedCommand(addCrmCommandsDefinition));
|
|
9537
9557
|
|
|
9538
9558
|
// dist/commands/crm-shared.js
|
|
9539
9559
|
var savedAccount = /* @__PURE__ */ __name(async (env, profile) => {
|
|
9540
|
-
const { openHubspotStore } = await import("./store-
|
|
9560
|
+
const { openHubspotStore } = await import("./store-Q3ZKD4FJ.js");
|
|
9541
9561
|
const store = await openHubspotStore(env, { readOnly: true }).catch(() => void 0);
|
|
9542
9562
|
if (!store)
|
|
9543
9563
|
return void 0;
|
|
@@ -9552,9 +9572,9 @@ var savedAccount = /* @__PURE__ */ __name(async (env, profile) => {
|
|
|
9552
9572
|
var openProfile = /* @__PURE__ */ __name(async (command, { readOnly }) => {
|
|
9553
9573
|
const { env, profile, environment } = contextOf(command);
|
|
9554
9574
|
const [{ openHubspotStore, PROVIDER: PROVIDER2 }, { hubspotCrmSource }, { hubspotCrmWriter }] = await Promise.all([
|
|
9555
|
-
import("./store-
|
|
9556
|
-
import("./source-
|
|
9557
|
-
import("./writer-
|
|
9575
|
+
import("./store-Q3ZKD4FJ.js"),
|
|
9576
|
+
import("./source-DF63EC2B.js"),
|
|
9577
|
+
import("./writer-EQQ55HOS.js")
|
|
9558
9578
|
]);
|
|
9559
9579
|
const fromToken = fromEnvironment(command);
|
|
9560
9580
|
const online = metaOf(command).effects?.remote !== "none";
|
|
@@ -3,13 +3,13 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
pasteHint,
|
|
5
5
|
readSecret
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-MW4ROXQ6.js";
|
|
7
|
+
import "./chunk-5UPNDUAA.js";
|
|
8
|
+
import "./chunk-AIQT2GGK.js";
|
|
9
|
+
import "./chunk-KAW5VEER.js";
|
|
10
10
|
import "./chunk-S4UUN6LD.js";
|
|
11
11
|
import "./chunk-Y5E2WNWB.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-PMGAU6AP.js";
|
|
13
13
|
import "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
export {
|
|
15
15
|
pasteHint,
|