@wirecat/hubspot-cli 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/contracts/wirecat.json +2 -1
- package/dist/bin/hubspot.js +2 -2
- package/dist/bundle/agent-NMSIVLX7.js +41 -0
- package/dist/bundle/{all-profiles-HFVXPMF6.js → all-profiles-EMBBR5CW.js} +11 -11
- package/dist/bundle/{anthropic-VE6WR6IN.js → anthropic-AS2MTXO3.js} +5 -5
- package/dist/bundle/{app-server-GZ4DCQK7.js → app-server-WZWKHDLK.js} +70 -68
- package/dist/bundle/{bun-2DHMKD34.js → bun-OPDGMZZQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-T5XTYL7L.js → bun-sqlite-NBAY7FR2.js} +6 -6
- package/dist/bundle/{chunk-AKSWXRIU.js → chunk-2JHVQMVC.js} +1 -1
- package/dist/bundle/{chunk-UCGZRZJA.js → chunk-2XBDILVW.js} +1 -1
- package/dist/bundle/{chunk-3YTTWJKL.js → chunk-3HC5F3P7.js} +1 -1
- package/dist/bundle/{chunk-J4FXBF44.js → chunk-3YM4B2GT.js} +1 -1
- package/dist/bundle/{chunk-J76CMNWQ.js → chunk-4N7PP76S.js} +1 -1
- package/dist/bundle/{chunk-X2QRCFGJ.js → chunk-4NLZXDXP.js} +4 -4
- package/dist/bundle/{chunk-2K5BAY32.js → chunk-5JKTVAXX.js} +19 -19
- package/dist/bundle/{chunk-PR7ZDMGF.js → chunk-5XYI75HH.js} +3 -3
- package/dist/bundle/{chunk-EB53G4HO.js → chunk-6TD3DCWC.js} +2 -2
- package/dist/bundle/{chunk-K4Y2ZWOO.js → chunk-7SV76BVS.js} +3 -3
- package/dist/bundle/{chunk-PDVMYIBP.js → chunk-7T5BFWZI.js} +14450 -12008
- package/dist/bundle/{chunk-5WDNG4QE.js → chunk-7Z53MLQP.js} +7 -7
- package/dist/bundle/{chunk-RLK2EGQD.js → chunk-AINKLKDN.js} +29 -16
- package/dist/bundle/{chunk-E27NRLJZ.js → chunk-BGWQIFAS.js} +38 -24
- package/dist/bundle/{chunk-MSQGZHKM.js → chunk-CVAHCGE6.js} +27 -26
- package/dist/bundle/{chunk-6DABKZYH.js → chunk-D7NSIQBI.js} +125 -64
- package/dist/bundle/{chunk-THGAVPRA.js → chunk-D7OZWLJU.js} +11 -11
- package/dist/bundle/{chunk-TCSVW7BA.js → chunk-DNCLQPOM.js} +1 -1
- package/dist/bundle/{chunk-WASBOYI2.js → chunk-DPV53EZC.js} +4 -4
- package/dist/bundle/{chunk-QK5HQUHB.js → chunk-EVUMQKV7.js} +3 -3
- package/dist/bundle/{chunk-5O5WYSSO.js → chunk-FRF32QVB.js} +711 -633
- package/dist/bundle/{chunk-H4W2OO35.js → chunk-GGMAIIVE.js} +1 -1
- package/dist/bundle/{chunk-I75ON7VM.js → chunk-GIMHJ7HA.js} +8 -8
- package/dist/bundle/{chunk-5NIIXJV3.js → chunk-GXDD4QWH.js} +2 -2
- package/dist/bundle/{chunk-ZERQSELP.js → chunk-H6AH45GE.js} +198 -164
- package/dist/bundle/{chunk-DIKUPU3T.js → chunk-HZ3C4WXD.js} +3 -3
- package/dist/bundle/{chunk-TXO4CJW3.js → chunk-IA77VHME.js} +13 -9
- package/dist/bundle/{chunk-LTU4BQ4S.js → chunk-IA7LLLEI.js} +3 -3
- package/dist/bundle/{chunk-3HS7JTPI.js → chunk-IGNMDKP7.js} +14 -14
- package/dist/bundle/{chunk-G6LDK6DJ.js → chunk-IPKCM55K.js} +7 -7
- package/dist/bundle/{chunk-2I2KBCS6.js → chunk-JBZYHRUN.js} +5 -5
- package/dist/bundle/{chunk-M3LRSN6J.js → chunk-JG6LCSEX.js} +13 -13
- package/dist/bundle/{chunk-HZIGGAC7.js → chunk-JLXXUEAM.js} +2 -2
- package/dist/bundle/{chunk-T4MZJMEJ.js → chunk-JPONKBEQ.js} +23 -23
- package/dist/bundle/{chunk-5ILCAAY4.js → chunk-K5QWV6IX.js} +35 -35
- package/dist/bundle/{chunk-LHY5XGIR.js → chunk-KNL7CKF6.js} +179 -108
- package/dist/bundle/{chunk-JFLKTYH5.js → chunk-KVTNYRDO.js} +6 -6
- package/dist/bundle/chunk-KXJ3JEDH.js +2 -0
- package/dist/bundle/{chunk-CU76ZACK.js → chunk-L45WN3AR.js} +3 -3
- package/dist/bundle/{chunk-2VUIJ5XB.js → chunk-L72WUJAS.js} +2 -2
- package/dist/bundle/{chunk-GWXTVO43.js → chunk-LCUWAH4L.js} +7 -7
- package/dist/bundle/{chunk-4UEYVM46.js → chunk-LKH3UKLO.js} +4 -4
- package/dist/bundle/{chunk-CTN4DW2F.js → chunk-LM3W7YOM.js} +4 -4
- package/dist/bundle/{chunk-3TLNO3VM.js → chunk-LZPKBN3C.js} +2 -2
- package/dist/bundle/{chunk-EJZIEBAR.js → chunk-LZPSIYRC.js} +8 -8
- package/dist/bundle/{chunk-KDW7B7AR.js → chunk-MYXUJCJD.js} +5 -5
- package/dist/bundle/{chunk-PZ3QJDTD.js → chunk-NA2B6PYR.js} +5 -5
- package/dist/bundle/{chunk-TT75CEYZ.js → chunk-NB7EOAUZ.js} +1 -1
- package/dist/bundle/{chunk-XRFYVVFU.js → chunk-NISH4UXM.js} +2 -2
- package/dist/bundle/{chunk-VR2CJFVL.js → chunk-NQVMPJAQ.js} +8 -8
- package/dist/bundle/{chunk-J2SCELII.js → chunk-NVR6M4TF.js} +16 -16
- package/dist/bundle/{chunk-GR4HZBWO.js → chunk-O4AUYEGC.js} +2 -2
- package/dist/bundle/{chunk-TRLV5NWZ.js → chunk-OGVSGXPI.js} +640 -506
- package/dist/bundle/{chunk-3W5R3XAH.js → chunk-OUYXUGUX.js} +8 -8
- package/dist/bundle/chunk-P657KN5N.js +122 -0
- package/dist/bundle/{chunk-GHXTNKX2.js → chunk-P7G5HFY3.js} +2 -2
- package/dist/bundle/{chunk-BU5CEMUH.js → chunk-PFYPJUWX.js} +19 -15
- package/dist/bundle/{chunk-Q6AC7WLD.js → chunk-PLPBEWD4.js} +3 -3
- package/dist/bundle/{chunk-HYDXA624.js → chunk-PMQ7GP6X.js} +6 -6
- package/dist/bundle/{chunk-JDCFHZNU.js → chunk-Q32ZDGS2.js} +8 -8
- package/dist/bundle/{chunk-TAPQZYXY.js → chunk-Q7ICVP25.js} +1 -1
- package/dist/bundle/{chunk-WE4JSHIG.js → chunk-QLYSNL47.js} +6 -6
- package/dist/bundle/{chunk-H5HBZCEJ.js → chunk-QPPOIWPY.js} +8 -8
- package/dist/bundle/{chunk-GEJI27GN.js → chunk-R2C5WDQV.js} +6 -6
- package/dist/bundle/{chunk-UVGJL753.js → chunk-RQORQN2V.js} +61 -61
- package/dist/bundle/{chunk-YIH2A2PQ.js → chunk-RRTMPSQR.js} +2 -2
- package/dist/bundle/{chunk-AP3CWDRK.js → chunk-S6JG4YUH.js} +2 -2
- package/dist/bundle/{chunk-MJ24YFXZ.js → chunk-TTF5DP4V.js} +7 -7
- package/dist/bundle/{chunk-745FMNI5.js → chunk-TXDR6YSF.js} +1 -1
- package/dist/bundle/{chunk-3WG4MTQI.js → chunk-TY7NDMFY.js} +1 -1
- package/dist/bundle/{chunk-ID4GJFE7.js → chunk-U5CFLBNX.js} +8 -8
- package/dist/bundle/{chunk-ZKTYTOF4.js → chunk-UDSL3MUU.js} +8 -8
- package/dist/bundle/{chunk-RLNPTES2.js → chunk-V57E7PJQ.js} +4 -4
- package/dist/bundle/{chunk-67YPTVGP.js → chunk-V7IF2K3P.js} +3 -3
- package/dist/bundle/{chunk-NQOQG7L3.js → chunk-VB7FZOYX.js} +1 -1
- package/dist/bundle/{chunk-KKMOKSS5.js → chunk-VNMEE4ZZ.js} +3 -3
- package/dist/bundle/{chunk-UZ2CL435.js → chunk-VZ5PPYDG.js} +1 -1
- package/dist/bundle/chunk-WOPVBRPV.js +29 -0
- package/dist/bundle/{chunk-R26OEZOL.js → chunk-XEQQJBBO.js} +1 -1
- package/dist/bundle/chunk-XIKSGUMQ.js +1293 -0
- package/dist/bundle/{chunk-YDG5FIQB.js → chunk-XK5BAPHF.js} +7 -7
- package/dist/bundle/{chunk-QH47G73D.js → chunk-XQGN2D44.js} +3 -3
- package/dist/bundle/{chunk-5VTKBGPW.js → chunk-YKSH7BY2.js} +121 -36
- package/dist/bundle/{chunk-BM5F2ZNI.js → chunk-YWDFYQOU.js} +2 -2
- package/dist/bundle/{chunk-5IPB5WLB.js → chunk-ZJEENQRH.js} +12 -12
- package/dist/bundle/{chunk-24HPBWKZ.js → chunk-ZZOCAZSZ.js} +3 -3
- package/dist/bundle/command-contract-BGTXROZA.js +40 -0
- package/dist/bundle/{command-server-entry-H6IAJNOF.js → command-server-entry-PDLRF2RV.js} +28 -28
- package/dist/bundle/{decode-TR2EC46M.js → decode-26M7XE2B.js} +5 -5
- package/dist/bundle/{dispatch-B2EP6DDT.js → dispatch-2FTOHA5D.js} +8 -8
- package/dist/bundle/{echarts-7OP7I5B2.js → echarts-O3TNDAXJ.js} +2 -2
- package/dist/bundle/{embed-FLGS4LN7.js → embed-XJLEAWXE.js} +6 -6
- package/dist/bundle/{embedder-JIXQXCP3.js → embedder-OEL6PXEH.js} +9 -9
- package/dist/bundle/{failure-AOACEURF.js → failure-OHIXWTR6.js} +2 -2
- package/dist/bundle/{first-run-XJ2NWIK2.js → first-run-J2T4IKK4.js} +12 -12
- package/dist/bundle/first-screen-Q5KYFT3R.js +41 -0
- package/dist/bundle/hubspot.js +27 -27
- package/dist/bundle/{instructions-PYCYV6QE.js → instructions-AMH5RWVJ.js} +1 -1
- package/dist/bundle/{mcp-ZNULRPZ4.js → mcp-5HFPWC3W.js} +2 -2
- package/dist/bundle/meeting-combined-5H6VGK6O.js +25 -0
- package/dist/bundle/{meeting-model-2PA5WJY5.js → meeting-model-USLGH5SE.js} +11 -11
- package/dist/bundle/{meeting-semantic-5IH63QFV.js → meeting-semantic-Q6XYFYUD.js} +6 -6
- package/dist/bundle/{node-6GTNIVBM.js → node-EGMCBAO7.js} +2 -2
- package/dist/bundle/{node-sqlite-FBCEHPNT.js → node-sqlite-2SWWGW6H.js} +7 -7
- package/dist/bundle/{oauth-BFP4SCL5.js → oauth-V5LGTXF2.js} +7 -7
- package/dist/bundle/{open-MLU4MHGO.js → open-25EKOTZA.js} +5 -5
- package/dist/bundle/{openai-R7WJI6SO.js → openai-CH37GSZS.js} +15 -15
- package/dist/bundle/{process-NMNQLJHZ.js → process-SGHEN6MQ.js} +1 -1
- package/dist/bundle/{program-Z735HPFG.js → program-G4OZFVUI.js} +212 -117
- package/dist/bundle/{prompt-A6RM55Q4.js → prompt-2VSPX5S7.js} +5 -5
- package/dist/bundle/public-WB7IWBMR.js +196 -0
- package/dist/bundle/{recognize-ORRDV45M.js → recognize-NA5XUFKK.js} +4 -4
- package/dist/bundle/{remote-UF3WSC4X.js → remote-NRJOX6XW.js} +9 -9
- package/dist/bundle/{rerank-ZSJORUGH.js → rerank-NG3XMFCV.js} +7 -7
- package/dist/bundle/{schemas-EXBNVPMI.js → schemas-SKF4MZBJ.js} +1 -1
- package/dist/bundle/{serve-4KBJ6SIA.js → serve-MR67OBED.js} +9 -9
- package/dist/bundle/server-LFNGSVUQ.js +88 -0
- package/dist/bundle/{server-IFK4S6LJ.js → server-NZPHVRS6.js} +62 -60
- package/dist/bundle/{source-PBCQAG4C.js → source-P2KVDTJ5.js} +75 -73
- package/dist/bundle/{sqlite-runtime-XPDUWOPG.js → sqlite-runtime-V5U6F5EB.js} +6 -6
- package/dist/bundle/{state-4M26H7NL.js → state-L4MWAATO.js} +6 -6
- package/dist/bundle/store-ARASPKTV.js +34 -0
- package/dist/bundle/{store-ICTY3RIF.js → store-JFIZLDKO.js} +22 -22
- package/dist/bundle/{store-3W4ZOOIB.js → store-SUHY3G2X.js} +27 -24
- package/dist/bundle/store-maintenance-command-L2FXCEGU.js +75 -0
- package/dist/bundle/surface-NQK7CQ33.js +74 -0
- package/dist/bundle/writer-TYTMOXXA.js +88 -0
- package/dist/config.d.ts +5 -38
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js.map +1 -1
- package/dist/crm/records.d.ts.map +1 -1
- package/dist/crm/records.js +3 -0
- package/dist/crm/records.js.map +1 -1
- package/dist/crm/source.js +1 -1
- package/dist/crm/source.js.map +1 -1
- package/dist/generated/definitions.d.ts +1 -1
- package/dist/generated/definitions.d.ts.map +1 -1
- package/dist/generated/manifest.d.ts +1 -1
- package/dist/generated/manifest.d.ts.map +1 -1
- package/dist/generated/manifest.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/hubspot-cli/SKILL.md +10 -3
- package/dist/bundle/agent-XB35QVOK.js +0 -40
- package/dist/bundle/chunk-HX2BE7DO.js +0 -40
- package/dist/bundle/chunk-V7N2K5OT.js +0 -1269
- package/dist/bundle/command-contract-5FXCYQUS.js +0 -40
- package/dist/bundle/first-screen-U73G5CMM.js +0 -40
- package/dist/bundle/meeting-combined-IHTM5H5B.js +0 -25
- package/dist/bundle/server-MNUAZWTN.js +0 -86
- package/dist/bundle/store-CDY2PW6J.js +0 -34
- package/dist/bundle/store-maintenance-command-Y7TC3I43.js +0 -73
- package/dist/bundle/surface-4LNDJZD2.js +0 -72
- package/dist/bundle/writer-WGHWQTC2.js +0 -86
|
@@ -2,13 +2,13 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
PROVIDER
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7SV76BVS.js";
|
|
6
6
|
import {
|
|
7
7
|
accountDetails
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-O4AUYEGC.js";
|
|
9
9
|
import {
|
|
10
10
|
HUBSPOT_WRITES
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZZOCAZSZ.js";
|
|
12
12
|
import {
|
|
13
13
|
LONGEST_PACE_WAIT_MS,
|
|
14
14
|
PACE,
|
|
@@ -39,30 +39,31 @@ import {
|
|
|
39
39
|
skillCommand,
|
|
40
40
|
upgradeCommand,
|
|
41
41
|
writeCsv
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
42
|
+
} from "./chunk-OGVSGXPI.js";
|
|
43
|
+
import "./chunk-3HC5F3P7.js";
|
|
44
|
+
import "./chunk-VZ5PPYDG.js";
|
|
45
45
|
import {
|
|
46
46
|
SOURCE_SEARCHED,
|
|
47
47
|
allAnswer,
|
|
48
48
|
historySkipsOf,
|
|
49
49
|
offsetOf,
|
|
50
50
|
refuseOffline
|
|
51
|
-
} from "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
51
|
+
} from "./chunk-CVAHCGE6.js";
|
|
52
|
+
import "./chunk-QLYSNL47.js";
|
|
53
|
+
import "./chunk-OUYXUGUX.js";
|
|
54
|
+
import "./chunk-Q7ICVP25.js";
|
|
55
55
|
import {
|
|
56
|
-
addStoreMaintenanceCommands
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
56
|
+
addStoreMaintenanceCommands,
|
|
57
|
+
notLocalPaths
|
|
58
|
+
} from "./chunk-KNL7CKF6.js";
|
|
59
|
+
import "./chunk-IGNMDKP7.js";
|
|
60
|
+
import "./chunk-NQVMPJAQ.js";
|
|
61
|
+
import "./chunk-IA77VHME.js";
|
|
62
|
+
import "./chunk-ZJEENQRH.js";
|
|
63
|
+
import "./chunk-6TD3DCWC.js";
|
|
64
|
+
import "./chunk-4NLZXDXP.js";
|
|
65
|
+
import "./chunk-MYXUJCJD.js";
|
|
66
|
+
import "./chunk-U5CFLBNX.js";
|
|
66
67
|
import {
|
|
67
68
|
CRM_ASSIGN_OTHERS_KEY,
|
|
68
69
|
CRM_SHARED_FOLDERS,
|
|
@@ -86,6 +87,7 @@ import {
|
|
|
86
87
|
crmViewerOf,
|
|
87
88
|
customConditions,
|
|
88
89
|
customNames,
|
|
90
|
+
embedCrmActivities,
|
|
89
91
|
extractText,
|
|
90
92
|
fieldPairsOf,
|
|
91
93
|
filterableFields,
|
|
@@ -114,18 +116,18 @@ import {
|
|
|
114
116
|
wantedCodes,
|
|
115
117
|
withCustomFields,
|
|
116
118
|
withReadableDeal
|
|
117
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-FRF32QVB.js";
|
|
118
120
|
import {
|
|
119
121
|
safeName
|
|
120
|
-
} from "./chunk-
|
|
121
|
-
import "./chunk-
|
|
122
|
-
import "./chunk-
|
|
122
|
+
} from "./chunk-JG6LCSEX.js";
|
|
123
|
+
import "./chunk-P657KN5N.js";
|
|
124
|
+
import "./chunk-NB7EOAUZ.js";
|
|
123
125
|
import {
|
|
124
126
|
latestVersion,
|
|
125
127
|
runUpdate,
|
|
126
128
|
updateNotice
|
|
127
|
-
} from "./chunk-
|
|
128
|
-
import "./chunk-
|
|
129
|
+
} from "./chunk-HZ3C4WXD.js";
|
|
130
|
+
import "./chunk-TY7NDMFY.js";
|
|
129
131
|
import {
|
|
130
132
|
commandPath,
|
|
131
133
|
dateWindow,
|
|
@@ -140,14 +142,15 @@ import {
|
|
|
140
142
|
unfilteredQuery,
|
|
141
143
|
withQuery,
|
|
142
144
|
withWords
|
|
143
|
-
} from "./chunk-
|
|
144
|
-
import "./chunk-
|
|
145
|
-
import "./chunk-
|
|
146
|
-
import "./chunk-
|
|
147
|
-
import "./chunk-
|
|
148
|
-
import "./chunk-
|
|
149
|
-
import "./chunk-
|
|
150
|
-
import "./chunk-
|
|
145
|
+
} from "./chunk-PFYPJUWX.js";
|
|
146
|
+
import "./chunk-WOPVBRPV.js";
|
|
147
|
+
import "./chunk-EVUMQKV7.js";
|
|
148
|
+
import "./chunk-R2C5WDQV.js";
|
|
149
|
+
import "./chunk-D7OZWLJU.js";
|
|
150
|
+
import "./chunk-PLPBEWD4.js";
|
|
151
|
+
import "./chunk-V57E7PJQ.js";
|
|
152
|
+
import "./chunk-XQGN2D44.js";
|
|
153
|
+
import "./chunk-JBZYHRUN.js";
|
|
151
154
|
import {
|
|
152
155
|
Argument,
|
|
153
156
|
Command,
|
|
@@ -159,6 +162,7 @@ import {
|
|
|
159
162
|
Option,
|
|
160
163
|
REMOTE_READ,
|
|
161
164
|
REMOTE_WRITE,
|
|
165
|
+
allowDeletionsOption,
|
|
162
166
|
annotate,
|
|
163
167
|
annotateOption,
|
|
164
168
|
answerEntity,
|
|
@@ -191,13 +195,14 @@ import {
|
|
|
191
195
|
sharedCommand,
|
|
192
196
|
snakeKeys,
|
|
193
197
|
snakeKeysKeeping
|
|
194
|
-
} from "./chunk-
|
|
195
|
-
import "./chunk-
|
|
196
|
-
import "./chunk-
|
|
197
|
-
import "./chunk-
|
|
198
|
-
import "./chunk-
|
|
199
|
-
import "./chunk-
|
|
200
|
-
import "./chunk-
|
|
198
|
+
} from "./chunk-H6AH45GE.js";
|
|
199
|
+
import "./chunk-GIMHJ7HA.js";
|
|
200
|
+
import "./chunk-V7IF2K3P.js";
|
|
201
|
+
import "./chunk-NA2B6PYR.js";
|
|
202
|
+
import "./chunk-3YM4B2GT.js";
|
|
203
|
+
import "./chunk-KXJ3JEDH.js";
|
|
204
|
+
import "./chunk-JPONKBEQ.js";
|
|
205
|
+
import "./chunk-VNMEE4ZZ.js";
|
|
201
206
|
import {
|
|
202
207
|
CRM_CHANGES,
|
|
203
208
|
CRM_SCOPES,
|
|
@@ -207,48 +212,48 @@ import {
|
|
|
207
212
|
crmSettingKey,
|
|
208
213
|
seenBy,
|
|
209
214
|
viewerSql
|
|
210
|
-
} from "./chunk-
|
|
211
|
-
import "./chunk-
|
|
215
|
+
} from "./chunk-7T5BFWZI.js";
|
|
216
|
+
import "./chunk-UDSL3MUU.js";
|
|
212
217
|
import {
|
|
213
218
|
aheadOf,
|
|
214
219
|
dayIn
|
|
215
|
-
} from "./chunk-
|
|
216
|
-
import "./chunk-
|
|
220
|
+
} from "./chunk-L45WN3AR.js";
|
|
221
|
+
import "./chunk-LCUWAH4L.js";
|
|
217
222
|
import {
|
|
218
223
|
count,
|
|
219
224
|
createTaskService,
|
|
220
225
|
text,
|
|
221
226
|
time
|
|
222
|
-
} from "./chunk-
|
|
223
|
-
import "./chunk-
|
|
224
|
-
import "./chunk-
|
|
227
|
+
} from "./chunk-XIKSGUMQ.js";
|
|
228
|
+
import "./chunk-JLXXUEAM.js";
|
|
229
|
+
import "./chunk-Q32ZDGS2.js";
|
|
225
230
|
import {
|
|
226
231
|
hostFetch,
|
|
227
232
|
retrying
|
|
228
|
-
} from "./chunk-
|
|
229
|
-
import "./chunk-
|
|
230
|
-
import "./chunk-
|
|
233
|
+
} from "./chunk-7Z53MLQP.js";
|
|
234
|
+
import "./chunk-KVTNYRDO.js";
|
|
235
|
+
import "./chunk-LM3W7YOM.js";
|
|
231
236
|
import {
|
|
232
237
|
DESKTOP,
|
|
233
238
|
IDENTITY,
|
|
234
239
|
PACKAGE,
|
|
235
240
|
SKILL
|
|
236
|
-
} from "./chunk-
|
|
237
|
-
import "./chunk-
|
|
241
|
+
} from "./chunk-XK5BAPHF.js";
|
|
242
|
+
import "./chunk-LZPKBN3C.js";
|
|
238
243
|
import "./chunk-EH6ZEJGT.js";
|
|
239
|
-
import "./chunk-
|
|
240
|
-
import "./chunk-
|
|
244
|
+
import "./chunk-D7NSIQBI.js";
|
|
245
|
+
import "./chunk-LZPSIYRC.js";
|
|
241
246
|
import {
|
|
242
247
|
installerOf
|
|
243
|
-
} from "./chunk-
|
|
248
|
+
} from "./chunk-TXDR6YSF.js";
|
|
244
249
|
import {
|
|
245
250
|
fieldsOf
|
|
246
|
-
} from "./chunk-
|
|
251
|
+
} from "./chunk-IPKCM55K.js";
|
|
247
252
|
import {
|
|
248
253
|
foldName
|
|
249
|
-
} from "./chunk-
|
|
250
|
-
import "./chunk-
|
|
251
|
-
import "./chunk-
|
|
254
|
+
} from "./chunk-BGWQIFAS.js";
|
|
255
|
+
import "./chunk-5XYI75HH.js";
|
|
256
|
+
import "./chunk-2JHVQMVC.js";
|
|
252
257
|
import {
|
|
253
258
|
CRM_ACTIVITY_KINDS,
|
|
254
259
|
CRM_KINDS,
|
|
@@ -259,33 +264,33 @@ import {
|
|
|
259
264
|
normalCrmUserId,
|
|
260
265
|
parseDecimal,
|
|
261
266
|
scaleOf
|
|
262
|
-
} from "./chunk-
|
|
263
|
-
import "./chunk-
|
|
264
|
-
import "./chunk-
|
|
267
|
+
} from "./chunk-AINKLKDN.js";
|
|
268
|
+
import "./chunk-XEQQJBBO.js";
|
|
269
|
+
import "./chunk-RRTMPSQR.js";
|
|
265
270
|
import {
|
|
266
271
|
SAVE_HELP,
|
|
267
272
|
defineQuery,
|
|
268
273
|
queryFieldsOf,
|
|
269
274
|
timezoneOf,
|
|
270
275
|
zonedMoment
|
|
271
|
-
} from "./chunk-
|
|
272
|
-
import "./chunk-
|
|
273
|
-
import "./chunk-
|
|
276
|
+
} from "./chunk-RQORQN2V.js";
|
|
277
|
+
import "./chunk-DNCLQPOM.js";
|
|
278
|
+
import "./chunk-TTF5DP4V.js";
|
|
274
279
|
import "./chunk-D72URWJE.js";
|
|
275
280
|
import {
|
|
276
281
|
readSecret
|
|
277
|
-
} from "./chunk-
|
|
278
|
-
import "./chunk-
|
|
279
|
-
import "./chunk-
|
|
280
|
-
import "./chunk-
|
|
281
|
-
import "./chunk-
|
|
282
|
+
} from "./chunk-IA7LLLEI.js";
|
|
283
|
+
import "./chunk-YWDFYQOU.js";
|
|
284
|
+
import "./chunk-L72WUJAS.js";
|
|
285
|
+
import "./chunk-PMQ7GP6X.js";
|
|
286
|
+
import "./chunk-GGMAIIVE.js";
|
|
282
287
|
import {
|
|
283
288
|
renderPretty,
|
|
284
289
|
resolvePaths
|
|
285
|
-
} from "./chunk-
|
|
290
|
+
} from "./chunk-5JKTVAXX.js";
|
|
286
291
|
import {
|
|
287
292
|
isoTime
|
|
288
|
-
} from "./chunk-
|
|
293
|
+
} from "./chunk-QPPOIWPY.js";
|
|
289
294
|
import {
|
|
290
295
|
array,
|
|
291
296
|
boolean,
|
|
@@ -306,8 +311,8 @@ import "./chunk-Y5E2WNWB.js";
|
|
|
306
311
|
import {
|
|
307
312
|
CliError,
|
|
308
313
|
isCliError
|
|
309
|
-
} from "./chunk-
|
|
310
|
-
import "./chunk-
|
|
314
|
+
} from "./chunk-S6JG4YUH.js";
|
|
315
|
+
import "./chunk-4N7PP76S.js";
|
|
311
316
|
import {
|
|
312
317
|
__export,
|
|
313
318
|
__name
|
|
@@ -316,7 +321,7 @@ import {
|
|
|
316
321
|
// dist/program.js
|
|
317
322
|
import { join as join4 } from "node:path";
|
|
318
323
|
|
|
319
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
324
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/update/index.js
|
|
320
325
|
import { realpathSync } from "node:fs";
|
|
321
326
|
import { fileURLToPath } from "node:url";
|
|
322
327
|
var npmRegistry = /* @__PURE__ */ __name(() => hostFetch({ hosts: ["registry.npmjs.org"] }), "npmRegistry");
|
|
@@ -7075,12 +7080,12 @@ var apiCommand = /* @__PURE__ */ __name(() => {
|
|
|
7075
7080
|
timeZone: sent.timeZone
|
|
7076
7081
|
}), "failure"),
|
|
7077
7082
|
token: tokenOf,
|
|
7078
|
-
schemas: /* @__PURE__ */ __name(() => import("./schemas-
|
|
7083
|
+
schemas: /* @__PURE__ */ __name(() => import("./schemas-SKF4MZBJ.js").then((module) => module.schemas), "schemas"),
|
|
7079
7084
|
definitions: /* @__PURE__ */ __name(() => import("./definitions-MVPICAWV.js").then((module) => module.definitions), "definitions")
|
|
7080
7085
|
});
|
|
7081
7086
|
}, "apiCommand");
|
|
7082
7087
|
|
|
7083
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7088
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/crm/stage-tasks.js
|
|
7084
7089
|
var DAY = 864e5;
|
|
7085
7090
|
var openStageTasks = /* @__PURE__ */ __name(async (store, account, now, { history = false } = {}) => {
|
|
7086
7091
|
const rules = await store.crm.stageTasks(account);
|
|
@@ -7117,7 +7122,7 @@ var openStageTasks = /* @__PURE__ */ __name(async (store, account, now, { histor
|
|
|
7117
7122
|
return opened;
|
|
7118
7123
|
}, "openStageTasks");
|
|
7119
7124
|
|
|
7120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7125
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/crm/cli/account.js
|
|
7121
7126
|
import { join } from "node:path";
|
|
7122
7127
|
var SHARED = new Set(Object.values(CRM_SHARED_FOLDERS));
|
|
7123
7128
|
var isShared = /* @__PURE__ */ __name((profile) => SHARED.has(profile.toLowerCase()), "isShared");
|
|
@@ -7223,7 +7228,7 @@ var crmAccountCommand = /* @__PURE__ */ __name((app, options) => annotate(new Co
|
|
|
7223
7228
|
...options.resolveSettings ? { resolveSettings: options.resolveSettings } : {}
|
|
7224
7229
|
}), { effects: LOCAL_WRITE }).hook("preAction", (_, action) => refuseSharedDelete(app, options, action))), "crmAccountCommand");
|
|
7225
7230
|
|
|
7226
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7231
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/crm/digest.js
|
|
7227
7232
|
var HOUR = 36e5;
|
|
7228
7233
|
var SHOWN = 7;
|
|
7229
7234
|
var STALE_HOURS = 24;
|
|
@@ -7367,7 +7372,7 @@ var healthOf = /* @__PURE__ */ __name(async (store, account, { now, profile }) =
|
|
|
7367
7372
|
return stale > STALE_HOURS ? [{ ...named, stale_hours: Math.floor(stale) }] : [];
|
|
7368
7373
|
}, "healthOf");
|
|
7369
7374
|
|
|
7370
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7375
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/crm/cli/csv.js
|
|
7371
7376
|
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");
|
|
7372
7377
|
var DEAL_CSV_COLUMNS = [
|
|
7373
7378
|
"ref",
|
|
@@ -7489,7 +7494,7 @@ var renderCsv = /* @__PURE__ */ __name((command, open2, read, defaults = DEAL_CS
|
|
|
7489
7494
|
});
|
|
7490
7495
|
}, "renderCsv");
|
|
7491
7496
|
|
|
7492
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7497
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/crm/cli/records.js
|
|
7493
7498
|
var time2 = nullable(isoTime);
|
|
7494
7499
|
var metadata = optional(record(string(), strictObject({
|
|
7495
7500
|
label: nullable(string()),
|
|
@@ -7710,7 +7715,7 @@ var addCrmRecordCommands = /* @__PURE__ */ __name((program, options) => {
|
|
|
7710
7715
|
});
|
|
7711
7716
|
});
|
|
7712
7717
|
});
|
|
7713
|
-
example(answerEntity(annotate(group.command("show"), { effects: REMOTE_READ, offline: false }), noun.entity, noun.schema).description(`one of the CRM's ${noun.what}, read live, with its phones and e-mails; one that is not your client counts toward the day's limit when the CRM sets one`).argument(`<${noun.kind}>`, `the CRM's id of the ${noun.kind}, as list prints it, or its exact name`), `${noun.noun} show 42`, `${noun.noun} show "Anna Example" --json`).action(async (given, _opts, command) => {
|
|
7718
|
+
example(answerEntity(annotate(group.command("show"), { effects: REMOTE_READ, offline: false }), noun.entity, noun.schema).description(`one of the CRM's ${noun.what}, read live, with its phones and e-mails; one that is not your client counts toward the day's limit when the CRM sets one`).argument(`<${noun.kind}>`, `the CRM's id of the ${noun.kind}, as list prints it, the ${noun.kind}:<id> a deal gives, or its exact name`), `${noun.noun} show 42`, `${noun.noun} show "Anna Example" --json`).action(async (given, _opts, command) => {
|
|
7714
7719
|
await within(command, async (run3) => {
|
|
7715
7720
|
const found = await recordNamed(run3, noun, given);
|
|
7716
7721
|
await quotaOf2(run3).spend(noun.kind, found);
|
|
@@ -7734,8 +7739,22 @@ var byIdOrNone = /* @__PURE__ */ __name(async (run3, noun, id) => {
|
|
|
7734
7739
|
throw error;
|
|
7735
7740
|
}
|
|
7736
7741
|
}, "byIdOrNone");
|
|
7742
|
+
var storedRecord = /* @__PURE__ */ __name(async (run3, noun, ref) => {
|
|
7743
|
+
const ids = await run3.store.crm.externalIdsOf(run3.account, ref);
|
|
7744
|
+
if (ids.length > 1)
|
|
7745
|
+
throw new CliError("validation_error", `${ref} is ${ids.length} records of the CRM; name one by its id`, {
|
|
7746
|
+
reason: "crm.record-ambiguous",
|
|
7747
|
+
candidates: ids.map((id) => ({ id }))
|
|
7748
|
+
});
|
|
7749
|
+
const found = ids[0] ? await sourceWith(run3, "get", noun.what).get(noun.kind, ids[0]) : null;
|
|
7750
|
+
if (!found)
|
|
7751
|
+
throw new CliError("not_found", `the copy holds no CRM ${noun.kind} as ${ref}, or this sign-in cannot see it`);
|
|
7752
|
+
return found;
|
|
7753
|
+
}, "storedRecord");
|
|
7737
7754
|
var recordNamed = /* @__PURE__ */ __name(async (run3, noun, given) => {
|
|
7738
7755
|
const id = given.trim();
|
|
7756
|
+
if (id.startsWith(`${noun.kind}:`) && /^\w+:\d+$/.test(id))
|
|
7757
|
+
return storedRecord(run3, noun, id);
|
|
7739
7758
|
const byId = RECORD_ID.test(id) ? await byIdOrNone(run3, noun, id) : null;
|
|
7740
7759
|
if (byId)
|
|
7741
7760
|
return byId;
|
|
@@ -7813,16 +7832,28 @@ var addRecordWrites = /* @__PURE__ */ __name((group, noun, { within, example, wr
|
|
|
7813
7832
|
if (!writes?.kinds.includes(noun.kind))
|
|
7814
7833
|
return;
|
|
7815
7834
|
const person = noun.kind === "person";
|
|
7835
|
+
const written = writes.fields?.[noun.kind];
|
|
7836
|
+
const takes = /* @__PURE__ */ __name((field) => !written || written.includes(field), "takes");
|
|
7816
7837
|
const fields = /* @__PURE__ */ __name((command2) => {
|
|
7817
7838
|
command2.option("--name <name>", person ? "the whole name" : "the company's name");
|
|
7818
|
-
if (person)
|
|
7819
|
-
command2.option("--first-name <name>", "the first name; empty clears it").option("--last-name <name>", "the last name; empty clears it")
|
|
7839
|
+
if (person) {
|
|
7840
|
+
command2.option("--first-name <name>", "the first name; empty clears it").option("--last-name <name>", "the last name; empty clears it");
|
|
7841
|
+
if (takes("position"))
|
|
7842
|
+
command2.option("--position <title>", "the job title; empty clears it");
|
|
7843
|
+
}
|
|
7820
7844
|
const repeated = /* @__PURE__ */ __name((value, previous = []) => [...previous, value], "repeated");
|
|
7821
|
-
|
|
7822
|
-
|
|
7823
|
-
|
|
7824
|
-
|
|
7825
|
-
|
|
7845
|
+
if (takes("emails"))
|
|
7846
|
+
command2.option("--email <address>", "an e-mail address to give it; repeat it for more; replaces its list, and an empty one clears it", repeated);
|
|
7847
|
+
if (takes("phones"))
|
|
7848
|
+
command2.option("--phone <phone>", "a phone number to give it, in international form starting with +; repeat it for more; replaces its list, and an empty one clears it", repeated);
|
|
7849
|
+
if (takes("owner"))
|
|
7850
|
+
command2.option("--owner <user>", "the CRM user it is assigned to; anyone but the sign-in's own user checks crm.assign-others");
|
|
7851
|
+
if (takes("custom"))
|
|
7852
|
+
command2.option("--field <key=value>", "one of the CRM's own fields, by its code or label as `fields list` prints them, and its value; a list field takes its option's label or id; repeat it for more fields, or for each value of a multiple field; an empty value clears it", (value, previous = []) => {
|
|
7853
|
+
if (value.indexOf("=") < 1)
|
|
7854
|
+
throw new CliError("validation_error", "--field takes <key>=<value>");
|
|
7855
|
+
return [...previous, value];
|
|
7856
|
+
}, []);
|
|
7826
7857
|
if (writes.idempotent)
|
|
7827
7858
|
command2.option("--operation-id <id>", "the operation_id a write that ended in outcome_unknown named: the CRM answers the repeat from its record");
|
|
7828
7859
|
return command2;
|
|
@@ -7870,7 +7901,7 @@ var addRecordWrites = /* @__PURE__ */ __name((group, noun, { within, example, wr
|
|
|
7870
7901
|
}, "addRecordWrites");
|
|
7871
7902
|
var idOf = /* @__PURE__ */ __name((opts) => opts.operationId === void 0 ? {} : { operationId: opts.operationId }, "idOf");
|
|
7872
7903
|
|
|
7873
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7904
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/crm/cli/activities.js
|
|
7874
7905
|
var MOST2 = 500;
|
|
7875
7906
|
var nullableText = nullable(text);
|
|
7876
7907
|
var REFS = ["deal", "lead", "person", "organization"];
|
|
@@ -8028,7 +8059,7 @@ var addActivityWrites = /* @__PURE__ */ __name((group, options) => {
|
|
|
8028
8059
|
const task = kinds.includes("task");
|
|
8029
8060
|
example(write("create", `add a ${kinds.join(" or ")} to records of the CRM, then store the CRM's copy of it when the activities setting is on`).addArgument(new Argument("<kind>", "what to add").choices(kinds)).option(
|
|
8030
8061
|
"--subject <ref>",
|
|
8031
|
-
`a record it is on: ${leads ? "deal:<id
|
|
8062
|
+
`a record it is on: ${leads ? "deal:<id>, lead:<id>" : "deal:<id>"}, person:<id> or organization:<id> as a list or deals show gives it, or person:crm:<id> or organization:crm:<id> by the CRM's id as people list and organizations list print it; repeat it for more`,
|
|
8032
8063
|
(value, previous = []) => [...previous, value],
|
|
8033
8064
|
// The empty default marks the flag as repeatable, so an agent's tool takes a list.
|
|
8034
8065
|
[]
|
|
@@ -8063,7 +8094,7 @@ var writtenOf = /* @__PURE__ */ __name((run3, activity, on) => ({
|
|
|
8063
8094
|
untrusted: UNTRUSTED
|
|
8064
8095
|
}), "writtenOf");
|
|
8065
8096
|
|
|
8066
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8097
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/crm/cli/changes.js
|
|
8067
8098
|
var MOST3 = 500;
|
|
8068
8099
|
var DAY2 = 864e5;
|
|
8069
8100
|
var nullableText2 = nullable(text);
|
|
@@ -8292,7 +8323,7 @@ var pipelineOf2 = /* @__PURE__ */ __name(async (run3, value) => {
|
|
|
8292
8323
|
}) : new CliError("not_found", `no pipeline ${value} in this account`, { reason: "pipeline.not-found" });
|
|
8293
8324
|
}, "pipelineOf");
|
|
8294
8325
|
|
|
8295
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8326
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/crm/cli/files.js
|
|
8296
8327
|
import { createHash } from "node:crypto";
|
|
8297
8328
|
import { chmodSync, constants, copyFileSync, existsSync, linkSync, mkdirSync, readFileSync, renameSync, rmSync } from "node:fs";
|
|
8298
8329
|
import { open } from "node:fs/promises";
|
|
@@ -8595,7 +8626,7 @@ var addCrmFileCommands = /* @__PURE__ */ __name((program, options) => {
|
|
|
8595
8626
|
const { signal } = environmentOf(command);
|
|
8596
8627
|
return { app, run: run3, now, ...signal ? { signal } : {} };
|
|
8597
8628
|
}, "contextOf");
|
|
8598
|
-
const group = annotate(program.command("files"), { effects: REMOTE_READ }).description("the files of the CRM's deals, leads, contacts and companies: listed live, downloaded on demand, their text found by search all");
|
|
8629
|
+
const group = notLocalPaths(annotate(program.command("files"), { effects: REMOTE_READ }), "file").description("the files of the CRM's deals, leads, contacts and companies: listed live, downloaded on demand, their text found by search all");
|
|
8599
8630
|
const list = example(answerEntity(annotate(group.command("list"), { effects: REMOTE_READ, offline: false }), "crm_file", crmFile).description("one record's files, read live from the CRM, with the path of each already downloaded; another user's record counts toward the day's limit when the CRM sets one"), "files list --deal 12", "files list --person 42 --json");
|
|
8600
8631
|
for (const [, flag] of kinds)
|
|
8601
8632
|
list.option(flag, `the ${flag.slice(2, flag.indexOf(" "))} whose files to list`);
|
|
@@ -8829,7 +8860,7 @@ var syncFiles = /* @__PURE__ */ __name(async (context, outOfTime, deadline = (ms
|
|
|
8829
8860
|
return report;
|
|
8830
8861
|
}, "syncFiles");
|
|
8831
8862
|
|
|
8832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8863
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/crm/cli/pipeline-view.js
|
|
8833
8864
|
var sumOf = /* @__PURE__ */ __name((amounts) => amounts.map(({ amount, currency }) => `${groupDigits(amount)} ${currency}`).join(", ") || "\u2014", "sumOf");
|
|
8834
8865
|
var percent = /* @__PURE__ */ __name((share) => share === null ? "\u2014" : `${Math.round(share * 100)}%`, "percent");
|
|
8835
8866
|
var openStages = /* @__PURE__ */ __name((stages) => {
|
|
@@ -8875,12 +8906,14 @@ ${outcomes.join("\n")}`
|
|
|
8875
8906
|
].join("\n\n");
|
|
8876
8907
|
}, "pipelineView");
|
|
8877
8908
|
|
|
8878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8909
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/crm/cli/search-all.js
|
|
8879
8910
|
var SEARCHED = ["crm", ...SOURCE_SEARCHED];
|
|
8880
8911
|
var DEFAULT_LIMIT = 20;
|
|
8881
8912
|
var addCrmSearchAll = /* @__PURE__ */ __name((searches, { within, app, example, viewerOf: viewerOf2, leads = true }) => {
|
|
8882
8913
|
const deals = leads ? "deals and leads" : "deals";
|
|
8883
|
-
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",
|
|
8914
|
+
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", `
|
|
8915
|
+
It finds ${deals} by the meaning of their activities too, in other words or another language, once \`sync --embed\` has built their vectors with a downloaded model; until then it says it searched by words only.
|
|
8916
|
+
` + SAVE_HELP);
|
|
8884
8917
|
searches.addCommand(searchAllOptions(all, SEARCHED));
|
|
8885
8918
|
example(all, "search all Example LLC", "search all website --only crm --json");
|
|
8886
8919
|
all.action(async (words, _opts, leaf) => {
|
|
@@ -8890,7 +8923,7 @@ var addCrmSearchAll = /* @__PURE__ */ __name((searches, { within, app, example,
|
|
|
8890
8923
|
throw new CliError("permission_error", "this process is locked to one profile; search all reads its own CRM account only, without --source", { reason: "profile.locked" });
|
|
8891
8924
|
const asked = opts.only ?? SEARCHED;
|
|
8892
8925
|
const denied = deniedKinds(leaf, app, [
|
|
8893
|
-
...asked.includes("crm") ? [...DEAL_KINDS, "crm_file"] : [],
|
|
8926
|
+
...asked.includes("crm") ? [...DEAL_KINDS, "crm_file", "crm_activity"] : [],
|
|
8894
8927
|
...asked.filter((one) => one !== "crm" && one !== "mail")
|
|
8895
8928
|
]);
|
|
8896
8929
|
const out = new Set(denied.map(({ kind }) => kind));
|
|
@@ -8920,6 +8953,7 @@ var addCrmSearchAll = /* @__PURE__ */ __name((searches, { within, app, example,
|
|
|
8920
8953
|
...crmKinds.length < DEAL_KINDS.length ? { crmKinds } : {},
|
|
8921
8954
|
crmViewers: viewers,
|
|
8922
8955
|
...out.has("crm_file") ? { crmFiles: false } : {},
|
|
8956
|
+
...out.has("crm_activity") ? { crmActivities: false } : {},
|
|
8923
8957
|
...opts.source === void 0 ? {} : { source: opts.source },
|
|
8924
8958
|
...alone ? { scope: { crm: [run3.account] } } : {}
|
|
8925
8959
|
}, { app, hintCommand: commandAt(rootOf2(leaf), "models download") ? app.command : null }, void 0, meaningLane({ env, messenger: { app }, store: /* @__PURE__ */ __name(async () => run3.store, "store") }));
|
|
@@ -8930,6 +8964,11 @@ var addCrmSearchAll = /* @__PURE__ */ __name((searches, { within, app, example,
|
|
|
8930
8964
|
note(`${resource ?? source} not searched: ${reason}`);
|
|
8931
8965
|
if (!found.items.length)
|
|
8932
8966
|
note("nothing found in what the local store holds");
|
|
8967
|
+
const off = found.crm?.needsVectors && !await run3.store.crm.activitiesOn(run3.account);
|
|
8968
|
+
const build = off ? `\`${lineOf(leaf, "config set activities on")}\`, then \`${lineOf(leaf, "sync --embed")}\`, copy the activities and build` : `\`${lineOf(leaf, "sync --embed")}\` builds`;
|
|
8969
|
+
const vectors = found.crm?.needsVectors ? `deals and leads were found by words only: ${found.crm.meaningSkipped}; ${build} the vectors that find them by the meaning of their activities` : void 0;
|
|
8970
|
+
if (vectors)
|
|
8971
|
+
note(vectors);
|
|
8933
8972
|
const skips = await historySkipsOf(run3.store, found.accounts).catch(() => []);
|
|
8934
8973
|
const again = {
|
|
8935
8974
|
query: words.join(" "),
|
|
@@ -8937,12 +8976,64 @@ var addCrmSearchAll = /* @__PURE__ */ __name((searches, { within, app, example,
|
|
|
8937
8976
|
...opts.source === void 0 ? {} : { source: opts.source },
|
|
8938
8977
|
...opts.exact ? { exact: true } : {}
|
|
8939
8978
|
};
|
|
8940
|
-
|
|
8979
|
+
const body = allAnswer("search all", found, { limit, page: opts.page ?? 1, again }, opts.exact === true, skips, denied);
|
|
8980
|
+
return vectors ? { ...body, missing: [...body.missing ?? [], { field: "found_by", why: vectors }] } : body;
|
|
8941
8981
|
});
|
|
8942
8982
|
});
|
|
8943
8983
|
}, "addCrmSearchAll");
|
|
8944
8984
|
|
|
8945
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8985
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/crm/cli/sync-embed.js
|
|
8986
|
+
var EMBED_MAX = 600;
|
|
8987
|
+
var crmSyncEmbeddings = strictObject({
|
|
8988
|
+
model: text,
|
|
8989
|
+
embedded: count,
|
|
8990
|
+
left: boolean(),
|
|
8991
|
+
stopped: optional(picklist(["deadline", "cancelled"])),
|
|
8992
|
+
remaining: optional(count)
|
|
8993
|
+
});
|
|
8994
|
+
var syncEmbeddings = /* @__PURE__ */ __name(async (command, store, report, app, again) => {
|
|
8995
|
+
if (report.stopped)
|
|
8996
|
+
return { item: {}, issues: [] };
|
|
8997
|
+
const { env, deadline, signal } = environmentOf(command);
|
|
8998
|
+
const ends = deadline?.();
|
|
8999
|
+
try {
|
|
9000
|
+
const embeddings = await embedCrmActivities(store, {
|
|
9001
|
+
maxChunks: EMBED_MAX,
|
|
9002
|
+
...ends ? { deadline: ends } : {},
|
|
9003
|
+
...signal ? { signal } : {},
|
|
9004
|
+
...env ? { env } : {},
|
|
9005
|
+
...commandAt(rootOf2(command), "models download") ? { command: app.command } : {}
|
|
9006
|
+
});
|
|
9007
|
+
if (!embeddings.left)
|
|
9008
|
+
return { item: { embeddings }, issues: [] };
|
|
9009
|
+
return {
|
|
9010
|
+
item: { embeddings },
|
|
9011
|
+
issues: [],
|
|
9012
|
+
next: [
|
|
9013
|
+
{
|
|
9014
|
+
kind: "command",
|
|
9015
|
+
step: "crm.sync",
|
|
9016
|
+
command: "sync",
|
|
9017
|
+
args: Object.fromEntries(Object.entries({ ...again, embed: true }).filter(([, value]) => value !== void 0)),
|
|
9018
|
+
why: `${embeddings.remaining === void 0 ? "some" : embeddings.remaining} activity chunks have no vectors yet, so search all may miss their deals by meaning; running sync --embed again embeds the next ones`,
|
|
9019
|
+
safe_to_auto_execute: true
|
|
9020
|
+
}
|
|
9021
|
+
]
|
|
9022
|
+
};
|
|
9023
|
+
} catch (error) {
|
|
9024
|
+
if (signal?.aborted || !isCliError(error))
|
|
9025
|
+
throw error;
|
|
9026
|
+
const reason = error.details.reason;
|
|
9027
|
+
return {
|
|
9028
|
+
item: {},
|
|
9029
|
+
issues: [
|
|
9030
|
+
{ code: error.code, reason: typeof reason === "string" ? reason : "sync.failed", source: "crm:embeddings" }
|
|
9031
|
+
]
|
|
9032
|
+
};
|
|
9033
|
+
}
|
|
9034
|
+
}, "syncEmbeddings");
|
|
9035
|
+
|
|
9036
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/profile-store.js
|
|
8946
9037
|
import { mkdtempSync, rmSync as rmSync2 } from "node:fs";
|
|
8947
9038
|
import { tmpdir } from "node:os";
|
|
8948
9039
|
import { join as join3 } from "node:path";
|
|
@@ -8991,10 +9082,10 @@ var withProfile = /* @__PURE__ */ __name(async ({ app, profile, open: open2 }, e
|
|
|
8991
9082
|
}
|
|
8992
9083
|
}, "withProfile");
|
|
8993
9084
|
|
|
8994
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9085
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/crm/cli/store.js
|
|
8995
9086
|
var openCrmStore = openProfileStore;
|
|
8996
9087
|
|
|
8997
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9088
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/crm/cli/index.js
|
|
8998
9089
|
var MOST4 = 500;
|
|
8999
9090
|
var STAGE_REF = /^stage:\d+$/;
|
|
9000
9091
|
var timeField = /* @__PURE__ */ __name((name, example, relation) => nativeField({ name, type: "time", operators: ["term", "range"], example, relation }), "timeField");
|
|
@@ -9060,7 +9151,7 @@ var crmSync = strictObject({
|
|
|
9060
9151
|
skipped_owner_rejected: count,
|
|
9061
9152
|
contacts_removed: optional(crmContactsRemoved),
|
|
9062
9153
|
stage_tasks: count,
|
|
9063
|
-
activities: optional(strictObject({ saved: count, out_of_scope: count, state: picklist(["partial", "complete"]) })),
|
|
9154
|
+
activities: optional(strictObject({ saved: count, out_of_scope: count, removed: count, state: picklist(["partial", "complete"]) })),
|
|
9064
9155
|
synced: array(strictObject({
|
|
9065
9156
|
kind: picklist(CRM_KINDS),
|
|
9066
9157
|
round: picklist(["full", "changes"]),
|
|
@@ -9086,7 +9177,8 @@ var crmSync = strictObject({
|
|
|
9086
9177
|
stopped: optional(picklist(["requests", "deadline", "cancelled"])),
|
|
9087
9178
|
progress: strictObject({ requests: count, saved: count, steps: count }),
|
|
9088
9179
|
hint: optional(text),
|
|
9089
|
-
group_hint: optional(text)
|
|
9180
|
+
group_hint: optional(text),
|
|
9181
|
+
embeddings: optional(crmSyncEmbeddings)
|
|
9090
9182
|
});
|
|
9091
9183
|
var crmSyncProgress = strictObject({
|
|
9092
9184
|
kind: picklist(CRM_KINDS),
|
|
@@ -9165,16 +9257,16 @@ var addCrmCommandsDefinition = /* @__PURE__ */ __name((program, options) => {
|
|
|
9165
9257
|
const hasLeads = options.leads !== false;
|
|
9166
9258
|
const dealsAndLeads = hasLeads ? "deals and leads" : "deals";
|
|
9167
9259
|
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", `
|
|
9168
|
-
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 --
|
|
9169
|
-
const { signal } = environmentOf(command);
|
|
9260
|
+
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. With --embed it then indexes the activities' text with a model already downloaded, so search all finds their deals and leads by meaning, not only by words.`), "sync", "sync --rescan", "sync --embed").option("--rescan", "list everything again, every id too, dropping a round in progress").addOption(allowDeletionsOption()).option("--max-pages <pages>", "at most this many requests to the CRM in this run", integer(1e5)).option("--embed", "also index new activities and tasks for search all by meaning, with a model already downloaded").action(async (opts, command) => {
|
|
9170
9261
|
await within(command, async (run3) => {
|
|
9171
9262
|
const source = run3.source();
|
|
9172
9263
|
const started = now();
|
|
9173
9264
|
const report = await syncRecorded(source, run3.store, run3.account, {
|
|
9174
9265
|
now: started,
|
|
9175
9266
|
budget: runBudgetOf(command, opts.maxPages),
|
|
9176
|
-
|
|
9177
|
-
|
|
9267
|
+
signal: environmentOf(command).signal,
|
|
9268
|
+
rescan: opts.rescan,
|
|
9269
|
+
allowDeletions: opts.allowDeletions
|
|
9178
9270
|
});
|
|
9179
9271
|
const stageTasks = await openStageTasks(run3.store, run3.account, started, {
|
|
9180
9272
|
history: source.stageHistory !== void 0
|
|
@@ -9183,13 +9275,14 @@ With the activities setting on, it also copies the activities and tasks on the $
|
|
|
9183
9275
|
const retried = failed.filter((one) => one.setting === void 0);
|
|
9184
9276
|
const settings = [...new Set(failed.flatMap((one) => one.setting ?? []))];
|
|
9185
9277
|
const timeout = command.optsWithGlobals().timeout;
|
|
9278
|
+
const again = { max_pages: opts.maxPages, timeout, embed: opts.embed };
|
|
9186
9279
|
const stuck = report.state === "partial" && report.progress.steps === 0 && failed.length === 0;
|
|
9187
9280
|
const next = retried.length || report.state === "partial" && !stuck && failed.length === 0 ? [
|
|
9188
9281
|
{
|
|
9189
9282
|
kind: "command",
|
|
9190
9283
|
step: "crm.sync",
|
|
9191
9284
|
command: "sync",
|
|
9192
|
-
args: Object.fromEntries(Object.entries(
|
|
9285
|
+
args: Object.fromEntries(Object.entries(again).filter(([, value]) => value !== void 0)),
|
|
9193
9286
|
why: retried.length ? "a kind failed to sync; running sync again retries it" : "the sync stopped before its end to answer in time; running it again goes on from there",
|
|
9194
9287
|
safe_to_auto_execute: true
|
|
9195
9288
|
}
|
|
@@ -9198,6 +9291,7 @@ With the activities setting on, it also copies the activities and tasks on the $
|
|
|
9198
9291
|
const fixes = settings.map((setting) => lineOf(command, `config set ${setting} <value>`));
|
|
9199
9292
|
const hint = failed.length ? `${failed.map((one) => `${one.kind}: ${one.error}`).join("; ")} \u2014 ${fixes.length ? `fix the setting: ${fixes.join("; ")}` : "run sync again to retry"}` : stuck ? `this run moved nothing on: raise --timeout or --max-pages, then run sync again; see progress: ${progressAt}` : report.state === "partial" ? `run sync again to continue; see progress: ${progressAt}` : void 0;
|
|
9200
9293
|
const { hint: _hint, ...rest } = report;
|
|
9294
|
+
const embedded = opts.embed ? await syncEmbeddings(command, run3.store, report, options.app, again) : void 0;
|
|
9201
9295
|
const issues = [
|
|
9202
9296
|
...failed.map((one) => ({
|
|
9203
9297
|
code: one.setting === void 0 ? "provider_error" : "validation_error",
|
|
@@ -9208,12 +9302,13 @@ With the activities setting on, it also copies the activities and tasks on the $
|
|
|
9208
9302
|
code: "validation_error",
|
|
9209
9303
|
reason: one.reason,
|
|
9210
9304
|
source: one.externalId === void 0 ? `crm:${one.kind}` : `crm:${one.kind}/${one.externalId}`
|
|
9211
|
-
}))
|
|
9305
|
+
})),
|
|
9306
|
+
...embedded?.issues ?? []
|
|
9212
9307
|
];
|
|
9213
9308
|
const partial = report.state === "partial" || issues.length > 0;
|
|
9214
|
-
return itemOf(snakeKeys({ ...rest, stageTasks, ...hint === void 0 ? {} : { hint } }), {
|
|
9309
|
+
return itemOf(snakeKeys({ ...rest, stageTasks, ...hint === void 0 ? {} : { hint }, ...embedded?.item }), {
|
|
9215
9310
|
...partial ? { meta: { complete: false, ...issues.length ? { issues } : {} } } : {},
|
|
9216
|
-
...next ? { next } : {}
|
|
9311
|
+
...next || embedded?.next ? { next: next ?? embedded?.next } : {}
|
|
9217
9312
|
});
|
|
9218
9313
|
});
|
|
9219
9314
|
});
|
|
@@ -9617,7 +9712,7 @@ var HUBSPOT_ACCOUNT = {
|
|
|
9617
9712
|
|
|
9618
9713
|
// dist/commands/crm-shared.js
|
|
9619
9714
|
var savedAccount = /* @__PURE__ */ __name(async (env, profile) => {
|
|
9620
|
-
const { openHubspotStore } = await import("./store-
|
|
9715
|
+
const { openHubspotStore } = await import("./store-ARASPKTV.js");
|
|
9621
9716
|
const store = await openHubspotStore(env, { readOnly: true }).catch(() => void 0);
|
|
9622
9717
|
if (!store)
|
|
9623
9718
|
return void 0;
|
|
@@ -9632,9 +9727,9 @@ var savedAccount = /* @__PURE__ */ __name(async (env, profile) => {
|
|
|
9632
9727
|
var openProfile = /* @__PURE__ */ __name(async (command, { readOnly }) => {
|
|
9633
9728
|
const { env, profile, environment } = contextOf(command);
|
|
9634
9729
|
const [{ openHubspotStore, PROVIDER: PROVIDER2 }, { hubspotCrmSource }, { hubspotCrmWriter }] = await Promise.all([
|
|
9635
|
-
import("./store-
|
|
9636
|
-
import("./source-
|
|
9637
|
-
import("./writer-
|
|
9730
|
+
import("./store-ARASPKTV.js"),
|
|
9731
|
+
import("./source-P2KVDTJ5.js"),
|
|
9732
|
+
import("./writer-TYTMOXXA.js")
|
|
9638
9733
|
]);
|
|
9639
9734
|
const fromToken = fromEnvironment(command);
|
|
9640
9735
|
const online = metaOf(command).effects?.remote !== "none";
|