@wirecat/amo-cli 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/amo/oauth.d.ts.map +1 -1
- package/dist/amo/oauth.js +3 -4
- package/dist/amo/oauth.js.map +1 -1
- package/dist/amo/transport.d.ts.map +1 -1
- package/dist/amo/transport.js +3 -6
- package/dist/amo/transport.js.map +1 -1
- package/dist/bin/amo.js +2 -2
- package/dist/bundle/agent-VVACEKSX.js +42 -0
- package/dist/bundle/{all-profiles-PIWUQWBA.js → all-profiles-QNUKL4NA.js} +7 -7
- package/dist/bundle/amo.js +18 -18
- package/dist/bundle/{anthropic-47CMXBPQ.js → anthropic-PQN6MNP7.js} +2 -2
- package/dist/bundle/{app-server-QRBQODF2.js → app-server-Q2QEA7GP.js} +64 -63
- package/dist/bundle/{areas-QVHVU57Z.js → areas-27FRPBF3.js} +28 -20
- package/dist/bundle/{bun-OPDGMZZQ.js → bun-F4M4KCNA.js} +2 -2
- package/dist/bundle/{bun-sqlite-7I4X7CZW.js → bun-sqlite-P5IDBDVR.js} +3 -3
- package/dist/bundle/{chunk-RN6RT5CB.js → chunk-22KAQPX7.js} +3 -3
- package/dist/bundle/{chunk-43OW5NTG.js → chunk-2JGNMZ55.js} +4 -4
- package/dist/bundle/{chunk-TAVI73RW.js → chunk-2VDHC7QO.js} +2 -2
- package/dist/bundle/{chunk-3DEQUYEG.js → chunk-34ZOMVUK.js} +7 -7
- package/dist/bundle/{chunk-EHK73OSW.js → chunk-3J3EDSXF.js} +19 -97
- package/dist/bundle/{chunk-JLXXUEAM.js → chunk-3TYER5IK.js} +13 -5
- package/dist/bundle/{chunk-MDEPJZYJ.js → chunk-5NGLCDYQ.js} +2 -2
- package/dist/bundle/{chunk-63N46DJU.js → chunk-5SQTHOBI.js} +203 -168
- package/dist/bundle/{chunk-5UTB3ADZ.js → chunk-6GE36KUE.js} +10 -10
- package/dist/bundle/{chunk-DVZ75WZJ.js → chunk-6GZKY3HV.js} +10 -10
- package/dist/bundle/{chunk-CGW5R4UD.js → chunk-6OV2TRGF.js} +6 -6
- package/dist/bundle/{chunk-NSKMNIY6.js → chunk-7CPIZFOE.js} +6 -6
- package/dist/bundle/{chunk-BVVMIAQ6.js → chunk-A5K2NU3K.js} +394 -341
- package/dist/bundle/{chunk-6D4VWSJD.js → chunk-AEC4H5WZ.js} +5 -5
- package/dist/bundle/{chunk-4VN7RI4I.js → chunk-APBEDWOE.js} +4 -4
- package/dist/bundle/{chunk-VB7FZOYX.js → chunk-AQ5RIOUE.js} +1 -1
- package/dist/bundle/{chunk-FV4GQNIK.js → chunk-B7L5MSRP.js} +2 -2
- package/dist/bundle/{chunk-VZ5PPYDG.js → chunk-C7JPYWYQ.js} +1 -1
- package/dist/bundle/{chunk-H4AFNENN.js → chunk-DIZEHPS6.js} +30 -26
- package/dist/bundle/{chunk-43PMSR33.js → chunk-DUPCDJ3W.js} +7 -7
- package/dist/bundle/{chunk-ABX7BBS4.js → chunk-DWT24UVR.js} +1 -1
- package/dist/bundle/chunk-DXWJORSY.js +1703 -0
- package/dist/bundle/{chunk-G2TU5RYY.js → chunk-DY3PLWIH.js} +1 -1
- package/dist/bundle/{chunk-RIMPFMZE.js → chunk-DYWHAJRK.js} +23 -15
- package/dist/bundle/{chunk-R53XXHEI.js → chunk-EXRM3ML4.js} +2 -2
- package/dist/bundle/{chunk-JG6LCSEX.js → chunk-FFER7KJI.js} +12 -12
- package/dist/bundle/{chunk-6JTHXWPE.js → chunk-FIP2DG7W.js} +2 -2
- package/dist/bundle/{chunk-3HC5F3P7.js → chunk-FTH6WGYO.js} +1 -1
- package/dist/bundle/{chunk-3GX6KM2E.js → chunk-FWRLGIF6.js} +63 -61
- package/dist/bundle/{chunk-3PYE55JY.js → chunk-FYOPPKAN.js} +1 -1
- package/dist/bundle/{chunk-K7YY6SXR.js → chunk-G3N2RHGF.js} +12 -12
- package/dist/bundle/{chunk-NISH4UXM.js → chunk-G46PNDWL.js} +1 -1
- package/dist/bundle/{chunk-LKH3UKLO.js → chunk-G6NY7LFB.js} +3 -3
- package/dist/bundle/{chunk-M6VZXAJC.js → chunk-GOCMJBEE.js} +2 -2
- package/dist/bundle/{chunk-ADTI5RUO.js → chunk-GRGCZSES.js} +5 -5
- package/dist/bundle/{chunk-6WS6GJ4V.js → chunk-GVSKLZRD.js} +1 -1
- package/dist/bundle/{chunk-Q7ICVP25.js → chunk-GZ7WBU5Y.js} +1 -1
- package/dist/bundle/{chunk-FNV5HLHX.js → chunk-HN2LCLGT.js} +18 -18
- package/dist/bundle/{chunk-2JHVQMVC.js → chunk-HO4JGD4Q.js} +1 -1
- package/dist/bundle/{chunk-WOPVBRPV.js → chunk-HUAHLO6N.js} +1 -1
- package/dist/bundle/chunk-IDCZ4LWS.js +150 -0
- package/dist/bundle/{chunk-7IR2G5XY.js → chunk-IN3VL7UU.js} +15 -14
- package/dist/bundle/{chunk-NB7EOAUZ.js → chunk-ISQ23VKV.js} +1 -1
- package/dist/bundle/{chunk-633NQY2R.js → chunk-JVBCQHCS.js} +2 -2
- package/dist/bundle/{chunk-DQ6S5TFZ.js → chunk-K5W7YEHB.js} +61 -59
- package/dist/bundle/{chunk-LZPKBN3C.js → chunk-KAFSS35C.js} +1 -1
- package/dist/bundle/{chunk-IA7LLLEI.js → chunk-KLRCTMES.js} +2 -2
- package/dist/bundle/{chunk-GGMAIIVE.js → chunk-KYRYD4CR.js} +1 -1
- package/dist/bundle/{chunk-V2CNGXWX.js → chunk-LBZSURLL.js} +36 -36
- package/dist/bundle/{chunk-XEQQJBBO.js → chunk-LC7ZD2RW.js} +1 -1
- package/dist/bundle/{chunk-IB55P46L.js → chunk-LH6FJYMO.js} +4 -4
- package/dist/bundle/{chunk-HSPEU6S7.js → chunk-LJKINNWC.js} +6 -6
- package/dist/bundle/{chunk-GLYWZQY4.js → chunk-M36XP74N.js} +2 -2
- package/dist/bundle/chunk-MNPGZCKE.js +361 -0
- package/dist/bundle/{chunk-U5RJJ2EC.js → chunk-MRPMORLH.js} +7 -7
- package/dist/bundle/{chunk-57HFPNMF.js → chunk-NNREILWP.js} +6 -6
- package/dist/bundle/chunk-NSOY4FMN.js +159 -0
- package/dist/bundle/{chunk-2XBDILVW.js → chunk-OEEWVKJX.js} +1 -1
- package/dist/bundle/{chunk-6QGUK3H7.js → chunk-OGJFDKDL.js} +4 -4
- package/dist/bundle/{chunk-ZLUIRFJX.js → chunk-PATZAYFZ.js} +35 -362
- package/dist/bundle/{chunk-PPSAWFJD.js → chunk-PCR6GFNP.js} +39 -161
- package/dist/bundle/{chunk-XUT7DSM5.js → chunk-Q4MH2O5E.js} +2 -2
- package/dist/bundle/{chunk-AKRIUNYP.js → chunk-QQRJEWKB.js} +5 -5
- package/dist/bundle/{chunk-KZ2FIDI3.js → chunk-RNWUCAJJ.js} +2 -2
- package/dist/bundle/{chunk-BIKOE2IW.js → chunk-SDVUGWD7.js} +4 -4
- package/dist/bundle/{chunk-GDK7ETSB.js → chunk-SEFE6PGL.js} +10 -10
- package/dist/bundle/{chunk-WUFX4TKA.js → chunk-SWCJM3YD.js} +2 -2
- package/dist/bundle/{chunk-KEKXERBE.js → chunk-SYRDEMQE.js} +3664 -2704
- package/dist/bundle/{chunk-WXJYMMEL.js → chunk-SYYQZDHJ.js} +5 -5
- package/dist/bundle/{chunk-3YM4B2GT.js → chunk-T3W4V4A6.js} +1 -1
- package/dist/bundle/{chunk-4N7PP76S.js → chunk-TCT5D2X2.js} +1 -1
- package/dist/bundle/{chunk-YWDFYQOU.js → chunk-TES7MB6I.js} +1 -1
- package/dist/bundle/{chunk-S4ZHQMNM.js → chunk-U6XPWCWM.js} +3 -3
- package/dist/bundle/{chunk-W5JRXIG6.js → chunk-UFKC7TIX.js} +1213 -804
- package/dist/bundle/{chunk-XCCU2E3Z.js → chunk-UNWF3TH5.js} +3 -3
- package/dist/bundle/{chunk-UDSL3MUU.js → chunk-W3BOR6AT.js} +7 -7
- package/dist/bundle/{chunk-JXT6GY4V.js → chunk-X76RS6JO.js} +29 -9
- package/dist/bundle/{chunk-DSJ6EAOA.js → chunk-YF3S26TS.js} +51 -51
- package/dist/bundle/{chunk-TLG6ECZ2.js → chunk-ZCQ4H7CA.js} +1 -1
- package/dist/bundle/{chunk-D4NE7EON.js → chunk-ZOZV32IR.js} +2 -2
- package/dist/bundle/{chunk-7IWIFVXH.js → chunk-ZTKHXDEU.js} +3 -3
- package/dist/bundle/{cli-3NXOSENF.js → cli-EAD3WZLR.js} +81 -66
- package/dist/bundle/command-contract-SMEJ2ICG.js +40 -0
- package/dist/bundle/{command-server-entry-4ZQPNUL4.js → command-server-entry-YTZP6I4T.js} +25 -24
- package/dist/bundle/{decode-K7U7X5EL.js → decode-57BE5OBT.js} +2 -2
- package/dist/bundle/{echarts-O3TNDAXJ.js → echarts-QMAA7HH5.js} +2 -2
- package/dist/bundle/{embed-SWLVG73O.js → embed-NFGFYUO4.js} +3 -3
- package/dist/bundle/{embedder-EJN75BPV.js → embedder-SRBOJMXX.js} +6 -6
- package/dist/bundle/{first-run-WPGUUC4Z.js → first-run-HWRUL2GR.js} +6 -6
- package/dist/bundle/first-screen-ATN4D3FQ.js +41 -0
- package/dist/bundle/{instructions-AMH5RWVJ.js → instructions-4H7UREH2.js} +1 -1
- package/dist/bundle/meeting-combined-BGDEHCWY.js +26 -0
- package/dist/bundle/{meeting-model-YXXNETKC.js → meeting-model-WWGVRXPL.js} +8 -8
- package/dist/bundle/{meeting-semantic-U7EUB3ET.js → meeting-semantic-ZQ47BL2Z.js} +2 -2
- package/dist/bundle/{node-EGMCBAO7.js → node-P3PUHKYH.js} +2 -2
- package/dist/bundle/{node-sqlite-YVOGMDSP.js → node-sqlite-JOTSNH3P.js} +4 -4
- package/dist/bundle/{oauth-2SNRBIJM.js → oauth-XPSAL6VO.js} +4 -4
- package/dist/bundle/{open-ABCPY5IH.js → open-PO52FVA5.js} +2 -2
- package/dist/bundle/{openai-4D6PXJR7.js → openai-WITYLMY5.js} +12 -12
- package/dist/bundle/{process-SGHEN6MQ.js → process-AFIXYXWL.js} +1 -1
- package/dist/bundle/{program-CBDQBZZ3.js → program-JODTZNBZ.js} +107 -158
- package/dist/bundle/{prompt-2QUK5QST.js → prompt-XORLAXHY.js} +2 -2
- package/dist/bundle/{recognize-QMQSJRIH.js → recognize-JKMZHDYS.js} +1 -1
- package/dist/bundle/{remote-U7TC2BLZ.js → remote-3IMEJTEH.js} +6 -6
- package/dist/bundle/{rerank-5UPVXGVV.js → rerank-3F2E6NNN.js} +4 -4
- package/dist/bundle/{serve-VX6GUM6J.js → serve-6BWU3NMB.js} +6 -6
- package/dist/bundle/{server-FOPC6DJ3.js → server-GPSB5WFG.js} +56 -55
- package/dist/bundle/server-HMCC64ZU.js +88 -0
- package/dist/bundle/source-E72OS27D.js +47 -0
- package/dist/bundle/{sqlite-runtime-77NKDEXN.js → sqlite-runtime-YHYQDUXE.js} +3 -3
- package/dist/bundle/{state-X2HU6GB2.js → state-R7W4U6T4.js} +3 -3
- package/dist/bundle/{store-3CHPHFP7.js → store-HTVRL7FB.js} +51 -40
- package/dist/bundle/store-IWW6U6QN.js +34 -0
- package/dist/bundle/{store-2U4U6KL4.js → store-TBZ3ZS6H.js} +21 -19
- package/dist/bundle/store-maintenance-command-CJM2VLMW.js +75 -0
- package/dist/bundle/surface-5GBWNYBE.js +74 -0
- package/dist/bundle/writer-TW2Q55VJ.js +49 -0
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +1 -6
- package/dist/commands/session.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/agent-EFMUK732.js +0 -41
- package/dist/bundle/chunk-IG2TJQJ7.js +0 -79
- package/dist/bundle/chunk-KZN2BG3P.js +0 -721
- package/dist/bundle/chunk-RRTMPSQR.js +0 -29
- package/dist/bundle/command-contract-LNSAV5LA.js +0 -39
- package/dist/bundle/first-screen-JMNEUQ46.js +0 -40
- package/dist/bundle/meeting-combined-5TKG2RYD.js +0 -24
- package/dist/bundle/server-OIVNOMVK.js +0 -87
- package/dist/bundle/source-HWS5SJIV.js +0 -46
- package/dist/bundle/store-Z3747L5F.js +0 -34
- package/dist/bundle/store-maintenance-command-UOSZJTVP.js +0 -74
- package/dist/bundle/surface-MUT72QON.js +0 -73
- package/dist/bundle/writer-RBKQ64ZM.js +0 -48
|
@@ -2,7 +2,7 @@ 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-SWCJM3YD.js";
|
|
6
6
|
import {
|
|
7
7
|
ProfileTokenStore,
|
|
8
8
|
REPORT_FORMAT,
|
|
@@ -21,6 +21,7 @@ import {
|
|
|
21
21
|
honoursDryRun,
|
|
22
22
|
oauthAccount,
|
|
23
23
|
openBrowser,
|
|
24
|
+
openProfileStore,
|
|
24
25
|
ownerLanguageOf,
|
|
25
26
|
run,
|
|
26
27
|
runsCommand,
|
|
@@ -29,48 +30,49 @@ import {
|
|
|
29
30
|
setupCommand,
|
|
30
31
|
signInSteps,
|
|
31
32
|
skillCommand,
|
|
33
|
+
storageOf,
|
|
32
34
|
tokenKeeper,
|
|
33
35
|
upgradeCommand,
|
|
34
36
|
writeCsv
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-UFKC7TIX.js";
|
|
38
|
+
import "./chunk-FTH6WGYO.js";
|
|
37
39
|
import {
|
|
38
40
|
OPERATIONS,
|
|
39
41
|
amoCrmSource,
|
|
40
42
|
matchOperation,
|
|
41
43
|
pathOf,
|
|
42
44
|
withEveryId
|
|
43
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-GOCMJBEE.js";
|
|
44
46
|
import {
|
|
45
47
|
AMO_WRITES
|
|
46
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-RNWUCAJJ.js";
|
|
47
49
|
import {
|
|
48
50
|
ENTITIES,
|
|
49
51
|
ROUTES
|
|
50
|
-
} from "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
+
} from "./chunk-FYOPPKAN.js";
|
|
53
|
+
import "./chunk-C7JPYWYQ.js";
|
|
52
54
|
import {
|
|
53
55
|
SOURCE_SEARCHED,
|
|
54
56
|
allAnswer,
|
|
55
57
|
historySkipsOf,
|
|
56
58
|
offsetOf,
|
|
57
59
|
refuseOffline
|
|
58
|
-
} from "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
60
|
+
} from "./chunk-DIZEHPS6.js";
|
|
61
|
+
import "./chunk-DWT24UVR.js";
|
|
62
|
+
import "./chunk-NNREILWP.js";
|
|
63
|
+
import "./chunk-GZ7WBU5Y.js";
|
|
62
64
|
import {
|
|
63
65
|
addStoreMaintenanceCommands,
|
|
64
66
|
notLocalPaths
|
|
65
|
-
} from "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
67
|
+
} from "./chunk-K5W7YEHB.js";
|
|
68
|
+
import "./chunk-DYWHAJRK.js";
|
|
69
|
+
import "./chunk-MRPMORLH.js";
|
|
70
|
+
import "./chunk-DUPCDJ3W.js";
|
|
71
|
+
import "./chunk-SEFE6PGL.js";
|
|
72
|
+
import "./chunk-5NGLCDYQ.js";
|
|
73
|
+
import "./chunk-ZTKHXDEU.js";
|
|
74
|
+
import "./chunk-2JGNMZ55.js";
|
|
75
|
+
import "./chunk-LJKINNWC.js";
|
|
74
76
|
import {
|
|
75
77
|
crmAccounts,
|
|
76
78
|
embedCrmActivities,
|
|
@@ -80,11 +82,12 @@ import {
|
|
|
80
82
|
personMeetings,
|
|
81
83
|
readableAccounts,
|
|
82
84
|
searchAll,
|
|
83
|
-
taskAccount
|
|
84
|
-
|
|
85
|
+
taskAccount,
|
|
86
|
+
timeLimit
|
|
87
|
+
} from "./chunk-A5K2NU3K.js";
|
|
85
88
|
import {
|
|
86
89
|
safeName
|
|
87
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-FFER7KJI.js";
|
|
88
91
|
import {
|
|
89
92
|
CRM_ASSIGN_OTHERS_KEY,
|
|
90
93
|
CRM_SHARED_FOLDERS,
|
|
@@ -138,15 +141,15 @@ import {
|
|
|
138
141
|
withCustomFields,
|
|
139
142
|
withReadableDeal,
|
|
140
143
|
withoutFileLinks
|
|
141
|
-
} from "./chunk-
|
|
142
|
-
import "./chunk-
|
|
144
|
+
} from "./chunk-FWRLGIF6.js";
|
|
145
|
+
import "./chunk-ISQ23VKV.js";
|
|
143
146
|
import {
|
|
144
147
|
latestVersion,
|
|
145
148
|
runUpdate,
|
|
146
149
|
updateNotice
|
|
147
150
|
} from "./chunk-HOF7GQWW.js";
|
|
148
151
|
import "./chunk-TY7NDMFY.js";
|
|
149
|
-
import "./chunk-
|
|
152
|
+
import "./chunk-GVSKLZRD.js";
|
|
150
153
|
import {
|
|
151
154
|
commandPath,
|
|
152
155
|
dateWindow,
|
|
@@ -161,15 +164,15 @@ import {
|
|
|
161
164
|
unfilteredQuery,
|
|
162
165
|
withQuery,
|
|
163
166
|
withWords
|
|
164
|
-
} from "./chunk-
|
|
165
|
-
import "./chunk-
|
|
166
|
-
import "./chunk-
|
|
167
|
-
import "./chunk-
|
|
168
|
-
import "./chunk-
|
|
169
|
-
import "./chunk-
|
|
170
|
-
import "./chunk-
|
|
171
|
-
import "./chunk-
|
|
172
|
-
import "./chunk-
|
|
167
|
+
} from "./chunk-G3N2RHGF.js";
|
|
168
|
+
import "./chunk-HUAHLO6N.js";
|
|
169
|
+
import "./chunk-EXRM3ML4.js";
|
|
170
|
+
import "./chunk-AEC4H5WZ.js";
|
|
171
|
+
import "./chunk-6GE36KUE.js";
|
|
172
|
+
import "./chunk-ZOZV32IR.js";
|
|
173
|
+
import "./chunk-OGJFDKDL.js";
|
|
174
|
+
import "./chunk-M36XP74N.js";
|
|
175
|
+
import "./chunk-U6XPWCWM.js";
|
|
173
176
|
import {
|
|
174
177
|
Argument,
|
|
175
178
|
Command,
|
|
@@ -217,13 +220,13 @@ import {
|
|
|
217
220
|
sharedCommand,
|
|
218
221
|
snakeKeys,
|
|
219
222
|
snakeKeysKeeping
|
|
220
|
-
} from "./chunk-
|
|
221
|
-
import "./chunk-
|
|
222
|
-
import "./chunk-
|
|
223
|
-
import "./chunk-
|
|
224
|
-
import "./chunk-
|
|
225
|
-
import "./chunk-
|
|
226
|
-
import "./chunk-
|
|
223
|
+
} from "./chunk-5SQTHOBI.js";
|
|
224
|
+
import "./chunk-6OV2TRGF.js";
|
|
225
|
+
import "./chunk-22KAQPX7.js";
|
|
226
|
+
import "./chunk-LH6FJYMO.js";
|
|
227
|
+
import "./chunk-T3W4V4A6.js";
|
|
228
|
+
import "./chunk-HN2LCLGT.js";
|
|
229
|
+
import "./chunk-FIP2DG7W.js";
|
|
227
230
|
import {
|
|
228
231
|
CRM_CHANGES,
|
|
229
232
|
CRM_SCOPES,
|
|
@@ -231,55 +234,58 @@ import {
|
|
|
231
234
|
attachmentMaxBytes,
|
|
232
235
|
crmIdentityId,
|
|
233
236
|
crmSettingKey,
|
|
237
|
+
readWhole,
|
|
234
238
|
seenBy,
|
|
235
239
|
viewerSql
|
|
236
|
-
} from "./chunk-
|
|
237
|
-
import "./chunk-UDSL3MUU.js";
|
|
240
|
+
} from "./chunk-SYRDEMQE.js";
|
|
238
241
|
import {
|
|
239
242
|
aheadOf,
|
|
240
243
|
dayIn
|
|
241
|
-
} from "./chunk-
|
|
242
|
-
import "./chunk-
|
|
244
|
+
} from "./chunk-JVBCQHCS.js";
|
|
245
|
+
import "./chunk-DXWJORSY.js";
|
|
246
|
+
import "./chunk-W3BOR6AT.js";
|
|
243
247
|
import {
|
|
244
248
|
count,
|
|
245
|
-
createTaskService,
|
|
246
249
|
currentAttempt,
|
|
247
250
|
text,
|
|
248
251
|
time
|
|
249
|
-
} from "./chunk-
|
|
250
|
-
import "./chunk-
|
|
251
|
-
import
|
|
252
|
+
} from "./chunk-PCR6GFNP.js";
|
|
253
|
+
import "./chunk-3TYER5IK.js";
|
|
254
|
+
import {
|
|
255
|
+
createTaskService
|
|
256
|
+
} from "./chunk-IDCZ4LWS.js";
|
|
257
|
+
import "./chunk-34ZOMVUK.js";
|
|
252
258
|
import {
|
|
253
259
|
hostFetch,
|
|
254
260
|
providerWaitMs,
|
|
255
261
|
readJsonResponse,
|
|
256
262
|
retryableStatus,
|
|
257
263
|
statusToCode
|
|
258
|
-
} from "./chunk-
|
|
259
|
-
import "./chunk-
|
|
260
|
-
import "./chunk-
|
|
264
|
+
} from "./chunk-DY3PLWIH.js";
|
|
265
|
+
import "./chunk-GRGCZSES.js";
|
|
266
|
+
import "./chunk-UNWF3TH5.js";
|
|
261
267
|
import {
|
|
262
268
|
IDENTITY,
|
|
263
269
|
PACKAGE,
|
|
264
270
|
SKILL
|
|
265
|
-
} from "./chunk-
|
|
266
|
-
import "./chunk-
|
|
267
|
-
import "./chunk-
|
|
271
|
+
} from "./chunk-APBEDWOE.js";
|
|
272
|
+
import "./chunk-B7L5MSRP.js";
|
|
273
|
+
import "./chunk-KAFSS35C.js";
|
|
268
274
|
import "./chunk-EH6ZEJGT.js";
|
|
269
|
-
import "./chunk-
|
|
270
|
-
import "./chunk-
|
|
275
|
+
import "./chunk-X76RS6JO.js";
|
|
276
|
+
import "./chunk-7CPIZFOE.js";
|
|
271
277
|
import {
|
|
272
278
|
installerOf
|
|
273
279
|
} from "./chunk-TXDR6YSF.js";
|
|
274
280
|
import {
|
|
275
281
|
fieldsOf,
|
|
276
282
|
levelFor
|
|
277
|
-
} from "./chunk-
|
|
283
|
+
} from "./chunk-SDVUGWD7.js";
|
|
278
284
|
import {
|
|
279
285
|
foldName
|
|
280
|
-
} from "./chunk-
|
|
281
|
-
import "./chunk-
|
|
282
|
-
import "./chunk-
|
|
286
|
+
} from "./chunk-3J3EDSXF.js";
|
|
287
|
+
import "./chunk-NSOY4FMN.js";
|
|
288
|
+
import "./chunk-HO4JGD4Q.js";
|
|
283
289
|
import {
|
|
284
290
|
CRM_ACTIVITY_KINDS,
|
|
285
291
|
CRM_KINDS,
|
|
@@ -290,26 +296,26 @@ import {
|
|
|
290
296
|
normalCrmUserId,
|
|
291
297
|
parseDecimal,
|
|
292
298
|
scaleOf
|
|
293
|
-
} from "./chunk-
|
|
294
|
-
import "./chunk-
|
|
295
|
-
import "./chunk-
|
|
299
|
+
} from "./chunk-MNPGZCKE.js";
|
|
300
|
+
import "./chunk-LC7ZD2RW.js";
|
|
301
|
+
import "./chunk-PATZAYFZ.js";
|
|
296
302
|
import {
|
|
297
303
|
SAVE_HELP,
|
|
298
304
|
defineQuery,
|
|
299
305
|
queryFieldsOf,
|
|
300
306
|
timezoneOf,
|
|
301
307
|
zonedMoment
|
|
302
|
-
} from "./chunk-
|
|
308
|
+
} from "./chunk-YF3S26TS.js";
|
|
303
309
|
import "./chunk-DNCLQPOM.js";
|
|
304
|
-
import "./chunk-
|
|
310
|
+
import "./chunk-QQRJEWKB.js";
|
|
305
311
|
import "./chunk-D72URWJE.js";
|
|
306
312
|
import {
|
|
307
313
|
readSecret
|
|
308
|
-
} from "./chunk-
|
|
309
|
-
import "./chunk-
|
|
310
|
-
import "./chunk-
|
|
311
|
-
import "./chunk-
|
|
312
|
-
import "./chunk-
|
|
314
|
+
} from "./chunk-KLRCTMES.js";
|
|
315
|
+
import "./chunk-TES7MB6I.js";
|
|
316
|
+
import "./chunk-ZCQ4H7CA.js";
|
|
317
|
+
import "./chunk-SYYQZDHJ.js";
|
|
318
|
+
import "./chunk-KYRYD4CR.js";
|
|
313
319
|
import {
|
|
314
320
|
Credentials,
|
|
315
321
|
isMovedRun,
|
|
@@ -344,16 +350,16 @@ import {
|
|
|
344
350
|
CliError,
|
|
345
351
|
isCliError
|
|
346
352
|
} from "./chunk-S6JG4YUH.js";
|
|
347
|
-
import "./chunk-
|
|
353
|
+
import "./chunk-TCT5D2X2.js";
|
|
348
354
|
import {
|
|
349
355
|
__name
|
|
350
356
|
} from "./chunk-ZVVMGPBJ.js";
|
|
351
357
|
|
|
352
358
|
// dist/program.js
|
|
353
|
-
import { join as
|
|
359
|
+
import { join as join3 } from "node:path";
|
|
354
360
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
355
361
|
|
|
356
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
362
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/update/index.js
|
|
357
363
|
import { realpathSync } from "node:fs";
|
|
358
364
|
import { fileURLToPath } from "node:url";
|
|
359
365
|
var npmRegistry = /* @__PURE__ */ __name(() => hostFetch({ hosts: ["registry.npmjs.org"] }), "npmRegistry");
|
|
@@ -521,9 +527,7 @@ var exchange = /* @__PURE__ */ __name(async (origin, redirectUri, params, contex
|
|
|
521
527
|
...refresh ? { refresh_token: params.refresh_token ?? "" } : { code: params.code ?? "" },
|
|
522
528
|
redirect_uri: redirectUri
|
|
523
529
|
};
|
|
524
|
-
const deadline =
|
|
525
|
-
const timer = setTimeout(() => deadline.abort(), REQUEST_MS);
|
|
526
|
-
timer.unref();
|
|
530
|
+
const deadline = timeLimit(REQUEST_MS);
|
|
527
531
|
const signal = context.signal ? AbortSignal.any([context.signal, deadline.signal]) : deadline.signal;
|
|
528
532
|
try {
|
|
529
533
|
let response;
|
|
@@ -559,7 +563,7 @@ var exchange = /* @__PURE__ */ __name(async (origin, redirectUri, params, contex
|
|
|
559
563
|
...typeof tokenType === "string" ? { tokenType } : {}
|
|
560
564
|
};
|
|
561
565
|
} finally {
|
|
562
|
-
|
|
566
|
+
deadline.clear();
|
|
563
567
|
}
|
|
564
568
|
}, "exchange");
|
|
565
569
|
var appProvider = /* @__PURE__ */ __name((origin, client, redirectUri = RELAY_URL) => ({
|
|
@@ -991,9 +995,7 @@ var AmoTransport = class {
|
|
|
991
995
|
}
|
|
992
996
|
async #once(route, request, write2, attempt) {
|
|
993
997
|
const { operation } = route;
|
|
994
|
-
const deadline =
|
|
995
|
-
const timer = setTimeout(() => deadline.abort(new DOMException(`${operation.name} timed out`, "TimeoutError")), this.#timeoutMs);
|
|
996
|
-
timer.unref();
|
|
998
|
+
const deadline = timeLimit(this.#timeoutMs);
|
|
997
999
|
const end = providerRequest(operation.name, this.#events ?? providerEvent, {
|
|
998
1000
|
method: operation.method,
|
|
999
1001
|
endpointTemplate: operation.template,
|
|
@@ -1013,7 +1015,7 @@ var AmoTransport = class {
|
|
|
1013
1015
|
end({ status: response.status });
|
|
1014
1016
|
return { status: response.status, body };
|
|
1015
1017
|
} finally {
|
|
1016
|
-
|
|
1018
|
+
deadline.clear();
|
|
1017
1019
|
}
|
|
1018
1020
|
}
|
|
1019
1021
|
async #send(route, request, write2, signal, end) {
|
|
@@ -1413,7 +1415,7 @@ var callCommand = /* @__PURE__ */ __name(() => annotate(new Command("call"), {
|
|
|
1413
1415
|
}), "callCommand");
|
|
1414
1416
|
var apiCommand = /* @__PURE__ */ __name(() => annotate(new Command("api"), { effects: LOCAL_READ }).description("see and call the amoCRM API v4 operations directly").addCommand(listCommand()).addCommand(showCommand()).addCommand(callCommand()), "apiCommand");
|
|
1415
1417
|
|
|
1416
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
1418
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/stage-tasks.js
|
|
1417
1419
|
var DAY = 864e5;
|
|
1418
1420
|
var openStageTasks = /* @__PURE__ */ __name(async (store, account2, now, { history = false } = {}) => {
|
|
1419
1421
|
const rules = await store.crm.stageTasks(account2);
|
|
@@ -1450,7 +1452,7 @@ var openStageTasks = /* @__PURE__ */ __name(async (store, account2, now, { histo
|
|
|
1450
1452
|
return opened;
|
|
1451
1453
|
}, "openStageTasks");
|
|
1452
1454
|
|
|
1453
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
1455
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/cli/account.js
|
|
1454
1456
|
import { join } from "node:path";
|
|
1455
1457
|
var SHARED = new Set(Object.values(CRM_SHARED_FOLDERS));
|
|
1456
1458
|
var isShared = /* @__PURE__ */ __name((profile) => SHARED.has(profile.toLowerCase()), "isShared");
|
|
@@ -1556,7 +1558,7 @@ var crmAccountCommand = /* @__PURE__ */ __name((app, options) => annotate(new Co
|
|
|
1556
1558
|
...options.resolveSettings ? { resolveSettings: options.resolveSettings } : {}
|
|
1557
1559
|
}), { effects: LOCAL_WRITE }).hook("preAction", (_, action) => refuseSharedDelete(app, options, action))), "crmAccountCommand");
|
|
1558
1560
|
|
|
1559
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
1561
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/digest.js
|
|
1560
1562
|
var HOUR = 36e5;
|
|
1561
1563
|
var SHOWN = 7;
|
|
1562
1564
|
var STALE_HOURS = 24;
|
|
@@ -1700,7 +1702,7 @@ var healthOf = /* @__PURE__ */ __name(async (store, account2, { now, profile })
|
|
|
1700
1702
|
return stale > STALE_HOURS ? [{ ...named, stale_hours: Math.floor(stale) }] : [];
|
|
1701
1703
|
}, "healthOf");
|
|
1702
1704
|
|
|
1703
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
1705
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/cli/csv.js
|
|
1704
1706
|
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");
|
|
1705
1707
|
var DEAL_CSV_COLUMNS = [
|
|
1706
1708
|
"ref",
|
|
@@ -1822,7 +1824,7 @@ var renderCsv = /* @__PURE__ */ __name((command, open2, read, defaults = DEAL_CS
|
|
|
1822
1824
|
});
|
|
1823
1825
|
}, "renderCsv");
|
|
1824
1826
|
|
|
1825
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
1827
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/cli/records.js
|
|
1826
1828
|
var time2 = nullable(isoTime);
|
|
1827
1829
|
var metadata = optional(record(string(), strictObject({
|
|
1828
1830
|
label: nullable(string()),
|
|
@@ -2229,7 +2231,7 @@ var addRecordWrites = /* @__PURE__ */ __name((group, noun, { within, example, wr
|
|
|
2229
2231
|
}, "addRecordWrites");
|
|
2230
2232
|
var idOf = /* @__PURE__ */ __name((opts) => opts.operationId === void 0 ? {} : { operationId: opts.operationId }, "idOf");
|
|
2231
2233
|
|
|
2232
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
2234
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/cli/activities.js
|
|
2233
2235
|
var MOST2 = 500;
|
|
2234
2236
|
var nullableText = nullable(text);
|
|
2235
2237
|
var REFS = ["deal", "lead", "person", "organization"];
|
|
@@ -2422,7 +2424,7 @@ var writtenOf = /* @__PURE__ */ __name((run3, activity, on) => ({
|
|
|
2422
2424
|
untrusted: UNTRUSTED2
|
|
2423
2425
|
}), "writtenOf");
|
|
2424
2426
|
|
|
2425
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
2427
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/cli/changes.js
|
|
2426
2428
|
var MOST3 = 500;
|
|
2427
2429
|
var DAY2 = 864e5;
|
|
2428
2430
|
var nullableText2 = nullable(text);
|
|
@@ -2651,9 +2653,9 @@ var pipelineOf2 = /* @__PURE__ */ __name(async (run3, value) => {
|
|
|
2651
2653
|
}) : new CliError("not_found", `no pipeline ${value} in this account`, { reason: "pipeline.not-found" });
|
|
2652
2654
|
}, "pipelineOf");
|
|
2653
2655
|
|
|
2654
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
2656
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/cli/files.js
|
|
2655
2657
|
import { createHash } from "node:crypto";
|
|
2656
|
-
import { chmodSync, constants, copyFileSync, existsSync, linkSync, mkdirSync,
|
|
2658
|
+
import { chmodSync, constants, copyFileSync, existsSync, linkSync, mkdirSync, renameSync, rmSync } from "node:fs";
|
|
2657
2659
|
import { open } from "node:fs/promises";
|
|
2658
2660
|
import { join as join2, resolve, sep } from "node:path";
|
|
2659
2661
|
var MB = 1024 * 1024;
|
|
@@ -2884,9 +2886,10 @@ var downloadCrmFile = /* @__PURE__ */ __name(async (context, file, assignee, { c
|
|
|
2884
2886
|
await discard();
|
|
2885
2887
|
throw diskFull(limits, top, setting);
|
|
2886
2888
|
}
|
|
2889
|
+
const overBudget = saved.bytes > attachmentMaxBytes(run3.env ?? process.env);
|
|
2887
2890
|
let bytes;
|
|
2888
2891
|
try {
|
|
2889
|
-
bytes =
|
|
2892
|
+
bytes = overBudget ? Buffer.alloc(0) : await readWhole(target);
|
|
2890
2893
|
} catch {
|
|
2891
2894
|
await discard();
|
|
2892
2895
|
throw new CliError("not_found", `the saved copy of ${file.id} was removed before its text was read; run it again`, {
|
|
@@ -2899,7 +2902,7 @@ var downloadCrmFile = /* @__PURE__ */ __name(async (context, file, assignee, { c
|
|
|
2899
2902
|
}, "cutOff");
|
|
2900
2903
|
let extraction;
|
|
2901
2904
|
try {
|
|
2902
|
-
extraction =
|
|
2905
|
+
extraction = overBudget ? { status: "too-large" } : await extractText(bytes, { kind: "file", name: file.name, mime: file.mime, path: target }, importEngine, signal, run3.env ?? process.env);
|
|
2903
2906
|
} catch (error) {
|
|
2904
2907
|
if (signal?.aborted)
|
|
2905
2908
|
throw await cutOff();
|
|
@@ -3188,7 +3191,7 @@ var syncFiles = /* @__PURE__ */ __name(async (context, outOfTime, deadline = (ms
|
|
|
3188
3191
|
return report;
|
|
3189
3192
|
}, "syncFiles");
|
|
3190
3193
|
|
|
3191
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
3194
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/cli/pipeline-view.js
|
|
3192
3195
|
var sumOf = /* @__PURE__ */ __name((amounts) => amounts.map(({ amount, currency }) => `${groupDigits(amount)} ${currency}`).join(", ") || "\u2014", "sumOf");
|
|
3193
3196
|
var percent = /* @__PURE__ */ __name((share) => share === null ? "\u2014" : `${Math.round(share * 100)}%`, "percent");
|
|
3194
3197
|
var openStages = /* @__PURE__ */ __name((stages) => {
|
|
@@ -3234,7 +3237,7 @@ ${outcomes.join("\n")}`
|
|
|
3234
3237
|
].join("\n\n");
|
|
3235
3238
|
}, "pipelineView");
|
|
3236
3239
|
|
|
3237
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
3240
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/cli/search-all.js
|
|
3238
3241
|
var SEARCHED = ["crm", ...SOURCE_SEARCHED];
|
|
3239
3242
|
var DEFAULT_LIMIT = 20;
|
|
3240
3243
|
var addCrmSearchAll = /* @__PURE__ */ __name((searches, { within, app, example, viewerOf: viewerOf2, leads = true }) => {
|
|
@@ -3310,7 +3313,7 @@ It finds ${deals} by the meaning of their activities too, in other words or anot
|
|
|
3310
3313
|
});
|
|
3311
3314
|
}, "addCrmSearchAll");
|
|
3312
3315
|
|
|
3313
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
3316
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/cli/sync-embed.js
|
|
3314
3317
|
var EMBED_MAX = 600;
|
|
3315
3318
|
var crmSyncEmbeddings = strictObject({
|
|
3316
3319
|
model: text,
|
|
@@ -3361,59 +3364,10 @@ var syncEmbeddings = /* @__PURE__ */ __name(async (command, store, report, app,
|
|
|
3361
3364
|
}
|
|
3362
3365
|
}, "syncEmbeddings");
|
|
3363
3366
|
|
|
3364
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
3365
|
-
import { mkdtempSync, rmSync as rmSync2 } from "node:fs";
|
|
3366
|
-
import { tmpdir } from "node:os";
|
|
3367
|
-
import { join as join3 } from "node:path";
|
|
3368
|
-
var openProfileStore = /* @__PURE__ */ __name(async (options) => {
|
|
3369
|
-
const { app, env, profile, readOnly, open: open2 } = options;
|
|
3370
|
-
const locked = readOnly && readOnlyLockOf(app, env) !== void 0;
|
|
3371
|
-
if (readOnly) {
|
|
3372
|
-
const store = await open2(env, { readOnly: true }).catch((error) => {
|
|
3373
|
-
if (locked && !(isCliError(error) && error.code === "not_found"))
|
|
3374
|
-
throw error;
|
|
3375
|
-
return void 0;
|
|
3376
|
-
});
|
|
3377
|
-
if (store) {
|
|
3378
|
-
const saved = await store.accounts.profiles().then((all) => all[app.command]?.[profile]).catch(() => void 0);
|
|
3379
|
-
if (saved)
|
|
3380
|
-
return { store, account: { provider: saved.provider, account: saved.account } };
|
|
3381
|
-
await store.close();
|
|
3382
|
-
}
|
|
3383
|
-
}
|
|
3384
|
-
if (!locked)
|
|
3385
|
-
return withProfile(options, env, options.account());
|
|
3386
|
-
const folder = mkdtempSync(join3(tmpdir(), `${app.command}-empty-`));
|
|
3387
|
-
const removing = /* @__PURE__ */ __name(() => rmSync2(folder, { recursive: true, force: true }), "removing");
|
|
3388
|
-
try {
|
|
3389
|
-
const empty = await withProfile(options, { ...env, MESSAGING_STORE: join3(folder, "wirecat.db") }, {
|
|
3390
|
-
provider: options.provider,
|
|
3391
|
-
account: profile
|
|
3392
|
-
});
|
|
3393
|
-
const close = empty.store.close.bind(empty.store);
|
|
3394
|
-
empty.store.close = () => close().finally(removing);
|
|
3395
|
-
return empty;
|
|
3396
|
-
} catch (error) {
|
|
3397
|
-
removing();
|
|
3398
|
-
throw error;
|
|
3399
|
-
}
|
|
3400
|
-
}, "openProfileStore");
|
|
3401
|
-
var withProfile = /* @__PURE__ */ __name(async ({ app, profile, open: open2 }, env, account2) => {
|
|
3402
|
-
const store = await open2(env);
|
|
3403
|
-
try {
|
|
3404
|
-
await store.accounts.saveAccount(account2, { name: null, scope: "work" });
|
|
3405
|
-
await store.accounts.saveProfile(app.command, profile, account2);
|
|
3406
|
-
return { store, account: account2 };
|
|
3407
|
-
} catch (error) {
|
|
3408
|
-
await store.close();
|
|
3409
|
-
throw error;
|
|
3410
|
-
}
|
|
3411
|
-
}, "withProfile");
|
|
3412
|
-
|
|
3413
|
-
// 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
|
|
3367
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/cli/store.js
|
|
3414
3368
|
var openCrmStore = openProfileStore;
|
|
3415
3369
|
|
|
3416
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
3370
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/cli/index.js
|
|
3417
3371
|
var MOST4 = 500;
|
|
3418
3372
|
var STAGE_REF = /^stage:\d+$/;
|
|
3419
3373
|
var timeField = /* @__PURE__ */ __name((name, example, relation) => nativeField({ name, type: "time", operators: ["term", "range"], example, relation }), "timeField");
|
|
@@ -4053,9 +4007,9 @@ var userOf = /* @__PURE__ */ __name(async (command, amo) => {
|
|
|
4053
4007
|
var openProfile = /* @__PURE__ */ __name(async (command, { readOnly }) => {
|
|
4054
4008
|
const { env, profile } = contextOf(command);
|
|
4055
4009
|
const [{ openAmoStore, PROVIDER: PROVIDER3 }, { amoCrmSource: amoCrmSource2 }, { amoCrmWriter }] = await Promise.all([
|
|
4056
|
-
import("./store-
|
|
4057
|
-
import("./source-
|
|
4058
|
-
import("./writer-
|
|
4010
|
+
import("./store-IWW6U6QN.js"),
|
|
4011
|
+
import("./source-E72OS27D.js"),
|
|
4012
|
+
import("./writer-TW2Q55VJ.js")
|
|
4059
4013
|
]);
|
|
4060
4014
|
const accountOf = /* @__PURE__ */ __name(() => {
|
|
4061
4015
|
const signIn = storedSignIn(command) ?? signInOf(command);
|
|
@@ -4074,7 +4028,7 @@ var openProfile = /* @__PURE__ */ __name(async (command, { readOnly }) => {
|
|
|
4074
4028
|
const amo = /* @__PURE__ */ __name(() => transport ??= transportFor(command, signInOf(command)), "amo");
|
|
4075
4029
|
let source;
|
|
4076
4030
|
const asked = /* @__PURE__ */ __name(async () => {
|
|
4077
|
-
const { crmSettingKey: crmSettingKey2 } = await import("./areas-
|
|
4031
|
+
const { crmSettingKey: crmSettingKey2 } = await import("./areas-27FRPBF3.js");
|
|
4078
4032
|
const scope = await store.crm.scope(account2);
|
|
4079
4033
|
return {
|
|
4080
4034
|
mode: scope.mode,
|
|
@@ -4334,11 +4288,6 @@ var browserSignIn = /* @__PURE__ */ __name(async (options) => {
|
|
|
4334
4288
|
// dist/commands/session.js
|
|
4335
4289
|
var AMO2 = IDENTITY.command;
|
|
4336
4290
|
var answer = /* @__PURE__ */ __name((command, item) => renderAnswer(command, outputFor(command), itemOf(item)), "answer");
|
|
4337
|
-
var storageOf = /* @__PURE__ */ __name((raw) => {
|
|
4338
|
-
if (raw === "keyring" || raw === "file")
|
|
4339
|
-
return raw;
|
|
4340
|
-
throw new CliError("validation_error", `--credential-storage takes keyring or file; got ${raw}`);
|
|
4341
|
-
}, "storageOf");
|
|
4342
4291
|
var tokensHere = /* @__PURE__ */ __name((env, keyring) => new ProfileTokenStore({ app: IDENTITY, env, ...keyring ? { keyring } : {} }), "tokensHere");
|
|
4343
4292
|
var refuseTaken = /* @__PURE__ */ __name((command, at2) => {
|
|
4344
4293
|
const { env, profile, keyring, settings } = contextOf(command);
|
|
@@ -4893,7 +4842,7 @@ var update = appUpdate({
|
|
|
4893
4842
|
command: IDENTITY.command,
|
|
4894
4843
|
version: IDENTITY.version,
|
|
4895
4844
|
entry: new URL("../program.js", import.meta.url).href,
|
|
4896
|
-
statePath: /* @__PURE__ */ __name((env) =>
|
|
4845
|
+
statePath: /* @__PURE__ */ __name((env) => join3(resolvePaths({ appName: IDENTITY.appName, prefix: IDENTITY.envPrefix, env }).state, "update-check.json"), "statePath"),
|
|
4897
4846
|
// biome-ignore lint/plugin/no-own-settings: the update check runs before any command exists to give baseContext
|
|
4898
4847
|
enabled: /* @__PURE__ */ __name((env) => configuration.resolveSettings({}, { env, needsProfile: false }).updateCheck, "enabled"),
|
|
4899
4848
|
offVariables: [`${IDENTITY.envPrefix}_NO_UPDATE_CHECK`]
|
|
@@ -3,8 +3,8 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
pasteHint,
|
|
5
5
|
readSecret
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-KLRCTMES.js";
|
|
7
|
+
import "./chunk-TES7MB6I.js";
|
|
8
8
|
import "./chunk-WIHN3ELW.js";
|
|
9
9
|
import "./chunk-QFOP3KUP.js";
|
|
10
10
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
openRemote,
|
|
9
9
|
remoteKey,
|
|
10
10
|
remoteModel
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-34ZOMVUK.js";
|
|
12
|
+
import "./chunk-DY3PLWIH.js";
|
|
13
|
+
import "./chunk-GRGCZSES.js";
|
|
14
|
+
import "./chunk-UNWF3TH5.js";
|
|
15
|
+
import "./chunk-QQRJEWKB.js";
|
|
16
|
+
import "./chunk-ZCQ4H7CA.js";
|
|
17
17
|
import "./chunk-WIHN3ELW.js";
|
|
18
18
|
import "./chunk-QFOP3KUP.js";
|
|
19
19
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
defaultThreads,
|
|
5
5
|
loadModel,
|
|
6
6
|
truncated
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-GRGCZSES.js";
|
|
8
|
+
import "./chunk-UNWF3TH5.js";
|
|
9
|
+
import "./chunk-ZCQ4H7CA.js";
|
|
10
10
|
import "./chunk-WIHN3ELW.js";
|
|
11
11
|
import "./chunk-QFOP3KUP.js";
|
|
12
12
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/embeddings/rerank.js
|
|
19
19
|
var openReranker = /* @__PURE__ */ __name(async (model, directory, { threads = defaultThreads() } = {}) => {
|
|
20
20
|
const { ort, tokenizer, session } = await loadModel(model, directory, threads);
|
|
21
21
|
const typeIds = session.inputNames.includes("token_type_ids");
|