@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,14 +2,14 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
WIRECAT_TOOLS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ISQ23VKV.js";
|
|
6
6
|
import {
|
|
7
7
|
LIST_QUERY_GUIDE,
|
|
8
8
|
queryTerms,
|
|
9
9
|
termField,
|
|
10
10
|
timeBounds,
|
|
11
11
|
withQuery
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-G3N2RHGF.js";
|
|
13
13
|
import {
|
|
14
14
|
API_UNTRUSTED,
|
|
15
15
|
Command,
|
|
@@ -41,18 +41,18 @@ import {
|
|
|
41
41
|
runBudget,
|
|
42
42
|
startRecording,
|
|
43
43
|
wasSettled
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-5SQTHOBI.js";
|
|
45
45
|
import {
|
|
46
46
|
keepsSuccess,
|
|
47
47
|
providerErrorKey,
|
|
48
48
|
runContextOf,
|
|
49
49
|
secretInput
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-6OV2TRGF.js";
|
|
51
51
|
import {
|
|
52
52
|
crmIdentityId,
|
|
53
53
|
crmSettingKey,
|
|
54
54
|
seenBy
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-SYRDEMQE.js";
|
|
56
56
|
import {
|
|
57
57
|
KEEP_RUNS_FOR_DAYS,
|
|
58
58
|
KEEP_STORE_RUNS_FOR_DAYS,
|
|
@@ -72,16 +72,16 @@ import {
|
|
|
72
72
|
runEvent,
|
|
73
73
|
sameAs,
|
|
74
74
|
sourceOf3 as sourceOf
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-PCR6GFNP.js";
|
|
76
76
|
import {
|
|
77
77
|
isCliFailure
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-3TYER5IK.js";
|
|
79
79
|
import {
|
|
80
80
|
hostFetch,
|
|
81
81
|
providerWaitMs,
|
|
82
82
|
readJsonResponse,
|
|
83
83
|
statusToCode
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-DY3PLWIH.js";
|
|
85
85
|
import {
|
|
86
86
|
AUTHORITY_KEY,
|
|
87
87
|
CEILING_KEY,
|
|
@@ -94,36 +94,38 @@ import {
|
|
|
94
94
|
levelFor,
|
|
95
95
|
skipFlagFor,
|
|
96
96
|
stops
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-SDVUGWD7.js";
|
|
98
98
|
import {
|
|
99
99
|
e164Of,
|
|
100
100
|
foldName
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-3J3EDSXF.js";
|
|
102
102
|
import {
|
|
103
103
|
CRM_KINDS,
|
|
104
104
|
DEAL_KINDS,
|
|
105
|
-
INTERNAL_NOTES,
|
|
106
105
|
STAGE_OUTCOMES,
|
|
107
|
-
alsoListedByKey,
|
|
108
106
|
currencyOf,
|
|
109
|
-
holdsKindOf,
|
|
110
107
|
isCrmUserId,
|
|
108
|
+
isItemKind,
|
|
109
|
+
minorUnits,
|
|
110
|
+
normalCrmUserId
|
|
111
|
+
} from "./chunk-MNPGZCKE.js";
|
|
112
|
+
import {
|
|
113
|
+
INTERNAL_NOTES,
|
|
114
|
+
alsoListedByKey,
|
|
115
|
+
holdsKindOf,
|
|
111
116
|
isDocumentAccountProvider,
|
|
112
117
|
isFolderProvider,
|
|
113
|
-
isItemKind,
|
|
114
118
|
isKind,
|
|
115
|
-
minorUnits,
|
|
116
|
-
normalCrmUserId,
|
|
117
119
|
providerNamed
|
|
118
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-PATZAYFZ.js";
|
|
119
121
|
import {
|
|
120
122
|
parseLucene,
|
|
121
123
|
walkQuery
|
|
122
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-YF3S26TS.js";
|
|
123
125
|
import {
|
|
124
126
|
storePath,
|
|
125
127
|
wirecatDirectory
|
|
126
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-ZCQ4H7CA.js";
|
|
127
129
|
import {
|
|
128
130
|
backoffMs,
|
|
129
131
|
logRecordOf,
|
|
@@ -162,7 +164,7 @@ import {
|
|
|
162
164
|
__name
|
|
163
165
|
} from "./chunk-ZVVMGPBJ.js";
|
|
164
166
|
|
|
165
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
167
|
+
// 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/sends/upload.js
|
|
166
168
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
167
169
|
import { open, stat } from "node:fs/promises";
|
|
168
170
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -378,7 +380,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path2, maxBytes, read) => {
|
|
|
378
380
|
return { name, source };
|
|
379
381
|
}, "readStickerFile");
|
|
380
382
|
|
|
381
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
383
|
+
// 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/values.js
|
|
382
384
|
var values_exports = {};
|
|
383
385
|
__export(values_exports, {
|
|
384
386
|
amountOf: () => amountOf,
|
|
@@ -395,10 +397,10 @@ __export(values_exports, {
|
|
|
395
397
|
time: () => time
|
|
396
398
|
});
|
|
397
399
|
|
|
398
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
400
|
+
// 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/source.js
|
|
399
401
|
var CRM_FILE_SOURCES = ["record", "field", "document", "activity", "comment"];
|
|
400
402
|
|
|
401
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
403
|
+
// 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/files.js
|
|
402
404
|
var parseCrmFileId = /* @__PURE__ */ __name((id2) => {
|
|
403
405
|
const [kind2 = "", owner = "", source = "", ...rest] = id2.trim().split(":");
|
|
404
406
|
const providerId = rest.join(":");
|
|
@@ -431,7 +433,7 @@ var withoutFileLinks = /* @__PURE__ */ __name((body) => {
|
|
|
431
433
|
return walk2(body);
|
|
432
434
|
}, "withoutFileLinks");
|
|
433
435
|
|
|
434
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
436
|
+
// 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/values.js
|
|
435
437
|
var isRaw = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isRaw");
|
|
436
438
|
var fieldOf = /* @__PURE__ */ __name((value, key) => isRaw(value) ? value[key] : void 0, "fieldOf");
|
|
437
439
|
var rawsOf = /* @__PURE__ */ __name((value) => Array.isArray(value) ? value.filter(isRaw) : [], "rawsOf");
|
|
@@ -490,7 +492,7 @@ var crmValuesOf = /* @__PURE__ */ __name((values, fields2) => {
|
|
|
490
492
|
}));
|
|
491
493
|
}, "crmValuesOf");
|
|
492
494
|
|
|
493
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
495
|
+
// 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/cli/bot/api-input.js
|
|
494
496
|
import { readFileSync } from "node:fs";
|
|
495
497
|
|
|
496
498
|
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/names.js
|
|
@@ -1259,7 +1261,7 @@ function resolveSpace(space) {
|
|
|
1259
1261
|
}
|
|
1260
1262
|
__name(resolveSpace, "resolveSpace");
|
|
1261
1263
|
|
|
1262
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
1264
|
+
// 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/cli/bot/api-input.js
|
|
1263
1265
|
var RENAMED = { timeout: "poll-timeout" };
|
|
1264
1266
|
var apiFlagOf = /* @__PURE__ */ __name((name) => RENAMED[name] ?? name.replace(/_/g, "-").replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), "apiFlagOf");
|
|
1265
1267
|
var apiOptionKey = /* @__PURE__ */ __name((name) => apiFlagOf(name).replace(/-([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "apiOptionKey");
|
|
@@ -1399,7 +1401,7 @@ var flagValue = /* @__PURE__ */ __name((operation, name, raw, type) => {
|
|
|
1399
1401
|
return raw;
|
|
1400
1402
|
}, "flagValue");
|
|
1401
1403
|
|
|
1402
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
1404
|
+
// 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/cli/service-api-manifest.js
|
|
1403
1405
|
var manifestBaseUrl = /* @__PURE__ */ __name((manifest, given, variables = {}) => {
|
|
1404
1406
|
const server = manifest.servers?.[0];
|
|
1405
1407
|
if (given === void 0 && !server)
|
|
@@ -1527,10 +1529,10 @@ var nextPage = /* @__PURE__ */ __name((pagination, input, answer, headers) => {
|
|
|
1527
1529
|
}
|
|
1528
1530
|
}, "nextPage");
|
|
1529
1531
|
|
|
1530
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
1532
|
+
// 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/sends/guard.js
|
|
1531
1533
|
import { randomUUID } from "node:crypto";
|
|
1532
1534
|
|
|
1533
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
1535
|
+
// 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/sends/flood.js
|
|
1534
1536
|
import { mkdirSync, readFileSync as readFileSync2, renameSync, writeFileSync } from "node:fs";
|
|
1535
1537
|
import { dirname as dirname2, join } from "node:path";
|
|
1536
1538
|
var MOST_DEADLINES = 50;
|
|
@@ -1614,11 +1616,11 @@ var FloodMemory = class {
|
|
|
1614
1616
|
}
|
|
1615
1617
|
};
|
|
1616
1618
|
|
|
1617
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
1619
|
+
// 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/sends/journal.js
|
|
1618
1620
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync3 } from "node:fs";
|
|
1619
1621
|
import { dirname as dirname4, join as join2 } from "node:path";
|
|
1620
1622
|
|
|
1621
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
1623
|
+
// 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/sends/file-lock.js
|
|
1622
1624
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
|
|
1623
1625
|
import { dirname as dirname3 } from "node:path";
|
|
1624
1626
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -1685,7 +1687,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
1685
1687
|
}
|
|
1686
1688
|
}, "lockTime");
|
|
1687
1689
|
|
|
1688
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
1690
|
+
// 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/sends/journal.js
|
|
1689
1691
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
1690
1692
|
var SendJournal = class {
|
|
1691
1693
|
static {
|
|
@@ -1762,7 +1764,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
1762
1764
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
1763
1765
|
}, "withSendId");
|
|
1764
1766
|
|
|
1765
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
1767
|
+
// 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/sends/recipients.js
|
|
1766
1768
|
import { existsSync, readFileSync as readFileSync4, rmSync } from "node:fs";
|
|
1767
1769
|
import { join as join3 } from "node:path";
|
|
1768
1770
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -1874,7 +1876,7 @@ var RecipientList = class {
|
|
|
1874
1876
|
}
|
|
1875
1877
|
};
|
|
1876
1878
|
|
|
1877
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
1879
|
+
// 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/sends/guard.js
|
|
1878
1880
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
1879
1881
|
var countsTowardLimit = /* @__PURE__ */ __name(({ kind: kind2 = "message", action, notify }) => kind2 === "message" || kind2 === "forward" || kind2 === "edit" || kind2 === "delete" || kind2 === "pin" && notify === true || action === "create" || action === "members.add" || action === "requests.accept" || action === "join" || action === "contact-import", "countsTowardLimit");
|
|
1880
1882
|
var weightOf = /* @__PURE__ */ __name(({ kind: kind2 = "message", action, count, people }) => kind2 === "delete" || kind2 === "message" && action === void 0 ? Math.max(1, count ?? 1) : action === "create" || action === "members.add" || action === "requests.accept" || action === "contact-import" ? Math.max(1, people ?? count ?? 1) : 1, "weightOf");
|
|
@@ -2062,7 +2064,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
2062
2064
|
}), "guardFor");
|
|
2063
2065
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
2064
2066
|
|
|
2065
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
2067
|
+
// 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/cli/command-runs.js
|
|
2066
2068
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
2067
2069
|
var runSettings = /* @__PURE__ */ __name((flag, saved = {}) => {
|
|
2068
2070
|
const record2 = flag ?? saved.record ?? true;
|
|
@@ -2251,7 +2253,7 @@ var recordRuns = /* @__PURE__ */ __name((program, options) => {
|
|
|
2251
2253
|
};
|
|
2252
2254
|
}, "recordRuns");
|
|
2253
2255
|
|
|
2254
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
2256
|
+
// 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/cli/bot/api-http.js
|
|
2255
2257
|
var LARGEST_ANSWER = 16 * 1024 * 1024;
|
|
2256
2258
|
var segment = /* @__PURE__ */ __name((name, value) => {
|
|
2257
2259
|
if (value === void 0 || value === "" || value === "." || value === "..")
|
|
@@ -2481,7 +2483,7 @@ var refusal = /* @__PURE__ */ __name((service, operation, response, writes, inne
|
|
|
2481
2483
|
});
|
|
2482
2484
|
}, "refusal");
|
|
2483
2485
|
|
|
2484
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
2486
|
+
// 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/cli/messenger/ask.js
|
|
2485
2487
|
import { openSync as openSync2 } from "node:fs";
|
|
2486
2488
|
import { createInterface } from "node:readline";
|
|
2487
2489
|
import { ReadStream } from "node:tty";
|
|
@@ -2536,7 +2538,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
2536
2538
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
2537
2539
|
}, "terminalAsker");
|
|
2538
2540
|
|
|
2539
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
2541
|
+
// 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/cli/permission-keys.js
|
|
2540
2542
|
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
2541
2543
|
"help",
|
|
2542
2544
|
"guide",
|
|
@@ -2624,7 +2626,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
2624
2626
|
throw new CliError("validation_error", `--permission ${key} names no command${now === void 0 ? "" : `: its command moved, so use ${now}`}`, { permission: key });
|
|
2625
2627
|
}, "refuseUnknownPermissionKeys");
|
|
2626
2628
|
|
|
2627
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
2629
|
+
// 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/sends/keyed-guard.js
|
|
2628
2630
|
var keyedGuard = /* @__PURE__ */ __name((build, ask, levelOf, extra) => {
|
|
2629
2631
|
let question;
|
|
2630
2632
|
let answered = false;
|
|
@@ -2667,12 +2669,12 @@ var keyedGuard = /* @__PURE__ */ __name((build, ask, levelOf, extra) => {
|
|
|
2667
2669
|
};
|
|
2668
2670
|
}, "keyedGuard");
|
|
2669
2671
|
|
|
2670
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
2672
|
+
// 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/sends/send-id.js
|
|
2671
2673
|
import { randomBytes } from "node:crypto";
|
|
2672
2674
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
2673
2675
|
var newOperationId = newSendId;
|
|
2674
2676
|
|
|
2675
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
2677
|
+
// 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/cli/bot/api.js
|
|
2676
2678
|
var apiPathOf = /* @__PURE__ */ __name((operation) => {
|
|
2677
2679
|
const { command, group } = operation;
|
|
2678
2680
|
if (!group)
|
|
@@ -2790,7 +2792,7 @@ var generatedApiCommand = /* @__PURE__ */ __name((api) => {
|
|
|
2790
2792
|
return group;
|
|
2791
2793
|
}, "generatedApiCommand");
|
|
2792
2794
|
|
|
2793
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
2795
|
+
// 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/cli/service-api.js
|
|
2794
2796
|
var serviceApiOperations = /* @__PURE__ */ __name((manifest) => {
|
|
2795
2797
|
const reasonOf = /* @__PURE__ */ __name((operation) => operation.response?.sensitive ? "it returns a credential, which is never printed" : unsendableBody(operation), "reasonOf");
|
|
2796
2798
|
return {
|
|
@@ -3127,7 +3129,7 @@ var serviceApiWriter = /* @__PURE__ */ __name((options) => {
|
|
|
3127
3129
|
};
|
|
3128
3130
|
}, "serviceApiWriter");
|
|
3129
3131
|
|
|
3130
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
3132
|
+
// 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/cli/service-api-call.js
|
|
3131
3133
|
var hostsFetch = /* @__PURE__ */ __name((hosts, fetch, credentialScope) => hostFetch({ hosts, ...fetch ? { fetch } : {}, ...credentialScope ? { credentialScope } : {} }), "hostsFetch");
|
|
3132
3134
|
var NO_COMMAND = new Command("source");
|
|
3133
3135
|
var sender = /* @__PURE__ */ __name((options, writes) => {
|
|
@@ -3165,7 +3167,7 @@ var serviceApiCall = /* @__PURE__ */ __name((options) => {
|
|
|
3165
3167
|
});
|
|
3166
3168
|
}, "serviceApiCall");
|
|
3167
3169
|
|
|
3168
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
3170
|
+
// 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/sends/profile-writes.js
|
|
3169
3171
|
var levelsOf = /* @__PURE__ */ __name((writes, defaults) => {
|
|
3170
3172
|
const settings = writes.settings();
|
|
3171
3173
|
return { settings, defaults: { ...DEFAULT_PERMISSIONS, ...defaults, ...settings.permissionDefaults } };
|
|
@@ -3176,14 +3178,14 @@ var profileWriteGuard = /* @__PURE__ */ __name((writes, ask, builtIn, extra) =>
|
|
|
3176
3178
|
}), writes.env, asker), ask, (key) => levelFor(settings.permissions, key, defaults).level, extra);
|
|
3177
3179
|
}, "profileWriteGuard");
|
|
3178
3180
|
|
|
3179
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
3181
|
+
// 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/foreign-contacts.js
|
|
3180
3182
|
import { readFileSync as readFileSync5 } from "node:fs";
|
|
3181
3183
|
import { join as join4 } from "node:path";
|
|
3182
3184
|
|
|
3183
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
3185
|
+
// 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/state-folders.js
|
|
3184
3186
|
var CRM_SHARED_FOLDERS = { files: "files", foreignContacts: "foreign-contacts" };
|
|
3185
3187
|
|
|
3186
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
3188
|
+
// 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/foreign-contacts.js
|
|
3187
3189
|
var DAILY_FOREIGN_CONTACTS = 100;
|
|
3188
3190
|
var foreignContactsPathFor = /* @__PURE__ */ __name((app, account, env = process.env, user) => join4(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "crm", CRM_SHARED_FOLDERS.foreignContacts, `${[account.provider, account.account, ...user ? [user] : []].join("-").replace(/[^\w.-]+/gu, "_")}.json`), "foreignContactsPathFor");
|
|
3189
3191
|
var shownIn = /* @__PURE__ */ __name((file, day) => {
|
|
@@ -3261,7 +3263,7 @@ var refuseForeignClientReads = /* @__PURE__ */ __name(async (source, readsClient
|
|
|
3261
3263
|
throw new CliError("permission_error", `${method} reads contacts or companies, which only the CRM's administrator reads through api call: your clients come with sync, and another one with people show or organizations show, ${DAILY_FOREIGN_CONTACTS} a day`, { reason: "crm.client-reads-admin-only", sent: false });
|
|
3262
3264
|
}, "refuseForeignClientReads");
|
|
3263
3265
|
|
|
3264
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
3266
|
+
// 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/writer.js
|
|
3265
3267
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
3266
3268
|
var CRM_WRITE_KEYS = [CRM_ASSIGN_OTHERS_KEY];
|
|
3267
3269
|
var PLURALS = {
|
|
@@ -3301,7 +3303,7 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
3301
3303
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
3302
3304
|
};
|
|
3303
3305
|
|
|
3304
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
3306
|
+
// 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/writes.js
|
|
3305
3307
|
var moneyChecked = /* @__PURE__ */ __name((check, param) => {
|
|
3306
3308
|
try {
|
|
3307
3309
|
check();
|
|
@@ -3861,10 +3863,10 @@ var completeCrmActivity = /* @__PURE__ */ __name(async (context, externalId, opt
|
|
|
3861
3863
|
return { operationId, activity, stored, on: await answeredTargets(context, activity, []) };
|
|
3862
3864
|
}, "completeCrmActivity");
|
|
3863
3865
|
|
|
3864
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
3866
|
+
// 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/file-fetch.js
|
|
3865
3867
|
var EXCHANGE_MS = 60 * 60 * 1e3;
|
|
3866
3868
|
|
|
3867
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
3869
|
+
// 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/manifest/map.js
|
|
3868
3870
|
var at = /* @__PURE__ */ __name((value, path2) => path2 === "." ? value : path2.split(".").reduce((inner, key) => inner === null ? null : Array.isArray(inner) && /^\d+$/.test(key) ? inner[Number(key)] ?? null : isRaw(inner) ? inner[key] : void 0, value), "at");
|
|
3869
3871
|
var TIMES = { createdAt: "epoch", updatedAt: "epoch" };
|
|
3870
3872
|
var ITEM = {
|
|
@@ -3917,7 +3919,7 @@ var FIELDS = {
|
|
|
3917
3919
|
lead: ITEM
|
|
3918
3920
|
};
|
|
3919
3921
|
|
|
3920
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
3922
|
+
// 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/manifest/manifest.js
|
|
3921
3923
|
var path = pipe(string(), regex(/^[^.\s]+(\.[^.\s]+)*$/, "a dotted path such as properties.name"));
|
|
3922
3924
|
var paths = pipe(array(path), minLength(1));
|
|
3923
3925
|
var crmRuleSchema = union([
|
|
@@ -4027,10 +4029,10 @@ var schema = strictObject({
|
|
|
4027
4029
|
writes: optional(record(kind, optional(write)))
|
|
4028
4030
|
});
|
|
4029
4031
|
|
|
4030
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
4032
|
+
// 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/manifest/source.js
|
|
4031
4033
|
var OVERLAP_MS = 10 * 6e4;
|
|
4032
4034
|
|
|
4033
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
4035
|
+
// 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/sends/pace.js
|
|
4034
4036
|
import { readFileSync as readFileSync6, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
4035
4037
|
import { join as join5 } from "node:path";
|
|
4036
4038
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -4125,7 +4127,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
|
|
|
4125
4127
|
await (options.sleep ?? ((ms) => new Promise((resolve2) => setTimeout(resolve2, ms))))(waitMs);
|
|
4126
4128
|
}, "waitForTurn");
|
|
4127
4129
|
|
|
4128
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
4130
|
+
// 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/provider-call.js
|
|
4129
4131
|
var RETRY = { retries: 3, baseDelayMs: 1e3, maxDelayMs: 1e4, maxRetryAfterMs: 3e4 };
|
|
4130
4132
|
var UNANSWERED = /* @__PURE__ */ new Set(["timeout", "network_error", "provider_unavailable", "cancelled", "invalid_response"]);
|
|
4131
4133
|
var unanswered2 = /* @__PURE__ */ __name((error) => !isCliError(error) || UNANSWERED.has(error.code) && error.details.sent !== false, "unanswered");
|
|
@@ -4161,7 +4163,7 @@ var providerCall = /* @__PURE__ */ __name(async (options) => {
|
|
|
4161
4163
|
}
|
|
4162
4164
|
}, "providerCall");
|
|
4163
4165
|
|
|
4164
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
4166
|
+
// 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/query.js
|
|
4165
4167
|
var valueFor = /* @__PURE__ */ __name((kind2, raw, name) => {
|
|
4166
4168
|
if (kind2 === "id") {
|
|
4167
4169
|
if (!/^[\w.:-]{1,100}$/u.test(raw))
|
|
@@ -4262,7 +4264,7 @@ var selectedCodes = /* @__PURE__ */ __name((fields2, wanted) => {
|
|
|
4262
4264
|
});
|
|
4263
4265
|
}, "selectedCodes");
|
|
4264
4266
|
|
|
4265
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
4267
|
+
// 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/search/groups.js
|
|
4266
4268
|
var ALL = "all";
|
|
4267
4269
|
var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
|
|
4268
4270
|
var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
|
|
@@ -4334,7 +4336,7 @@ var groupEntries = /* @__PURE__ */ __name((saved) => ({
|
|
|
4334
4336
|
[ALL]: [ALL]
|
|
4335
4337
|
}), "groupEntries");
|
|
4336
4338
|
|
|
4337
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
4339
|
+
// 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/services/search-kind.js
|
|
4338
4340
|
var NO_MAIL = "no_mail";
|
|
4339
4341
|
var MAIL = "email";
|
|
4340
4342
|
var groupLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -4408,7 +4410,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind2, chosen, held, explicit, comm
|
|
|
4408
4410
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
4409
4411
|
}, "accountsOfKind");
|
|
4410
4412
|
|
|
4411
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
4413
|
+
// 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/group-hint.js
|
|
4412
4414
|
var workGroupHint = /* @__PURE__ */ __name((key) => `add it to a work group: \`memo groups add work ${key.provider}:${key.account}\``, "workGroupHint");
|
|
4413
4415
|
var ungroupedHint = /* @__PURE__ */ __name(async (store, key) => {
|
|
4414
4416
|
const { groups } = (await listContextOf(store, key, void 0)).membership;
|
|
@@ -4416,7 +4418,7 @@ var ungroupedHint = /* @__PURE__ */ __name(async (store, key) => {
|
|
|
4416
4418
|
return grouped ? void 0 : workGroupHint(key);
|
|
4417
4419
|
}, "ungroupedHint");
|
|
4418
4420
|
|
|
4419
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
4421
|
+
// 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/viewer.js
|
|
4420
4422
|
var VIEWERS = "crm:viewers";
|
|
4421
4423
|
var viewersOf = /* @__PURE__ */ __name(async (store, account) => {
|
|
4422
4424
|
try {
|
|
@@ -4491,7 +4493,7 @@ var ownerOf = /* @__PURE__ */ __name(async (run, owner) => {
|
|
|
4491
4493
|
return crmIdentityId(run.account, normalCrmUserId(owner), "user");
|
|
4492
4494
|
}, "ownerOf");
|
|
4493
4495
|
|
|
4494
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
4496
|
+
// 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/sync.js
|
|
4495
4497
|
var DAY2 = 864e5;
|
|
4496
4498
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
4497
4499
|
var MOST_UNLISTED = 0.5;
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
helpOptionOf,
|
|
5
5
|
rejectUnknownOption
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HUAHLO6N.js";
|
|
7
7
|
import {
|
|
8
8
|
Command,
|
|
9
9
|
InvalidArgumentError,
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
annotateOption,
|
|
13
13
|
listOf,
|
|
14
14
|
sharedCommand
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5SQTHOBI.js";
|
|
16
16
|
import {
|
|
17
17
|
readMoment
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-JVBCQHCS.js";
|
|
19
19
|
import {
|
|
20
20
|
BACKENDS,
|
|
21
21
|
EVENT_QUERY,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
validateMeetingHitSearch,
|
|
58
58
|
validateMeetingPassage,
|
|
59
59
|
validateQuery
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-YF3S26TS.js";
|
|
61
61
|
import {
|
|
62
62
|
description,
|
|
63
63
|
maxLength,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
__name
|
|
73
73
|
} from "./chunk-ZVVMGPBJ.js";
|
|
74
74
|
|
|
75
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
75
|
+
// 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/services/moment.js
|
|
76
76
|
var read = /* @__PURE__ */ __name((reference, flag, now, at) => {
|
|
77
77
|
const found = readMoment(reference, flag, { ...at, now });
|
|
78
78
|
if (found === void 0)
|
|
@@ -101,7 +101,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
101
101
|
};
|
|
102
102
|
}, "dateWindow");
|
|
103
103
|
|
|
104
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
104
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/meetings/cli/management.js
|
|
105
105
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
106
106
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
107
107
|
var minutes = /* @__PURE__ */ __name((text) => {
|
|
@@ -206,7 +206,7 @@ var addMeetingManagementCommands = /* @__PURE__ */ __name((group, deps) => {
|
|
|
206
206
|
}).description("the invitation text the service writes for a meeting"))).action(async (id, _flags, command) => inRun(command, async () => print({ item: { ...await management.invitation(id, signalled()), untrusted: ["invitation"] } }, command)));
|
|
207
207
|
}, "addMeetingManagementCommands");
|
|
208
208
|
|
|
209
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
209
|
+
// 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/meetings/cli/query-options.js
|
|
210
210
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
211
211
|
command.allowUnknownOption();
|
|
212
212
|
const parse = command.parseOptions.bind(command);
|
|
@@ -226,7 +226,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
226
226
|
return command;
|
|
227
227
|
}, "queryWordsAfterOptions");
|
|
228
228
|
|
|
229
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
229
|
+
// 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/meetings/cli/passage.js
|
|
230
230
|
var count = /* @__PURE__ */ __name((value) => {
|
|
231
231
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
232
232
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -268,7 +268,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
268
268
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
269
269
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
270
270
|
|
|
271
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
271
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
272
272
|
var integer = /* @__PURE__ */ __name((value) => {
|
|
273
273
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
274
274
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -291,7 +291,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
291
291
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
292
292
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
293
293
|
|
|
294
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
294
|
+
// 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/meetings/cli/search.js
|
|
295
295
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
296
296
|
const { since, until, meta } = dateWindow(end ? { untilTime: value, names: [flag, flag] } : { sinceTime: value, names: [flag, flag] });
|
|
297
297
|
if (meta.timezone)
|
|
@@ -370,7 +370,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
370
370
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
371
371
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
372
372
|
|
|
373
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
373
|
+
// 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/meetings/cli/index.js
|
|
374
374
|
var EVENT_UNTRUSTED = ["title", "description", "location"];
|
|
375
375
|
var integer3 = /* @__PURE__ */ __name((text) => {
|
|
376
376
|
if (!/^[1-9]\d*$/.test(text) || !Number.isSafeInteger(Number(text)))
|
|
@@ -556,7 +556,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
556
556
|
}, "addMeetingCommandsDefinition");
|
|
557
557
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
558
558
|
|
|
559
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
559
|
+
// 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/cli/list-query.js
|
|
560
560
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
561
561
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
562
562
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
|
|
14
14
|
import { readFileSync } from "node:fs";
|
|
15
15
|
var musl = /* @__PURE__ */ __name(() => {
|
|
16
16
|
if (process.platform !== "linux")
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
14
14
|
import { createRequire } from "node:module";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
16
|
+
// 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/speech/ogg-limit.js
|
|
17
17
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
|
|
18
18
|
var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
19
19
|
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
|
70
70
|
throw invalid();
|
|
71
71
|
}, "checkOggDuration");
|
|
72
72
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
73
|
+
// 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/speech/recognize.js
|
|
74
74
|
var SAMPLE_RATE = 16e3;
|
|
75
75
|
var LEAD = SAMPLE_RATE / 2;
|
|
76
76
|
var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
|