@wirecat/zoom-cli 0.68.0 → 0.69.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/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-R66UM3HM.js → all-profiles-ZQWPCJEK.js} +7 -7
- package/dist/bundle/{answer-policy-UCGUO53A.js → answer-policy-VBDYLUXI.js} +52 -52
- package/dist/bundle/{anthropic-4ZI2BPLG.js → anthropic-7FUQ2HYJ.js} +3 -3
- package/dist/bundle/{app-server-64O5IQI5.js → app-server-DNPE2EQB.js} +46 -46
- package/dist/bundle/{bun-HUHQD76Z.js → bun-ZVQFCFCC.js} +2 -2
- package/dist/bundle/{bun-sqlite-VOVHPTIF.js → bun-sqlite-EB2UMUPJ.js} +2 -2
- package/dist/bundle/{chunk-EZRPSZJS.js → chunk-2SYWVIQJ.js} +1 -1
- package/dist/bundle/chunk-37B7A4RP.js +66 -0
- package/dist/bundle/{chunk-YJY3W2ZT.js → chunk-3TPRYZUW.js} +18 -15
- package/dist/bundle/{chunk-K67V24AT.js → chunk-4APZQYCH.js} +3 -3
- package/dist/bundle/{chunk-7QNJICKZ.js → chunk-52DCABMU.js} +23 -23
- package/dist/bundle/{chunk-KUB2U5NT.js → chunk-5GOE6PQK.js} +5 -5
- package/dist/bundle/{chunk-77KFLU5F.js → chunk-5H6VTEEC.js} +2 -2
- package/dist/bundle/{chunk-PIHBD3YS.js → chunk-5ZF6QVMC.js} +4 -4
- package/dist/bundle/{chunk-FMQS7HCC.js → chunk-5ZJXKASF.js} +249 -8
- package/dist/bundle/chunk-6AMMTXEA.js +12473 -0
- package/dist/bundle/{chunk-SRP6SFFD.js → chunk-6KMTQX3D.js} +1 -1
- package/dist/bundle/{chunk-2T6XHWDX.js → chunk-6N2D6JGX.js} +1 -1
- package/dist/bundle/{chunk-R7LFGEDE.js → chunk-6TICX3MN.js} +2 -2
- package/dist/bundle/{chunk-W42BJ65M.js → chunk-B5D7NZI7.js} +1 -1
- package/dist/bundle/{chunk-EWIBLDQQ.js → chunk-C6TEYKXV.js} +6 -6
- package/dist/bundle/{chunk-32FPA7P2.js → chunk-CKK6JOC4.js} +1 -1
- package/dist/bundle/{chunk-JRCYFCPL.js → chunk-CUZHKYC2.js} +19 -19
- package/dist/bundle/{chunk-355PHJYX.js → chunk-DHD25JII.js} +1 -1
- package/dist/bundle/{chunk-PUTGTW6W.js → chunk-EPPSMCEV.js} +1 -1
- package/dist/bundle/{chunk-AYEVBAGO.js → chunk-F5DYBWH7.js} +143 -22
- package/dist/bundle/{chunk-AJ7CMUGD.js → chunk-G6IX2MD2.js} +172 -143
- package/dist/bundle/{chunk-VLD7Y4SY.js → chunk-GR3QDHBU.js} +4 -4
- package/dist/bundle/{chunk-DGNPJGD3.js → chunk-GXDOTUUO.js} +8 -14
- package/dist/bundle/{chunk-5JAYUG3X.js → chunk-H3MFBYTQ.js} +2 -2
- package/dist/bundle/{chunk-TDGZMC6K.js → chunk-HC56J5LB.js} +57 -53
- package/dist/bundle/{chunk-4YFJYSSK.js → chunk-HSI7YOYK.js} +45 -29
- package/dist/bundle/{chunk-LYWUG43B.js → chunk-HW5QTRFF.js} +31 -31
- package/dist/bundle/{chunk-65T3PU75.js → chunk-IEC4E65G.js} +1 -1
- package/dist/bundle/{chunk-L4WVLRXM.js → chunk-IPBZKUC3.js} +3 -3
- package/dist/bundle/{chunk-TN3FH2GQ.js → chunk-JHFP3Z5S.js} +7 -7
- package/dist/bundle/{chunk-3BRV2YU2.js → chunk-JX5JJZC3.js} +2 -2
- package/dist/bundle/{chunk-YTF2WPV4.js → chunk-JZ4YOAHA.js} +679 -496
- package/dist/bundle/{chunk-474WF55M.js → chunk-KX5MZVPX.js} +38 -25
- package/dist/bundle/{chunk-TUNQ6NE2.js → chunk-L62EJDNZ.js} +2 -2
- package/dist/bundle/{chunk-6TJ62LZQ.js → chunk-LDRQ5NAP.js} +3 -3
- package/dist/bundle/{chunk-7DUYFITC.js → chunk-LEA4BGK7.js} +9 -9
- package/dist/bundle/{chunk-P2TISY3R.js → chunk-LQX74VKG.js} +1 -1
- package/dist/bundle/{chunk-RP3U3J53.js → chunk-MJMVIFSC.js} +6 -6
- package/dist/bundle/{chunk-A63ZFOQJ.js → chunk-MNOVYS43.js} +3 -3
- package/dist/bundle/{chunk-YQRNFG2E.js → chunk-MOTKS7XG.js} +7176 -13499
- package/dist/bundle/{chunk-6T3P226D.js → chunk-MSDCZ6GT.js} +4 -4
- package/dist/bundle/{chunk-DVA6MQWK.js → chunk-MVDPZRFE.js} +1 -1
- package/dist/bundle/{chunk-LBOSTBAY.js → chunk-O7L44JK2.js} +2031 -1900
- package/dist/bundle/{chunk-Y5LP5SHV.js → chunk-OSBHEM2A.js} +9 -9
- package/dist/bundle/{chunk-RRYUD2EF.js → chunk-QLGG7S6F.js} +2 -2
- package/dist/bundle/{chunk-ZRD3NDOX.js → chunk-QW5VPZEH.js} +1 -1
- package/dist/bundle/{chunk-LV7QRR5S.js → chunk-QXM7S3Y3.js} +5 -5
- package/dist/bundle/{chunk-US5C3WAY.js → chunk-R2ULMWB4.js} +27 -27
- package/dist/bundle/{chunk-QXTREL2M.js → chunk-R3JYPY3J.js} +2 -2
- package/dist/bundle/{chunk-JO4YADNV.js → chunk-RPQ3JOD3.js} +3 -3
- package/dist/bundle/{chunk-4TLPOY22.js → chunk-S2EAGDS7.js} +10 -10
- package/dist/bundle/{chunk-SSPSNSC5.js → chunk-SQT47CFW.js} +1 -1
- package/dist/bundle/{chunk-HXOAPH47.js → chunk-SZ3Z4ZNO.js} +1 -1
- package/dist/bundle/{chunk-DWSUSWAX.js → chunk-T5X4LGXE.js} +130 -11
- package/dist/bundle/{chunk-2OSBCYJT.js → chunk-TFFEFEG2.js} +16 -16
- package/dist/bundle/{chunk-EH5QGQFR.js → chunk-TKXLWFM2.js} +2 -2
- package/dist/bundle/{chunk-AVEIQMHZ.js → chunk-TN77LX6W.js} +1 -1
- package/dist/bundle/{chunk-77I67HWF.js → chunk-TWIC6JJG.js} +7 -7
- package/dist/bundle/{chunk-TZUKDM72.js → chunk-UEZ6URJR.js} +10 -10
- package/dist/bundle/{chunk-EJDV5IIF.js → chunk-V4MM6GST.js} +1 -1
- package/dist/bundle/{chunk-BSM43OMN.js → chunk-V74QFMSL.js} +1 -1
- package/dist/bundle/{chunk-6CJ7NHIP.js → chunk-WY4NYPPS.js} +12 -12
- package/dist/bundle/{chunk-FNQASORM.js → chunk-XITUFTON.js} +1 -1
- package/dist/bundle/{chunk-GOXDBCDM.js → chunk-XJBYGMZ4.js} +107 -63
- package/dist/bundle/{chunk-UU5PLDRA.js → chunk-XRZDYWF6.js} +2 -2
- package/dist/bundle/{chunk-6XO7RTJY.js → chunk-Z6TTGTMU.js} +92 -5
- package/dist/bundle/{chunk-UDJTRFRV.js → chunk-ZRHMB3LQ.js} +1 -1
- package/dist/bundle/{cli-VQJ7ZRYR.js → cli-P3BZUE6S.js} +67 -53
- package/dist/bundle/command-contract-TOLB32NJ.js +41 -0
- package/dist/bundle/config-4KLLIADY.js +90 -0
- package/dist/bundle/{decode-L3ENO2XH.js → decode-QWOQXM7M.js} +2 -2
- package/dist/bundle/{dist-WQLS7U23.js → dist-OUE4MF37.js} +79 -19
- package/dist/bundle/{echarts-5LLJ6JXC.js → echarts-65IMPY43.js} +2 -2
- package/dist/bundle/{embed-37MYTCU7.js → embed-4IULBCKL.js} +3 -3
- package/dist/bundle/{embedder-GNGHVJAO.js → embedder-JW4W6IZI.js} +6 -6
- package/dist/bundle/{first-run-NR5JKYP3.js → first-run-CH6C674R.js} +5 -5
- package/dist/bundle/first-screen-OCAW5ZN6.js +39 -0
- package/dist/bundle/{instructions-P72XX4AK.js → instructions-G5QIH2TM.js} +1 -1
- package/dist/bundle/{main-QYFCYSTW.js → main-O4ZJIEWP.js} +12 -12
- package/dist/bundle/{meetings-66UQINKI.js → meetings-77CCAVYD.js} +1 -1
- package/dist/bundle/{node-ZB4RNICS.js → node-E6VQHU4Y.js} +2 -2
- package/dist/bundle/{node-sqlite-XPRKBDF3.js → node-sqlite-RJZ4PGLD.js} +3 -3
- package/dist/bundle/{oauth-WJRDUU5J.js → oauth-F4JKNRW4.js} +4 -4
- package/dist/bundle/{open-S2YSIEOW.js → open-NYOGMIAA.js} +2 -2
- package/dist/bundle/{openai-CRNZFNZD.js → openai-5U6EQTFQ.js} +8 -8
- package/dist/bundle/{process-XNN4WG6N.js → process-OBWUKBMX.js} +1 -1
- package/dist/bundle/{program-BRPJKRCX.js → program-MU7DEJTO.js} +61 -61
- package/dist/bundle/{prompt-7RQOL25I.js → prompt-2QWQTHWT.js} +2 -2
- package/dist/bundle/{recognize-N5WADGQB.js → recognize-SNUNTUC3.js} +1 -1
- package/dist/bundle/{remote-WHYV35IF.js → remote-2CTCIQGF.js} +4 -4
- package/dist/bundle/{rerank-FBMZVWSH.js → rerank-XDA7NJNH.js} +4 -4
- package/dist/bundle/{run-log-TOCHREH2.js → run-log-NSG3DJVX.js} +50 -50
- package/dist/bundle/{serve-4BABX4WS.js → serve-TWQFHOV2.js} +6 -6
- package/dist/bundle/{server-CDVI6LOB.js → server-RIQ6HMH2.js} +38 -38
- package/dist/bundle/server-XO6XQQTJ.js +72 -0
- package/dist/bundle/{services-PIY33I7R.js → services-NKZQJQIV.js} +30 -24
- package/dist/bundle/{speech-LS5Q4FL2.js → speech-ZOB76SXA.js} +10 -10
- package/dist/bundle/{state-YUX5R2R7.js → state-7YYEIXQ5.js} +3 -3
- package/dist/bundle/{store-BD7HAXAA.js → store-E6RTSSNR.js} +21 -12
- package/dist/bundle/{store-ERMGBF2B.js → store-OX4HRBLO.js} +45 -14
- package/dist/bundle/store-connection-55QPNUDS.js +83 -0
- package/dist/bundle/store-maintenance-command-Q5MSU6OK.js +62 -0
- package/dist/bundle/zm.js +2 -2
- package/dist/bundle/{zoom-app-XJXZ4ZBX.js → zoom-app-TSI2MGVK.js} +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunk-NUJMJQXV.js +0 -787
- package/dist/bundle/chunk-YOAEZSDG.js +0 -22
- package/dist/bundle/command-contract-JPUWWYIV.js +0 -41
- package/dist/bundle/config-YGLLR77A.js +0 -90
- package/dist/bundle/first-screen-RCR7ATO2.js +0 -39
- package/dist/bundle/server-XOFQKFVO.js +0 -72
- package/dist/bundle/store-connection-JBR6CMTJ.js +0 -83
- package/dist/bundle/store-maintenance-command-I5DUSO2C.js +0 -62
|
@@ -3,20 +3,20 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
profileAccountKey,
|
|
5
5
|
profilePattern
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UEZ6URJR.js";
|
|
7
7
|
import {
|
|
8
8
|
checkCancelled
|
|
9
9
|
} from "./chunk-KAPJQGHE.js";
|
|
10
10
|
import {
|
|
11
11
|
openWavAudio,
|
|
12
12
|
preflightWavAudio
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5H6VTEEC.js";
|
|
14
14
|
import {
|
|
15
15
|
createMeetingSearchCommand,
|
|
16
16
|
meetingHitSearchRequest,
|
|
17
17
|
meetingSearchArguments,
|
|
18
18
|
meetingSearchMeta
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-TFFEFEG2.js";
|
|
20
20
|
import {
|
|
21
21
|
Command,
|
|
22
22
|
FETCH,
|
|
@@ -29,17 +29,17 @@ import {
|
|
|
29
29
|
metaNow,
|
|
30
30
|
metaOf,
|
|
31
31
|
overrideSharedContract
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-G6IX2MD2.js";
|
|
33
33
|
import {
|
|
34
34
|
parseDuration
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-CUZHKYC2.js";
|
|
36
36
|
import {
|
|
37
37
|
canonicalMeetingReference,
|
|
38
38
|
meetingHitsList,
|
|
39
39
|
parseMeetingReference,
|
|
40
40
|
validateMeetingContextChange,
|
|
41
41
|
validateMeetingHitSearch
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-HC56J5LB.js";
|
|
43
43
|
import {
|
|
44
44
|
createOutputBuffer
|
|
45
45
|
} from "./chunk-KNE6VFHZ.js";
|
|
@@ -164,7 +164,7 @@ var engineFailure = /* @__PURE__ */ __name(async (model, work) => {
|
|
|
164
164
|
}
|
|
165
165
|
}, "engineFailure");
|
|
166
166
|
var loadSpeech = /* @__PURE__ */ __name(async () => {
|
|
167
|
-
const speech = await import("./speech-
|
|
167
|
+
const speech = await import("./speech-ZOB76SXA.js");
|
|
168
168
|
return { describe: speech.localSpeechRecognitionModel, open: speech.openLocalSpeechRecognizer };
|
|
169
169
|
}, "loadSpeech");
|
|
170
170
|
var createWavTranscriptionSource = /* @__PURE__ */ __name((file, options) => {
|
|
@@ -250,7 +250,7 @@ var createLocalTranscriptionCapabilities = /* @__PURE__ */ __name((store, input
|
|
|
250
250
|
env: options.env,
|
|
251
251
|
speech: options.speech
|
|
252
252
|
});
|
|
253
|
-
const { transcribeMeeting } = await import("./meetings-
|
|
253
|
+
const { transcribeMeeting } = await import("./meetings-77CCAVYD.js");
|
|
254
254
|
return await transcribeMeeting(source, {
|
|
255
255
|
appendTranscriptsWithReceipt(value) {
|
|
256
256
|
if (value.accountId !== accountId || value.externalId !== target.externalId)
|
|
@@ -286,7 +286,7 @@ var validateTaskProposal = /* @__PURE__ */ __name((value) => {
|
|
|
286
286
|
throw new CliError("invalid_response", "task proposal must be unapplied and proposal-only");
|
|
287
287
|
}, "validateTaskProposal");
|
|
288
288
|
var loadProducer = /* @__PURE__ */ __name(async () => {
|
|
289
|
-
const [domain, services] = await Promise.all([import("./dist-
|
|
289
|
+
const [domain, services] = await Promise.all([import("./dist-OUE4MF37.js"), import("./services-NKZQJQIV.js")]);
|
|
290
290
|
return { ...services, ...domain };
|
|
291
291
|
}, "loadProducer");
|
|
292
292
|
var createMeetingContextCapabilities = /* @__PURE__ */ __name((store, meetings, accountId, load = loadProducer) => {
|
|
@@ -598,7 +598,7 @@ var addMeetingSearchCommands = /* @__PURE__ */ __name((program, deps) => {
|
|
|
598
598
|
}, "addMeetingSearchCommands");
|
|
599
599
|
|
|
600
600
|
// dist/meeting-semantic.js
|
|
601
|
-
var loadProducer2 = /* @__PURE__ */ __name(async () => import("./services-
|
|
601
|
+
var loadProducer2 = /* @__PURE__ */ __name(async () => import("./services-NKZQJQIV.js"), "loadProducer");
|
|
602
602
|
var createMeetingSemanticCapabilities = /* @__PURE__ */ __name((store, accountId, options = {}) => {
|
|
603
603
|
if (!Number.isSafeInteger(accountId) || accountId < 1)
|
|
604
604
|
throw new CliError("validation_error", "meeting vectors require a selected positive account ID");
|
|
@@ -755,7 +755,7 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
|
|
|
755
755
|
throw new CliError("validation_error", "expected a selected Zoom profile and read or ingestion intent");
|
|
756
756
|
let store;
|
|
757
757
|
try {
|
|
758
|
-
const open2 = options.openStore ?? (await import("./store-
|
|
758
|
+
const open2 = options.openStore ?? (await import("./store-OX4HRBLO.js")).openStore;
|
|
759
759
|
store = await open2({
|
|
760
760
|
path: options.path,
|
|
761
761
|
env: options.env,
|
|
@@ -776,7 +776,7 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
|
|
|
776
776
|
let cachedBatchReader;
|
|
777
777
|
const batchReader = /* @__PURE__ */ __name(async () => {
|
|
778
778
|
if (!cachedBatchReader) {
|
|
779
|
-
const { createMeetingBatchReader } = await import("./services-
|
|
779
|
+
const { createMeetingBatchReader } = await import("./services-NKZQJQIV.js");
|
|
780
780
|
cachedBatchReader = createMeetingBatchReader(connected, accountId);
|
|
781
781
|
}
|
|
782
782
|
return cachedBatchReader;
|
|
@@ -785,7 +785,7 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
|
|
|
785
785
|
meetingPreparation: {
|
|
786
786
|
scope: key,
|
|
787
787
|
create: /* @__PURE__ */ __name(async (upcoming) => {
|
|
788
|
-
const { createMeetingPreparationService } = await import("./services-
|
|
788
|
+
const { createMeetingPreparationService } = await import("./services-NKZQJQIV.js");
|
|
789
789
|
const reader = connected.contextEvidence;
|
|
790
790
|
if (context && !reader)
|
|
791
791
|
throw new CliError("configuration_error", "the installed store does not support bounded communications");
|
|
@@ -810,7 +810,7 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
|
|
|
810
810
|
close: /* @__PURE__ */ __name(() => connected.close(), "close"),
|
|
811
811
|
appendTranscriptsWithReceipt: /* @__PURE__ */ __name((input) => meetings.appendTranscriptsWithReceipt(ownAccount(input, "append")), "appendTranscriptsWithReceipt"),
|
|
812
812
|
meetingProjectCandidates: /* @__PURE__ */ __name(async (reference, request2) => {
|
|
813
|
-
const { createStoredMeetingProjectCandidateReader } = await import("./services-
|
|
813
|
+
const { createStoredMeetingProjectCandidateReader } = await import("./services-NKZQJQIV.js");
|
|
814
814
|
const read = createStoredMeetingProjectCandidateReader(key, accountId, {
|
|
815
815
|
meetings,
|
|
816
816
|
vocabulary: connected.knowledge
|
|
@@ -818,7 +818,7 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
|
|
|
818
818
|
return read(reference, request2);
|
|
819
819
|
}, "meetingProjectCandidates"),
|
|
820
820
|
meetingProjectEvidence: /* @__PURE__ */ __name(async (project, request2) => {
|
|
821
|
-
const { readMeetingProjectDiscovery } = await import("./services-
|
|
821
|
+
const { readMeetingProjectDiscovery } = await import("./services-NKZQJQIV.js");
|
|
822
822
|
return readMeetingProjectDiscovery({
|
|
823
823
|
vocabulary: connected.knowledge,
|
|
824
824
|
search: { searchHits: /* @__PURE__ */ __name((query, hits) => meetings.searchHits(query, hits), "searchHits") }
|
|
@@ -845,7 +845,7 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
|
|
|
845
845
|
},
|
|
846
846
|
meetingSearch: /* @__PURE__ */ __name(async (query, request2) => {
|
|
847
847
|
validateMeetingHitSearch(query, request2);
|
|
848
|
-
const { searchMeetingHits } = await import("./services-
|
|
848
|
+
const { searchMeetingHits } = await import("./services-NKZQJQIV.js");
|
|
849
849
|
return searchMeetingHits({ meetings, knowledge: connected.knowledge }, query, { ...request2, accountId });
|
|
850
850
|
}, "meetingSearch"),
|
|
851
851
|
meetingIntegration: {
|
|
@@ -856,7 +856,7 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
|
|
|
856
856
|
const change = validateMeetingContextChange(input);
|
|
857
857
|
if (change.action !== "event.link" && change.action !== "person.link")
|
|
858
858
|
throw new CliError("validation_error", "meeting linking supports only explicit event or person changes");
|
|
859
|
-
const api = await import("./services-
|
|
859
|
+
const api = await import("./services-NKZQJQIV.js");
|
|
860
860
|
await api.resolveMeetingReference(meetings, accountId, source.reference, { signal: mutation.signal });
|
|
861
861
|
const service = await api.createMeetingContextService({
|
|
862
862
|
accounts: connected.accounts,
|
|
@@ -877,29 +877,29 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
|
|
|
877
877
|
},
|
|
878
878
|
unifiedSearch: /* @__PURE__ */ __name(async (input) => {
|
|
879
879
|
const request2 = validateUnifiedSearch(input);
|
|
880
|
-
const { searchAllIncludingMeetings } = await import("./services-
|
|
880
|
+
const { searchAllIncludingMeetings } = await import("./services-NKZQJQIV.js");
|
|
881
881
|
return searchAllIncludingMeetings(connected, key, { ...request2, meetingAccount: key, env: options.env });
|
|
882
882
|
}, "unifiedSearch"),
|
|
883
883
|
meetingContext: createMeetingContextCapabilities(connected, meetings, accountId),
|
|
884
884
|
meetingSemantic: createMeetingSemanticCapabilities(connected, accountId, { env: options.env }),
|
|
885
885
|
meetingSearches: await (async () => {
|
|
886
|
-
const { meetingSearchesService } = await import("./services-
|
|
886
|
+
const { meetingSearchesService } = await import("./services-NKZQJQIV.js");
|
|
887
887
|
return meetingSearchesService(async () => connected.searches);
|
|
888
888
|
})(),
|
|
889
889
|
meetingStats: /* @__PURE__ */ __name(async (request2) => {
|
|
890
|
-
const { readMeetingStats } = await import("./services-
|
|
890
|
+
const { readMeetingStats } = await import("./services-NKZQJQIV.js");
|
|
891
891
|
return readMeetingStats(connected, { ...request2, accountId });
|
|
892
892
|
}, "meetingStats"),
|
|
893
893
|
meetingCounts: /* @__PURE__ */ __name(async (request2) => {
|
|
894
|
-
const { readMeetingCounts } = await import("./services-
|
|
894
|
+
const { readMeetingCounts } = await import("./services-NKZQJQIV.js");
|
|
895
895
|
return readMeetingCounts(connected, { ...request2, accountId });
|
|
896
896
|
}, "meetingCounts"),
|
|
897
897
|
meetingReview: /* @__PURE__ */ __name(async (request2) => {
|
|
898
|
-
const { readMeetingReview } = await import("./services-
|
|
898
|
+
const { readMeetingReview } = await import("./services-NKZQJQIV.js");
|
|
899
899
|
return readMeetingReview(connected, { ...request2, accountId });
|
|
900
900
|
}, "meetingReview"),
|
|
901
901
|
meetingLinks: /* @__PURE__ */ __name(async (request2) => {
|
|
902
|
-
const { readMeetingLinks } = await import("./services-
|
|
902
|
+
const { readMeetingLinks } = await import("./services-NKZQJQIV.js");
|
|
903
903
|
return readMeetingLinks(connected, { ...request2, accountId });
|
|
904
904
|
}, "meetingLinks")
|
|
905
905
|
};
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LDRQ5NAP.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -16,12 +16,12 @@ 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.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/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.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/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.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
682
682
|
var ONNX_RUNTIME_VERSION = "1.30.0";
|
|
683
683
|
var release = /* @__PURE__ */ __name((name, sha256, bytes) => ({
|
|
684
684
|
name,
|
|
@@ -858,7 +858,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
|
|
|
858
858
|
return { ort, session: await ort.InferenceSession.create(bytes, options) };
|
|
859
859
|
}, "openSession");
|
|
860
860
|
|
|
861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
862
862
|
var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
|
|
863
863
|
var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
|
|
864
864
|
var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
openOrdinaryFile
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WY4NYPPS.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-FEM2JQN2.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/speech/wav.js
|
|
14
14
|
import { createHash } from "node:crypto";
|
|
15
15
|
import { basename, resolve } from "node:path";
|
|
16
16
|
var prepared = /* @__PURE__ */ new WeakMap();
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
modelsDirectory,
|
|
8
8
|
speechModel,
|
|
9
9
|
vadPath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LDRQ5NAP.js";
|
|
11
11
|
import {
|
|
12
12
|
CliError
|
|
13
13
|
} from "./chunk-FEM2JQN2.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/speech/local.js
|
|
19
19
|
import { createHash } from "node:crypto";
|
|
20
20
|
import { isAbsolute } from "node:path";
|
|
21
21
|
import { setImmediate } from "node:timers/promises";
|
|
@@ -50,7 +50,7 @@ var recognizeLocalPieces = /* @__PURE__ */ __name(async (id, audio, options = {}
|
|
|
50
50
|
const directory = options.directory ?? modelsDirectory(options.env);
|
|
51
51
|
if (!isInstalled(model, directory))
|
|
52
52
|
throw notInstalled(model.id);
|
|
53
|
-
const { openRecognizer, toModelRate } = await import("./recognize-
|
|
53
|
+
const { openRecognizer, toModelRate } = await import("./recognize-SNUNTUC3.js");
|
|
54
54
|
const engine = (options.open ?? openRecognizer)(model, modelPath(directory, model), vadPath(directory));
|
|
55
55
|
try {
|
|
56
56
|
if (!engine.pieces)
|
|
@@ -81,7 +81,7 @@ var openLocalSpeechRecognizer = /* @__PURE__ */ __name(async (id, input = {}) =>
|
|
|
81
81
|
cancelled(options.signal);
|
|
82
82
|
if (!isInstalled(model, directory))
|
|
83
83
|
throw notInstalled(description.model);
|
|
84
|
-
const { openRecognizer, toModelRate } = await import("./recognize-
|
|
84
|
+
const { openRecognizer, toModelRate } = await import("./recognize-SNUNTUC3.js");
|
|
85
85
|
cancelled(options.signal);
|
|
86
86
|
const engine = (options.open ?? openRecognizer)(model, modelPath(directory, model), vadPath(directory));
|
|
87
87
|
let closing = false;
|
|
@@ -2,13 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
LEVELS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IEC4E65G.js";
|
|
6
6
|
import {
|
|
7
|
+
WORD_BODY,
|
|
7
8
|
looksLikeReference,
|
|
8
9
|
parseReference,
|
|
9
10
|
providerLabel,
|
|
10
|
-
providerNamed
|
|
11
|
-
|
|
11
|
+
providerNamed,
|
|
12
|
+
typedPhone
|
|
13
|
+
} from "./chunk-6AMMTXEA.js";
|
|
12
14
|
import {
|
|
13
15
|
resolvePaths,
|
|
14
16
|
writeSecurely
|
|
@@ -43,7 +45,7 @@ import {
|
|
|
43
45
|
__name
|
|
44
46
|
} from "./chunk-ZVVMGPBJ.js";
|
|
45
47
|
|
|
46
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/domain/ref-arguments.js
|
|
47
49
|
var TAKES = {
|
|
48
50
|
chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
|
|
49
51
|
message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
|
|
@@ -103,7 +105,7 @@ var ensureAccount = /* @__PURE__ */ __name(async (reference, scope, profilesOn)
|
|
|
103
105
|
throw wrongAccount(reference, scope, profiles);
|
|
104
106
|
}, "ensureAccount");
|
|
105
107
|
|
|
106
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
108
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
107
109
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
108
110
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase().replaceAll("\u0451", "\u0435"), "foldName");
|
|
109
111
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -148,7 +150,244 @@ ${lines}`, { candidates });
|
|
|
148
150
|
}, "ambiguous");
|
|
149
151
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
150
152
|
|
|
151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/domain/vcard.js
|
|
154
|
+
import { createHash } from "node:crypto";
|
|
155
|
+
var MAX_ID = 512;
|
|
156
|
+
var AS_WORD = new RegExp(`^${WORD_BODY}$`);
|
|
157
|
+
var isVcard = /* @__PURE__ */ __name((text) => /^?\s*BEGIN:VCARD\b/i.test(text), "isVcard");
|
|
158
|
+
var isQuotedPrintable = /* @__PURE__ */ __name((line) => {
|
|
159
|
+
const colon = line.indexOf(":");
|
|
160
|
+
return /;(ENCODING=)?QUOTED-PRINTABLE\b/i.test(colon < 0 ? line : line.slice(0, colon));
|
|
161
|
+
}, "isQuotedPrintable");
|
|
162
|
+
var PROPERTY_START = /^([A-Za-z0-9-]+\.)?[A-Za-z][A-Za-z0-9-]*(;[^:]*)?:/;
|
|
163
|
+
var isSoft = /* @__PURE__ */ __name((line) => line !== void 0 && isQuotedPrintable(line) && line.endsWith("="), "isSoft");
|
|
164
|
+
var unfolded = /* @__PURE__ */ __name((text) => {
|
|
165
|
+
const lines = [];
|
|
166
|
+
for (const raw of text.replace(/^\uFEFF/, "").split(/\r\n|\r|\n/)) {
|
|
167
|
+
const last2 = lines.length - 1;
|
|
168
|
+
const previous = lines[last2];
|
|
169
|
+
const bounds = /^(BEGIN|END):/i.test(raw);
|
|
170
|
+
if (isSoft(previous) && !bounds && !PROPERTY_START.test(raw))
|
|
171
|
+
lines[last2] = previous.slice(0, -1) + raw.replace(/^[ \t]/, "");
|
|
172
|
+
else if (previous !== void 0 && /^[ \t]/.test(raw) && !bounds)
|
|
173
|
+
lines[last2] = previous + raw.slice(1);
|
|
174
|
+
else {
|
|
175
|
+
if (isSoft(previous))
|
|
176
|
+
lines[last2] = previous.slice(0, -1);
|
|
177
|
+
lines.push(raw);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
const last = lines.length - 1;
|
|
181
|
+
if (isSoft(lines[last]))
|
|
182
|
+
lines[last] = lines[last].slice(0, -1);
|
|
183
|
+
return lines.filter((line) => line.trim() !== "");
|
|
184
|
+
}, "unfolded");
|
|
185
|
+
var propertyOf = /* @__PURE__ */ __name((line) => {
|
|
186
|
+
let quoted = false;
|
|
187
|
+
let colon = -1;
|
|
188
|
+
for (let index = 0; index < line.length; index += 1) {
|
|
189
|
+
if (line[index] === '"')
|
|
190
|
+
quoted = !quoted;
|
|
191
|
+
else if (line[index] === ":" && !quoted) {
|
|
192
|
+
colon = index;
|
|
193
|
+
break;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
if (colon < 0)
|
|
197
|
+
return void 0;
|
|
198
|
+
const [head = "", ...rest] = line.slice(0, colon).split(";");
|
|
199
|
+
const params = /* @__PURE__ */ new Map();
|
|
200
|
+
for (const part of rest) {
|
|
201
|
+
const equals = part.indexOf("=");
|
|
202
|
+
const key = equals < 0 ? /^(QUOTED-PRINTABLE|BASE64|8BIT|7BIT|B)$/i.test(part) ? "ENCODING" : "TYPE" : part.slice(0, equals);
|
|
203
|
+
const values = (equals < 0 ? part : part.slice(equals + 1)).replaceAll('"', "").split(",");
|
|
204
|
+
params.set(key.toUpperCase(), [...params.get(key.toUpperCase()) ?? [], ...values.map((one) => one.toUpperCase())]);
|
|
205
|
+
}
|
|
206
|
+
const name = head.replace(/^[^.]*\./, "").toUpperCase();
|
|
207
|
+
return { name, params, value: line.slice(colon + 1) };
|
|
208
|
+
}, "propertyOf");
|
|
209
|
+
var encoder = new TextEncoder();
|
|
210
|
+
var decoded = /* @__PURE__ */ __name((property, report) => {
|
|
211
|
+
const encoding = property.params.get("ENCODING")?.[0];
|
|
212
|
+
if (encoding !== "QUOTED-PRINTABLE")
|
|
213
|
+
return property.value;
|
|
214
|
+
const bytes = [];
|
|
215
|
+
const { value } = property;
|
|
216
|
+
for (let index = 0; index < value.length; index += 1) {
|
|
217
|
+
const hex = value.slice(index + 1, index + 3);
|
|
218
|
+
if (value[index] === "=" && /^[0-9A-F]{2}$/i.test(hex)) {
|
|
219
|
+
bytes.push(Number.parseInt(hex, 16));
|
|
220
|
+
index += 2;
|
|
221
|
+
} else
|
|
222
|
+
for (const byte of encoder.encode(value[index]))
|
|
223
|
+
bytes.push(byte);
|
|
224
|
+
}
|
|
225
|
+
const charset = property.params.get("CHARSET")?.[0]?.toLowerCase() ?? "utf-8";
|
|
226
|
+
try {
|
|
227
|
+
return new TextDecoder(charset).decode(new Uint8Array(bytes));
|
|
228
|
+
} catch {
|
|
229
|
+
report(`${property.name} names the unknown charset ${charset}: read as UTF-8`);
|
|
230
|
+
return new TextDecoder("utf-8").decode(new Uint8Array(bytes));
|
|
231
|
+
}
|
|
232
|
+
}, "decoded");
|
|
233
|
+
var components = /* @__PURE__ */ __name((value) => {
|
|
234
|
+
const parts = [""];
|
|
235
|
+
for (let index = 0; index < value.length; index += 1) {
|
|
236
|
+
const char = value[index];
|
|
237
|
+
if (char === "\\" && index + 1 < value.length) {
|
|
238
|
+
const next = value[index + 1];
|
|
239
|
+
parts[parts.length - 1] += next === "n" || next === "N" ? "\n" : next;
|
|
240
|
+
index += 1;
|
|
241
|
+
} else if (char === ";")
|
|
242
|
+
parts.push("");
|
|
243
|
+
else
|
|
244
|
+
parts[parts.length - 1] += char;
|
|
245
|
+
}
|
|
246
|
+
return parts.map((part) => part.trim());
|
|
247
|
+
}, "components");
|
|
248
|
+
var textOf = /* @__PURE__ */ __name((property, report) => components(decoded(property, report)).join(";").trim(), "textOf");
|
|
249
|
+
var e164 = /* @__PURE__ */ __name((typed, region) => {
|
|
250
|
+
const text = typed.replace(/^tel:/i, "").replace(/;.*$/, "").trim();
|
|
251
|
+
const international = /^(\+|00)/.test(text);
|
|
252
|
+
if (!international && region === void 0)
|
|
253
|
+
return void 0;
|
|
254
|
+
const value = typedPhone(text, region === void 0 ? {} : { phoneCountries: [region] })?.value;
|
|
255
|
+
return value?.startsWith("+") ? value : void 0;
|
|
256
|
+
}, "e164");
|
|
257
|
+
var foldedName = /* @__PURE__ */ __name((name) => name.normalize("NFKC").toLowerCase().replace(/\s+/g, " ").trim(), "foldedName");
|
|
258
|
+
var hashed = /* @__PURE__ */ __name((prefix, parts) => `${prefix}${createHash("sha256").update(parts.join("\n")).digest("hex").slice(0, 32)}`, "hashed");
|
|
259
|
+
var organizationId = /* @__PURE__ */ __name((name) => {
|
|
260
|
+
const id = `org:${foldedName(name)}`;
|
|
261
|
+
return id.length <= MAX_ID ? id : hashed("org:", [foldedName(name)]);
|
|
262
|
+
}, "organizationId");
|
|
263
|
+
var titleWord = /* @__PURE__ */ __name((title) => {
|
|
264
|
+
const word = title.toLowerCase().trim().replace(/\s+/g, "-");
|
|
265
|
+
return AS_WORD.test(word) ? word : void 0;
|
|
266
|
+
}, "titleWord");
|
|
267
|
+
var nameOf = /* @__PURE__ */ __name((properties, report) => {
|
|
268
|
+
const full = properties.find(({ name }) => name === "FN");
|
|
269
|
+
const text = full ? textOf(full, report) : "";
|
|
270
|
+
if (text)
|
|
271
|
+
return text;
|
|
272
|
+
const structured = properties.find(({ name }) => name === "N");
|
|
273
|
+
if (!structured)
|
|
274
|
+
return void 0;
|
|
275
|
+
const [family = "", given = "", additional = ""] = components(decoded(structured, report));
|
|
276
|
+
return [given, additional, family].filter(Boolean).join(" ") || void 0;
|
|
277
|
+
}, "nameOf");
|
|
278
|
+
var SKIPPED = /* @__PURE__ */ new Set(["PHOTO", "LOGO", "SOUND", "KEY"]);
|
|
279
|
+
var cardsOf = /* @__PURE__ */ __name((text) => {
|
|
280
|
+
const cards = [];
|
|
281
|
+
const issues = [];
|
|
282
|
+
let card;
|
|
283
|
+
const isBound = /* @__PURE__ */ __name((property, name) => property.name === name && property.value.trim().toUpperCase() === "VCARD", "isBound");
|
|
284
|
+
for (const line of unfolded(text)) {
|
|
285
|
+
const property = propertyOf(line);
|
|
286
|
+
if (!property)
|
|
287
|
+
continue;
|
|
288
|
+
if (isBound(property, "BEGIN")) {
|
|
289
|
+
if (card) {
|
|
290
|
+
issues.push({ card: cards.length, message: "BEGIN:VCARD inside a card: the card ends there, unfinished" });
|
|
291
|
+
cards.push(card);
|
|
292
|
+
}
|
|
293
|
+
card = [];
|
|
294
|
+
} else if (isBound(property, "END")) {
|
|
295
|
+
if (card)
|
|
296
|
+
cards.push(card);
|
|
297
|
+
card = void 0;
|
|
298
|
+
} else if (card && !SKIPPED.has(property.name))
|
|
299
|
+
card.push(property);
|
|
300
|
+
}
|
|
301
|
+
if (card) {
|
|
302
|
+
issues.push({ card: cards.length, message: "the file ends inside a card, with no END:VCARD" });
|
|
303
|
+
cards.push(card);
|
|
304
|
+
}
|
|
305
|
+
return { cards, issues };
|
|
306
|
+
}, "cardsOf");
|
|
307
|
+
var envelopeOfVcard = /* @__PURE__ */ __name((text, { provider, account, batchId, region }) => {
|
|
308
|
+
const { cards, issues } = cardsOf(text);
|
|
309
|
+
const people = [];
|
|
310
|
+
const organizations = /* @__PURE__ */ new Map();
|
|
311
|
+
const seen = /* @__PURE__ */ new Set();
|
|
312
|
+
for (const [index, properties] of cards.entries()) {
|
|
313
|
+
const report = /* @__PURE__ */ __name((message) => {
|
|
314
|
+
if (!issues.some((one) => one.card === index && one.message === message))
|
|
315
|
+
issues.push({ card: index, message });
|
|
316
|
+
}, "report");
|
|
317
|
+
const values = /* @__PURE__ */ __name((wanted) => properties.filter(({ name: name2 }) => name2 === wanted).map((one) => textOf(one, report)).filter(Boolean), "values");
|
|
318
|
+
const name = nameOf(properties, report);
|
|
319
|
+
const phones = [];
|
|
320
|
+
const unread = [];
|
|
321
|
+
for (const typed of values("TEL")) {
|
|
322
|
+
const value = e164(typed, region);
|
|
323
|
+
if (value !== void 0) {
|
|
324
|
+
if (!phones.includes(value))
|
|
325
|
+
phones.push(value);
|
|
326
|
+
} else {
|
|
327
|
+
unread.push(typed);
|
|
328
|
+
issues.push({
|
|
329
|
+
card: index,
|
|
330
|
+
message: `${typed} has no country code${region === void 0 ? " and no region was given" : ` in ${region}`}: kept, not matched`
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
const emails = [...new Set(values("EMAIL").map((one) => one.replace(/^mailto:/i, "").toLowerCase()))];
|
|
335
|
+
if (name === void 0 && phones.length === 0 && unread.length === 0 && emails.length === 0) {
|
|
336
|
+
report("the card holds no name, number or address: left out");
|
|
337
|
+
continue;
|
|
338
|
+
}
|
|
339
|
+
const uid = values("UID")[0];
|
|
340
|
+
const externalId = uid === void 0 ? hashed("vcard:", [name ?? "", ...[...phones].sort(), ...emails.sort()]) : uid.length <= MAX_ID ? uid : hashed("vcard:", [uid]);
|
|
341
|
+
if (seen.has(externalId)) {
|
|
342
|
+
issues.push({ card: index, message: `another card of the file is ${externalId}: left out` });
|
|
343
|
+
continue;
|
|
344
|
+
}
|
|
345
|
+
seen.add(externalId);
|
|
346
|
+
const organization = properties.find(({ name: name2 }) => name2 === "ORG");
|
|
347
|
+
const organizationName = organization ? components(decoded(organization, report))[0] : void 0;
|
|
348
|
+
const title = values("TITLE")[0];
|
|
349
|
+
const relations = [];
|
|
350
|
+
if (organizationName) {
|
|
351
|
+
const id = organizationId(organizationName);
|
|
352
|
+
if (!organizations.has(id))
|
|
353
|
+
organizations.set(id, {
|
|
354
|
+
key: id,
|
|
355
|
+
type: "organization",
|
|
356
|
+
external_id: id,
|
|
357
|
+
operation: "upsert",
|
|
358
|
+
fields: { name: organizationName }
|
|
359
|
+
});
|
|
360
|
+
const as = title === void 0 ? void 0 : titleWord(title);
|
|
361
|
+
relations.push({ role: "member-of", type: "organization", external_id: id, ...as ? { as } : {} });
|
|
362
|
+
}
|
|
363
|
+
people.push({
|
|
364
|
+
key: `person:${externalId}`,
|
|
365
|
+
type: "person",
|
|
366
|
+
external_id: externalId,
|
|
367
|
+
operation: "upsert",
|
|
368
|
+
fields: {
|
|
369
|
+
...name === void 0 ? {} : { name },
|
|
370
|
+
...phones.length ? { phone: phones } : {},
|
|
371
|
+
...emails.length ? { email: emails } : {},
|
|
372
|
+
...unread.length ? { phone_unread: unread } : {},
|
|
373
|
+
...organizationName ? { organization: organizationName } : {},
|
|
374
|
+
...title === void 0 ? {} : { title }
|
|
375
|
+
},
|
|
376
|
+
...relations.length ? { relations } : {}
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
return {
|
|
380
|
+
envelope: {
|
|
381
|
+
schema_version: 1,
|
|
382
|
+
source: { provider, account, batch_id: batchId },
|
|
383
|
+
...region === void 0 ? {} : { options: { phone_region: region } },
|
|
384
|
+
records: [...organizations.values(), ...people]
|
|
385
|
+
},
|
|
386
|
+
issues
|
|
387
|
+
};
|
|
388
|
+
}, "envelopeOfVcard");
|
|
389
|
+
|
|
390
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
152
391
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
153
392
|
var validateFormattedText = /* @__PURE__ */ __name((formatted) => {
|
|
154
393
|
const { text, spans } = formatted;
|
|
@@ -208,7 +447,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted) => {
|
|
|
208
447
|
};
|
|
209
448
|
}, "visibleFormattedText");
|
|
210
449
|
|
|
211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
450
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
212
451
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
213
452
|
var LINK = /https?:\/\/\S+/i;
|
|
214
453
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -396,7 +635,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
396
635
|
}, "nextPoint");
|
|
397
636
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
398
637
|
|
|
399
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
400
639
|
import { existsSync, readFileSync } from "node:fs";
|
|
401
640
|
import { join } from "node:path";
|
|
402
641
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -547,6 +786,8 @@ export {
|
|
|
547
786
|
foldName,
|
|
548
787
|
pickChat,
|
|
549
788
|
pickPerson,
|
|
789
|
+
isVcard,
|
|
790
|
+
envelopeOfVcard,
|
|
550
791
|
validateFormattedText,
|
|
551
792
|
visibleFormattedText,
|
|
552
793
|
judge,
|