@wirecat/hubspot-cli 0.7.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 +14 -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-GVEX5MXB.js → all-profiles-EMBBR5CW.js} +11 -11
- package/dist/bundle/{anthropic-GK6VBQUD.js → anthropic-AS2MTXO3.js} +5 -5
- package/dist/bundle/{app-server-JRROE463.js → app-server-WZWKHDLK.js} +70 -68
- package/dist/bundle/{bun-B7XTFPUF.js → bun-OPDGMZZQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-QSNZ2YP4.js → bun-sqlite-NBAY7FR2.js} +6 -6
- package/dist/bundle/{chunk-I5WHQH5K.js → chunk-2JHVQMVC.js} +1 -1
- package/dist/bundle/{chunk-5EJ3C3JG.js → chunk-2XBDILVW.js} +1 -1
- package/dist/bundle/{chunk-ALOPYWYY.js → chunk-3HC5F3P7.js} +1 -1
- package/dist/bundle/{chunk-INT5JXGP.js → chunk-3YM4B2GT.js} +1 -1
- package/dist/bundle/{chunk-6WKK4UZP.js → chunk-4N7PP76S.js} +1 -1
- package/dist/bundle/{chunk-SBORPDIQ.js → chunk-4NLZXDXP.js} +4 -4
- package/dist/bundle/{chunk-2K5BAY32.js → chunk-5JKTVAXX.js} +19 -19
- package/dist/bundle/{chunk-YVMLFHWS.js → chunk-5XYI75HH.js} +3 -3
- package/dist/bundle/{chunk-JQUS4KFV.js → chunk-6TD3DCWC.js} +2 -2
- package/dist/bundle/{chunk-63YWTFZF.js → chunk-7SV76BVS.js} +3 -3
- package/dist/bundle/{chunk-2IRBXFIU.js → chunk-7T5BFWZI.js} +6678 -4803
- package/dist/bundle/{chunk-4LHNA6LJ.js → chunk-7Z53MLQP.js} +7 -7
- package/dist/bundle/{chunk-DBHJIFDS.js → chunk-AINKLKDN.js} +12 -12
- package/dist/bundle/{chunk-BXXU4EXK.js → chunk-BGWQIFAS.js} +38 -24
- package/dist/bundle/{chunk-RE55EPBX.js → chunk-CVAHCGE6.js} +26 -26
- package/dist/bundle/{chunk-2FLLS5IL.js → chunk-D7NSIQBI.js} +97 -50
- package/dist/bundle/{chunk-52NC5E42.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-XWYYFAML.js → chunk-EVUMQKV7.js} +3 -3
- package/dist/bundle/{chunk-4F62XXF6.js → chunk-FRF32QVB.js} +557 -599
- package/dist/bundle/{chunk-WSTF2MWW.js → chunk-GGMAIIVE.js} +1 -1
- package/dist/bundle/{chunk-LGGBKAVQ.js → chunk-GIMHJ7HA.js} +8 -8
- package/dist/bundle/{chunk-BQPAIGAF.js → chunk-GXDD4QWH.js} +2 -2
- package/dist/bundle/{chunk-M3JDGRXM.js → chunk-H6AH45GE.js} +163 -156
- package/dist/bundle/{chunk-DIKUPU3T.js → chunk-HZ3C4WXD.js} +3 -3
- package/dist/bundle/{chunk-TXCINEH6.js → chunk-IA77VHME.js} +13 -9
- package/dist/bundle/{chunk-OX37ZK27.js → chunk-IA7LLLEI.js} +3 -3
- package/dist/bundle/{chunk-GYH2AXPO.js → chunk-IGNMDKP7.js} +14 -14
- package/dist/bundle/{chunk-SZZVNPTI.js → chunk-IPKCM55K.js} +7 -7
- package/dist/bundle/{chunk-XL3NAXZY.js → chunk-JBZYHRUN.js} +5 -5
- package/dist/bundle/{chunk-WWIYZN67.js → chunk-JG6LCSEX.js} +13 -13
- package/dist/bundle/{chunk-BRBBZDMZ.js → chunk-JLXXUEAM.js} +2 -2
- package/dist/bundle/{chunk-ZH76HQDA.js → chunk-JPONKBEQ.js} +23 -23
- package/dist/bundle/{chunk-ZNRZJIRM.js → chunk-K5QWV6IX.js} +35 -35
- package/dist/bundle/{chunk-P7N3TZLH.js → chunk-KNL7CKF6.js} +179 -108
- package/dist/bundle/{chunk-GZD6BYO7.js → chunk-KVTNYRDO.js} +6 -6
- package/dist/bundle/chunk-KXJ3JEDH.js +2 -0
- package/dist/bundle/{chunk-5MFZYHPO.js → chunk-L45WN3AR.js} +3 -3
- package/dist/bundle/{chunk-DMYLQX2O.js → chunk-L72WUJAS.js} +2 -2
- package/dist/bundle/{chunk-6EHX762H.js → chunk-LCUWAH4L.js} +7 -7
- package/dist/bundle/{chunk-YFHCKAGU.js → chunk-LKH3UKLO.js} +4 -4
- package/dist/bundle/{chunk-A7KGBXBT.js → chunk-LM3W7YOM.js} +4 -4
- package/dist/bundle/{chunk-MR2BNER3.js → chunk-LZPKBN3C.js} +2 -2
- package/dist/bundle/{chunk-DIHVN5IC.js → chunk-LZPSIYRC.js} +8 -8
- package/dist/bundle/{chunk-VJQLJQHT.js → chunk-MYXUJCJD.js} +5 -5
- package/dist/bundle/{chunk-QAQK2WXJ.js → chunk-NA2B6PYR.js} +5 -5
- package/dist/bundle/{chunk-YGZ37OEN.js → chunk-NB7EOAUZ.js} +1 -1
- package/dist/bundle/{chunk-5AVU5SF6.js → chunk-NISH4UXM.js} +2 -2
- package/dist/bundle/{chunk-2V5KOOJV.js → chunk-NQVMPJAQ.js} +8 -8
- package/dist/bundle/{chunk-DWWZAQ4N.js → chunk-NVR6M4TF.js} +16 -16
- package/dist/bundle/{chunk-KGLMYQXM.js → chunk-O4AUYEGC.js} +2 -2
- package/dist/bundle/{chunk-WSUS3MUK.js → chunk-OGVSGXPI.js} +493 -452
- package/dist/bundle/{chunk-5ISQ4KJM.js → chunk-OUYXUGUX.js} +8 -8
- package/dist/bundle/chunk-P657KN5N.js +122 -0
- package/dist/bundle/{chunk-SFFV2F3Y.js → chunk-P7G5HFY3.js} +2 -2
- package/dist/bundle/{chunk-QY7EOB66.js → chunk-PFYPJUWX.js} +19 -15
- package/dist/bundle/{chunk-B3JVNOTB.js → chunk-PLPBEWD4.js} +3 -3
- package/dist/bundle/{chunk-CBTWKTWN.js → chunk-PMQ7GP6X.js} +6 -6
- package/dist/bundle/{chunk-L3DUZVBP.js → chunk-Q32ZDGS2.js} +8 -8
- package/dist/bundle/{chunk-YDTFPDAJ.js → chunk-Q7ICVP25.js} +1 -1
- package/dist/bundle/{chunk-GD5JTKLS.js → chunk-QLYSNL47.js} +6 -6
- package/dist/bundle/{chunk-H5HBZCEJ.js → chunk-QPPOIWPY.js} +8 -8
- package/dist/bundle/{chunk-JEUYZCWF.js → chunk-R2C5WDQV.js} +6 -6
- package/dist/bundle/{chunk-2HSYAKWO.js → chunk-RQORQN2V.js} +61 -61
- package/dist/bundle/{chunk-2PCVKD27.js → chunk-RRTMPSQR.js} +2 -2
- package/dist/bundle/{chunk-AP3CWDRK.js → chunk-S6JG4YUH.js} +2 -2
- package/dist/bundle/{chunk-CEHBT7QX.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-LJ52BS6C.js → chunk-U5CFLBNX.js} +8 -8
- package/dist/bundle/{chunk-UMXA357W.js → chunk-UDSL3MUU.js} +8 -8
- package/dist/bundle/{chunk-J5HHB27S.js → chunk-V57E7PJQ.js} +4 -4
- package/dist/bundle/{chunk-4HZQ5UIY.js → chunk-V7IF2K3P.js} +3 -3
- package/dist/bundle/{chunk-NUPAXK4Z.js → chunk-VB7FZOYX.js} +1 -1
- package/dist/bundle/{chunk-IRFFXKKK.js → chunk-VNMEE4ZZ.js} +3 -3
- package/dist/bundle/{chunk-SVRCPPNI.js → chunk-VZ5PPYDG.js} +1 -1
- package/dist/bundle/chunk-WOPVBRPV.js +29 -0
- package/dist/bundle/{chunk-GHBJBDTW.js → chunk-XEQQJBBO.js} +1 -1
- package/dist/bundle/chunk-XIKSGUMQ.js +1293 -0
- package/dist/bundle/{chunk-6IHXKMY6.js → chunk-XK5BAPHF.js} +7 -7
- package/dist/bundle/{chunk-ZNNGK73C.js → chunk-XQGN2D44.js} +3 -3
- package/dist/bundle/{chunk-XZLOQNS7.js → chunk-YKSH7BY2.js} +121 -36
- package/dist/bundle/{chunk-ZS6T2PYQ.js → chunk-YWDFYQOU.js} +2 -2
- package/dist/bundle/{chunk-BY3NKT34.js → chunk-ZJEENQRH.js} +12 -12
- package/dist/bundle/{chunk-SMEEFN65.js → chunk-ZZOCAZSZ.js} +3 -3
- package/dist/bundle/command-contract-BGTXROZA.js +40 -0
- package/dist/bundle/{command-server-entry-BFXXPNJO.js → command-server-entry-PDLRF2RV.js} +28 -28
- package/dist/bundle/{decode-5M7R44BR.js → decode-26M7XE2B.js} +5 -5
- package/dist/bundle/{dispatch-B2EP6DDT.js → dispatch-2FTOHA5D.js} +8 -8
- package/dist/bundle/{echarts-7MBFY6SZ.js → echarts-O3TNDAXJ.js} +2 -2
- package/dist/bundle/{embed-Y4GYNHRX.js → embed-XJLEAWXE.js} +6 -6
- package/dist/bundle/{embedder-FI4T4LQB.js → embedder-OEL6PXEH.js} +9 -9
- package/dist/bundle/{failure-AOACEURF.js → failure-OHIXWTR6.js} +2 -2
- package/dist/bundle/{first-run-YY66AKKG.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-SM7TKV6L.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-DKLMBQXX.js → meeting-model-USLGH5SE.js} +11 -11
- package/dist/bundle/{meeting-semantic-C5T6UDVB.js → meeting-semantic-Q6XYFYUD.js} +6 -6
- package/dist/bundle/{node-OS6OQF3F.js → node-EGMCBAO7.js} +2 -2
- package/dist/bundle/{node-sqlite-2XTWZ4HL.js → node-sqlite-2SWWGW6H.js} +7 -7
- package/dist/bundle/{oauth-BSSJ66FC.js → oauth-V5LGTXF2.js} +7 -7
- package/dist/bundle/{open-UZ3TKWDY.js → open-25EKOTZA.js} +5 -5
- package/dist/bundle/{openai-POVKFBTC.js → openai-CH37GSZS.js} +15 -15
- package/dist/bundle/{process-A7ZJGQ6G.js → process-SGHEN6MQ.js} +1 -1
- package/dist/bundle/{program-Q3JFUVC6.js → program-G4OZFVUI.js} +105 -101
- package/dist/bundle/{prompt-TYOYTRJM.js → prompt-2VSPX5S7.js} +5 -5
- package/dist/bundle/public-WB7IWBMR.js +196 -0
- package/dist/bundle/{recognize-GGFRONZT.js → recognize-NA5XUFKK.js} +4 -4
- package/dist/bundle/{remote-K4SLWHMI.js → remote-NRJOX6XW.js} +9 -9
- package/dist/bundle/{rerank-2QTKDUBV.js → rerank-NG3XMFCV.js} +7 -7
- package/dist/bundle/{schemas-EXBNVPMI.js → schemas-SKF4MZBJ.js} +1 -1
- package/dist/bundle/{serve-FG2G2X6Y.js → serve-MR67OBED.js} +9 -9
- package/dist/bundle/server-LFNGSVUQ.js +88 -0
- package/dist/bundle/{server-KRDHBT5Q.js → server-NZPHVRS6.js} +62 -60
- package/dist/bundle/{source-XP2JNUVU.js → source-P2KVDTJ5.js} +75 -73
- package/dist/bundle/{sqlite-runtime-TWV7KFLA.js → sqlite-runtime-V5U6F5EB.js} +6 -6
- package/dist/bundle/{state-EFX5ZQED.js → state-L4MWAATO.js} +6 -6
- package/dist/bundle/store-ARASPKTV.js +34 -0
- package/dist/bundle/{store-QPVH5VPJ.js → store-JFIZLDKO.js} +22 -22
- package/dist/bundle/{store-MNQ6YQIS.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/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/dist/bundle/agent-JXICB6TB.js +0 -40
- package/dist/bundle/chunk-HX2BE7DO.js +0 -40
- package/dist/bundle/chunk-YOVIH4QI.js +0 -1269
- package/dist/bundle/command-contract-7EWUA6E6.js +0 -40
- package/dist/bundle/first-screen-U7Z63VXE.js +0 -40
- package/dist/bundle/meeting-combined-B444C4NF.js +0 -25
- package/dist/bundle/server-VFKK6OS4.js +0 -86
- package/dist/bundle/store-LON2XRIS.js +0 -34
- package/dist/bundle/store-maintenance-command-YEMPRNJX.js +0 -73
- package/dist/bundle/surface-UJRMT6QT.js +0 -72
- package/dist/bundle/writer-NOSHE7ZI.js +0 -86
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
openCache,
|
|
7
7
|
openFile,
|
|
8
8
|
storeCapable
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-PMQ7GP6X.js";
|
|
10
|
+
import "./chunk-GGMAIIVE.js";
|
|
11
|
+
import "./chunk-5JKTVAXX.js";
|
|
12
|
+
import "./chunk-QPPOIWPY.js";
|
|
13
13
|
import "./chunk-S4UUN6LD.js";
|
|
14
14
|
import "./chunk-Y5E2WNWB.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-S6JG4YUH.js";
|
|
16
16
|
import "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
export {
|
|
18
18
|
CAPABILITY_STATEMENTS,
|
|
@@ -3,45 +3,45 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
SAMPLE_RATE,
|
|
5
5
|
toModelRate
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-LKH3UKLO.js";
|
|
7
|
+
import "./chunk-JG6LCSEX.js";
|
|
8
8
|
import {
|
|
9
9
|
OPENAI_URL,
|
|
10
10
|
refuseModelAddress
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-Q32ZDGS2.js";
|
|
12
12
|
import {
|
|
13
13
|
endpointFetch,
|
|
14
14
|
onThisComputer,
|
|
15
15
|
providerWaitMs
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-7Z53MLQP.js";
|
|
17
|
+
import "./chunk-KVTNYRDO.js";
|
|
18
18
|
import {
|
|
19
19
|
OPENAI_TRANSCRIBE_MODEL,
|
|
20
20
|
VAD,
|
|
21
21
|
filesPresent,
|
|
22
22
|
modelsDirectory,
|
|
23
23
|
vadPath
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-LM3W7YOM.js";
|
|
25
|
+
import "./chunk-TTF5DP4V.js";
|
|
26
|
+
import "./chunk-L72WUJAS.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_RETRY,
|
|
29
29
|
backoffMs
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-5JKTVAXX.js";
|
|
31
|
+
import "./chunk-QPPOIWPY.js";
|
|
32
32
|
import "./chunk-S4UUN6LD.js";
|
|
33
33
|
import "./chunk-Y5E2WNWB.js";
|
|
34
34
|
import {
|
|
35
35
|
CliError
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-S6JG4YUH.js";
|
|
37
37
|
import {
|
|
38
38
|
__name
|
|
39
39
|
} from "./chunk-ZVVMGPBJ.js";
|
|
40
40
|
|
|
41
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41
|
+
// 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/speech/openai.js
|
|
42
42
|
import { setTimeout as wait } from "node:timers/promises";
|
|
43
43
|
|
|
44
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44
|
+
// 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/speech/wav.js
|
|
45
45
|
var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
46
46
|
const bytes = Buffer.alloc(44 + samples.length * 2);
|
|
47
47
|
bytes.write("RIFF", 0, "ascii");
|
|
@@ -62,7 +62,7 @@ var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
|
62
62
|
return new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.length);
|
|
63
63
|
}, "encodeWav");
|
|
64
64
|
|
|
65
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
65
|
+
// 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/speech/openai.js
|
|
66
66
|
var LONGEST_REQUEST_SECONDS = 600;
|
|
67
67
|
var JOINED_SECONDS = 0.2;
|
|
68
68
|
var PAD_SECONDS = 0.2;
|
|
@@ -186,7 +186,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
|
|
|
186
186
|
return pieces;
|
|
187
187
|
}, "piecesOf");
|
|
188
188
|
var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
|
|
189
|
-
const { openSpeechCutter } = await import("./recognize-
|
|
189
|
+
const { openSpeechCutter } = await import("./recognize-NA5XUFKK.js");
|
|
190
190
|
return openSpeechCutter(vadModel);
|
|
191
191
|
}, "openCutter");
|
|
192
192
|
var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
__name
|
|
6
6
|
} from "./chunk-ZVVMGPBJ.js";
|
|
7
7
|
|
|
8
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8
|
+
// 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/embeddings/process.js
|
|
9
9
|
import { spawn } from "node:child_process";
|
|
10
10
|
import { createInterface } from "node:readline";
|
|
11
11
|
import { fileURLToPath } from "node:url";
|
|
@@ -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,
|
|
@@ -115,18 +116,18 @@ import {
|
|
|
115
116
|
wantedCodes,
|
|
116
117
|
withCustomFields,
|
|
117
118
|
withReadableDeal
|
|
118
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-FRF32QVB.js";
|
|
119
120
|
import {
|
|
120
121
|
safeName
|
|
121
|
-
} from "./chunk-
|
|
122
|
-
import "./chunk-
|
|
123
|
-
import "./chunk-
|
|
122
|
+
} from "./chunk-JG6LCSEX.js";
|
|
123
|
+
import "./chunk-P657KN5N.js";
|
|
124
|
+
import "./chunk-NB7EOAUZ.js";
|
|
124
125
|
import {
|
|
125
126
|
latestVersion,
|
|
126
127
|
runUpdate,
|
|
127
128
|
updateNotice
|
|
128
|
-
} from "./chunk-
|
|
129
|
-
import "./chunk-
|
|
129
|
+
} from "./chunk-HZ3C4WXD.js";
|
|
130
|
+
import "./chunk-TY7NDMFY.js";
|
|
130
131
|
import {
|
|
131
132
|
commandPath,
|
|
132
133
|
dateWindow,
|
|
@@ -141,14 +142,15 @@ import {
|
|
|
141
142
|
unfilteredQuery,
|
|
142
143
|
withQuery,
|
|
143
144
|
withWords
|
|
144
|
-
} from "./chunk-
|
|
145
|
-
import "./chunk-
|
|
146
|
-
import "./chunk-
|
|
147
|
-
import "./chunk-
|
|
148
|
-
import "./chunk-
|
|
149
|
-
import "./chunk-
|
|
150
|
-
import "./chunk-
|
|
151
|
-
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";
|
|
152
154
|
import {
|
|
153
155
|
Argument,
|
|
154
156
|
Command,
|
|
@@ -160,6 +162,7 @@ import {
|
|
|
160
162
|
Option,
|
|
161
163
|
REMOTE_READ,
|
|
162
164
|
REMOTE_WRITE,
|
|
165
|
+
allowDeletionsOption,
|
|
163
166
|
annotate,
|
|
164
167
|
annotateOption,
|
|
165
168
|
answerEntity,
|
|
@@ -192,13 +195,14 @@ import {
|
|
|
192
195
|
sharedCommand,
|
|
193
196
|
snakeKeys,
|
|
194
197
|
snakeKeysKeeping
|
|
195
|
-
} from "./chunk-
|
|
196
|
-
import "./chunk-
|
|
197
|
-
import "./chunk-
|
|
198
|
-
import "./chunk-
|
|
199
|
-
import "./chunk-
|
|
200
|
-
import "./chunk-
|
|
201
|
-
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";
|
|
202
206
|
import {
|
|
203
207
|
CRM_CHANGES,
|
|
204
208
|
CRM_SCOPES,
|
|
@@ -208,48 +212,48 @@ import {
|
|
|
208
212
|
crmSettingKey,
|
|
209
213
|
seenBy,
|
|
210
214
|
viewerSql
|
|
211
|
-
} from "./chunk-
|
|
212
|
-
import "./chunk-
|
|
215
|
+
} from "./chunk-7T5BFWZI.js";
|
|
216
|
+
import "./chunk-UDSL3MUU.js";
|
|
213
217
|
import {
|
|
214
218
|
aheadOf,
|
|
215
219
|
dayIn
|
|
216
|
-
} from "./chunk-
|
|
217
|
-
import "./chunk-
|
|
220
|
+
} from "./chunk-L45WN3AR.js";
|
|
221
|
+
import "./chunk-LCUWAH4L.js";
|
|
218
222
|
import {
|
|
219
223
|
count,
|
|
220
224
|
createTaskService,
|
|
221
225
|
text,
|
|
222
226
|
time
|
|
223
|
-
} from "./chunk-
|
|
224
|
-
import "./chunk-
|
|
225
|
-
import "./chunk-
|
|
227
|
+
} from "./chunk-XIKSGUMQ.js";
|
|
228
|
+
import "./chunk-JLXXUEAM.js";
|
|
229
|
+
import "./chunk-Q32ZDGS2.js";
|
|
226
230
|
import {
|
|
227
231
|
hostFetch,
|
|
228
232
|
retrying
|
|
229
|
-
} from "./chunk-
|
|
230
|
-
import "./chunk-
|
|
231
|
-
import "./chunk-
|
|
233
|
+
} from "./chunk-7Z53MLQP.js";
|
|
234
|
+
import "./chunk-KVTNYRDO.js";
|
|
235
|
+
import "./chunk-LM3W7YOM.js";
|
|
232
236
|
import {
|
|
233
237
|
DESKTOP,
|
|
234
238
|
IDENTITY,
|
|
235
239
|
PACKAGE,
|
|
236
240
|
SKILL
|
|
237
|
-
} from "./chunk-
|
|
238
|
-
import "./chunk-
|
|
241
|
+
} from "./chunk-XK5BAPHF.js";
|
|
242
|
+
import "./chunk-LZPKBN3C.js";
|
|
239
243
|
import "./chunk-EH6ZEJGT.js";
|
|
240
|
-
import "./chunk-
|
|
241
|
-
import "./chunk-
|
|
244
|
+
import "./chunk-D7NSIQBI.js";
|
|
245
|
+
import "./chunk-LZPSIYRC.js";
|
|
242
246
|
import {
|
|
243
247
|
installerOf
|
|
244
|
-
} from "./chunk-
|
|
248
|
+
} from "./chunk-TXDR6YSF.js";
|
|
245
249
|
import {
|
|
246
250
|
fieldsOf
|
|
247
|
-
} from "./chunk-
|
|
251
|
+
} from "./chunk-IPKCM55K.js";
|
|
248
252
|
import {
|
|
249
253
|
foldName
|
|
250
|
-
} from "./chunk-
|
|
251
|
-
import "./chunk-
|
|
252
|
-
import "./chunk-
|
|
254
|
+
} from "./chunk-BGWQIFAS.js";
|
|
255
|
+
import "./chunk-5XYI75HH.js";
|
|
256
|
+
import "./chunk-2JHVQMVC.js";
|
|
253
257
|
import {
|
|
254
258
|
CRM_ACTIVITY_KINDS,
|
|
255
259
|
CRM_KINDS,
|
|
@@ -260,33 +264,33 @@ import {
|
|
|
260
264
|
normalCrmUserId,
|
|
261
265
|
parseDecimal,
|
|
262
266
|
scaleOf
|
|
263
|
-
} from "./chunk-
|
|
264
|
-
import "./chunk-
|
|
265
|
-
import "./chunk-
|
|
267
|
+
} from "./chunk-AINKLKDN.js";
|
|
268
|
+
import "./chunk-XEQQJBBO.js";
|
|
269
|
+
import "./chunk-RRTMPSQR.js";
|
|
266
270
|
import {
|
|
267
271
|
SAVE_HELP,
|
|
268
272
|
defineQuery,
|
|
269
273
|
queryFieldsOf,
|
|
270
274
|
timezoneOf,
|
|
271
275
|
zonedMoment
|
|
272
|
-
} from "./chunk-
|
|
273
|
-
import "./chunk-
|
|
274
|
-
import "./chunk-
|
|
276
|
+
} from "./chunk-RQORQN2V.js";
|
|
277
|
+
import "./chunk-DNCLQPOM.js";
|
|
278
|
+
import "./chunk-TTF5DP4V.js";
|
|
275
279
|
import "./chunk-D72URWJE.js";
|
|
276
280
|
import {
|
|
277
281
|
readSecret
|
|
278
|
-
} from "./chunk-
|
|
279
|
-
import "./chunk-
|
|
280
|
-
import "./chunk-
|
|
281
|
-
import "./chunk-
|
|
282
|
-
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";
|
|
283
287
|
import {
|
|
284
288
|
renderPretty,
|
|
285
289
|
resolvePaths
|
|
286
|
-
} from "./chunk-
|
|
290
|
+
} from "./chunk-5JKTVAXX.js";
|
|
287
291
|
import {
|
|
288
292
|
isoTime
|
|
289
|
-
} from "./chunk-
|
|
293
|
+
} from "./chunk-QPPOIWPY.js";
|
|
290
294
|
import {
|
|
291
295
|
array,
|
|
292
296
|
boolean,
|
|
@@ -307,8 +311,8 @@ import "./chunk-Y5E2WNWB.js";
|
|
|
307
311
|
import {
|
|
308
312
|
CliError,
|
|
309
313
|
isCliError
|
|
310
|
-
} from "./chunk-
|
|
311
|
-
import "./chunk-
|
|
314
|
+
} from "./chunk-S6JG4YUH.js";
|
|
315
|
+
import "./chunk-4N7PP76S.js";
|
|
312
316
|
import {
|
|
313
317
|
__export,
|
|
314
318
|
__name
|
|
@@ -317,7 +321,7 @@ import {
|
|
|
317
321
|
// dist/program.js
|
|
318
322
|
import { join as join4 } from "node:path";
|
|
319
323
|
|
|
320
|
-
// 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
|
|
321
325
|
import { realpathSync } from "node:fs";
|
|
322
326
|
import { fileURLToPath } from "node:url";
|
|
323
327
|
var npmRegistry = /* @__PURE__ */ __name(() => hostFetch({ hosts: ["registry.npmjs.org"] }), "npmRegistry");
|
|
@@ -7076,12 +7080,12 @@ var apiCommand = /* @__PURE__ */ __name(() => {
|
|
|
7076
7080
|
timeZone: sent.timeZone
|
|
7077
7081
|
}), "failure"),
|
|
7078
7082
|
token: tokenOf,
|
|
7079
|
-
schemas: /* @__PURE__ */ __name(() => import("./schemas-
|
|
7083
|
+
schemas: /* @__PURE__ */ __name(() => import("./schemas-SKF4MZBJ.js").then((module) => module.schemas), "schemas"),
|
|
7080
7084
|
definitions: /* @__PURE__ */ __name(() => import("./definitions-MVPICAWV.js").then((module) => module.definitions), "definitions")
|
|
7081
7085
|
});
|
|
7082
7086
|
}, "apiCommand");
|
|
7083
7087
|
|
|
7084
|
-
// 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
|
|
7085
7089
|
var DAY = 864e5;
|
|
7086
7090
|
var openStageTasks = /* @__PURE__ */ __name(async (store, account, now, { history = false } = {}) => {
|
|
7087
7091
|
const rules = await store.crm.stageTasks(account);
|
|
@@ -7118,7 +7122,7 @@ var openStageTasks = /* @__PURE__ */ __name(async (store, account, now, { histor
|
|
|
7118
7122
|
return opened;
|
|
7119
7123
|
}, "openStageTasks");
|
|
7120
7124
|
|
|
7121
|
-
// 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
|
|
7122
7126
|
import { join } from "node:path";
|
|
7123
7127
|
var SHARED = new Set(Object.values(CRM_SHARED_FOLDERS));
|
|
7124
7128
|
var isShared = /* @__PURE__ */ __name((profile) => SHARED.has(profile.toLowerCase()), "isShared");
|
|
@@ -7224,7 +7228,7 @@ var crmAccountCommand = /* @__PURE__ */ __name((app, options) => annotate(new Co
|
|
|
7224
7228
|
...options.resolveSettings ? { resolveSettings: options.resolveSettings } : {}
|
|
7225
7229
|
}), { effects: LOCAL_WRITE }).hook("preAction", (_, action) => refuseSharedDelete(app, options, action))), "crmAccountCommand");
|
|
7226
7230
|
|
|
7227
|
-
// 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
|
|
7228
7232
|
var HOUR = 36e5;
|
|
7229
7233
|
var SHOWN = 7;
|
|
7230
7234
|
var STALE_HOURS = 24;
|
|
@@ -7368,7 +7372,7 @@ var healthOf = /* @__PURE__ */ __name(async (store, account, { now, profile }) =
|
|
|
7368
7372
|
return stale > STALE_HOURS ? [{ ...named, stale_hours: Math.floor(stale) }] : [];
|
|
7369
7373
|
}, "healthOf");
|
|
7370
7374
|
|
|
7371
|
-
// 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
|
|
7372
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");
|
|
7373
7377
|
var DEAL_CSV_COLUMNS = [
|
|
7374
7378
|
"ref",
|
|
@@ -7490,7 +7494,7 @@ var renderCsv = /* @__PURE__ */ __name((command, open2, read, defaults = DEAL_CS
|
|
|
7490
7494
|
});
|
|
7491
7495
|
}, "renderCsv");
|
|
7492
7496
|
|
|
7493
|
-
// 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
|
|
7494
7498
|
var time2 = nullable(isoTime);
|
|
7495
7499
|
var metadata = optional(record(string(), strictObject({
|
|
7496
7500
|
label: nullable(string()),
|
|
@@ -7897,7 +7901,7 @@ var addRecordWrites = /* @__PURE__ */ __name((group, noun, { within, example, wr
|
|
|
7897
7901
|
}, "addRecordWrites");
|
|
7898
7902
|
var idOf = /* @__PURE__ */ __name((opts) => opts.operationId === void 0 ? {} : { operationId: opts.operationId }, "idOf");
|
|
7899
7903
|
|
|
7900
|
-
// 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
|
|
7901
7905
|
var MOST2 = 500;
|
|
7902
7906
|
var nullableText = nullable(text);
|
|
7903
7907
|
var REFS = ["deal", "lead", "person", "organization"];
|
|
@@ -8090,7 +8094,7 @@ var writtenOf = /* @__PURE__ */ __name((run3, activity, on) => ({
|
|
|
8090
8094
|
untrusted: UNTRUSTED
|
|
8091
8095
|
}), "writtenOf");
|
|
8092
8096
|
|
|
8093
|
-
// 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
|
|
8094
8098
|
var MOST3 = 500;
|
|
8095
8099
|
var DAY2 = 864e5;
|
|
8096
8100
|
var nullableText2 = nullable(text);
|
|
@@ -8319,7 +8323,7 @@ var pipelineOf2 = /* @__PURE__ */ __name(async (run3, value) => {
|
|
|
8319
8323
|
}) : new CliError("not_found", `no pipeline ${value} in this account`, { reason: "pipeline.not-found" });
|
|
8320
8324
|
}, "pipelineOf");
|
|
8321
8325
|
|
|
8322
|
-
// 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
|
|
8323
8327
|
import { createHash } from "node:crypto";
|
|
8324
8328
|
import { chmodSync, constants, copyFileSync, existsSync, linkSync, mkdirSync, readFileSync, renameSync, rmSync } from "node:fs";
|
|
8325
8329
|
import { open } from "node:fs/promises";
|
|
@@ -8622,7 +8626,7 @@ var addCrmFileCommands = /* @__PURE__ */ __name((program, options) => {
|
|
|
8622
8626
|
const { signal } = environmentOf(command);
|
|
8623
8627
|
return { app, run: run3, now, ...signal ? { signal } : {} };
|
|
8624
8628
|
}, "contextOf");
|
|
8625
|
-
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");
|
|
8626
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");
|
|
8627
8631
|
for (const [, flag] of kinds)
|
|
8628
8632
|
list.option(flag, `the ${flag.slice(2, flag.indexOf(" "))} whose files to list`);
|
|
@@ -8856,7 +8860,7 @@ var syncFiles = /* @__PURE__ */ __name(async (context, outOfTime, deadline = (ms
|
|
|
8856
8860
|
return report;
|
|
8857
8861
|
}, "syncFiles");
|
|
8858
8862
|
|
|
8859
|
-
// 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
|
|
8860
8864
|
var sumOf = /* @__PURE__ */ __name((amounts) => amounts.map(({ amount, currency }) => `${groupDigits(amount)} ${currency}`).join(", ") || "\u2014", "sumOf");
|
|
8861
8865
|
var percent = /* @__PURE__ */ __name((share) => share === null ? "\u2014" : `${Math.round(share * 100)}%`, "percent");
|
|
8862
8866
|
var openStages = /* @__PURE__ */ __name((stages) => {
|
|
@@ -8902,7 +8906,7 @@ ${outcomes.join("\n")}`
|
|
|
8902
8906
|
].join("\n\n");
|
|
8903
8907
|
}, "pipelineView");
|
|
8904
8908
|
|
|
8905
|
-
// 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
|
|
8906
8910
|
var SEARCHED = ["crm", ...SOURCE_SEARCHED];
|
|
8907
8911
|
var DEFAULT_LIMIT = 20;
|
|
8908
8912
|
var addCrmSearchAll = /* @__PURE__ */ __name((searches, { within, app, example, viewerOf: viewerOf2, leads = true }) => {
|
|
@@ -8978,7 +8982,7 @@ It finds ${deals} by the meaning of their activities too, in other words or anot
|
|
|
8978
8982
|
});
|
|
8979
8983
|
}, "addCrmSearchAll");
|
|
8980
8984
|
|
|
8981
|
-
// 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
|
|
8982
8986
|
var EMBED_MAX = 600;
|
|
8983
8987
|
var crmSyncEmbeddings = strictObject({
|
|
8984
8988
|
model: text,
|
|
@@ -9029,7 +9033,7 @@ var syncEmbeddings = /* @__PURE__ */ __name(async (command, store, report, app,
|
|
|
9029
9033
|
}
|
|
9030
9034
|
}, "syncEmbeddings");
|
|
9031
9035
|
|
|
9032
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
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
|
|
9033
9037
|
import { mkdtempSync, rmSync as rmSync2 } from "node:fs";
|
|
9034
9038
|
import { tmpdir } from "node:os";
|
|
9035
9039
|
import { join as join3 } from "node:path";
|
|
@@ -9078,10 +9082,10 @@ var withProfile = /* @__PURE__ */ __name(async ({ app, profile, open: open2 }, e
|
|
|
9078
9082
|
}
|
|
9079
9083
|
}, "withProfile");
|
|
9080
9084
|
|
|
9081
|
-
// 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
|
|
9082
9086
|
var openCrmStore = openProfileStore;
|
|
9083
9087
|
|
|
9084
|
-
// 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
|
|
9085
9089
|
var MOST4 = 500;
|
|
9086
9090
|
var STAGE_REF = /^stage:\d+$/;
|
|
9087
9091
|
var timeField = /* @__PURE__ */ __name((name, example, relation) => nativeField({ name, type: "time", operators: ["term", "range"], example, relation }), "timeField");
|
|
@@ -9147,7 +9151,7 @@ var crmSync = strictObject({
|
|
|
9147
9151
|
skipped_owner_rejected: count,
|
|
9148
9152
|
contacts_removed: optional(crmContactsRemoved),
|
|
9149
9153
|
stage_tasks: count,
|
|
9150
|
-
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"]) })),
|
|
9151
9155
|
synced: array(strictObject({
|
|
9152
9156
|
kind: picklist(CRM_KINDS),
|
|
9153
9157
|
round: picklist(["full", "changes"]),
|
|
@@ -9253,16 +9257,16 @@ var addCrmCommandsDefinition = /* @__PURE__ */ __name((program, options) => {
|
|
|
9253
9257
|
const hasLeads = options.leads !== false;
|
|
9254
9258
|
const dealsAndLeads = hasLeads ? "deals and leads" : "deals";
|
|
9255
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", `
|
|
9256
|
-
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").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) => {
|
|
9257
|
-
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) => {
|
|
9258
9261
|
await within(command, async (run3) => {
|
|
9259
9262
|
const source = run3.source();
|
|
9260
9263
|
const started = now();
|
|
9261
9264
|
const report = await syncRecorded(source, run3.store, run3.account, {
|
|
9262
9265
|
now: started,
|
|
9263
9266
|
budget: runBudgetOf(command, opts.maxPages),
|
|
9264
|
-
|
|
9265
|
-
|
|
9267
|
+
signal: environmentOf(command).signal,
|
|
9268
|
+
rescan: opts.rescan,
|
|
9269
|
+
allowDeletions: opts.allowDeletions
|
|
9266
9270
|
});
|
|
9267
9271
|
const stageTasks = await openStageTasks(run3.store, run3.account, started, {
|
|
9268
9272
|
history: source.stageHistory !== void 0
|
|
@@ -9708,7 +9712,7 @@ var HUBSPOT_ACCOUNT = {
|
|
|
9708
9712
|
|
|
9709
9713
|
// dist/commands/crm-shared.js
|
|
9710
9714
|
var savedAccount = /* @__PURE__ */ __name(async (env, profile) => {
|
|
9711
|
-
const { openHubspotStore } = await import("./store-
|
|
9715
|
+
const { openHubspotStore } = await import("./store-ARASPKTV.js");
|
|
9712
9716
|
const store = await openHubspotStore(env, { readOnly: true }).catch(() => void 0);
|
|
9713
9717
|
if (!store)
|
|
9714
9718
|
return void 0;
|
|
@@ -9723,9 +9727,9 @@ var savedAccount = /* @__PURE__ */ __name(async (env, profile) => {
|
|
|
9723
9727
|
var openProfile = /* @__PURE__ */ __name(async (command, { readOnly }) => {
|
|
9724
9728
|
const { env, profile, environment } = contextOf(command);
|
|
9725
9729
|
const [{ openHubspotStore, PROVIDER: PROVIDER2 }, { hubspotCrmSource }, { hubspotCrmWriter }] = await Promise.all([
|
|
9726
|
-
import("./store-
|
|
9727
|
-
import("./source-
|
|
9728
|
-
import("./writer-
|
|
9730
|
+
import("./store-ARASPKTV.js"),
|
|
9731
|
+
import("./source-P2KVDTJ5.js"),
|
|
9732
|
+
import("./writer-TYTMOXXA.js")
|
|
9729
9733
|
]);
|
|
9730
9734
|
const fromToken = fromEnvironment(command);
|
|
9731
9735
|
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-IA7LLLEI.js";
|
|
7
|
+
import "./chunk-YWDFYQOU.js";
|
|
8
|
+
import "./chunk-5JKTVAXX.js";
|
|
9
|
+
import "./chunk-QPPOIWPY.js";
|
|
10
10
|
import "./chunk-S4UUN6LD.js";
|
|
11
11
|
import "./chunk-Y5E2WNWB.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-S6JG4YUH.js";
|
|
13
13
|
import "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
export {
|
|
15
15
|
pasteHint,
|