@wirecat/amo-cli 0.3.0 → 0.4.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 +19 -0
- package/README.md +8 -4
- package/contracts/wirecat.json +13 -13
- package/dist/bin/amo.js +2 -2
- package/dist/bundle/agent-43BMVBX2.js +40 -0
- package/dist/bundle/{all-profiles-PPUN52SP.js → all-profiles-PRNXEZRH.js} +11 -11
- package/dist/bundle/amo.js +28 -28
- package/dist/bundle/{anthropic-RDNDT6ZP.js → anthropic-FDI24DU2.js} +5 -5
- package/dist/bundle/{app-server-MMALJDBP.js → app-server-WAKJVDLN.js} +69 -69
- package/dist/bundle/{bun-Y4FRPURU.js → bun-YPXUXMBI.js} +2 -2
- package/dist/bundle/{bun-sqlite-7NXJGZCO.js → bun-sqlite-UBQ5M47X.js} +6 -6
- package/dist/bundle/{chunk-N4A6E2LL.js → chunk-23AQD7JU.js} +16 -16
- package/dist/bundle/{chunk-TWZF7VO6.js → chunk-2AIG2SSJ.js} +55 -49
- package/dist/bundle/{chunk-PFZ7WG2B.js → chunk-2UJ7ZZZC.js} +3 -3
- package/dist/bundle/{chunk-3YOZTGZ6.js → chunk-3K6T2G52.js} +6 -6
- package/dist/bundle/{chunk-EKNP326Q.js → chunk-3PCVQCCV.js} +2 -2
- package/dist/bundle/{chunk-KKXF6TSS.js → chunk-3WG4MTQI.js} +1 -1
- package/dist/bundle/{chunk-AYR6FIXN.js → chunk-4PQECIU2.js} +2 -2
- package/dist/bundle/{chunk-SJZ52MZE.js → chunk-5HZMXHRH.js} +6 -6
- package/dist/bundle/{chunk-E2DLRLJ5.js → chunk-5II6TAJE.js} +1 -1
- package/dist/bundle/{chunk-FI2TP6TY.js → chunk-5SJEJYQZ.js} +3 -3
- package/dist/bundle/{chunk-4MVTSMWP.js → chunk-6PILR4AX.js} +2 -2
- package/dist/bundle/{chunk-I4QCJZW7.js → chunk-6QMSKJB4.js} +8 -8
- package/dist/bundle/{chunk-V3ZWYMXT.js → chunk-745FMNI5.js} +1 -1
- package/dist/bundle/{chunk-BKTLAXUK.js → chunk-7OVTUADG.js} +8 -8
- package/dist/bundle/{chunk-UOPP6ORQ.js → chunk-A4W7J6VN.js} +30 -20
- package/dist/bundle/{chunk-7SBAHYZW.js → chunk-ABMPZL2P.js} +13 -13
- package/dist/bundle/{chunk-R23DRW2T.js → chunk-AN6IJYH3.js} +5 -5
- package/dist/bundle/{chunk-GCUFGDKE.js → chunk-AP3CWDRK.js} +2 -2
- package/dist/bundle/{chunk-4EYPFFTN.js → chunk-ASU63X5C.js} +2 -2
- package/dist/bundle/{chunk-XI75EKLG.js → chunk-BCIZAUDV.js} +9 -9
- package/dist/bundle/{chunk-5POLHHDZ.js → chunk-CEBX63XY.js} +8 -8
- package/dist/bundle/{chunk-UZLT6VSP.js → chunk-CYHIM5SL.js} +3 -3
- package/dist/bundle/{chunk-H34RBRS3.js → chunk-DWA5TZMP.js} +8 -8
- package/dist/bundle/{chunk-D6UPCAPD.js → chunk-DWD3KDJA.js} +1 -1
- package/dist/bundle/{chunk-7USADF2W.js → chunk-E3EWS6DF.js} +6 -6
- package/dist/bundle/{chunk-EHULZEXQ.js → chunk-EAX5RO7S.js} +1 -1
- package/dist/bundle/{chunk-5DPMNYQT.js → chunk-EBNCUQLV.js} +1 -1
- package/dist/bundle/{chunk-MMOEAH5G.js → chunk-ELAKOEIO.js} +2 -2
- package/dist/bundle/{chunk-SJYVKR54.js → chunk-FEUNZG7U.js} +37 -37
- package/dist/bundle/{chunk-BYVDMPLX.js → chunk-FQRP6JWX.js} +2 -2
- package/dist/bundle/{chunk-MYMBPQPQ.js → chunk-G3LAYJJJ.js} +4 -4
- package/dist/bundle/{chunk-LYRICHEK.js → chunk-GBQ76X6T.js} +2 -2
- package/dist/bundle/{chunk-JZ2AITOE.js → chunk-GJBOZAUD.js} +3 -3
- package/dist/bundle/{chunk-5RXH35ZA.js → chunk-GMHRPX5M.js} +61 -61
- package/dist/bundle/{chunk-HQH4YPO5.js → chunk-GQKEMBM6.js} +67 -30
- package/dist/bundle/{chunk-ZIFEIJRK.js → chunk-HDZNSOV5.js} +7 -7
- package/dist/bundle/{chunk-T6D34X5S.js → chunk-HZZ56JO7.js} +1 -1
- package/dist/bundle/{chunk-ILUREFWJ.js → chunk-IBEHYGG6.js} +8 -8
- package/dist/bundle/{chunk-UT3ODJMI.js → chunk-IPNIF5JE.js} +4 -4
- package/dist/bundle/{chunk-KZDBO2FT.js → chunk-KBAOJISR.js} +7 -7
- package/dist/bundle/{chunk-B4ITT55D.js → chunk-KORZEYZN.js} +1 -1
- package/dist/bundle/{chunk-IEAPNTHT.js → chunk-KQZTX4LM.js} +17 -17
- package/dist/bundle/{chunk-XDT74W5P.js → chunk-KRD375P7.js} +27 -27
- package/dist/bundle/{chunk-ORFLQGWH.js → chunk-LAR2DLTI.js} +4 -4
- package/dist/bundle/{chunk-FPIUFSWK.js → chunk-LZ4IWN43.js} +387 -398
- package/dist/bundle/{chunk-77FP6AWC.js → chunk-M33XHJTM.js} +25 -25
- package/dist/bundle/{chunk-SBQ5MFHM.js → chunk-M54YKD3I.js} +7 -7
- package/dist/bundle/{chunk-VD7HD25M.js → chunk-MW7HUD6R.js} +9 -9
- package/dist/bundle/{chunk-7VSYOMEH.js → chunk-NFWD4QX3.js} +2 -2
- package/dist/bundle/{chunk-VPBSZ4HQ.js → chunk-NKYWQTS2.js} +160 -157
- package/dist/bundle/{chunk-GKP7CKW2.js → chunk-NXNUCGGO.js} +6 -6
- package/dist/bundle/{chunk-YSOGGUK3.js → chunk-O3WE5IGP.js} +6 -6
- package/dist/bundle/{chunk-7Z6NYSAN.js → chunk-OYMHPQF7.js} +4 -4
- package/dist/bundle/{chunk-UA7C57IB.js → chunk-PIOR6PIO.js} +2 -2
- package/dist/bundle/{chunk-W4KY5JF5.js → chunk-PL7TNKAY.js} +2 -2
- package/dist/bundle/{chunk-3NDMVXGS.js → chunk-PLU2IQXC.js} +3 -3
- package/dist/bundle/{chunk-WBWVBEHH.js → chunk-QGFURWEP.js} +1 -1
- package/dist/bundle/{chunk-FPDTIQOK.js → chunk-RQPB2BSH.js} +2 -2
- package/dist/bundle/{chunk-IYUWVMGP.js → chunk-S6DTLAOB.js} +12 -12
- package/dist/bundle/{chunk-ELJGALVX.js → chunk-SCMB4LI6.js} +19 -19
- package/dist/bundle/{chunk-OMH3WP7F.js → chunk-SFZVMKB6.js} +1 -1
- package/dist/bundle/{chunk-VEGNZPQU.js → chunk-SHOSFYI7.js} +18 -18
- package/dist/bundle/{chunk-UM6SDFB6.js → chunk-SMM7GS4Q.js} +1 -1
- package/dist/bundle/{chunk-MPXKBF37.js → chunk-SNBYFQHT.js} +1 -1
- package/dist/bundle/{chunk-2YEDK2XV.js → chunk-SZX7EPPY.js} +4 -4
- package/dist/bundle/{chunk-L2ZQDTDU.js → chunk-TCSVW7BA.js} +1 -1
- package/dist/bundle/{chunk-TCDER3G7.js → chunk-TEGQVVCZ.js} +828 -558
- package/dist/bundle/{chunk-VY27K2SH.js → chunk-TIR3AB35.js} +250 -238
- package/dist/bundle/{chunk-NJ2LJKNH.js → chunk-U46RNOEQ.js} +3 -3
- package/dist/bundle/{chunk-3RP57VDS.js → chunk-UCM7C773.js} +23 -8
- package/dist/bundle/{chunk-7E6QSIRQ.js → chunk-UEN5NWNW.js} +1 -1
- package/dist/bundle/{chunk-Q2YVY7IR.js → chunk-V2QWX6B3.js} +3 -3
- package/dist/bundle/{chunk-L72UALL5.js → chunk-V5SETIQK.js} +1 -1
- package/dist/bundle/{chunk-KEOKH2OZ.js → chunk-VEFAYLKX.js} +61 -61
- package/dist/bundle/{chunk-L3JDQNBC.js → chunk-VG26HDKH.js} +4 -4
- package/dist/bundle/{chunk-VJHOBOJR.js → chunk-VG2ERHFJ.js} +3 -3
- package/dist/bundle/{chunk-XM2G62YF.js → chunk-WAFB3IWJ.js} +5 -7
- package/dist/bundle/{chunk-VFU25P57.js → chunk-WASBOYI2.js} +4 -4
- package/dist/bundle/{chunk-IDQ7BNCZ.js → chunk-WEWJA42Q.js} +12 -12
- package/dist/bundle/{chunk-YVO2YGML.js → chunk-WR2FPZTE.js} +8 -8
- package/dist/bundle/{chunk-JTFAG3BX.js → chunk-XEYT2EQT.js} +6 -6
- package/dist/bundle/{chunk-QHA33ZS6.js → chunk-YFRTEJ6V.js} +7 -7
- package/dist/bundle/{chunk-LOSOWTAZ.js → chunk-YHVHDRED.js} +6 -6
- package/dist/bundle/{chunk-QQT7WUR4.js → chunk-YREKMP24.js} +4 -4
- package/dist/bundle/{chunk-CQ472K6W.js → chunk-Z2B3VNRI.js} +11 -11
- package/dist/bundle/{chunk-CUZISGWH.js → chunk-ZJC2XJQC.js} +13 -13
- package/dist/bundle/{chunk-KTLCQ7GC.js → chunk-ZKRWNL4T.js} +2 -2
- package/dist/bundle/{cli-GAO7LDDA.js → cli-QDPKC2HJ.js} +72 -72
- package/dist/bundle/command-contract-KWNCP3MQ.js +39 -0
- package/dist/bundle/{command-server-entry-BCDJP7XE.js → command-server-entry-TX7WNN7G.js} +28 -28
- package/dist/bundle/{decode-OY2GR442.js → decode-BLPC7OYE.js} +5 -5
- package/dist/bundle/{dispatch-JWEJCBTF.js → dispatch-5JUT55CS.js} +8 -8
- package/dist/bundle/{echarts-AHEPEA5P.js → echarts-54D3FOCL.js} +2 -2
- package/dist/bundle/{embed-RVSUV54Z.js → embed-O7KMDYM7.js} +6 -6
- package/dist/bundle/{embedder-GRZXZUXR.js → embedder-4PE67CLX.js} +9 -9
- package/dist/bundle/{failure-DDCSR54L.js → failure-NNQYTB3Z.js} +2 -2
- package/dist/bundle/{first-run-G3WI4DH4.js → first-run-EAU5SHBI.js} +12 -12
- package/dist/bundle/first-screen-APSNGZYZ.js +39 -0
- package/dist/bundle/{instructions-NWQC5IP4.js → instructions-ONXP5DZQ.js} +1 -1
- package/dist/bundle/{mcp-KGWT6TGO.js → mcp-ZNULRPZ4.js} +2 -2
- package/dist/bundle/meeting-combined-W2XIYXFU.js +24 -0
- package/dist/bundle/{meeting-model-I6T5HIZ5.js → meeting-model-FWIZRKVN.js} +11 -11
- package/dist/bundle/{meeting-semantic-47UA5JBF.js → meeting-semantic-M4YVJ57W.js} +6 -6
- package/dist/bundle/{node-7VXN7F4B.js → node-UTQCYQF5.js} +2 -2
- package/dist/bundle/{node-sqlite-BSEON57L.js → node-sqlite-APJG6MGL.js} +7 -7
- package/dist/bundle/{oauth-V6UAT4YD.js → oauth-TY7RMIBL.js} +7 -7
- package/dist/bundle/{open-7LVAY7ZU.js → open-WDVEQL75.js} +5 -5
- package/dist/bundle/{openai-OIEH342H.js → openai-H5UJHSEZ.js} +15 -15
- package/dist/bundle/{process-PTUCNLZ7.js → process-MGMXXPMY.js} +1 -1
- package/dist/bundle/{program-S5WY5IZP.js → program-IF36C6VR.js} +1096 -1042
- package/dist/bundle/{prompt-7XWTEQ62.js → prompt-4RLIWLMF.js} +5 -5
- package/dist/bundle/{recognize-HGIAJXDR.js → recognize-UIRTMWM4.js} +4 -4
- package/dist/bundle/{remote-X4SVEMHS.js → remote-L3MNWZQK.js} +9 -9
- package/dist/bundle/{rerank-QWM3DQMU.js → rerank-F4KZQTY6.js} +7 -7
- package/dist/bundle/{serve-VVG3TXYT.js → serve-37AUYTWS.js} +9 -9
- package/dist/bundle/server-CRF4QSZR.js +86 -0
- package/dist/bundle/{server-EHYK62BJ.js → server-UBG676ZJ.js} +61 -61
- package/dist/bundle/source-Z7GH7T4B.js +44 -0
- package/dist/bundle/{sqlite-runtime-MCKXDNYC.js → sqlite-runtime-CI3RW7VA.js} +6 -6
- package/dist/bundle/{state-MYNYQJCT.js → state-JOHLSLUO.js} +6 -6
- package/dist/bundle/{store-B7O3F3QB.js → store-2MBG4IUS.js} +22 -22
- package/dist/bundle/{store-FPIU2546.js → store-OSOUXBYL.js} +28 -24
- package/dist/bundle/store-SNW6U32Y.js +34 -0
- package/dist/bundle/store-maintenance-command-W7V54SLT.js +73 -0
- package/dist/bundle/surface-ESJS2FUI.js +72 -0
- package/dist/bundle/writer-BJDQMKUV.js +46 -0
- package/dist/commands/account.d.ts +3 -2
- package/dist/commands/account.d.ts.map +1 -1
- package/dist/commands/account.js +38 -77
- package/dist/commands/account.js.map +1 -1
- package/dist/commands/crm-shared.d.ts.map +1 -1
- package/dist/commands/crm-shared.js +2 -0
- package/dist/commands/crm-shared.js.map +1 -1
- package/dist/commands/session.d.ts +0 -6
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +9 -34
- package/dist/commands/session.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +0 -2
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +0 -2
- package/dist/reasons.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-FDNP27SW.js +0 -40
- package/dist/bundle/command-contract-RLIBGIDT.js +0 -39
- package/dist/bundle/first-screen-6MLCMW2U.js +0 -39
- package/dist/bundle/meeting-combined-SVTFVZNJ.js +0 -24
- package/dist/bundle/server-WRPTBVNW.js +0 -86
- package/dist/bundle/source-YISMYLBQ.js +0 -44
- package/dist/bundle/store-A7R2SZVD.js +0 -34
- package/dist/bundle/store-maintenance-command-D55FRTIK.js +0 -73
- package/dist/bundle/surface-3EX6IGHW.js +0 -72
- package/dist/bundle/writer-XDHZ54JD.js +0 -46
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
UNTRUSTED_NEUTRAL,
|
|
6
6
|
agentArguments,
|
|
7
7
|
agentJson
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DWA5TZMP.js";
|
|
9
9
|
import {
|
|
10
10
|
onlineDeps,
|
|
11
11
|
refuseLacking,
|
|
12
12
|
servicesFor,
|
|
13
13
|
storeModeDeps
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TIR3AB35.js";
|
|
15
15
|
import {
|
|
16
16
|
callerOf
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-3PCVQCCV.js";
|
|
18
18
|
import {
|
|
19
19
|
DEFAULT_OUTPUT_BYTES,
|
|
20
20
|
ENTITIES,
|
|
@@ -27,35 +27,35 @@ import {
|
|
|
27
27
|
refuseStoreChange,
|
|
28
28
|
sealed,
|
|
29
29
|
startRecording
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-NKYWQTS2.js";
|
|
31
31
|
import {
|
|
32
32
|
currentCaller,
|
|
33
33
|
keepsSuccess,
|
|
34
34
|
runContextOf,
|
|
35
35
|
withCaller
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-M54YKD3I.js";
|
|
37
37
|
import {
|
|
38
38
|
inRun,
|
|
39
39
|
newRunId
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-M33XHJTM.js";
|
|
41
41
|
import {
|
|
42
42
|
storeDamaged
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-ELAKOEIO.js";
|
|
44
44
|
import {
|
|
45
45
|
failureContext
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-UCM7C773.js";
|
|
47
47
|
import {
|
|
48
48
|
fetchesAt,
|
|
49
49
|
keyForCommand,
|
|
50
50
|
levelFor,
|
|
51
51
|
readKeysForCommand
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-KBAOJISR.js";
|
|
53
53
|
import {
|
|
54
54
|
MAX_BUFFERED_INPUT
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-ASU63X5C.js";
|
|
56
56
|
import {
|
|
57
57
|
traceIdOf
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-SCMB4LI6.js";
|
|
59
59
|
import {
|
|
60
60
|
array,
|
|
61
61
|
boolean,
|
|
@@ -82,19 +82,19 @@ import {
|
|
|
82
82
|
toJsonSchema,
|
|
83
83
|
toStandardJsonSchema,
|
|
84
84
|
unknown
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-7OVTUADG.js";
|
|
86
86
|
import {
|
|
87
87
|
CliError,
|
|
88
88
|
errorCodes
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-AP3CWDRK.js";
|
|
90
90
|
import {
|
|
91
91
|
__name
|
|
92
92
|
} from "./chunk-ZVVMGPBJ.js";
|
|
93
93
|
|
|
94
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
94
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
95
95
|
import { randomUUID } from "node:crypto";
|
|
96
96
|
|
|
97
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
97
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
98
98
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
99
99
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
100
100
|
var message = pipe(
|
|
@@ -353,7 +353,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
353
353
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
|
|
354
354
|
}, "failed");
|
|
355
355
|
|
|
356
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
356
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
357
357
|
var MATCHES = 8;
|
|
358
358
|
var ANSWER = answerSchema();
|
|
359
359
|
var agentAnswer = /* @__PURE__ */ __name((prefix, writes) => {
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
LIST_QUERY_GUIDE,
|
|
5
5
|
timeBounds
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ABMPZL2P.js";
|
|
7
7
|
import {
|
|
8
8
|
MESSENGER_CHANGE_REFUSAL,
|
|
9
9
|
envName,
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
progressOf,
|
|
13
13
|
readOnlyRefusal,
|
|
14
14
|
runBudget
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NKYWQTS2.js";
|
|
16
16
|
import {
|
|
17
17
|
crmIdentityId,
|
|
18
18
|
crmSettingKey,
|
|
19
19
|
seenBy
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-TEGQVVCZ.js";
|
|
21
21
|
import {
|
|
22
22
|
LOG_ATTRIBUTES,
|
|
23
23
|
accountsOfList,
|
|
@@ -31,10 +31,10 @@ import {
|
|
|
31
31
|
logAttributes,
|
|
32
32
|
sameAs,
|
|
33
33
|
sourceOf3 as sourceOf
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-M33XHJTM.js";
|
|
35
35
|
import {
|
|
36
36
|
isCliFailure
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-ELAKOEIO.js";
|
|
38
38
|
import {
|
|
39
39
|
CEILING_KEY,
|
|
40
40
|
DEFAULT_PERMISSIONS,
|
|
@@ -43,11 +43,11 @@ import {
|
|
|
43
43
|
levelFor,
|
|
44
44
|
skipFlagFor,
|
|
45
45
|
stops
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-KBAOJISR.js";
|
|
47
47
|
import {
|
|
48
48
|
e164Of,
|
|
49
49
|
foldName
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-SHOSFYI7.js";
|
|
51
51
|
import {
|
|
52
52
|
CRM_KINDS,
|
|
53
53
|
DEAL_KINDS,
|
|
@@ -63,18 +63,18 @@ import {
|
|
|
63
63
|
minorUnits,
|
|
64
64
|
normalCrmUserId,
|
|
65
65
|
providerNamed
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-S6DTLAOB.js";
|
|
67
67
|
import {
|
|
68
68
|
parseLucene,
|
|
69
69
|
walkQuery
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-GMHRPX5M.js";
|
|
71
71
|
import {
|
|
72
72
|
backoffMs,
|
|
73
73
|
logRecordOf,
|
|
74
74
|
realSleep,
|
|
75
75
|
resolvePaths,
|
|
76
76
|
writeSecurely
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-SCMB4LI6.js";
|
|
78
78
|
import {
|
|
79
79
|
array,
|
|
80
80
|
boolean,
|
|
@@ -95,17 +95,17 @@ import {
|
|
|
95
95
|
string,
|
|
96
96
|
union,
|
|
97
97
|
unknown
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-7OVTUADG.js";
|
|
99
99
|
import {
|
|
100
100
|
CliError,
|
|
101
101
|
isCliError
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-AP3CWDRK.js";
|
|
103
103
|
import {
|
|
104
104
|
__export,
|
|
105
105
|
__name
|
|
106
106
|
} from "./chunk-ZVVMGPBJ.js";
|
|
107
107
|
|
|
108
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
108
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/crm/values.js
|
|
109
109
|
var values_exports = {};
|
|
110
110
|
__export(values_exports, {
|
|
111
111
|
amountOf: () => amountOf,
|
|
@@ -122,10 +122,10 @@ __export(values_exports, {
|
|
|
122
122
|
time: () => time
|
|
123
123
|
});
|
|
124
124
|
|
|
125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/crm/source.js
|
|
126
126
|
var CRM_FILE_SOURCES = ["record", "field", "document", "activity", "comment"];
|
|
127
127
|
|
|
128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
128
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/crm/files.js
|
|
129
129
|
var parseCrmFileId = /* @__PURE__ */ __name((id2) => {
|
|
130
130
|
const [kind2 = "", owner = "", source = "", ...rest] = id2.trim().split(":");
|
|
131
131
|
const providerId = rest.join(":");
|
|
@@ -158,7 +158,7 @@ var withoutFileLinks = /* @__PURE__ */ __name((body) => {
|
|
|
158
158
|
return walk2(body);
|
|
159
159
|
}, "withoutFileLinks");
|
|
160
160
|
|
|
161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
161
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/crm/values.js
|
|
162
162
|
var isRaw = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isRaw");
|
|
163
163
|
var fieldOf = /* @__PURE__ */ __name((value, key) => isRaw(value) ? value[key] : void 0, "fieldOf");
|
|
164
164
|
var rawsOf = /* @__PURE__ */ __name((value) => Array.isArray(value) ? value.filter(isRaw) : [], "rawsOf");
|
|
@@ -217,10 +217,10 @@ var crmValuesOf = /* @__PURE__ */ __name((values, fields2) => {
|
|
|
217
217
|
}));
|
|
218
218
|
}, "crmValuesOf");
|
|
219
219
|
|
|
220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
220
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/cli/bot/api-input.js
|
|
221
221
|
import { readFileSync } from "node:fs";
|
|
222
222
|
|
|
223
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
223
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.127.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
|
|
224
224
|
var pascal = /* @__PURE__ */ __name((text2) => text2.split(/[^A-Za-z0-9]+/).filter(Boolean).map((word) => word[0]?.toUpperCase() + word.slice(1)).join(""), "pascal");
|
|
225
225
|
var GLOBALS = /* @__PURE__ */ new Set([
|
|
226
226
|
"Array",
|
|
@@ -256,7 +256,7 @@ var identifier = /* @__PURE__ */ __name((id2) => {
|
|
|
256
256
|
return GLOBALS.has(name) ? `Api${name}` : name;
|
|
257
257
|
}, "identifier");
|
|
258
258
|
|
|
259
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
259
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/sign-in.js
|
|
260
260
|
var BEARER = { in: "header", name: "authorization", value: /* @__PURE__ */ __name((token) => `Bearer ${token}`, "value") };
|
|
261
261
|
var signInPlace = /* @__PURE__ */ __name((scheme) => {
|
|
262
262
|
if (scheme.type === "apiKey") {
|
|
@@ -289,7 +289,7 @@ var signInRequirements = /* @__PURE__ */ __name((operation, document) => {
|
|
|
289
289
|
return requirements?.some((one) => Object.keys(one).length > 0) ? requirements : void 0;
|
|
290
290
|
}, "signInRequirements");
|
|
291
291
|
|
|
292
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
292
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/graphql.js
|
|
293
293
|
var graphqlDocument = /* @__PURE__ */ __name((binding, selection = binding.selection) => {
|
|
294
294
|
const variables = Object.entries(binding.variables);
|
|
295
295
|
const declared = variables.length ? `(${variables.map(([name, type]) => `$${name}: ${type}`).join(", ")})` : "";
|
|
@@ -298,11 +298,11 @@ var graphqlDocument = /* @__PURE__ */ __name((binding, selection = binding.selec
|
|
|
298
298
|
return `${binding.operation} ${binding.field[0]?.toUpperCase()}${binding.field.slice(1)}${declared} { ${binding.field}${passed}${inner} }`;
|
|
299
299
|
}, "graphqlDocument");
|
|
300
300
|
|
|
301
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
301
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/runtime.js
|
|
302
302
|
var INT64_MIN = -(2n ** 63n);
|
|
303
303
|
var INT64_MAX = 2n ** 63n - 1n;
|
|
304
304
|
|
|
305
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
305
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/openapi.js
|
|
306
306
|
var IGNORED = /* @__PURE__ */ new Set([
|
|
307
307
|
"readOnly",
|
|
308
308
|
"example",
|
|
@@ -1030,7 +1030,7 @@ function resolveSpace(space) {
|
|
|
1030
1030
|
}
|
|
1031
1031
|
__name(resolveSpace, "resolveSpace");
|
|
1032
1032
|
|
|
1033
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1033
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/cli/bot/api-input.js
|
|
1034
1034
|
var RENAMED = { timeout: "poll-timeout" };
|
|
1035
1035
|
var apiFlagOf = /* @__PURE__ */ __name((name) => RENAMED[name] ?? name.replace(/_/g, "-").replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), "apiFlagOf");
|
|
1036
1036
|
var apiOptionKey = /* @__PURE__ */ __name((name) => apiFlagOf(name).replace(/-([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "apiOptionKey");
|
|
@@ -1169,7 +1169,7 @@ var flagValue = /* @__PURE__ */ __name((operation, name, raw, type) => {
|
|
|
1169
1169
|
return raw;
|
|
1170
1170
|
}, "flagValue");
|
|
1171
1171
|
|
|
1172
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1172
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/cli/service-api-manifest.js
|
|
1173
1173
|
var manifestBaseUrl = /* @__PURE__ */ __name((manifest, given, variables = {}) => {
|
|
1174
1174
|
const server = manifest.servers?.[0];
|
|
1175
1175
|
if (given === void 0 && !server)
|
|
@@ -1297,10 +1297,10 @@ var nextPage = /* @__PURE__ */ __name((pagination, input, answer, headers) => {
|
|
|
1297
1297
|
}
|
|
1298
1298
|
}, "nextPage");
|
|
1299
1299
|
|
|
1300
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1300
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
1301
1301
|
import { randomUUID } from "node:crypto";
|
|
1302
1302
|
|
|
1303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
1304
1304
|
import { mkdirSync, readFileSync as readFileSync2, renameSync, writeFileSync } from "node:fs";
|
|
1305
1305
|
import { dirname, join } from "node:path";
|
|
1306
1306
|
var MOST_DEADLINES = 50;
|
|
@@ -1384,11 +1384,11 @@ var FloodMemory = class {
|
|
|
1384
1384
|
}
|
|
1385
1385
|
};
|
|
1386
1386
|
|
|
1387
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1387
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
1388
1388
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync3 } from "node:fs";
|
|
1389
1389
|
import { dirname as dirname3, join as join2 } from "node:path";
|
|
1390
1390
|
|
|
1391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
1392
1392
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
|
|
1393
1393
|
import { dirname as dirname2 } from "node:path";
|
|
1394
1394
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -1455,7 +1455,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
1455
1455
|
}
|
|
1456
1456
|
}, "lockTime");
|
|
1457
1457
|
|
|
1458
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1458
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
1459
1459
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
1460
1460
|
var SendJournal = class {
|
|
1461
1461
|
static {
|
|
@@ -1532,7 +1532,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
1532
1532
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
1533
1533
|
}, "withSendId");
|
|
1534
1534
|
|
|
1535
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
1536
1536
|
import { existsSync, readFileSync as readFileSync4, rmSync } from "node:fs";
|
|
1537
1537
|
import { join as join3 } from "node:path";
|
|
1538
1538
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -1644,7 +1644,7 @@ var RecipientList = class {
|
|
|
1644
1644
|
}
|
|
1645
1645
|
};
|
|
1646
1646
|
|
|
1647
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
1648
1648
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
1649
1649
|
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");
|
|
1650
1650
|
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");
|
|
@@ -1832,7 +1832,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
1832
1832
|
}), "guardFor");
|
|
1833
1833
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
1834
1834
|
|
|
1835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/sends/keyed-guard.js
|
|
1836
1836
|
var keyedGuard = /* @__PURE__ */ __name((build, ask, levelOf, extra) => {
|
|
1837
1837
|
let question;
|
|
1838
1838
|
let answered = false;
|
|
@@ -1875,16 +1875,21 @@ var keyedGuard = /* @__PURE__ */ __name((build, ask, levelOf, extra) => {
|
|
|
1875
1875
|
};
|
|
1876
1876
|
}, "keyedGuard");
|
|
1877
1877
|
|
|
1878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
1879
1879
|
import { randomBytes } from "node:crypto";
|
|
1880
1880
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
1881
1881
|
var newOperationId = newSendId;
|
|
1882
1882
|
|
|
1883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1883
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/crm/foreign-contacts.js
|
|
1884
1884
|
import { readFileSync as readFileSync5 } from "node:fs";
|
|
1885
1885
|
import { join as join4 } from "node:path";
|
|
1886
|
+
|
|
1887
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/crm/state-folders.js
|
|
1888
|
+
var CRM_SHARED_FOLDERS = { files: "files", foreignContacts: "foreign-contacts" };
|
|
1889
|
+
|
|
1890
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/crm/foreign-contacts.js
|
|
1886
1891
|
var DAILY_FOREIGN_CONTACTS = 100;
|
|
1887
|
-
var foreignContactsPathFor = /* @__PURE__ */ __name((app, account, env = process.env, user) => join4(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "crm",
|
|
1892
|
+
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");
|
|
1888
1893
|
var shownIn = /* @__PURE__ */ __name((file, day) => {
|
|
1889
1894
|
try {
|
|
1890
1895
|
const found = JSON.parse(readFileSync5(file, "utf8"));
|
|
@@ -1960,7 +1965,7 @@ var refuseForeignClientReads = /* @__PURE__ */ __name(async (source, readsClient
|
|
|
1960
1965
|
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 });
|
|
1961
1966
|
}, "refuseForeignClientReads");
|
|
1962
1967
|
|
|
1963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1968
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/crm/writer.js
|
|
1964
1969
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
1965
1970
|
var CRM_WRITE_KEYS = [CRM_ASSIGN_OTHERS_KEY];
|
|
1966
1971
|
var PLURALS = {
|
|
@@ -1993,7 +1998,7 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
1993
1998
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
1994
1999
|
};
|
|
1995
2000
|
|
|
1996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/crm/writes.js
|
|
1997
2002
|
var moneyChecked = /* @__PURE__ */ __name((check, param) => {
|
|
1998
2003
|
try {
|
|
1999
2004
|
check();
|
|
@@ -2440,10 +2445,10 @@ var updateCrmRecord = /* @__PURE__ */ __name(async (context, kind2, externalId,
|
|
|
2440
2445
|
return writeRecord(context, kind2, "update", fields2, operationId, () => writer.update(kind2, externalId, fields2, { operationId }));
|
|
2441
2446
|
}, "updateCrmRecord");
|
|
2442
2447
|
|
|
2443
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2448
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/crm/file-fetch.js
|
|
2444
2449
|
var EXCHANGE_MS = 60 * 60 * 1e3;
|
|
2445
2450
|
|
|
2446
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2451
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/crm/manifest/map.js
|
|
2447
2452
|
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");
|
|
2448
2453
|
var TIMES = { createdAt: "epoch", updatedAt: "epoch" };
|
|
2449
2454
|
var ITEM = {
|
|
@@ -2496,7 +2501,7 @@ var FIELDS = {
|
|
|
2496
2501
|
lead: ITEM
|
|
2497
2502
|
};
|
|
2498
2503
|
|
|
2499
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2504
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/crm/manifest/manifest.js
|
|
2500
2505
|
var path = pipe(string(), regex(/^[^.\s]+(\.[^.\s]+)*$/, "a dotted path such as properties.name"));
|
|
2501
2506
|
var paths = pipe(array(path), minLength(1));
|
|
2502
2507
|
var crmRuleSchema = union([
|
|
@@ -2589,10 +2594,10 @@ var schema = strictObject({
|
|
|
2589
2594
|
}))
|
|
2590
2595
|
});
|
|
2591
2596
|
|
|
2592
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2597
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/crm/manifest/source.js
|
|
2593
2598
|
var OVERLAP_MS = 10 * 6e4;
|
|
2594
2599
|
|
|
2595
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2600
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
2596
2601
|
import { readFileSync as readFileSync6, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
2597
2602
|
import { join as join5 } from "node:path";
|
|
2598
2603
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -2687,7 +2692,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
|
|
|
2687
2692
|
await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
|
|
2688
2693
|
}, "waitForTurn");
|
|
2689
2694
|
|
|
2690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/crm/provider-call.js
|
|
2691
2696
|
var RETRY = { retries: 3, baseDelayMs: 1e3, maxDelayMs: 1e4, maxRetryAfterMs: 3e4 };
|
|
2692
2697
|
var UNANSWERED = /* @__PURE__ */ new Set(["timeout", "network_error", "provider_unavailable", "cancelled", "invalid_response"]);
|
|
2693
2698
|
var unanswered = /* @__PURE__ */ __name((error) => !isCliError(error) || UNANSWERED.has(error.code) && error.details.sent !== false, "unanswered");
|
|
@@ -2723,7 +2728,7 @@ var providerCall = /* @__PURE__ */ __name(async (options) => {
|
|
|
2723
2728
|
}
|
|
2724
2729
|
}, "providerCall");
|
|
2725
2730
|
|
|
2726
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2731
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/crm/query.js
|
|
2727
2732
|
var valueFor = /* @__PURE__ */ __name((kind2, raw, name) => {
|
|
2728
2733
|
if (kind2 === "id") {
|
|
2729
2734
|
if (!/^[\w.:-]{1,100}$/u.test(raw))
|
|
@@ -2824,7 +2829,7 @@ var selectedCodes = /* @__PURE__ */ __name((fields2, wanted) => {
|
|
|
2824
2829
|
});
|
|
2825
2830
|
}, "selectedCodes");
|
|
2826
2831
|
|
|
2827
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/search/groups.js
|
|
2828
2833
|
var ALL = "all";
|
|
2829
2834
|
var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
|
|
2830
2835
|
var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
|
|
@@ -2896,7 +2901,7 @@ var groupEntries = /* @__PURE__ */ __name((saved) => ({
|
|
|
2896
2901
|
[ALL]: [ALL]
|
|
2897
2902
|
}), "groupEntries");
|
|
2898
2903
|
|
|
2899
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
2900
2905
|
var NO_MAIL = "no_mail";
|
|
2901
2906
|
var MAIL = "email";
|
|
2902
2907
|
var groupLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -2970,7 +2975,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind2, chosen, held, explicit, comm
|
|
|
2970
2975
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
2971
2976
|
}, "accountsOfKind");
|
|
2972
2977
|
|
|
2973
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2978
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/crm/group-hint.js
|
|
2974
2979
|
var workGroupHint = /* @__PURE__ */ __name((key) => `add it to a work group: \`memo groups add work ${key.provider}:${key.account}\``, "workGroupHint");
|
|
2975
2980
|
var ungroupedHint = /* @__PURE__ */ __name(async (store, key) => {
|
|
2976
2981
|
const { groups } = (await listContextOf(store, key, void 0)).membership;
|
|
@@ -2978,7 +2983,7 @@ var ungroupedHint = /* @__PURE__ */ __name(async (store, key) => {
|
|
|
2978
2983
|
return grouped ? void 0 : workGroupHint(key);
|
|
2979
2984
|
}, "ungroupedHint");
|
|
2980
2985
|
|
|
2981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2986
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/crm/viewer.js
|
|
2982
2987
|
var VIEWERS = "crm:viewers";
|
|
2983
2988
|
var viewersOf = /* @__PURE__ */ __name(async (store, account) => {
|
|
2984
2989
|
try {
|
|
@@ -3053,7 +3058,7 @@ var ownerOf = /* @__PURE__ */ __name(async (run, owner) => {
|
|
|
3053
3058
|
return crmIdentityId(run.account, normalCrmUserId(owner), "user");
|
|
3054
3059
|
}, "ownerOf");
|
|
3055
3060
|
|
|
3056
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/crm/sync.js
|
|
3057
3062
|
var DAY2 = 864e5;
|
|
3058
3063
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
3059
3064
|
var MOST_UNLISTED = 0.5;
|
|
@@ -3720,6 +3725,7 @@ export {
|
|
|
3720
3725
|
accountsOfKind,
|
|
3721
3726
|
parseCrmFileId,
|
|
3722
3727
|
withoutFileLinks,
|
|
3728
|
+
CRM_SHARED_FOLDERS,
|
|
3723
3729
|
foreignContactsPathFor,
|
|
3724
3730
|
foreignContacts,
|
|
3725
3731
|
refuseForeignClientReads,
|
|
@@ -3,16 +3,16 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
QUERY_LIMITS,
|
|
5
5
|
queryError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GMHRPX5M.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError,
|
|
9
9
|
isCliError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AP3CWDRK.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
|
|
16
16
|
var QUERY_VERSION = 1;
|
|
17
17
|
var QUERY_LIMITS2 = {
|
|
18
18
|
...QUERY_LIMITS,
|
|
@@ -5,23 +5,23 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IPNIF5JE.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AP3CWDRK.js";
|
|
15
15
|
import {
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
20
20
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
21
21
|
import { availableParallelism } from "node:os";
|
|
22
22
|
import { basename, join as join2 } from "node:path";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
25
25
|
import { createHash } from "node:crypto";
|
|
26
26
|
import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
27
27
|
import { join } from "node:path";
|
|
@@ -678,7 +678,7 @@ var Unzip = /* @__PURE__ */ (function() {
|
|
|
678
678
|
return Unzip2;
|
|
679
679
|
})();
|
|
680
680
|
|
|
681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
682
682
|
var ONNX_RUNTIME_VERSION = "1.30.0";
|
|
683
683
|
var REGISTRY = "https://registry.npmjs.org";
|
|
684
684
|
var wirecat = /* @__PURE__ */ __name((target, sha256, bytes, library) => ({
|
|
@@ -837,7 +837,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
|
|
|
837
837
|
return { ort, session: await ort.InferenceSession.create(bytes, options) };
|
|
838
838
|
}, "openSession");
|
|
839
839
|
|
|
840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
841
841
|
var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
|
|
842
842
|
var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
|
|
843
843
|
var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
agentOf,
|
|
8
8
|
clientHash,
|
|
9
9
|
currentCaller
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-M54YKD3I.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/mcp/caller.js
|
|
16
16
|
var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
|
|
17
17
|
const client = caller?.agent?.client?.name;
|
|
18
18
|
if (client && client !== "unknown")
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
|
|
8
8
|
import { existsSync } from "node:fs";
|
|
9
9
|
import { win32 } from "node:path";
|
|
10
10
|
var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AP3CWDRK.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
11
11
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
12
12
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
13
13
|
if (key in own)
|