@wirecat/zoom-cli 0.79.0 → 0.80.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/README.md +5 -4
- package/dist/answer-output.d.ts +1 -1
- package/dist/answer-output.js +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-LDSHUH5W.js → all-profiles-5GOKWOT4.js} +6 -6
- package/dist/bundle/answer-policy-7PYXHK2I.js +122 -0
- package/dist/bundle/{anthropic-UH3QWA3F.js → anthropic-NHXMOFYS.js} +2 -2
- package/dist/bundle/{app-server-LFANTLAJ.js → app-server-HFW5Z5PI.js} +58 -58
- package/dist/bundle/{bun-M3J2QTR3.js → bun-M5IGY2TG.js} +2 -2
- package/dist/bundle/{bun-sqlite-NYP5UH23.js → bun-sqlite-MTP5JJQ2.js} +3 -3
- package/dist/bundle/{chunk-OLMEJNL4.js → chunk-2P6MQH4V.js} +5 -5
- package/dist/bundle/{chunk-4BQN5IFQ.js → chunk-2XZ2YKW4.js} +3 -3
- package/dist/bundle/{chunk-PP6SZLCY.js → chunk-3AOESMW6.js} +27 -17
- package/dist/bundle/{chunk-3AFZ6Q5N.js → chunk-3BTRJYIT.js} +9 -9
- package/dist/bundle/{chunk-W7HM2VGO.js → chunk-3UONR5HW.js} +1 -1
- package/dist/bundle/{chunk-2N57GL4L.js → chunk-3Z7CFQTI.js} +1 -1
- package/dist/bundle/{chunk-X2M6NIQG.js → chunk-475P3LWG.js} +1 -1
- package/dist/bundle/{chunk-2PUMYKGV.js → chunk-4F7Q5CET.js} +15 -15
- package/dist/bundle/{chunk-HZRQLAHO.js → chunk-4OAR7BGU.js} +1 -1
- package/dist/bundle/{chunk-FO5UNFFN.js → chunk-5CJ6AAUI.js} +2 -2
- package/dist/bundle/{chunk-65DOVVHQ.js → chunk-5K54M6RD.js} +1 -1
- package/dist/bundle/{chunk-E5WLE7BM.js → chunk-5QXQIZJY.js} +1 -1
- package/dist/bundle/{chunk-I6VDTYML.js → chunk-5XO2AY6D.js} +6 -6
- package/dist/bundle/{chunk-XFMVDQ6J.js → chunk-6CDMGT6Q.js} +1 -1
- package/dist/bundle/{chunk-ND7TBQKO.js → chunk-6I4C4ZFT.js} +1 -1
- package/dist/bundle/{chunk-Y4UDPQ3L.js → chunk-6LY4LBSD.js} +5 -5
- package/dist/bundle/{chunk-ZKVYV25H.js → chunk-6MDL2LZA.js} +5 -5
- package/dist/bundle/{chunk-NQMHYLZO.js → chunk-6PIXP5IH.js} +18 -18
- package/dist/bundle/{chunk-DFCHHR5M.js → chunk-6QCBTBDA.js} +1 -1
- package/dist/bundle/{chunk-SGFNQFP4.js → chunk-75JW7X2W.js} +29 -29
- package/dist/bundle/{chunk-W5HRTC6X.js → chunk-7U5X37TE.js} +5 -5
- package/dist/bundle/{chunk-WE4UFASG.js → chunk-A3TUG2DP.js} +1 -1
- package/dist/bundle/{chunk-4T3J4NCF.js → chunk-ARL2TTPZ.js} +7 -7
- package/dist/bundle/{chunk-YCW422X7.js → chunk-BIKHHFD2.js} +414 -358
- package/dist/bundle/{chunk-3QPAD6YI.js → chunk-BPSURRAD.js} +5 -5
- package/dist/bundle/{chunk-M4RXPZ6K.js → chunk-BRMV33MO.js} +2 -2
- package/dist/bundle/{chunk-2LJARGNG.js → chunk-BW5JEOBE.js} +10 -10
- package/dist/bundle/{chunk-GTUBQQU2.js → chunk-CHEHK6IW.js} +55 -55
- package/dist/bundle/{chunk-5KEOCHBZ.js → chunk-CW6CPQHI.js} +3 -3
- package/dist/bundle/{chunk-BTFPDS52.js → chunk-CWCDCNXA.js} +5 -5
- package/dist/bundle/{chunk-M5FW654Z.js → chunk-D4HKTC2T.js} +1 -1
- package/dist/bundle/{chunk-2OTETB4A.js → chunk-DYRISFHZ.js} +4 -4
- package/dist/bundle/{chunk-2IPIBDXI.js → chunk-DZ6H3YJH.js} +10 -10
- package/dist/bundle/{chunk-XDBGGOE2.js → chunk-E3JVLVVB.js} +26 -24
- package/dist/bundle/{chunk-XAOSZGTD.js → chunk-EI37UXDR.js} +1 -1
- package/dist/bundle/{chunk-YOBTKYIX.js → chunk-EMYRUJCV.js} +34 -11
- package/dist/bundle/{chunk-HOXBHGP2.js → chunk-EPIA2UUM.js} +9 -9
- package/dist/bundle/{chunk-JJGUHWLB.js → chunk-FSLR2YGR.js} +6 -6
- package/dist/bundle/{chunk-7DTWT7BN.js → chunk-G5VH4WUF.js} +1 -1
- package/dist/bundle/{chunk-AWLZZTPW.js → chunk-GCPO7T2X.js} +2 -2
- package/dist/bundle/{chunk-W656MRJD.js → chunk-GCUOZ2OA.js} +4 -4
- package/dist/bundle/{chunk-2W6QGFHF.js → chunk-GGKEQQME.js} +5 -5
- package/dist/bundle/{chunk-BOVYOUB3.js → chunk-GRYXOSN6.js} +7 -7
- package/dist/bundle/{chunk-XOYMIEAZ.js → chunk-GVKZZT7E.js} +2 -2
- package/dist/bundle/{chunk-UQKVZFIX.js → chunk-HGSBLY6M.js} +11 -11
- package/dist/bundle/{chunk-Y64L7A7E.js → chunk-HH7GR6TN.js} +2 -2
- package/dist/bundle/{chunk-XEIL6VNA.js → chunk-IQWBGMCR.js} +3 -3
- package/dist/bundle/{chunk-TUECY6LV.js → chunk-JGSVWLL2.js} +1 -1
- package/dist/bundle/{chunk-P4WHDL2F.js → chunk-JJX4HKDV.js} +3 -3
- package/dist/bundle/{chunk-QRKSASGP.js → chunk-JXSEH64A.js} +2 -2
- package/dist/bundle/{chunk-LCCVEX4R.js → chunk-K672XJ2P.js} +10 -10
- package/dist/bundle/{chunk-I75KOOUD.js → chunk-L2TURFT6.js} +1 -1
- package/dist/bundle/{chunk-N5O3XVX3.js → chunk-L6FM5RQY.js} +2 -2
- package/dist/bundle/{chunk-RUE3WP7K.js → chunk-M4LAF627.js} +43 -21
- package/dist/bundle/{chunk-J62BQBVG.js → chunk-MH4L5LL6.js} +2 -2
- package/dist/bundle/{chunk-NKFEEY5M.js → chunk-N5YUHN6S.js} +10 -10
- package/dist/bundle/{chunk-PJFVE7UH.js → chunk-NMETTKCV.js} +30 -15
- package/dist/bundle/{chunk-P4MZOAPC.js → chunk-NRVMK5H3.js} +537 -400
- package/dist/bundle/{chunk-2GI63IPV.js → chunk-NXFKZFTC.js} +2 -2
- package/dist/bundle/{chunk-VX6ZSKXM.js → chunk-O4ZBFATF.js} +10 -10
- package/dist/bundle/{chunk-63WT3HCY.js → chunk-OXPHJEJ2.js} +1 -1
- package/dist/bundle/{chunk-RMQ7EALU.js → chunk-P2JTVRGU.js} +16 -16
- package/dist/bundle/{chunk-NI7UYGTF.js → chunk-PKW3TPNP.js} +11 -11
- package/dist/bundle/{chunk-525BI32C.js → chunk-PMO2Z6DQ.js} +2 -2
- package/dist/bundle/{chunk-U7QXC75C.js → chunk-Q5LUGY2V.js} +5 -5
- package/dist/bundle/{chunk-QX3PO5UE.js → chunk-Q6MISDKJ.js} +2 -2
- package/dist/bundle/{chunk-4S7RUA3U.js → chunk-RFXJLG5V.js} +7420 -7177
- package/dist/bundle/{chunk-TP7GDWVF.js → chunk-RT7C3SSJ.js} +1 -1
- package/dist/bundle/{chunk-DQVCCO7G.js → chunk-SUG6YGAF.js} +168 -154
- package/dist/bundle/{chunk-HVQVCGME.js → chunk-TDBVM2SS.js} +1 -1
- package/dist/bundle/{chunk-RJ5JAYNZ.js → chunk-TMYZKDQ7.js} +61 -61
- package/dist/bundle/{chunk-73L5R7AS.js → chunk-TNL3YQ33.js} +1 -1
- package/dist/bundle/{chunk-IIFRJV3A.js → chunk-U5N2PKKM.js} +2 -2
- package/dist/bundle/{chunk-AZB6QXZU.js → chunk-UX4JZMA4.js} +24 -2
- package/dist/bundle/{chunk-W53EJOFQ.js → chunk-VN7TKMOW.js} +1 -1
- package/dist/bundle/{chunk-FMT4CIGN.js → chunk-W2QDYMAM.js} +5 -5
- package/dist/bundle/{chunk-LITZ7KPO.js → chunk-W32HK7KG.js} +2 -2
- package/dist/bundle/{chunk-FKA7DOCK.js → chunk-W3GZ7JUO.js} +1 -1
- package/dist/bundle/{chunk-52ZQ72HL.js → chunk-W7M4JYEE.js} +1 -1
- package/dist/bundle/{chunk-DI5JX4SD.js → chunk-XKLU5KV2.js} +1 -1
- package/dist/bundle/{chunk-TLO62ROR.js → chunk-XL4ND7CZ.js} +23 -23
- package/dist/bundle/{chunk-D264RGZ4.js → chunk-XTCAWNBP.js} +4 -4
- package/dist/bundle/{chunk-OZQSTX4J.js → chunk-YAA2D6RP.js} +3 -3
- package/dist/bundle/{chunk-T6LA664Z.js → chunk-YR5TRWT2.js} +15 -15
- package/dist/bundle/{cli-AVQU63FT.js → cli-QNBYDOKV.js} +69 -67
- package/dist/bundle/command-contract-CT6MV6YG.js +45 -0
- package/dist/bundle/{command-server-entry-JZP7Y73G.js → command-server-entry-WMA4SWJ5.js} +28 -28
- package/dist/bundle/config-ZFQFDEVL.js +109 -0
- package/dist/bundle/{decode-JLAYH7GC.js → decode-7PXUXNIP.js} +2 -2
- package/dist/bundle/{dist-TBLTUL5M.js → dist-TSBH4FOU.js} +15 -15
- package/dist/bundle/{echarts-FVTUDXDU.js → echarts-WIDIUEO6.js} +2 -2
- package/dist/bundle/{embed-CJRENDF7.js → embed-EIRVQF5E.js} +3 -3
- package/dist/bundle/{embedder-RPE67QJD.js → embedder-MXPM6OXK.js} +6 -6
- package/dist/bundle/{first-run-QEASX5J5.js → first-run-K6EHRAIM.js} +6 -6
- package/dist/bundle/first-screen-C6AF4KT4.js +45 -0
- package/dist/bundle/{instructions-HET7BCYK.js → instructions-D5LNE6NJ.js} +1 -1
- package/dist/bundle/{main-QRJ6NRCD.js → main-OHW5Z56X.js} +15 -15
- package/dist/bundle/{meeting-combined-AZXCDXCV.js → meeting-combined-3OKFXZNA.js} +11 -11
- package/dist/bundle/{meeting-model-7HNQ4I3J.js → meeting-model-4XNF725D.js} +8 -8
- package/dist/bundle/{meeting-semantic-4MURLQCA.js → meeting-semantic-FYOVY4S2.js} +2 -2
- package/dist/bundle/{meetings-QFZWKHI4.js → meetings-WI4SXPBJ.js} +1 -1
- package/dist/bundle/{node-CXZIFHZC.js → node-UEWUFR7N.js} +2 -2
- package/dist/bundle/{node-sqlite-CZPYFROO.js → node-sqlite-FJWKJHYU.js} +4 -4
- package/dist/bundle/{oauth-T45MPIZF.js → oauth-KOONTGLW.js} +4 -4
- package/dist/bundle/{open-3AONZFET.js → open-EFYTWUGC.js} +2 -2
- package/dist/bundle/{openai-LHWUXEBO.js → openai-6Y2JRDNY.js} +10 -10
- package/dist/bundle/{process-5RUXWGYS.js → process-U5PLNIDC.js} +1 -1
- package/dist/bundle/{program-2O4YSRWY.js → program-3JICCSA6.js} +81 -80
- package/dist/bundle/{prompt-NDLUFCJV.js → prompt-YPDMSOKC.js} +2 -2
- package/dist/bundle/{recognize-CZOIAJQX.js → recognize-Z2SSWUKH.js} +1 -1
- package/dist/bundle/{remote-O3CE4Q3B.js → remote-R5HMDHOG.js} +6 -6
- package/dist/bundle/{rerank-MZOL746K.js → rerank-6NGBEMQ2.js} +4 -4
- package/dist/bundle/{run-log-GX6LNMWY.js → run-log-LG3TI3WI.js} +67 -67
- package/dist/bundle/{serve-43IBHMFM.js → serve-CU3RMWU7.js} +6 -6
- package/dist/bundle/{server-6LTMPPTO.js → server-SOQSVX2Q.js} +50 -50
- package/dist/bundle/server-X7JYRMKX.js +85 -0
- package/dist/bundle/{services-UIRD5PHE.js → services-LROZ3RDT.js} +42 -42
- package/dist/bundle/{speech-6QVKIJVR.js → speech-AS77HFIF.js} +19 -19
- package/dist/bundle/{sqlite-runtime-PKCIBVHZ.js → sqlite-runtime-U25NS6BK.js} +3 -3
- package/dist/bundle/{state-AC55V3IE.js → state-CPEVKK66.js} +3 -3
- package/dist/bundle/{store-OAGA2ZK3.js → store-6CHRMJM7.js} +20 -18
- package/dist/bundle/{store-QOCYJNKX.js → store-QKHCZOYR.js} +20 -20
- package/dist/bundle/store-connection-FCDVOPWB.js +102 -0
- package/dist/bundle/store-maintenance-command-6HVOAHOZ.js +77 -0
- package/dist/bundle/{tokens-LN442AO6.js → tokens-JBN2OHQB.js} +4 -4
- package/dist/bundle/zm.js +2 -2
- package/dist/bundle/{zoom-app-TOCQ7LB5.js → zoom-app-Q4IKYNG3.js} +2 -2
- package/dist/program-bindings.d.ts.map +1 -1
- package/dist/program-bindings.js +2 -2
- package/dist/program-bindings.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/answer-policy-VJK4ID2F.js +0 -122
- package/dist/bundle/command-contract-MCWBL5VS.js +0 -45
- package/dist/bundle/config-G3C54VH6.js +0 -109
- package/dist/bundle/first-screen-NGCQD3CU.js +0 -45
- package/dist/bundle/server-3E2PJGYK.js +0 -85
- package/dist/bundle/store-connection-PBZMFY56.js +0 -102
- package/dist/bundle/store-maintenance-command-VBCHEOGI.js +0 -77
|
@@ -2,19 +2,19 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
encodeWav
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PMO2Z6DQ.js";
|
|
6
6
|
import {
|
|
7
7
|
SAMPLE_RATE,
|
|
8
8
|
toModelRate
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JJX4HKDV.js";
|
|
10
10
|
import {
|
|
11
11
|
OPENAI_URL,
|
|
12
12
|
refuseModelAddress
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ARL2TTPZ.js";
|
|
14
14
|
import {
|
|
15
15
|
endpointFetch,
|
|
16
16
|
onThisComputer
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TDBVM2SS.js";
|
|
18
18
|
import {
|
|
19
19
|
providerWaitMs
|
|
20
20
|
} from "./chunk-QIK2IBJ4.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
filesPresent,
|
|
25
25
|
modelsDirectory,
|
|
26
26
|
vadPath
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-CW6CPQHI.js";
|
|
28
28
|
import {
|
|
29
29
|
DEFAULT_RETRY,
|
|
30
30
|
backoffMs
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
__name
|
|
37
37
|
} from "./chunk-ZVVMGPBJ.js";
|
|
38
38
|
|
|
39
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
40
40
|
import { setTimeout as wait } from "node:timers/promises";
|
|
41
41
|
var LONGEST_REQUEST_SECONDS = 600;
|
|
42
42
|
var JOINED_SECONDS = 0.2;
|
|
@@ -161,7 +161,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
|
|
|
161
161
|
return pieces;
|
|
162
162
|
}, "piecesOf");
|
|
163
163
|
var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
|
|
164
|
-
const { openSpeechCutter } = await import("./recognize-
|
|
164
|
+
const { openSpeechCutter } = await import("./recognize-Z2SSWUKH.js");
|
|
165
165
|
return openSpeechCutter(vadModel);
|
|
166
166
|
}, "openCutter");
|
|
167
167
|
var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-PCPOO5FS.js";
|
|
7
7
|
import {
|
|
8
8
|
acquireLock
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NMETTKCV.js";
|
|
10
10
|
import {
|
|
11
11
|
Credentials
|
|
12
12
|
} from "./chunk-BNEJKGG7.js";
|
|
@@ -23,7 +23,7 @@ import { createHash } from "node:crypto";
|
|
|
23
23
|
import { join } from "node:path";
|
|
24
24
|
import { setTimeout as delay } from "node:timers/promises";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/oauth/storage.js
|
|
27
27
|
var invalid = /* @__PURE__ */ __name(() => new CliError("authentication_error", "the saved sign-in cannot be read; sign in again", { reason: "oauth.invalid" }), "invalid");
|
|
28
28
|
var parse = /* @__PURE__ */ __name((raw) => {
|
|
29
29
|
let value;
|
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
aiOrigin,
|
|
6
6
|
aiSettingPath,
|
|
7
7
|
readAiSetting
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GGKEQQME.js";
|
|
9
9
|
import {
|
|
10
10
|
OPENAI_URL,
|
|
11
11
|
localOnly,
|
|
12
12
|
localOnlyRefusal
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ARL2TTPZ.js";
|
|
14
14
|
import {
|
|
15
15
|
readOnlyLockOf,
|
|
16
16
|
readOnlyRefusal
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-D4HKTC2T.js";
|
|
18
18
|
import {
|
|
19
19
|
onThisComputer
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-TDBVM2SS.js";
|
|
21
21
|
import {
|
|
22
22
|
OPENAI_TRANSCRIBE_MODEL,
|
|
23
23
|
VAD,
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
modelsDirectory,
|
|
27
27
|
speechModel,
|
|
28
28
|
vadPath
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-CW6CPQHI.js";
|
|
30
30
|
import {
|
|
31
31
|
typedCommand
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-2P6MQH4V.js";
|
|
33
33
|
import {
|
|
34
34
|
CliError
|
|
35
35
|
} from "./chunk-ST3ZB7LS.js";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
__name
|
|
38
38
|
} from "./chunk-ZVVMGPBJ.js";
|
|
39
39
|
|
|
40
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/speech/cloud.js
|
|
41
41
|
var addressOf = /* @__PURE__ */ __name((env) => {
|
|
42
42
|
const setting = readAiSetting(aiSettingPath(env));
|
|
43
43
|
return setting?.provider === "openai" && setting.base_url ? setting.base_url : OPENAI_URL;
|
|
@@ -73,7 +73,7 @@ var cloudSpeech = /* @__PURE__ */ __name((deps) => {
|
|
|
73
73
|
told = true;
|
|
74
74
|
deps.notify(leavesComputer ? `the recordings' audio leaves this computer: it goes to ${host} (${model}) to be transcribed` : `the recordings' audio goes to ${host} on this computer (${model}) to be transcribed`);
|
|
75
75
|
}
|
|
76
|
-
const { transcribeOpenAI: transcribeOpenAI2 } = await import("./openai-
|
|
76
|
+
const { transcribeOpenAI: transcribeOpenAI2 } = await import("./openai-6Y2JRDNY.js");
|
|
77
77
|
return transcribeOpenAI2(audio, {
|
|
78
78
|
apiKey: apiKey ?? "",
|
|
79
79
|
model,
|
|
@@ -90,7 +90,7 @@ var cloudSpeech = /* @__PURE__ */ __name((deps) => {
|
|
|
90
90
|
};
|
|
91
91
|
}, "cloudSpeech");
|
|
92
92
|
|
|
93
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
93
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/speech/local.js
|
|
94
94
|
import { createHash } from "node:crypto";
|
|
95
95
|
import { isAbsolute } from "node:path";
|
|
96
96
|
import { setImmediate } from "node:timers/promises";
|
|
@@ -125,7 +125,7 @@ var recognizeLocalPieces = /* @__PURE__ */ __name(async (id, audio, options = {}
|
|
|
125
125
|
const directory = options.directory ?? modelsDirectory(options.env);
|
|
126
126
|
if (!isInstalled(model, directory))
|
|
127
127
|
throw notInstalled(model.id);
|
|
128
|
-
const { openRecognizer, toModelRate } = await import("./recognize-
|
|
128
|
+
const { openRecognizer, toModelRate } = await import("./recognize-Z2SSWUKH.js");
|
|
129
129
|
const engine = (options.open ?? openRecognizer)(model, modelPath(directory, model), vadPath(directory));
|
|
130
130
|
try {
|
|
131
131
|
if (!engine.pieces)
|
|
@@ -156,7 +156,7 @@ var openLocalSpeechRecognizer = /* @__PURE__ */ __name(async (id, input = {}) =>
|
|
|
156
156
|
cancelled(options.signal);
|
|
157
157
|
if (!isInstalled(model, directory))
|
|
158
158
|
throw notInstalled(description.model);
|
|
159
|
-
const { openRecognizer, toModelRate } = await import("./recognize-
|
|
159
|
+
const { openRecognizer, toModelRate } = await import("./recognize-Z2SSWUKH.js");
|
|
160
160
|
cancelled(options.signal);
|
|
161
161
|
const engine = (options.open ?? openRecognizer)(model, modelPath(directory, model), vadPath(directory));
|
|
162
162
|
let closing = false;
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
__name
|
|
24
24
|
} from "./chunk-ZVVMGPBJ.js";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/constants/obscure.js
|
|
27
27
|
import { createDecipheriv } from "node:crypto";
|
|
28
28
|
var KEY = Buffer.from("d43012779aa2dded3e98092a3dbcf5d8980c564172f5ce0a5fd0574e5f740339", "hex");
|
|
29
29
|
var reveal = /* @__PURE__ */ __name((obscured) => {
|
|
@@ -32,7 +32,7 @@ var reveal = /* @__PURE__ */ __name((obscured) => {
|
|
|
32
32
|
return Buffer.concat([decipher.update(bytes.subarray(16)), decipher.final()]).toString("utf8");
|
|
33
33
|
}, "reveal");
|
|
34
34
|
|
|
35
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/constants/index.js
|
|
36
36
|
var CORE_CONSTANTS = new URL("../../constants.json", new URL("constants/index.js", import.meta.resolve("@wirecat/cli-core")).href);
|
|
37
37
|
var constantsSchema = object({
|
|
38
38
|
...baseConstantsSchema.entries,
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
readSharedSection,
|
|
5
5
|
sharedConfigPath,
|
|
6
6
|
writeSharedSection
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6MDL2LZA.js";
|
|
8
8
|
import {
|
|
9
9
|
storePath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TNL3YQ33.js";
|
|
11
11
|
import {
|
|
12
12
|
CliError
|
|
13
13
|
} from "./chunk-ST3ZB7LS.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.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
|
|
19
19
|
var PERMISSION_ANSWERS = ["readonly", "allow"];
|
|
20
20
|
var QUESTIONS = ["languages", "tools", "permissions"];
|
|
21
21
|
var SECTION = "setup";
|
|
@@ -12,7 +12,7 @@ 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.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/render/messages.js
|
|
16
16
|
import { styleText } from "node:util";
|
|
17
17
|
var TIME_WIDTH = 8;
|
|
18
18
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -10,10 +10,10 @@ 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.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/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@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/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@0.
|
|
73
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/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) => {
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
formatMeetingReference
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TMYZKDQ7.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-ST3ZB7LS.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.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/services/meeting-semantic.js
|
|
14
14
|
var positive = /* @__PURE__ */ __name((value, name, max) => {
|
|
15
15
|
if (!Number.isSafeInteger(value) || value < 1 || value > max)
|
|
16
16
|
throw new CliError("validation_error", `Invalid ${name}`);
|
|
@@ -2,14 +2,14 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
isCommandServer
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3Z7CFQTI.js";
|
|
6
6
|
import {
|
|
7
7
|
envName,
|
|
8
8
|
readOnlyLockOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-D4HKTC2T.js";
|
|
10
10
|
import {
|
|
11
11
|
ensureSqlite
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-U5N2PKKM.js";
|
|
13
13
|
import {
|
|
14
14
|
catchCrashes
|
|
15
15
|
} from "./chunk-ZPZT46O6.js";
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
__name
|
|
21
21
|
} from "./chunk-ZVVMGPBJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
24
24
|
import { spawn } from "node:child_process";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
|
|
27
27
|
import { appendFileSync } from "node:fs";
|
|
28
28
|
var logParsedArgv = /* @__PURE__ */ __name((file, action) => {
|
|
29
29
|
const words = [];
|
|
@@ -47,7 +47,7 @@ var logVersion = /* @__PURE__ */ __name((file) => {
|
|
|
47
47
|
`);
|
|
48
48
|
}, "logVersion");
|
|
49
49
|
|
|
50
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
51
51
|
var processIo = /* @__PURE__ */ __name(() => ({
|
|
52
52
|
argv: process.argv,
|
|
53
53
|
env: process.env,
|
|
@@ -67,7 +67,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
67
67
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-V"))
|
|
68
68
|
return printVersion(entry.app, io);
|
|
69
69
|
if (isCommandServer(args)) {
|
|
70
|
-
const { serveEntry } = await import("./command-server-entry-
|
|
70
|
+
const { serveEntry } = await import("./command-server-entry-WMA4SWJ5.js");
|
|
71
71
|
return serveEntry(entry, io, { firstRunAt, commanderExit });
|
|
72
72
|
}
|
|
73
73
|
const tty = io.stdout.isTTY === true;
|
|
@@ -105,7 +105,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
105
105
|
ask: /* @__PURE__ */ __name(async (question, command) => {
|
|
106
106
|
if (headless(command) || io.stdin.isTTY !== true)
|
|
107
107
|
return false;
|
|
108
|
-
const { readSecret } = await import("./prompt-
|
|
108
|
+
const { readSecret } = await import("./prompt-YPDMSOKC.js");
|
|
109
109
|
const answer = await readSecret(`${question} [y/N] `, {
|
|
110
110
|
input: io.stdin,
|
|
111
111
|
output: io.stderr,
|
|
@@ -148,8 +148,8 @@ var firstRunAt = /* @__PURE__ */ __name((entry, io, headless) => async (command)
|
|
|
148
148
|
if (command.optsWithGlobals().dryRun === true)
|
|
149
149
|
return;
|
|
150
150
|
const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
|
|
151
|
-
import("./first-run-
|
|
152
|
-
import("./command-contract-
|
|
151
|
+
import("./first-run-K6EHRAIM.js"),
|
|
152
|
+
import("./command-contract-CT6MV6YG.js")
|
|
153
153
|
]);
|
|
154
154
|
await setupAtStart({
|
|
155
155
|
command: entry.app.command,
|
|
@@ -12,7 +12,7 @@ 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.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/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,7 +5,7 @@ import {
|
|
|
5
5
|
id,
|
|
6
6
|
text,
|
|
7
7
|
time
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-M4LAF627.js";
|
|
9
9
|
import {
|
|
10
10
|
array,
|
|
11
11
|
nullable,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
unknown
|
|
19
19
|
} from "./chunk-ZPZT46O6.js";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/entities/note.js
|
|
22
22
|
var link = {
|
|
23
23
|
target_text: nullable(text),
|
|
24
24
|
kind: text,
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
isCliFailure,
|
|
5
5
|
isStoreDamage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6I4C4ZFT.js";
|
|
7
7
|
import {
|
|
8
8
|
ADDED_PROVIDER,
|
|
9
9
|
INTERNAL_NOTES,
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
kindsIn,
|
|
18
18
|
providerNamed,
|
|
19
19
|
providers
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-PKW3TPNP.js";
|
|
21
21
|
import {
|
|
22
22
|
refuseOwnerStoreInTests
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-TNL3YQ33.js";
|
|
24
24
|
import {
|
|
25
25
|
array,
|
|
26
26
|
boolean,
|
|
@@ -48,14 +48,14 @@ import {
|
|
|
48
48
|
__name
|
|
49
49
|
} from "./chunk-ZVVMGPBJ.js";
|
|
50
50
|
|
|
51
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/store/source-review.js
|
|
52
52
|
var SOURCE_REVIEW_KIND = "memory_source_review";
|
|
53
53
|
var SOURCE_REVIEW_CAUSES = ["changed", "outdated", "deleted", "contradicted"];
|
|
54
54
|
var ERASED_TEXT = "[source erased]";
|
|
55
55
|
var severity = /* @__PURE__ */ __name((cause) => SOURCE_REVIEW_CAUSES.indexOf(cause), "severity");
|
|
56
56
|
var graver = /* @__PURE__ */ __name((a, b) => severity(b) > severity(a) ? b : a, "graver");
|
|
57
57
|
|
|
58
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
58
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
59
59
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
60
60
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
61
61
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -70,7 +70,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
70
70
|
}
|
|
71
71
|
__name(closeTask, "closeTask");
|
|
72
72
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
73
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
74
74
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
75
75
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
76
76
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -99,7 +99,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
99
99
|
}, "priorityOf");
|
|
100
100
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
101
101
|
|
|
102
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
102
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
103
103
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
104
104
|
async function find(id2) {
|
|
105
105
|
const task = await store.get(id2);
|
|
@@ -159,13 +159,13 @@ function median(values) {
|
|
|
159
159
|
}
|
|
160
160
|
__name(median, "median");
|
|
161
161
|
|
|
162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
163
163
|
function matches(task, filter) {
|
|
164
164
|
return (filter.account === void 0 || task.account === filter.account) && (filter.state === void 0 || task.state === filter.state) && (filter.group === void 0 || task.group === filter.group) && (filter.kind === void 0 || task.kind === filter.kind) && (filter.createdBefore === void 0 || task.createdAt < filter.createdBefore);
|
|
165
165
|
}
|
|
166
166
|
__name(matches, "matches");
|
|
167
167
|
|
|
168
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
168
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
169
169
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
170
170
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
171
171
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
@@ -173,10 +173,10 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
173
173
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
174
174
|
var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
175
175
|
|
|
176
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
176
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/domain/categories.js
|
|
177
177
|
var CATEGORIES = ["client", "supplier", "partner", "employer"];
|
|
178
178
|
|
|
179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
180
180
|
var text = string();
|
|
181
181
|
var id = pipe(string(), minLength(1));
|
|
182
182
|
var time = isoTime;
|
|
@@ -201,7 +201,7 @@ var author = strictObject({
|
|
|
201
201
|
name: nullable(text)
|
|
202
202
|
});
|
|
203
203
|
|
|
204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
205
205
|
var organization = strictObject({
|
|
206
206
|
id,
|
|
207
207
|
ref: reference,
|
|
@@ -231,7 +231,7 @@ var reminder = strictObject({
|
|
|
231
231
|
receipt: nullable(text)
|
|
232
232
|
});
|
|
233
233
|
|
|
234
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
234
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/store/marks.js
|
|
235
235
|
import { readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
236
236
|
var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
|
|
237
237
|
var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
|
|
@@ -352,7 +352,7 @@ var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, sch
|
|
|
352
352
|
return { previous, cleared };
|
|
353
353
|
}, "recordDeepCheck");
|
|
354
354
|
|
|
355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
355
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
356
356
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
357
357
|
var inSource = /* @__PURE__ */ __name((source, provider) => source === "all" || source === "bots" && isBotProvider(provider) || source === "personal" && !isBotProvider(provider) || source === provider || providerNamed(source)?.name === provider || isKind(source) && holdsKindOf(provider, source), "inSource");
|
|
358
358
|
var fail = /* @__PURE__ */ __name((message) => {
|
|
@@ -375,7 +375,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
375
375
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
376
376
|
}, "sourceOf");
|
|
377
377
|
|
|
378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
378
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
379
379
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
380
380
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
381
381
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
@@ -486,6 +486,8 @@ var accountsOfWord = /* @__PURE__ */ __name((word, held, context) => {
|
|
|
486
486
|
return [...held];
|
|
487
487
|
if (wanted === "personal" || wanted === "bots")
|
|
488
488
|
return held.filter((one) => listedHolds(one, "messages") && isBotProvider(one.provider) === (wanted === "bots"));
|
|
489
|
+
if (wanted === "documents")
|
|
490
|
+
return held.filter((one) => listedHolds(one, "documents") || isDocumentAccount(one));
|
|
489
491
|
if (isKind(wanted))
|
|
490
492
|
return held.filter((one) => listedHolds(one, wanted));
|
|
491
493
|
const recorded = context.profiles[wanted];
|
|
@@ -496,6 +498,22 @@ var accountsOfWord = /* @__PURE__ */ __name((word, held, context) => {
|
|
|
496
498
|
return storedAs(held, { provider, account: "" });
|
|
497
499
|
return held.filter((one) => one.provider === provider);
|
|
498
500
|
}, "accountsOfWord");
|
|
501
|
+
var isDocumentAccount = /* @__PURE__ */ __name(({ stored }) => stored !== void 0 && isDocumentAccountProvider(stored.provider), "isDocumentAccount");
|
|
502
|
+
var choices = /* @__PURE__ */ __name((held) => {
|
|
503
|
+
const kinds = held.flatMap((one) => one.kinds ?? (one.kind ? [one.kind] : []));
|
|
504
|
+
const messengers = held.filter((one) => listedHolds(one, "messages"));
|
|
505
|
+
const providers2 = held.flatMap(({ stored, provider }) => stored?.provider === ADDED_PROVIDER ? [] : [stored?.provider ?? provider]);
|
|
506
|
+
return [
|
|
507
|
+
.../* @__PURE__ */ new Set([
|
|
508
|
+
"all",
|
|
509
|
+
...messengers.some((one) => !isBotProvider(one.provider)) ? ["personal"] : [],
|
|
510
|
+
...messengers.some((one) => isBotProvider(one.provider)) ? ["bots"] : [],
|
|
511
|
+
...kinds,
|
|
512
|
+
...held.some(isDocumentAccount) ? ["documents"] : [],
|
|
513
|
+
...providers2
|
|
514
|
+
])
|
|
515
|
+
].join(", ");
|
|
516
|
+
}, "choices");
|
|
499
517
|
var keyOf = /* @__PURE__ */ __name(({ provider, account }) => `${provider}\0${account}`, "keyOf");
|
|
500
518
|
var sourceOf2 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "sourceOf");
|
|
501
519
|
var sameAs = /* @__PURE__ */ __name((key) => (one) => one.provider === key.provider && one.account === key.account, "sameAs");
|
|
@@ -506,7 +524,8 @@ var entriesOfList = /* @__PURE__ */ __name((value, context) => {
|
|
|
506
524
|
const colon = item.indexOf(":");
|
|
507
525
|
if (colon === -1) {
|
|
508
526
|
try {
|
|
509
|
-
|
|
527
|
+
const accounts = accountsOfWord(item, held, context);
|
|
528
|
+
entries.push({ entry: item, accounts, ...accounts.length === 0 && !group ? { holds: choices(held) } : {} });
|
|
510
529
|
} catch (error) {
|
|
511
530
|
if (!group || !(error instanceof CliError))
|
|
512
531
|
throw error;
|
|
@@ -535,8 +554,9 @@ var entriesOfList = /* @__PURE__ */ __name((value, context) => {
|
|
|
535
554
|
for (const item of itemsOf(value))
|
|
536
555
|
entry(item);
|
|
537
556
|
const { only } = context;
|
|
538
|
-
return entries.map(({ entry: entry2, accounts }) => ({
|
|
557
|
+
return entries.map(({ entry: entry2, accounts, holds }) => ({
|
|
539
558
|
entry: entry2,
|
|
559
|
+
...holds === void 0 ? {} : { holds },
|
|
540
560
|
accounts: accounts.filter((one) => only === void 0 || only.has(keyOf(one))).map(({ provider, account, kind, kinds }) => ({
|
|
541
561
|
provider,
|
|
542
562
|
account,
|
|
@@ -580,12 +600,14 @@ var fitting = /* @__PURE__ */ __name((entries, kinds, what, reasonOf = (kind) =>
|
|
|
580
600
|
const other = known[0];
|
|
581
601
|
skipped.push(other?.kind ? { source: entry, code: "validation_error", reason: reasonOf(other.kind) } : unknown2.length ? { source: entry, code: "not_found", reason: UNKNOWN_PROVIDER } : { source: entry, code: "not_found", reason: "no account in the store" });
|
|
582
602
|
}
|
|
583
|
-
if (chosen.size === 0)
|
|
584
|
-
|
|
603
|
+
if (chosen.size === 0) {
|
|
604
|
+
const words = entries.length === 1 ? entries[0]?.holds : void 0;
|
|
605
|
+
fail2(`--source names nothing ${what} reads: ${skipped.map(({ source, reason }) => `${source} (${reason})`).join(", ")}` + (words === void 0 ? "" : ` \u2014 the store holds ${words}`));
|
|
606
|
+
}
|
|
585
607
|
return { accounts: [...chosen.values()], skipped };
|
|
586
608
|
}, "fitting");
|
|
587
609
|
|
|
588
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
610
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
|
|
589
611
|
var REPORTER_SQL = "(SELECT provider || ':' || external_id FROM accounts r WHERE r.id = links.account_id) AS reporter";
|
|
590
612
|
var sourceOf3 = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
591
613
|
const reporter = row.account_id == null ? void 0 : "reporter" in row ? row.reporter : database.prepare("SELECT provider || ':' || external_id AS key FROM accounts WHERE id = ?").get(Number(row.account_id))?.key;
|
|
@@ -595,7 +617,7 @@ var sourceOf3 = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
|
595
617
|
};
|
|
596
618
|
}, "sourceOf");
|
|
597
619
|
|
|
598
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
620
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
599
621
|
var LINK_KINDS = [
|
|
600
622
|
"links-to",
|
|
601
623
|
"blocked-by",
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
alive
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VN7TKMOW.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/background/lock.js
|
|
15
15
|
import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
16
16
|
import { dirname, join } from "node:path";
|
|
17
17
|
var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
|
|
@@ -2,27 +2,27 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
validateVector
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JXSEH64A.js";
|
|
6
6
|
import {
|
|
7
7
|
meaningFloor
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GCUOZ2OA.js";
|
|
9
9
|
import {
|
|
10
10
|
RRF_K,
|
|
11
11
|
plainQuery
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Q5LUGY2V.js";
|
|
13
13
|
import {
|
|
14
14
|
MESSAGE_PARSING
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-L2TURFT6.js";
|
|
16
16
|
import {
|
|
17
17
|
normalize
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4OAR7BGU.js";
|
|
19
19
|
import {
|
|
20
20
|
MEETING_FIELD_NAMES,
|
|
21
21
|
formatMeetingReference,
|
|
22
22
|
liftMeetingFields,
|
|
23
23
|
parseMeetingReference,
|
|
24
24
|
refreshMeetingIndex
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-TMYZKDQ7.js";
|
|
26
26
|
import {
|
|
27
27
|
implicitTextTerms,
|
|
28
28
|
parseLucene,
|
|
@@ -35,10 +35,10 @@ import {
|
|
|
35
35
|
__name
|
|
36
36
|
} from "./chunk-ZVVMGPBJ.js";
|
|
37
37
|
|
|
38
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
|
|
39
39
|
import { createHash } from "node:crypto";
|
|
40
40
|
|
|
41
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
42
42
|
var words = /* @__PURE__ */ __name((text) => normalize(text).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
43
43
|
var joinedHyphens = /* @__PURE__ */ __name((text) => (normalize(text).match(new RegExp("(?<![:\\p{L}\\p{N}-])\\p{L}[\\p{L}\\p{N}]*(?:-\\p{L}[\\p{L}\\p{N}]*)+", "gu")) ?? []).map((word) => word.replaceAll("-", "")), "joinedHyphens");
|
|
44
44
|
var scaffolding = new Set(words("what which how many much who where when is are was were do does did can could should we the a an for of to under from in on at has have \u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043A\u0430\u043A\u043E\u0439 \u043A\u0430\u043A\u0430\u044F \u043A\u0430\u043A\u0438\u0435 \u043A\u0430\u043A\u043E\u0435 \u043A\u0442\u043E \u043A\u043E\u043C\u0443 \u043A\u0435\u043C \u0433\u0434\u0435 \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043A \u0447\u0442\u043E \u0432\u043E \u043F\u043E \u043D\u0430 \u0432 \u043A \u0441 \u0443 \u0447\u0435\u0440\u0435\u0437 \u043B\u0438 \u0434\u043E\u043B\u0436\u0435\u043D \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0443\u0436\u043D\u043E \u0438\u0434\u0451\u0442 \u0438\u0434\u0435\u0442 \u043C\u043E\u0436\u043D\u043E \u043C\u043E\u0436\u0435\u0442 \u043C\u043E\u0433\u0443\u0442"));
|
|
@@ -175,7 +175,7 @@ var questionLookup = /* @__PURE__ */ __name((text) => {
|
|
|
175
175
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
176
176
|
}, "questionLookup");
|
|
177
177
|
|
|
178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
179
179
|
var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
|
|
180
180
|
const { project, tag, topic, ...input } = request;
|
|
181
181
|
input.signal?.throwIfAborted();
|
|
@@ -222,7 +222,7 @@ var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, opt
|
|
|
222
222
|
return { ...result, selection };
|
|
223
223
|
}, "searchMeetingHits");
|
|
224
224
|
|
|
225
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
225
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
|
|
226
226
|
var DEPTH = 200;
|
|
227
227
|
var cursorOf = /* @__PURE__ */ __name((value, key) => {
|
|
228
228
|
if (value === void 0)
|