@wirecat/zoom-cli 0.64.0 → 0.66.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/answer-entities.d.ts +13 -0
- package/dist/answer-entities.d.ts.map +1 -1
- package/dist/answer-entities.js +5 -0
- package/dist/answer-entities.js.map +1 -1
- package/dist/answers.d.ts +8 -0
- package/dist/answers.d.ts.map +1 -1
- package/dist/archive-import.d.ts +1 -1
- package/dist/archive-import.d.ts.map +1 -1
- package/dist/archive-import.js +2 -1
- package/dist/archive-import.js.map +1 -1
- package/dist/bin/zm.js +6 -2
- package/dist/bin/zm.js.map +1 -1
- package/dist/bundle/{all-profiles-W2OVBZ7S.js → all-profiles-D5CFH2OK.js} +11 -8
- package/dist/bundle/answer-policy-YAYMKRRD.js +101 -0
- package/dist/bundle/{anthropic-P4BKQNBO.js → anthropic-K2E2JS4S.js} +7 -4
- package/dist/bundle/{app-server-AYUW45ND.js → app-server-TVXDG6HZ.js} +68 -61
- package/dist/bundle/{bun-MNGPTYDQ.js → bun-O4WHGL2F.js} +2 -2
- package/dist/bundle/{bun-sqlite-PTPUSXAO.js → bun-sqlite-HGBEHQI3.js} +6 -3
- package/dist/bundle/{chunk-TYKZCJD7.js → chunk-2T5BOLBS.js} +35 -35
- package/dist/bundle/{chunk-H3DMYF3W.js → chunk-2VPHQFO5.js} +8 -8
- package/dist/bundle/{chunk-JMSKDW5G.js → chunk-2YLNUZ3T.js} +5 -3
- package/dist/bundle/{chunk-AAC6VNSL.js → chunk-3B7L2UX4.js} +3 -3
- package/dist/bundle/{chunk-6NBQJJT6.js → chunk-3WTKZ2ZS.js} +13 -11
- package/dist/bundle/{chunk-H65B6A7Y.js → chunk-3Y2F65AY.js} +8 -8
- package/dist/bundle/{chunk-A2FOW3ZC.js → chunk-5A26IBAR.js} +162 -107
- package/dist/bundle/{chunk-BO5YVG3X.js → chunk-5GD2XZ6X.js} +132 -40
- package/dist/bundle/{chunk-7D56BQZL.js → chunk-5HPALDUO.js} +2 -2
- package/dist/bundle/{chunk-5FN4Q5H5.js → chunk-62GOOZO3.js} +8 -13
- package/dist/bundle/{chunk-J25UNZIL.js → chunk-67RNZGAG.js} +12 -10
- package/dist/bundle/{chunk-3AAO5N4L.js → chunk-6GSJLNP4.js} +2 -2
- package/dist/bundle/{chunk-UNO4G5NX.js → chunk-6TIKPRVQ.js} +11 -7
- package/dist/bundle/{chunk-HQHUPTZR.js → chunk-756RS4PH.js} +1393 -712
- package/dist/bundle/{chunk-R4NTPYXZ.js → chunk-7JMBEPW2.js} +2 -2
- package/dist/bundle/{chunk-HIGFBTEI.js → chunk-7KCTPGOF.js} +2 -2
- package/dist/bundle/{chunk-TJODNJKE.js → chunk-7PF56S6U.js} +33 -22
- package/dist/bundle/{chunk-LEQCRVPD.js → chunk-7SQJCKR6.js} +1 -1
- package/dist/bundle/{chunk-BWPKSUXW.js → chunk-A2SCXNA7.js} +4518 -402
- package/dist/bundle/{chunk-QK54GOGE.js → chunk-AU4JHT3R.js} +7 -9
- package/dist/bundle/{chunk-63MRRNDL.js → chunk-AZ7ICKIA.js} +8 -8
- package/dist/bundle/chunk-BLT3LR3U.js +34 -0
- package/dist/bundle/{chunk-UABUBDYB.js → chunk-BXSAROQP.js} +2 -2
- package/dist/bundle/{chunk-Q3EDUZ5R.js → chunk-CAW6IMFZ.js} +25 -18
- package/dist/bundle/{chunk-UCPL55YP.js → chunk-CR4CXOLX.js} +17 -17
- package/dist/bundle/{chunk-SMT6SFBK.js → chunk-CZ4KLUJG.js} +2 -2
- package/dist/bundle/{chunk-COTC7HF3.js → chunk-D72URWJE.js} +1 -39
- package/dist/bundle/{chunk-X6M5DK66.js → chunk-EXXM4RNI.js} +14 -12
- package/dist/bundle/{chunk-CZKV4USJ.js → chunk-FWFFQV4D.js} +59 -4
- package/dist/bundle/{chunk-JJZAGKUK.js → chunk-GHAPWKG2.js} +5 -3
- package/dist/bundle/{chunk-JRPYHDCO.js → chunk-GI6QVSCW.js} +4 -4
- package/dist/bundle/{chunk-Y7TWNMTW.js → chunk-GKXFL35E.js} +198 -65
- package/dist/bundle/{chunk-K6OSD6DG.js → chunk-GNGBG5BT.js} +81 -35
- package/dist/bundle/{chunk-RJLNVHIU.js → chunk-H5ZVZAOD.js} +3 -3
- package/dist/bundle/{chunk-XZSQLVED.js → chunk-HKQWV3KT.js} +5 -3
- package/dist/bundle/chunk-IDWHJ35K.js +166 -0
- package/dist/bundle/{chunk-JM43EKTY.js → chunk-IKQ73INC.js} +1928 -679
- package/dist/bundle/chunk-ILHTNOIV.js +23 -0
- package/dist/bundle/{chunk-OPP5CWAX.js → chunk-J4EZL6HY.js} +61 -56
- package/dist/bundle/{chunk-54UEJGYB.js → chunk-JX3V35A5.js} +3 -3
- package/dist/bundle/{chunk-7VJIKJNW.js → chunk-K5CIN4JP.js} +8 -8
- package/dist/bundle/{chunk-KJCCT3QY.js → chunk-KDKFGQWG.js} +17 -14
- package/dist/bundle/{chunk-RK3JBC4U.js → chunk-L7IK4FOA.js} +2 -2
- package/dist/bundle/{chunk-7EOW47PV.js → chunk-LN2S3RA3.js} +4 -4
- package/dist/bundle/{chunk-I5QX2HAT.js → chunk-N5JRRBEG.js} +214 -107
- package/dist/bundle/chunk-N67BLTBV.js +2443 -0
- package/dist/bundle/{chunk-23LOMA2I.js → chunk-N6JMJN5A.js} +48 -26
- package/dist/bundle/{chunk-CZFV6XTW.js → chunk-NMQUCHTX.js} +3 -3
- package/dist/bundle/{chunk-TJH5IQVZ.js → chunk-NO24PJNW.js} +1 -1
- package/dist/bundle/{chunk-UFI5SX3F.js → chunk-O5FKJV3T.js} +14 -12
- package/dist/bundle/{chunk-IIP4J3PD.js → chunk-P2G4KGTR.js} +94 -12
- package/dist/bundle/{chunk-OWXMQVVN.js → chunk-P2SYZNM4.js} +1 -1
- package/dist/bundle/{chunk-EQYPTGCT.js → chunk-P3XVLHIQ.js} +6 -4
- package/dist/bundle/chunk-PQLBPYJR.js +46 -0
- package/dist/bundle/{chunk-5BCNJB2A.js → chunk-Q47C3QZW.js} +675 -507
- package/dist/bundle/{chunk-IIGXCYEL.js → chunk-QAPU2JNO.js} +13 -13
- package/dist/bundle/{chunk-WFIJOFS5.js → chunk-QJHRYUMJ.js} +1 -1
- package/dist/bundle/{chunk-YNYMWXXH.js → chunk-QV5ZGRK3.js} +40 -11
- package/dist/bundle/{chunk-3IMEAZIM.js → chunk-RMKHYUHK.js} +9 -20
- package/dist/bundle/{chunk-AF4HONAZ.js → chunk-RO44LANT.js} +6449 -4436
- package/dist/bundle/{chunk-3DGQJASQ.js → chunk-S4GDDO5S.js} +1 -1
- package/dist/bundle/chunk-S6S3KVJI.js +45 -0
- package/dist/bundle/{chunk-SJIBJQJN.js → chunk-SU4WPBQE.js} +44 -14
- package/dist/bundle/{chunk-7NDSBTKR.js → chunk-TFDVFD4N.js} +91 -2546
- package/dist/bundle/{chunk-HQHYPKSU.js → chunk-TMVKZMDO.js} +54 -37
- package/dist/bundle/{chunk-PBJY5VR6.js → chunk-TN7K66PU.js} +1 -1
- package/dist/bundle/{chunk-ZW4N73FO.js → chunk-TUEEXECZ.js} +5 -5
- package/dist/bundle/{chunk-H5LLZ5XA.js → chunk-U3ZUT557.js} +1 -1
- package/dist/bundle/{chunk-4XVRA6P5.js → chunk-U4RVOSX3.js} +1 -1
- package/dist/bundle/{chunk-5YLR24D5.js → chunk-UOIXBEFR.js} +13 -6
- package/dist/bundle/chunk-UYV2JGLQ.js +34 -0
- package/dist/bundle/{chunk-7SWNZ44U.js → chunk-XFUID5NY.js} +4 -4
- package/dist/bundle/{chunk-BMYZWBAX.js → chunk-XWDSEJWP.js} +6 -6
- package/dist/bundle/{chunk-JZKNHA44.js → chunk-Y3EIK4XW.js} +1 -1
- package/dist/bundle/{chunk-24WCZURP.js → chunk-YLEQN6PB.js} +5 -3
- package/dist/bundle/{chunk-2UONVSJQ.js → chunk-Z6U3MEGJ.js} +2 -2
- package/dist/bundle/{chunk-L4JGVSBN.js → chunk-ZKTXUDSR.js} +33 -28
- package/dist/bundle/{chunk-FSYO3PUW.js → chunk-ZNFPDTQM.js} +2 -2
- package/dist/bundle/{chunk-C3RRIJ5C.js → chunk-ZTL7ANSG.js} +9 -42
- package/dist/bundle/{cli-Y2ZO3D5U.js → cli-HWQIL2AC.js} +124 -73
- package/dist/bundle/command-contract-CQFJXWX6.js +40 -0
- package/dist/bundle/config-R2Y6ZVQS.js +83 -0
- package/dist/bundle/{decode-GO6GAYH2.js → decode-XPAPPUGE.js} +6 -3
- package/dist/bundle/dispatch-AKVJGP2S.js +412 -0
- package/dist/bundle/{dist-MIJKAGXW.js → dist-LDIUQBM7.js} +23 -16
- package/dist/bundle/{echarts-NWK7LALR.js → echarts-FMACRZQC.js} +2 -2
- package/dist/bundle/{embed-2DOSN4DV.js → embed-LK45GRQ7.js} +7 -4
- package/dist/bundle/{embedder-3Q3C2WKC.js → embedder-QPBC5XBY.js} +12 -9
- package/dist/bundle/failure-7OULAOWQ.js +25 -0
- package/dist/bundle/first-run-J5FG773Q.js +28 -0
- package/dist/bundle/first-screen-MULOBUHN.js +38 -0
- package/dist/bundle/{folders-RSWEBHDZ.js → folders-RHPUVMDI.js} +5 -2
- package/dist/bundle/{instructions-M3FZPQVI.js → instructions-E5FXYCWF.js} +1 -1
- package/dist/bundle/{main-R77BPRRS.js → main-FJHE5YHU.js} +28 -22
- package/dist/bundle/{mcp-YJEQYYTR.js → mcp-MNI62HHE.js} +5 -3
- package/dist/bundle/{meetings-IV4Y4WRH.js → meetings-MYIDGYGW.js} +19 -6
- package/dist/bundle/{node-I3GEHYGL.js → node-4SNKUPXT.js} +2 -2
- package/dist/bundle/{node-sqlite-W6MR2TVQ.js → node-sqlite-SYZUTVPC.js} +12 -3
- package/dist/bundle/{oauth-M6YL4QXP.js → oauth-QPS5VTN6.js} +8 -5
- package/dist/bundle/{open-2VITLJAN.js → open-OVCASRSJ.js} +6 -2
- package/dist/bundle/openai-VEVT7D7L.js +25 -0
- package/dist/bundle/{output-file-XJJ3XMLQ.js → output-file-K5JEL33Z.js} +7 -4
- package/dist/bundle/{process-UBA4L4B2.js → process-HQZOTT6U.js} +1 -1
- package/dist/bundle/{program-5R5MRXUM.js → program-A546WC4F.js} +120 -112
- package/dist/bundle/{prompt-AVIXIM7Z.js → prompt-CYBKP7S5.js} +6 -3
- package/dist/bundle/{recognize-DJKTJOYU.js → recognize-3H3YDCFI.js} +5 -2
- package/dist/bundle/{remote-S3DTNYRP.js → remote-VAYVTJBS.js} +8 -5
- package/dist/bundle/{rerank-FMCDP6VF.js → rerank-XA4GA5PS.js} +8 -5
- package/dist/bundle/{run-log-T4MV2VEH.js → run-log-XAFHMI3F.js} +59 -54
- package/dist/bundle/{serve-5SGFJFMC.js → serve-KGHEDUHB.js} +18 -14
- package/dist/bundle/server-IDNSJXF3.js +71 -0
- package/dist/bundle/{server-PCMCY7WK.js → server-ZYTSMDTP.js} +47 -42
- package/dist/bundle/{services-SKRQ2POT.js → services-ZHMZC2OQ.js} +106 -28
- package/dist/bundle/{speech-FSDICIKO.js → speech-7CJEFKM3.js} +14 -11
- package/dist/bundle/{state-KPUSPWO6.js → state-U6KSYVOH.js} +7 -4
- package/dist/bundle/{store-W7LFPKG2.js → store-DJE3LAEG.js} +17 -13
- package/dist/bundle/{store-7MP2ZGQ7.js → store-WS4CQGYU.js} +40 -18
- package/dist/bundle/store-connection-T5WGOOPH.js +81 -0
- package/dist/bundle/store-maintenance-command-5CBQCEQQ.js +61 -0
- package/dist/bundle/{streaming-Q44ESD3E.js → streaming-QMHH7L6N.js} +7 -4
- package/dist/bundle/{tokens-TAFCHANI.js → tokens-PWQ56OXO.js} +7 -4
- package/dist/bundle/zm.js +150 -1
- package/dist/local-transcription.d.ts.map +1 -1
- package/dist/local-transcription.js +1 -0
- package/dist/local-transcription.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -4
- package/dist/bundle/answer-policy-HOA43GNA.js +0 -96
- package/dist/bundle/chunk-JRPAZ2WD.js +0 -3635
- package/dist/bundle/command-contract-DGTZIH2F.js +0 -38
- package/dist/bundle/config-N2UHDKGG.js +0 -78
- package/dist/bundle/first-run-S75VKIT3.js +0 -23
- package/dist/bundle/first-screen-DQNRT6GH.js +0 -36
- package/dist/bundle/openai-OG6B3JCU.js +0 -22
- package/dist/bundle/server-EYGZLKKQ.js +0 -66
- package/dist/bundle/store-connection-3HNZFJC4.js +0 -76
- package/dist/bundle/store-maintenance-command-6WBLTUZP.js +0 -55
- /package/dist/bundle/{chunk-WJWLHLQ7.js → chunk-NUN6OGOV.js} +0 -0
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
AUDIT_MIN_SCORE,
|
|
5
5
|
throughWrapper
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RO44LANT.js";
|
|
7
7
|
import {
|
|
8
8
|
Command,
|
|
9
9
|
InvalidArgumentError,
|
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
renderAnswer,
|
|
17
17
|
sharedCommand,
|
|
18
18
|
snakeKeys
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-A2SCXNA7.js";
|
|
20
20
|
import {
|
|
21
21
|
readOnlyLockOf
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-Z6U3MEGJ.js";
|
|
23
23
|
import {
|
|
24
24
|
formatReference
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-N5JRRBEG.js";
|
|
26
26
|
import {
|
|
27
27
|
EVENT_QUERY,
|
|
28
28
|
MEETING_PROJECT_EVIDENCE_QUERY,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
readMeetingProjectEvidence,
|
|
46
46
|
validateMeetingHitSearch,
|
|
47
47
|
validateMeetingPassage
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-Q47C3QZW.js";
|
|
49
49
|
import {
|
|
50
50
|
OPERATORS_BY_TYPE,
|
|
51
51
|
QUERY_LIMITS,
|
|
@@ -54,14 +54,14 @@ import {
|
|
|
54
54
|
fieldsHelp,
|
|
55
55
|
fieldsNamed,
|
|
56
56
|
parseLucene,
|
|
57
|
+
queryDescription,
|
|
57
58
|
queryError,
|
|
58
59
|
queryFieldsOf,
|
|
59
60
|
timezoneOf,
|
|
60
61
|
validateQuery,
|
|
61
62
|
zonedMoment
|
|
62
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-SU4WPBQE.js";
|
|
63
64
|
import {
|
|
64
|
-
CliError,
|
|
65
65
|
array,
|
|
66
66
|
boolean,
|
|
67
67
|
check,
|
|
@@ -73,12 +73,15 @@ import {
|
|
|
73
73
|
safeParse,
|
|
74
74
|
strictObject,
|
|
75
75
|
string
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-N67BLTBV.js";
|
|
77
|
+
import {
|
|
78
|
+
CliError
|
|
79
|
+
} from "./chunk-S6S3KVJI.js";
|
|
77
80
|
import {
|
|
78
81
|
__name
|
|
79
82
|
} from "./chunk-ZVVMGPBJ.js";
|
|
80
83
|
|
|
81
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
84
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
82
85
|
var COMMAND_NEEDS = {
|
|
83
86
|
"account update": ["updateProfile", "change the profile"],
|
|
84
87
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -128,7 +131,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
128
131
|
return group;
|
|
129
132
|
}, "hideNever");
|
|
130
133
|
|
|
131
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
132
135
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
133
136
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
134
137
|
const zone = timezoneOf();
|
|
@@ -214,7 +217,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
214
217
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
215
218
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
216
219
|
|
|
217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
220
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
218
221
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
219
222
|
command.allowUnknownOption();
|
|
220
223
|
const parse = command.parseOptions.bind(command);
|
|
@@ -234,7 +237,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
234
237
|
return command;
|
|
235
238
|
}, "queryWordsAfterOptions");
|
|
236
239
|
|
|
237
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
240
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
238
241
|
var count = /* @__PURE__ */ __name((value) => {
|
|
239
242
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
240
243
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -276,7 +279,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
276
279
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
277
280
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
278
281
|
|
|
279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
282
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
280
283
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
281
284
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
282
285
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -299,7 +302,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
299
302
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
300
303
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
301
304
|
|
|
302
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
305
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
303
306
|
var integer3 = /* @__PURE__ */ __name((text) => {
|
|
304
307
|
if (!/^[1-9]\d*$/.test(text) || !Number.isSafeInteger(Number(text)))
|
|
305
308
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -402,6 +405,18 @@ ${deps.importHelp}`);
|
|
|
402
405
|
throw new MeetingError("validation_error", "file account differs from selected account");
|
|
403
406
|
print(await importFiles(files, deps.store, deps.now?.()), command);
|
|
404
407
|
});
|
|
408
|
+
output(annotate(group.command("repair"), {
|
|
409
|
+
effects: LOCAL_WRITE,
|
|
410
|
+
output: { entity: "meeting_repair" }
|
|
411
|
+
}).description("preview filling in what older builds left out of stored transcripts (their language); --yes stores it")).option("--yes", "store the detected languages; otherwise only preview").action(async (opts, command) => {
|
|
412
|
+
if (!deps.store.fillTranscriptLanguages)
|
|
413
|
+
throw new MeetingError("configuration_error", "this store cannot fill transcript languages");
|
|
414
|
+
print(await deps.store.fillTranscriptLanguages({
|
|
415
|
+
accountId: deps.accountId,
|
|
416
|
+
apply: opts.yes === true,
|
|
417
|
+
now: deps.now?.() ?? Date.now()
|
|
418
|
+
}), command);
|
|
419
|
+
});
|
|
405
420
|
const eventList = queryWordsAfterOptions(annotate(program.command("events").description("the owner's stored events"), {
|
|
406
421
|
effects: { remote: "none", local: "none" }
|
|
407
422
|
}).command("list")).description("list stored events").argument("[query...]", "event id, origin or time fields that narrow the list").addHelpText("after", `
|
|
@@ -419,13 +434,14 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
419
434
|
}, "addMeetingCommandsDefinition");
|
|
420
435
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
421
436
|
|
|
422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
437
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
423
438
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
439
|
+
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
424
440
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
425
441
|
const query = defineQuery(registry);
|
|
426
442
|
annotate(command, { query, output: { entity: registry.entity } });
|
|
427
443
|
const shown = askable(query);
|
|
428
|
-
queryWordsAfterOptions(command).argument("[query...]", shown.length > 0 ?
|
|
444
|
+
queryWordsAfterOptions(command).argument("[query...]", shown.length > 0 ? QUERY_ARGUMENT : "field:value terms; this list filters by none yet");
|
|
429
445
|
if (shown.length > 0)
|
|
430
446
|
command.addHelpText("after", `
|
|
431
447
|
${fieldsHelp({ ...query, fields: shown }, LIST_QUERY_GUIDE)}`);
|
|
@@ -485,12 +501,10 @@ var pagedList = /* @__PURE__ */ __name((command, { limit, page, all }, { items,
|
|
|
485
501
|
page
|
|
486
502
|
}), "pagedList");
|
|
487
503
|
var askable = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "askable");
|
|
488
|
-
var queryArgument = /* @__PURE__ */ __name((registry) =>
|
|
489
|
-
|
|
490
|
-
return optional(pipe(string(), maxLength(QUERY_LIMITS.bytes), description(fields.length === 0 ? "field:value terms; this list filters by none yet, so any term is refused" : `${registry.backend === "native" ? "field:value terms joined by AND that narrow the list" : "field:value terms that narrow the list (Lucene: AND OR NOT, [a TO b], > <)"}; fields: ${fields.map((field) => field.name).join(", ")}; e.g. ${fields[0]?.example ?? ""}`)));
|
|
491
|
-
}, "queryArgument");
|
|
504
|
+
var queryArgument = /* @__PURE__ */ __name((registry) => optional(pipe(string(), maxLength(QUERY_LIMITS.bytes), description(queryDescription(registry)))), "queryArgument");
|
|
505
|
+
var negatableOf = /* @__PURE__ */ __name((registry) => askable(registry).filter((field) => field.negatable).map((field) => field.name), "negatableOf");
|
|
492
506
|
var nativeTerms = /* @__PURE__ */ __name((ast, command) => new Map([...nativeTermLists(ast, command)].map(([field, [node]]) => [field, node])), "nativeTerms");
|
|
493
|
-
var nativeTermLists = /* @__PURE__ */ __name((ast, command, repeatable = []) => {
|
|
507
|
+
var nativeTermLists = /* @__PURE__ */ __name((ast, command, repeatable = [], negatable = []) => {
|
|
494
508
|
const terms = /* @__PURE__ */ new Map();
|
|
495
509
|
if (!ast)
|
|
496
510
|
return terms;
|
|
@@ -498,8 +512,14 @@ var nativeTermLists = /* @__PURE__ */ __name((ast, command, repeatable = []) =>
|
|
|
498
512
|
const add = /* @__PURE__ */ __name((node) => {
|
|
499
513
|
if (node.kind === "boolean") {
|
|
500
514
|
for (const clause of node.clauses) {
|
|
515
|
+
const excluded = clause.occur === "must_not" && clause.node.kind === "predicate" && negatable.includes(clause.node.field);
|
|
516
|
+
if (excluded && clause.node.kind === "predicate") {
|
|
517
|
+
const key = `-${clause.node.field}`;
|
|
518
|
+
terms.set(key, [...terms.get(key) ?? [], clause.node]);
|
|
519
|
+
continue;
|
|
520
|
+
}
|
|
501
521
|
if (clause.occur !== "must")
|
|
502
|
-
queryError("query.unsupported-placement", clause.node.span, "this list takes only field:value terms joined by AND", context);
|
|
522
|
+
queryError("query.unsupported-placement", clause.node.span, negatable.length ? `this list takes only field:value terms joined by AND, and -field:value for ${negatable.join(", ")}` : "this list takes only field:value terms joined by AND", context);
|
|
503
523
|
add(clause.node);
|
|
504
524
|
}
|
|
505
525
|
return;
|
|
@@ -555,7 +575,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
555
575
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
556
576
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
557
577
|
|
|
558
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
559
579
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
560
580
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
561
581
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -564,7 +584,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
564
584
|
var withPaging = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many to show", positiveCount("--limit")).option("--page <n>", "which page, starting at 1", positiveCount("--page")).option("--all", "every row, no paging"), "withPaging");
|
|
565
585
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
566
586
|
|
|
567
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
568
588
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
569
589
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
570
590
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -826,7 +846,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
826
846
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
827
847
|
}), "sessionAnswer");
|
|
828
848
|
|
|
829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
849
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
830
850
|
import { createHash } from "node:crypto";
|
|
831
851
|
import { chmodSync, lstatSync, mkdirSync, rmSync } from "node:fs";
|
|
832
852
|
import { createConnection, createServer } from "node:net";
|
|
@@ -1047,7 +1067,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
|
|
|
1047
1067
|
}, () => finish({ error: stopped() }));
|
|
1048
1068
|
}), "relayCommand");
|
|
1049
1069
|
|
|
1050
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
1051
1071
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
1052
1072
|
close: /* @__PURE__ */ __name(async () => {
|
|
1053
1073
|
}, "close"),
|
|
@@ -1151,6 +1171,7 @@ export {
|
|
|
1151
1171
|
createMeetingSearchCommand,
|
|
1152
1172
|
addMeetingCommands,
|
|
1153
1173
|
LIST_QUERY_GUIDE,
|
|
1174
|
+
QUERY_ARGUMENT,
|
|
1154
1175
|
withQuery,
|
|
1155
1176
|
unfilteredQuery,
|
|
1156
1177
|
commandPath,
|
|
@@ -1159,6 +1180,7 @@ export {
|
|
|
1159
1180
|
pageOf,
|
|
1160
1181
|
pagedList,
|
|
1161
1182
|
queryArgument,
|
|
1183
|
+
negatableOf,
|
|
1162
1184
|
nativeTerms,
|
|
1163
1185
|
nativeTermLists,
|
|
1164
1186
|
queryTerms,
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
unit
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AZ7ICKIA.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-S6S3KVJI.js";
|
|
9
9
|
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.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
|
|
14
14
|
import { setTimeout } from "node:timers/promises";
|
|
15
15
|
var OPENAI_URL = "https://api.openai.com/v1";
|
|
16
16
|
var OPENAI_MODELS = {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
|
|
8
8
|
var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
|
|
9
9
|
`The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
|
|
10
10
|
"Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
|
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
installerOf,
|
|
5
4
|
updateCommand
|
|
6
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RMKHYUHK.js";
|
|
7
6
|
import {
|
|
8
7
|
QUESTIONS,
|
|
9
8
|
readSetupAnswers,
|
|
10
9
|
unanswered,
|
|
11
10
|
writeSetupAnswers
|
|
12
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GI6QVSCW.js";
|
|
13
12
|
import {
|
|
14
13
|
DEFAULT_STEMMERS,
|
|
15
14
|
LANGUAGES
|
|
16
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-K5CIN4JP.js";
|
|
17
16
|
import {
|
|
18
17
|
sharedConfigPath
|
|
19
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6TIKPRVQ.js";
|
|
20
19
|
import {
|
|
21
20
|
storePath
|
|
22
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-L7IK4FOA.js";
|
|
22
|
+
import {
|
|
23
|
+
installerOf
|
|
24
|
+
} from "./chunk-ILHTNOIV.js";
|
|
23
25
|
import {
|
|
24
26
|
__name
|
|
25
27
|
} from "./chunk-ZVVMGPBJ.js";
|
|
26
28
|
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/first-run.js
|
|
28
30
|
import { spawnSync } from "node:child_process";
|
|
29
31
|
import { accessSync, constants, realpathSync } from "node:fs";
|
|
30
32
|
import { delimiter, join } from "node:path";
|
|
@@ -82,7 +84,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
|
|
|
82
84
|
return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
|
|
83
85
|
}, "suggested");
|
|
84
86
|
var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
|
|
85
|
-
const { openStore } = await import("./store-
|
|
87
|
+
const { openStore } = await import("./store-DJE3LAEG.js");
|
|
86
88
|
const store = await openStore({ env });
|
|
87
89
|
let rebuild = false;
|
|
88
90
|
try {
|
|
@@ -111,8 +113,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
111
113
|
if (!rebuild)
|
|
112
114
|
return;
|
|
113
115
|
const [{ openCache }, { buildStems }] = await Promise.all([
|
|
114
|
-
import("./open-
|
|
115
|
-
import("./store-maintenance-command-
|
|
116
|
+
import("./open-OVCASRSJ.js"),
|
|
117
|
+
import("./store-maintenance-command-5CBQCEQQ.js")
|
|
116
118
|
]);
|
|
117
119
|
const database = await openCache(storePath(env));
|
|
118
120
|
try {
|
|
@@ -124,7 +126,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
124
126
|
var askTools = /* @__PURE__ */ __name(async (run) => {
|
|
125
127
|
const { command, env, io } = run;
|
|
126
128
|
const installed = run.installed ?? ((name) => onPath(name, env));
|
|
127
|
-
const { WIRECAT_TOOLS } = await import("./first-screen-
|
|
129
|
+
const { WIRECAT_TOOLS } = await import("./first-screen-MULOBUHN.js");
|
|
128
130
|
const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
|
|
129
131
|
const missing = others.filter((tool) => !installed(tool.command));
|
|
130
132
|
io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
|
|
@@ -197,7 +199,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
|
|
|
197
199
|
contentLanguages: start.contentLanguages,
|
|
198
200
|
all: start.path[0] === "setup",
|
|
199
201
|
io: {
|
|
200
|
-
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-
|
|
202
|
+
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-CYBKP7S5.js")).readSecret(prompt, { input, echo: true }), "ask"),
|
|
201
203
|
say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
|
|
202
204
|
`), "say")
|
|
203
205
|
}
|
|
@@ -2,9 +2,18 @@ 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-5HPALDUO.js";
|
|
6
|
+
import {
|
|
7
|
+
looksLikeReference,
|
|
8
|
+
parseReference,
|
|
9
|
+
providerLabel,
|
|
10
|
+
providerNamed
|
|
11
|
+
} from "./chunk-N5JRRBEG.js";
|
|
12
|
+
import {
|
|
13
|
+
resolvePaths,
|
|
14
|
+
writeSecurely
|
|
15
|
+
} from "./chunk-TFDVFD4N.js";
|
|
6
16
|
import {
|
|
7
|
-
CliError,
|
|
8
17
|
array,
|
|
9
18
|
getDotPath,
|
|
10
19
|
integer,
|
|
@@ -17,21 +26,84 @@ import {
|
|
|
17
26
|
pipe,
|
|
18
27
|
record,
|
|
19
28
|
regex,
|
|
20
|
-
resolvePaths,
|
|
21
29
|
safeParse,
|
|
22
|
-
singleLine,
|
|
23
30
|
strictObject,
|
|
24
31
|
string,
|
|
25
32
|
transform,
|
|
26
|
-
unknown
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
33
|
+
unknown
|
|
34
|
+
} from "./chunk-N67BLTBV.js";
|
|
35
|
+
import {
|
|
36
|
+
CliError
|
|
37
|
+
} from "./chunk-S6S3KVJI.js";
|
|
38
|
+
import {
|
|
39
|
+
singleLine,
|
|
40
|
+
visibleControls
|
|
41
|
+
} from "./chunk-UYV2JGLQ.js";
|
|
30
42
|
import {
|
|
31
43
|
__name
|
|
32
44
|
} from "./chunk-ZVVMGPBJ.js";
|
|
33
45
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
46
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/domain/ref-arguments.js
|
|
47
|
+
var TAKES = {
|
|
48
|
+
chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
|
|
49
|
+
message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
|
|
50
|
+
};
|
|
51
|
+
var article = /* @__PURE__ */ __name((word) => /^[aeiou]/.test(word) ? "an" : "a", "article");
|
|
52
|
+
var wrongKind = /* @__PURE__ */ __name((text, kind, takes) => new CliError("validation_error", `${text} names ${article(kind)} ${kind}; this takes ${TAKES[takes]}`, {
|
|
53
|
+
reason: "ref.wrong-kind"
|
|
54
|
+
}), "wrongKind");
|
|
55
|
+
var wrongProvider = /* @__PURE__ */ __name((text, provider, kind) => {
|
|
56
|
+
const entry = providerNamed(provider);
|
|
57
|
+
const command = entry?.command;
|
|
58
|
+
const opens = kind === "entity" ? void 0 : entry?.opens?.[kind];
|
|
59
|
+
const how = command && opens ? `open it with ${command} <profile> ${opens} ${text}` : "open it with its own CLI";
|
|
60
|
+
const label = providerLabel(provider);
|
|
61
|
+
return new CliError("validation_error", `${text} is ${article(label.toLowerCase())} ${label} ${kind}; ${how}`, {
|
|
62
|
+
reason: "ref.wrong-provider"
|
|
63
|
+
});
|
|
64
|
+
}, "wrongProvider");
|
|
65
|
+
var chatReferenceOf = /* @__PURE__ */ __name((text, provider, takes = "chat") => {
|
|
66
|
+
const trimmed = text.trim();
|
|
67
|
+
if (!looksLikeReference(trimmed))
|
|
68
|
+
return void 0;
|
|
69
|
+
const reference = parseReference(trimmed);
|
|
70
|
+
if (reference.type !== "chat" && reference.type !== "message")
|
|
71
|
+
throw wrongKind(trimmed, reference.type, takes);
|
|
72
|
+
if (reference.provider !== provider)
|
|
73
|
+
throw wrongProvider(trimmed, reference.provider, reference.type);
|
|
74
|
+
const found = {
|
|
75
|
+
text: trimmed,
|
|
76
|
+
provider: reference.provider,
|
|
77
|
+
account: reference.account,
|
|
78
|
+
chat: reference.chat,
|
|
79
|
+
...reference.type === "message" ? { message: reference.message } : {}
|
|
80
|
+
};
|
|
81
|
+
return found;
|
|
82
|
+
}, "chatReferenceOf");
|
|
83
|
+
var contactReferenceOf = /* @__PURE__ */ __name((text, provider) => {
|
|
84
|
+
const trimmed = text.trim();
|
|
85
|
+
if (!trimmed.startsWith("contact:"))
|
|
86
|
+
return void 0;
|
|
87
|
+
const reference = parseReference(trimmed);
|
|
88
|
+
if (reference.type !== "contact")
|
|
89
|
+
return void 0;
|
|
90
|
+
if (provider !== void 0 && reference.provider !== provider)
|
|
91
|
+
throw wrongProvider(trimmed, reference.provider, reference.type);
|
|
92
|
+
return reference.id;
|
|
93
|
+
}, "contactReferenceOf");
|
|
94
|
+
var wrongAccount = /* @__PURE__ */ __name((reference, scope, profiles) => {
|
|
95
|
+
const here = scope.account === void 0 ? "the account of this profile is not known yet" : `${scope.profile === void 0 ? "this profile" : `profile ${scope.profile}`} is account ${scope.account}`;
|
|
96
|
+
const others = profiles === void 0 ? "" : `. Profiles signed in to ${reference.account}: ${profiles.length > 0 ? profiles.join(", ") : "none here"}`;
|
|
97
|
+
return new CliError("validation_error", `${reference.text} belongs to account ${reference.account}; ${here}${others}`, { reason: "ref.wrong-account" });
|
|
98
|
+
}, "wrongAccount");
|
|
99
|
+
var ensureAccount = /* @__PURE__ */ __name(async (reference, scope, profilesOn) => {
|
|
100
|
+
if (scope.account !== void 0 && scope.account === reference.account)
|
|
101
|
+
return;
|
|
102
|
+
const profiles = await profilesOn?.(reference.account).catch(() => void 0);
|
|
103
|
+
throw wrongAccount(reference, scope, profiles);
|
|
104
|
+
}, "ensureAccount");
|
|
105
|
+
|
|
106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
35
107
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
36
108
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase(), "foldName");
|
|
37
109
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -45,6 +117,13 @@ var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
|
45
117
|
}, "pickChat");
|
|
46
118
|
var pickPerson = /* @__PURE__ */ __name((reference, people) => {
|
|
47
119
|
const trimmed = reference.trim();
|
|
120
|
+
const contact = contactReferenceOf(trimmed, people.provider);
|
|
121
|
+
if (contact !== void 0) {
|
|
122
|
+
const named = people.get(contact);
|
|
123
|
+
if (named)
|
|
124
|
+
return named;
|
|
125
|
+
throw new CliError("not_found", `no person ${contact} in what this account has seen`);
|
|
126
|
+
}
|
|
48
127
|
const known = people.get(trimmed);
|
|
49
128
|
if (known)
|
|
50
129
|
return known;
|
|
@@ -69,7 +148,7 @@ ${lines}`, { candidates });
|
|
|
69
148
|
}, "ambiguous");
|
|
70
149
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
71
150
|
|
|
72
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
73
152
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
74
153
|
var validateFormattedText = /* @__PURE__ */ __name((formatted) => {
|
|
75
154
|
const { text, spans } = formatted;
|
|
@@ -129,7 +208,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted) => {
|
|
|
129
208
|
};
|
|
130
209
|
}, "visibleFormattedText");
|
|
131
210
|
|
|
132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
133
212
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
134
213
|
var LINK = /https?:\/\/\S+/i;
|
|
135
214
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -317,7 +396,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
317
396
|
}, "nextPoint");
|
|
318
397
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
319
398
|
|
|
320
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
399
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
321
400
|
import { existsSync, readFileSync } from "node:fs";
|
|
322
401
|
import { join } from "node:path";
|
|
323
402
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -461,6 +540,9 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
461
540
|
}, "assign");
|
|
462
541
|
|
|
463
542
|
export {
|
|
543
|
+
chatReferenceOf,
|
|
544
|
+
wrongAccount,
|
|
545
|
+
ensureAccount,
|
|
464
546
|
isId,
|
|
465
547
|
foldName,
|
|
466
548
|
pickChat,
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
wirecatDirectory
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-L7IK4FOA.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-S6S3KVJI.js";
|
|
9
9
|
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.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/speech/models.js
|
|
14
14
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
15
15
|
var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
|
|
16
16
|
var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
|
|
@@ -20,6 +20,7 @@ var MODELS = [
|
|
|
20
20
|
id: "gigaam-v3",
|
|
21
21
|
title: "GigaAM v3, with punctuation",
|
|
22
22
|
languages: "Russian \u2014 the best of the three for Russian",
|
|
23
|
+
language: "ru",
|
|
23
24
|
featureDim: 64,
|
|
24
25
|
files: [
|
|
25
26
|
{
|
|
@@ -57,6 +58,7 @@ var MODELS = [
|
|
|
57
58
|
id: "gigaam-v3-ctc",
|
|
58
59
|
title: "GigaAM v3 CTC, with punctuation \u2014 a little faster",
|
|
59
60
|
languages: "Russian \u2014 a little faster, rougher with capital letters",
|
|
61
|
+
language: "ru",
|
|
60
62
|
featureDim: 64,
|
|
61
63
|
files: [
|
|
62
64
|
{
|
|
@@ -135,7 +137,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
|
|
|
135
137
|
return model;
|
|
136
138
|
}, "speechModel");
|
|
137
139
|
|
|
138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/speech/install.js
|
|
139
141
|
import { createHash, randomUUID } from "node:crypto";
|
|
140
142
|
import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
|
|
141
143
|
import { rename, rm } from "node:fs/promises";
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
__name
|
|
5
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
6
|
+
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.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
|
+
import { existsSync } from "node:fs";
|
|
9
|
+
import { win32 } from "node:path";
|
|
10
|
+
var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
|
|
11
|
+
var executableOnPath = /* @__PURE__ */ __name((command, env, platform = process.platform, exists = existsSync) => {
|
|
12
|
+
if (platform !== "win32" || win32.isAbsolute(command))
|
|
13
|
+
return command;
|
|
14
|
+
if (/[\\/]/.test(command))
|
|
15
|
+
return command;
|
|
16
|
+
const extensions = win32.extname(command) ? [""] : (variable(env, "PATHEXT") ?? ".EXE;.COM;.CMD;.BAT").split(";").filter((ext) => /^\.[a-z0-9]+$/i.test(ext));
|
|
17
|
+
for (const entry of (variable(env, "PATH") ?? "").split(";")) {
|
|
18
|
+
const directory = entry.replace(/^"(.*)"$/, "$1");
|
|
19
|
+
for (const extension of extensions) {
|
|
20
|
+
const candidate = win32.join(directory, command + extension);
|
|
21
|
+
if (exists(candidate))
|
|
22
|
+
return candidate;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return command;
|
|
26
|
+
}, "executableOnPath");
|
|
27
|
+
var executableEnvironment = /* @__PURE__ */ __name((env, platform = process.platform) => {
|
|
28
|
+
if (platform !== "win32")
|
|
29
|
+
return env;
|
|
30
|
+
const configured = variable(env, "COMSPEC");
|
|
31
|
+
const system = variable(env, "SYSTEMROOT");
|
|
32
|
+
const shell = configured ? configured : system && win32.isAbsolute(system) ? win32.join(system, "System32", "cmd.exe") : void 0;
|
|
33
|
+
if (!shell)
|
|
34
|
+
return env;
|
|
35
|
+
const result = { ...env };
|
|
36
|
+
for (const key of Object.keys(result))
|
|
37
|
+
if (key.toUpperCase() === "COMSPEC")
|
|
38
|
+
delete result[key];
|
|
39
|
+
result.comspec = shell;
|
|
40
|
+
return result;
|
|
41
|
+
}, "executableEnvironment");
|
|
42
|
+
|
|
43
|
+
export {
|
|
44
|
+
executableOnPath,
|
|
45
|
+
executableEnvironment
|
|
46
|
+
};
|