@wirecat/zoom-cli 0.70.0 → 0.71.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 +2 -0
- package/dist/answer-entities.d.ts.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-GE2TFJJP.js → all-profiles-O4YNVPZX.js} +7 -7
- package/dist/bundle/{answer-policy-GOXSDYDD.js → answer-policy-PPSPMCLH.js} +52 -52
- package/dist/bundle/{anthropic-FA6NHENI.js → anthropic-7GGRX3RX.js} +13 -4
- package/dist/bundle/{app-server-IRADMSNX.js → app-server-CPMKM3HI.js} +46 -46
- package/dist/bundle/{bun-ZYZGGCX5.js → bun-POHZKEPV.js} +2 -2
- package/dist/bundle/{bun-sqlite-Y24TUIGS.js → bun-sqlite-PGYMBPEL.js} +2 -2
- package/dist/bundle/{chunk-DCUWJITQ.js → chunk-2FV5JUQU.js} +38 -592
- package/dist/bundle/{chunk-DNR4B5YV.js → chunk-2KESWII5.js} +2 -2
- package/dist/bundle/{chunk-KWRCP55G.js → chunk-2RUAMDVV.js} +10 -10
- package/dist/bundle/{chunk-IS3ZTT2Z.js → chunk-2U27KIKU.js} +2 -2
- package/dist/bundle/chunk-4LAQDZXU.js +1635 -0
- package/dist/bundle/{chunk-6IF5ZHDS.js → chunk-4QPQ7MDA.js} +1 -1
- package/dist/bundle/{chunk-MVOMLJYQ.js → chunk-4QUFFB2U.js} +3 -3
- package/dist/bundle/{chunk-AUNW7N4I.js → chunk-54YDWBYG.js} +1 -1
- package/dist/bundle/{chunk-AISJCF7A.js → chunk-5J4AMBMM.js} +4 -4
- package/dist/bundle/{chunk-UVPL7YAY.js → chunk-5K7OGPGA.js} +4 -4
- package/dist/bundle/{chunk-RO3ZR4VP.js → chunk-5LJTU4LY.js} +12 -12
- package/dist/bundle/{chunk-YTN2JN6N.js → chunk-633QXP57.js} +9 -7
- package/dist/bundle/{chunk-DXCTW3MV.js → chunk-64ZHF6PJ.js} +1 -1
- package/dist/bundle/{chunk-JRO2FWO2.js → chunk-77TCCHMP.js} +1 -1
- package/dist/bundle/{chunk-CIZ25UPK.js → chunk-7ROXXRGG.js} +2282 -1087
- package/dist/bundle/{chunk-OA37BWE5.js → chunk-ALIT5QFT.js} +1 -1
- package/dist/bundle/{chunk-V2E7QFZ3.js → chunk-BBTQIVFP.js} +1 -1
- package/dist/bundle/{chunk-M7E44TMT.js → chunk-BGTEVIW4.js} +5 -5
- package/dist/bundle/{chunk-2QFPVUM3.js → chunk-CFQF6IGY.js} +2 -2
- package/dist/bundle/{chunk-XWQNJKTP.js → chunk-CKPCVEXU.js} +5 -5
- package/dist/bundle/{chunk-L24UOUWG.js → chunk-CRFOGYDG.js} +1 -1
- package/dist/bundle/{chunk-OAQLVV6W.js → chunk-CT4WVR4N.js} +2 -2
- package/dist/bundle/{chunk-SNIY3JDN.js → chunk-DHWBSXG3.js} +20 -20
- package/dist/bundle/{chunk-CHGUNZ3L.js → chunk-DIQLXAAZ.js} +3 -3
- package/dist/bundle/{chunk-RRRJCHUC.js → chunk-DK6ICIGL.js} +3141 -982
- package/dist/bundle/{chunk-YUHM2OJM.js → chunk-DRBQDCDU.js} +9 -9
- package/dist/bundle/{chunk-LAG5O2FV.js → chunk-DSVZEXYJ.js} +1093 -895
- package/dist/bundle/{chunk-4DSIWYGO.js → chunk-FSHCAWZS.js} +29110 -16686
- package/dist/bundle/{chunk-SVF3NDAO.js → chunk-GGS6D4W4.js} +2 -2
- package/dist/bundle/{chunk-V5GRSOCZ.js → chunk-GL3MYFMX.js} +3 -3
- package/dist/bundle/{chunk-VSLDWT4E.js → chunk-GXF5HFFP.js} +3 -3
- package/dist/bundle/{chunk-ZV3INEKM.js → chunk-HB6XJQ3Y.js} +4 -4
- package/dist/bundle/{chunk-GB5X3GBE.js → chunk-I4DFFR7F.js} +2 -2
- package/dist/bundle/{chunk-ZS55EERO.js → chunk-IAV5BG3I.js} +1 -1
- package/dist/bundle/{chunk-VNU5L37V.js → chunk-IED3NS7G.js} +27 -35
- package/dist/bundle/{chunk-W7ZEEC4K.js → chunk-INVTDIF6.js} +1 -1
- package/dist/bundle/{chunk-GVT5363M.js → chunk-KMV7GZB6.js} +1 -1
- package/dist/bundle/{chunk-LXXCLQCW.js → chunk-LE7MDAQG.js} +2 -2
- package/dist/bundle/{chunk-2JEM2YNV.js → chunk-M76MXMLY.js} +1 -1
- package/dist/bundle/{chunk-RWIILYKW.js → chunk-MEED7YFG.js} +1 -1
- package/dist/bundle/{chunk-56OV5ASY.js → chunk-MRI6QMZ3.js} +9 -9
- package/dist/bundle/{chunk-BSS6HX4O.js → chunk-MW4EGDDV.js} +2 -2
- package/dist/bundle/{chunk-6HJFIMT7.js → chunk-N2FNMION.js} +1 -1
- package/dist/bundle/{chunk-J3SKXICS.js → chunk-OHWMIUCT.js} +139 -544
- package/dist/bundle/{chunk-M7VUXXGS.js → chunk-OWEBWDHV.js} +58 -3
- package/dist/bundle/{chunk-BVWF4B33.js → chunk-P3XC6EDU.js} +15 -19
- package/dist/bundle/{chunk-JULBAECW.js → chunk-Q2SUFGSH.js} +16 -6
- package/dist/bundle/{chunk-QL7EMFIC.js → chunk-Q3XLZIY3.js} +16 -16
- package/dist/bundle/{chunk-M6JIXMQZ.js → chunk-Q5PI72CR.js} +1 -1
- package/dist/bundle/{chunk-X4ZF4XXI.js → chunk-QTHIU7CO.js} +1 -1
- package/dist/bundle/{chunk-CSEBB4OP.js → chunk-QVSLSWAL.js} +7 -7
- package/dist/bundle/{chunk-VJ5ZU4UF.js → chunk-RN4EHCC5.js} +2 -2
- package/dist/bundle/{chunk-D3PNCJD5.js → chunk-SELXER2Q.js} +3 -3
- package/dist/bundle/{chunk-YJSPBUGB.js → chunk-TM4JSVGQ.js} +38 -49
- package/dist/bundle/{chunk-5XWCBLUR.js → chunk-UG447QY2.js} +1 -1
- package/dist/bundle/{chunk-RIPAUCKJ.js → chunk-ULDXZ6LH.js} +64 -57
- package/dist/bundle/chunk-USQ23X5V.js +1227 -0
- package/dist/bundle/{chunk-PV6OHXHN.js → chunk-VJXHIUFP.js} +14 -14
- package/dist/bundle/{chunk-3KC7C465.js → chunk-VRH7VRTK.js} +7 -7
- package/dist/bundle/{chunk-ZSKE7N2U.js → chunk-X277FBTF.js} +2 -2
- package/dist/bundle/{chunk-KM736RMJ.js → chunk-X3ZDN3U7.js} +1 -1
- package/dist/bundle/{chunk-CEJJBZAE.js → chunk-X4GWR6GO.js} +8 -8
- package/dist/bundle/chunk-XI3VIQKW.js +756 -0
- package/dist/bundle/{chunk-IWPXWGF7.js → chunk-YD2RYVMK.js} +33 -33
- package/dist/bundle/{chunk-RB33VTUW.js → chunk-YPO2U2YB.js} +473 -118
- package/dist/bundle/{chunk-IINZIP73.js → chunk-ZBFL5JPT.js} +7 -6
- package/dist/bundle/{chunk-QO2KPU26.js → chunk-ZVI6TFQR.js} +100 -43
- package/dist/bundle/{cli-VRSQ7HAE.js → cli-KHMEUXNG.js} +117 -64
- package/dist/bundle/command-contract-4K6XXZYE.js +41 -0
- package/dist/bundle/config-EEDB632I.js +90 -0
- package/dist/bundle/{decode-523PUQMR.js → decode-7RP4HSVE.js} +2 -2
- package/dist/bundle/{dist-6WWKPEVW.js → dist-BFT2SUBV.js} +60 -40
- package/dist/bundle/{echarts-S5UMX2D3.js → echarts-T2BSQ2YV.js} +2 -2
- package/dist/bundle/{embed-ODPDVHUK.js → embed-BAS6YPDT.js} +3 -3
- package/dist/bundle/{embedder-PAXRBSZE.js → embedder-5XD5FCAO.js} +6 -6
- package/dist/bundle/{first-run-NVTDR5VO.js → first-run-23WWZ2PW.js} +5 -5
- package/dist/bundle/first-screen-6HFUYVFR.js +39 -0
- package/dist/bundle/{instructions-DUB7E6C5.js → instructions-XZPROPKY.js} +1 -1
- package/dist/bundle/{main-A7JSYQI6.js → main-TZXKGL3L.js} +12 -12
- package/dist/bundle/{meetings-BDZQV3HR.js → meetings-JB2ISPND.js} +3 -1
- package/dist/bundle/{node-E25KP53H.js → node-A3B3MJWX.js} +2 -2
- package/dist/bundle/{node-sqlite-PHWDFZCP.js → node-sqlite-QVWDLGDX.js} +3 -3
- package/dist/bundle/{oauth-G2K46IYP.js → oauth-YA6IYV4O.js} +4 -4
- package/dist/bundle/{open-INWS5HIZ.js → open-SY7TXJBS.js} +2 -2
- package/dist/bundle/{openai-T44ORVGQ.js → openai-2AU24NRN.js} +8 -8
- package/dist/bundle/{process-UJ2JHMJN.js → process-6HNBTJIY.js} +1 -1
- package/dist/bundle/{program-LYTGFV6L.js → program-77BUCJ4H.js} +78 -89
- package/dist/bundle/{prompt-VTUCRCE4.js → prompt-YDG73YDS.js} +2 -2
- package/dist/bundle/{recognize-3CEPOW2F.js → recognize-ECXDGTB7.js} +1 -1
- package/dist/bundle/{remote-DRQEXEZL.js → remote-K4JHGBVJ.js} +4 -4
- package/dist/bundle/{rerank-UL4KNNVN.js → rerank-IU2YYD4T.js} +4 -4
- package/dist/bundle/{run-log-UZAB5CWF.js → run-log-LFEXNZ74.js} +50 -50
- package/dist/bundle/{serve-P5UWUOWQ.js → serve-3XWIF3HI.js} +6 -6
- package/dist/bundle/{server-M6XK2Y3X.js → server-56VYOHWP.js} +38 -38
- package/dist/bundle/server-YSTMUZ22.js +72 -0
- package/dist/bundle/{services-4HRYNY62.js → services-X7IPEGQ5.js} +85 -33
- package/dist/bundle/{speech-BBPBMFAO.js → speech-E2OBQWYA.js} +10 -10
- package/dist/bundle/{state-GDSUNUSY.js → state-4GMJYK4H.js} +3 -3
- package/dist/bundle/{store-VWLABMLF.js → store-KPI7GB5Y.js} +37 -19
- package/dist/bundle/{store-LBQ6FZP2.js → store-LA4TV4DM.js} +19 -13
- package/dist/bundle/store-connection-AZTIF6IH.js +83 -0
- package/dist/bundle/store-maintenance-command-LR572PS4.js +61 -0
- package/dist/bundle/zm.js +2 -2
- package/dist/bundle/{zoom-app-YIEJLWCW.js → zoom-app-QEJBTIJ4.js} +2 -2
- package/dist/contract-overrides.d.ts.map +1 -1
- package/dist/contract-overrides.js +0 -6
- package/dist/contract-overrides.js.map +1 -1
- package/dist/ingestion-search-commands.d.ts.map +1 -1
- package/dist/ingestion-search-commands.js +0 -10
- package/dist/ingestion-search-commands.js.map +1 -1
- package/dist/meeting-integration-commands.d.ts.map +1 -1
- package/dist/meeting-integration-commands.js +8 -6
- package/dist/meeting-integration-commands.js.map +1 -1
- package/dist/meeting-integration.d.ts +3 -1
- package/dist/meeting-integration.d.ts.map +1 -1
- package/dist/store-connection.d.ts.map +1 -1
- package/dist/store-connection.js +4 -3
- package/dist/store-connection.js.map +1 -1
- package/dist/unified-search.d.ts +4 -4
- package/dist/unified-search.d.ts.map +1 -1
- package/dist/unified-search.js +1 -24
- package/dist/unified-search.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/zoom-cli/SKILL.md +2 -2
- package/dist/bundle/chunk-AT2XKNFN.js +0 -342
- package/dist/bundle/chunk-VE2VNECR.js +0 -380
- package/dist/bundle/chunk-Y6C3N7YG.js +0 -12434
- package/dist/bundle/command-contract-RPRKHVU6.js +0 -41
- package/dist/bundle/config-QU6A6VIO.js +0 -90
- package/dist/bundle/first-screen-5RWZDWLK.js +0 -39
- package/dist/bundle/server-F3NPVMS2.js +0 -72
- package/dist/bundle/store-connection-XEBFP56U.js +0 -83
- package/dist/bundle/store-maintenance-command-G43JN57J.js +0 -61
|
@@ -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.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/errors/reasons.js
|
|
14
14
|
var validation = /* @__PURE__ */ __name((reason, message) => [reason, "validation_error", message], "validation");
|
|
15
15
|
var QUERY = [
|
|
16
16
|
["query.aborted", "the search was stopped before it finished"],
|
|
@@ -68,7 +68,10 @@ var PROVIDER_API = [
|
|
|
68
68
|
var OTHERS = [
|
|
69
69
|
["query.time-limit", "timeout", "the search took longer than its time limit; the query itself is valid"],
|
|
70
70
|
["enrichment.owner-only", "permission_error", "only the owner turns enrichment on, not an agent"],
|
|
71
|
+
["search-harder.owner-only", "permission_error", "only the owner allows search all --harder, not an agent"],
|
|
71
72
|
["model.offline", "permission_error", "downloading a model needs the network; --offline was requested"],
|
|
73
|
+
["model.key-rejected", "invalid_response", "the model provider refused the API key (401 or 403)"],
|
|
74
|
+
["model.unreachable", "invalid_response", "the model provider could not be reached over the network"],
|
|
72
75
|
[
|
|
73
76
|
"contract.unacknowledged-override",
|
|
74
77
|
"configuration_error",
|
|
@@ -91,6 +94,7 @@ var OTHERS = [
|
|
|
91
94
|
validation("mail-findings.invalid", "a checked mail findings batch would be refused; details.problems names why, finding by finding"),
|
|
92
95
|
validation("mail-findings.key-used", "the findings batch key was already used for different input"),
|
|
93
96
|
validation("finding.unknown-field", "a finding has a field its kind does not take"),
|
|
97
|
+
validation("finding.quote-not-found", "a finding's quote is not in the text it cites, word for word"),
|
|
94
98
|
validation("finding.missing-field", "a finding leaves out a field its kind needs"),
|
|
95
99
|
validation("document.changed", "the document changed while it was read; nothing was saved"),
|
|
96
100
|
["document.not-imported", "not_found", "the document is not imported in this source account"],
|
|
@@ -162,7 +166,7 @@ var OTHERS = [
|
|
|
162
166
|
[
|
|
163
167
|
"source.needs-sign-in",
|
|
164
168
|
"authentication_error",
|
|
165
|
-
"the page asks for a sign-in; a private Google document
|
|
169
|
+
"the page asks for a sign-in; add a private Google document with drive documents add <url> --profiles <names|all>"
|
|
166
170
|
],
|
|
167
171
|
validation("source.too-large", "the source is larger than one read takes"),
|
|
168
172
|
validation("source.unsupported", "no reader takes this kind of source"),
|
|
@@ -203,6 +207,11 @@ var OTHERS = [
|
|
|
203
207
|
"configuration_error",
|
|
204
208
|
"the store file is damaged; store recover says what is lost and recovers it"
|
|
205
209
|
],
|
|
210
|
+
[
|
|
211
|
+
"store.journal-replaced",
|
|
212
|
+
"conflict",
|
|
213
|
+
"another program deleted or replaced the store's journal file while it was open; store recover says what to do"
|
|
214
|
+
],
|
|
206
215
|
validation("store.file-damaged", "the named store file is damaged or not a database"),
|
|
207
216
|
[
|
|
208
217
|
"store.unreadable",
|
|
@@ -216,6 +225,11 @@ var OTHERS = [
|
|
|
216
225
|
"recovering the store needs the sqlite3 program, 3.43 or newer, with its .recover command"
|
|
217
226
|
],
|
|
218
227
|
validation("store.recovery-failed", "the recovered store did not pass its check, so the store was left as it was"),
|
|
228
|
+
[
|
|
229
|
+
"serve.outdated",
|
|
230
|
+
"configuration_error",
|
|
231
|
+
"the store or the installed version is newer than this serve; it stopped so its unit starts the installed one"
|
|
232
|
+
],
|
|
219
233
|
validation("store.recovering", "another recovery of the store is running; wait for it to finish"),
|
|
220
234
|
validation("store.changed-during-recovery", "the store was written to during the recovery, so it was left as it was"),
|
|
221
235
|
[
|
|
@@ -286,8 +300,18 @@ var OTHERS = [
|
|
|
286
300
|
validation("deal.closed", "a deleted deal or lead does not move or close"),
|
|
287
301
|
validation("deal.copy", "a CRM's copy changes in the CRM; its next sync brings the change here"),
|
|
288
302
|
validation("deal.field", "a field of the deal or lead is not valid"),
|
|
303
|
+
["deal.denied", "permission_error", "the profile denies listing deals or leads, so none is answered"],
|
|
304
|
+
["deal.out-of-scope", "not_found", "the deal or lead is a copy from an account outside the accounts asked for"],
|
|
289
305
|
validation("deal.ref", "the reference names no deal or lead"),
|
|
290
306
|
validation("deal.stage", "no stage of that name, or a stage name more than one pipeline has"),
|
|
307
|
+
validation("stage.base-field", "a base stage needs a name its set has once and a position within the set"),
|
|
308
|
+
validation("stage.base-outcome", "a base set keeps at least one stage of each outcome: open, won and lost"),
|
|
309
|
+
validation("stage.base-in-use", "the owner's own deals or leads stand or stood in that base stage"),
|
|
310
|
+
validation("stage.choice-required", "more than one stage of the row's pipeline maps to that base stage; move to one of the candidates"),
|
|
311
|
+
validation("stage.ref", "a stage is named by its stage:<id> reference"),
|
|
312
|
+
["stage.owner-only", "permission_error", "only the owner confirms mappings and edits a base set, not an agent"],
|
|
313
|
+
validation("stage.unmapped", "no stage of the row's pipeline maps to that base stage; map one first"),
|
|
314
|
+
["stage.not-found", "not_found", "no stored stage has that reference or name"],
|
|
291
315
|
validation("pipeline.ambiguous", "more than one pipeline has that name; name it by its pipeline: reference"),
|
|
292
316
|
validation("pipeline.duplicate", "a pipeline of that name and kind is already stored"),
|
|
293
317
|
validation("pipeline.field", "a pipeline needs a name and at least one stage, each named once"),
|
|
@@ -301,6 +325,7 @@ var OTHERS = [
|
|
|
301
325
|
validation("field.unknown-kind", "fields are listed for deals, leads, people and organizations only"),
|
|
302
326
|
validation("crm.write-unsupported", "the CRM does not take this write, or does not recognise a repeated one"),
|
|
303
327
|
validation("crm.unlisted-held", "a list of every id would mark most of a kind deleted; nothing was, until --rescan"),
|
|
328
|
+
validation("crm.narrowing-held", "the default scope mine would mark most of a kind's stored rows deleted; none is, until the owner sets the scope"),
|
|
304
329
|
validation("crm.not-reported", "the CRM did not list users or departments; what they would say is unknown, nothing withdrawn"),
|
|
305
330
|
validation("crm.reference-unknown", "a CRM row names a contact, company or user the store does not hold; that link was not made"),
|
|
306
331
|
validation("crm.pending-dropped", "relationships waited too long for an end that never came; they were dropped"),
|
|
@@ -347,6 +372,25 @@ var OTHERS = [
|
|
|
347
372
|
"conflict",
|
|
348
373
|
"the owner separated this identity from that person; only the owner links it again"
|
|
349
374
|
],
|
|
375
|
+
[
|
|
376
|
+
"identity.owner-only",
|
|
377
|
+
"permission_error",
|
|
378
|
+
"only the owner undoes a merge, splits a person, confirms or undoes a link, or links an identity to themselves"
|
|
379
|
+
],
|
|
380
|
+
[
|
|
381
|
+
"identity.stale",
|
|
382
|
+
"conflict",
|
|
383
|
+
"the people a merge or a proposed link names changed since; undo the later merge, or propose the link again"
|
|
384
|
+
],
|
|
385
|
+
[
|
|
386
|
+
"identity.rejected",
|
|
387
|
+
"conflict",
|
|
388
|
+
"the owner rejected linking these people on this evidence; only a new signal or identity proposes them again"
|
|
389
|
+
],
|
|
390
|
+
validation("identity.same", "the two identities are one person already"),
|
|
391
|
+
validation("identity.shared-phone", "more than six people share the phone number, so it proposes no one"),
|
|
392
|
+
validation("identity.shared-email", "more than six people share the address, so it proposes no one"),
|
|
393
|
+
validation("identity-link.dedicated-review", "an identity link is staged and decided through the people review"),
|
|
350
394
|
["transcription.no-key", "authentication_error", "no OpenAI key is set for transcription"],
|
|
351
395
|
validation("transcription.too-large", "the audio is over the transcription provider's size limit"),
|
|
352
396
|
[
|
|
@@ -361,8 +405,9 @@ var OTHERS = [
|
|
|
361
405
|
validation("output.unknown-field", "the answer has no field by that name"),
|
|
362
406
|
validation("name.taken", "the name is already used"),
|
|
363
407
|
validation("period.ambiguous", "the period can be read more than one way"),
|
|
408
|
+
["press.owner-hand-only", "permission_error", "this button decides something for the owner; only a hand presses it"],
|
|
364
409
|
validation("proposal.wrong-state", "the proposal is not in a state that allows this"),
|
|
365
|
-
validation("proposal.reason-required", "an agent deciding for the owner gives a reason"),
|
|
410
|
+
validation("proposal.reason-required", "an agent deciding for the owner, or proposing a link, gives a reason"),
|
|
366
411
|
validation("decision.request-invalid", "a decision request needs its batch, message, owner and distinct known actions"),
|
|
367
412
|
["decision.token-unknown", "not_found", "no button has this token"],
|
|
368
413
|
["decision.token-used", "permission_error", "this button was already pressed"],
|
|
@@ -379,6 +424,7 @@ var OTHERS = [
|
|
|
379
424
|
],
|
|
380
425
|
validation("proposal.decider-required", "a decision names who decides: the owner or an agent with a reason"),
|
|
381
426
|
validation("proposal.ids", "the proposal ids cannot be read"),
|
|
427
|
+
["group.outside", "permission_error", "the process is locked to a group, and this belongs to accounts outside it"],
|
|
382
428
|
["proposal.own", "permission_error", "an agent never decides its own proposal"],
|
|
383
429
|
["proposal.owner-only", "permission_error", "only the owner decides this proposal"],
|
|
384
430
|
["proposals.agent-decisions-off", "permission_error", "agent decisions are turned off; the owner decides"],
|
|
@@ -388,6 +434,8 @@ var OTHERS = [
|
|
|
388
434
|
validation("relationship.role-built-in", "a built-in role stays on its list"),
|
|
389
435
|
validation("relationship.role-in-use", "relationships still hold that role; change them first (details.count)"),
|
|
390
436
|
validation("relationship.role-unknown", "the role is not one the relationship takes; the message lists them"),
|
|
437
|
+
validation("relationship.engagement-ends", "only a person's member-of a project takes an engagement level"),
|
|
438
|
+
validation("relationship.engagement-unknown", "the engagement level is not none, low, medium or high"),
|
|
391
439
|
validation("ranking.invalid", "the ranking is not valid"),
|
|
392
440
|
validation("ref.malformed", "the reference has a known kind but not its shape"),
|
|
393
441
|
validation("ref.unknown-kind", "the text names no kind of reference"),
|
|
@@ -405,6 +453,13 @@ var OTHERS = [
|
|
|
405
453
|
validation("tag-review.required", "the tag needs the owner's review first"),
|
|
406
454
|
["tag-review.stale", "configuration_error", "the tag review changed meanwhile"],
|
|
407
455
|
validation("tag.invalid", "the tag is not valid"),
|
|
456
|
+
validation("template.unknown-key", "there is no message template by that key"),
|
|
457
|
+
validation("template.no-renderer", "nothing renders that template key yet, so a template for it cannot be checked"),
|
|
458
|
+
validation("template.unknown-language", "cli-core ships no template in that language, so one would never be used"),
|
|
459
|
+
validation("template.check-failed", "the template failed its check and was not saved; the message says why"),
|
|
460
|
+
validation("template.no-history", "the template has no earlier body to put back"),
|
|
461
|
+
validation("template.no-editor", "no editor is set: set VISUAL or EDITOR, or pass the template with --file"),
|
|
462
|
+
["template.owner-only", "permission_error", "only the owner changes a message template, not an agent"],
|
|
408
463
|
["reactions.list-hidden", "permission_error", "the chat does not let its members see who reacted"],
|
|
409
464
|
["reactions.broadcast", "permission_error", "a channel does not show who reacted to its posts"],
|
|
410
465
|
validation("task.external-id", "an external id is <service>:<id>, such as avito:4512345678"),
|
|
@@ -2,15 +2,17 @@ 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-Q5PI72CR.js";
|
|
6
6
|
import {
|
|
7
7
|
WORD_BODY,
|
|
8
|
+
e164Of
|
|
9
|
+
} from "./chunk-4LAQDZXU.js";
|
|
10
|
+
import {
|
|
8
11
|
looksLikeReference,
|
|
9
12
|
parseReference,
|
|
10
13
|
providerLabel,
|
|
11
|
-
providerNamed
|
|
12
|
-
|
|
13
|
-
} from "./chunk-Y6C3N7YG.js";
|
|
14
|
+
providerNamed
|
|
15
|
+
} from "./chunk-XI3VIQKW.js";
|
|
14
16
|
import {
|
|
15
17
|
resolvePaths,
|
|
16
18
|
writeSecurely
|
|
@@ -45,7 +47,7 @@ import {
|
|
|
45
47
|
__name
|
|
46
48
|
} from "./chunk-ZVVMGPBJ.js";
|
|
47
49
|
|
|
48
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/domain/ref-arguments.js
|
|
49
51
|
var TAKES = {
|
|
50
52
|
chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
|
|
51
53
|
message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
|
|
@@ -105,7 +107,7 @@ var ensureAccount = /* @__PURE__ */ __name(async (reference, scope, profilesOn)
|
|
|
105
107
|
throw wrongAccount(reference, scope, profiles);
|
|
106
108
|
}, "ensureAccount");
|
|
107
109
|
|
|
108
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
110
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
109
111
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
110
112
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase().replaceAll("\u0451", "\u0435"), "foldName");
|
|
111
113
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -150,7 +152,7 @@ ${lines}`, { candidates });
|
|
|
150
152
|
}, "ambiguous");
|
|
151
153
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
152
154
|
|
|
153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
155
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/domain/vcard.js
|
|
154
156
|
import { createHash } from "node:crypto";
|
|
155
157
|
var MAX_ID = 512;
|
|
156
158
|
var AS_WORD = new RegExp(`^${WORD_BODY}$`);
|
|
@@ -246,14 +248,7 @@ var components = /* @__PURE__ */ __name((value) => {
|
|
|
246
248
|
return parts.map((part) => part.trim());
|
|
247
249
|
}, "components");
|
|
248
250
|
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");
|
|
251
|
+
var e164 = /* @__PURE__ */ __name((typed, region) => e164Of(typed.replace(/^tel:/i, "").replace(/;.*$/, "").trim(), region) ?? void 0, "e164");
|
|
257
252
|
var foldedName = /* @__PURE__ */ __name((name) => name.normalize("NFKC").toLowerCase().replace(/\s+/g, " ").trim(), "foldedName");
|
|
258
253
|
var hashed = /* @__PURE__ */ __name((prefix, parts) => `${prefix}${createHash("sha256").update(parts.join("\n")).digest("hex").slice(0, 32)}`, "hashed");
|
|
259
254
|
var organizationId = /* @__PURE__ */ __name((name) => {
|
|
@@ -304,7 +299,8 @@ var cardsOf = /* @__PURE__ */ __name((text) => {
|
|
|
304
299
|
}
|
|
305
300
|
return { cards, issues };
|
|
306
301
|
}, "cardsOf");
|
|
307
|
-
var envelopeOfVcard = /* @__PURE__ */ __name((text, { provider, account, batchId, region }) => {
|
|
302
|
+
var envelopeOfVcard = /* @__PURE__ */ __name((text, { provider, account, batchId, region: given }) => {
|
|
303
|
+
const region = given?.toLowerCase();
|
|
308
304
|
const { cards, issues } = cardsOf(text);
|
|
309
305
|
const people = [];
|
|
310
306
|
const organizations = /* @__PURE__ */ new Map();
|
|
@@ -387,7 +383,7 @@ var envelopeOfVcard = /* @__PURE__ */ __name((text, { provider, account, batchId
|
|
|
387
383
|
};
|
|
388
384
|
}, "envelopeOfVcard");
|
|
389
385
|
|
|
390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
386
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
391
387
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
392
388
|
var validateFormattedText = /* @__PURE__ */ __name((formatted) => {
|
|
393
389
|
const { text, spans } = formatted;
|
|
@@ -447,7 +443,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted) => {
|
|
|
447
443
|
};
|
|
448
444
|
}, "visibleFormattedText");
|
|
449
445
|
|
|
450
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
446
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
451
447
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
452
448
|
var LINK = /https?:\/\/\S+/i;
|
|
453
449
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -635,7 +631,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
635
631
|
}, "nextPoint");
|
|
636
632
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
637
633
|
|
|
638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
634
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
639
635
|
import { existsSync, readFileSync } from "node:fs";
|
|
640
636
|
import { join } from "node:path";
|
|
641
637
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -2,18 +2,18 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
parseReference
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XI3VIQKW.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/domain/links.js
|
|
11
11
|
var LINK_VERSION = "v1";
|
|
12
12
|
var DEFAULT_LINK_CONFIG = { base: "https://wirecat.dev/o", enabled: true };
|
|
13
13
|
var APP_PREFIX = "wirecat://open";
|
|
14
14
|
var MAX_PATH = 512;
|
|
15
15
|
var MAX_SEGMENTS = 6;
|
|
16
|
-
var TASK_FILTERS = ["overdue", "today", "tomorrow"];
|
|
16
|
+
var TASK_FILTERS = ["overdue", "today", "tomorrow", "undated"];
|
|
17
17
|
var DATE = /^\d{4}-\d{2}-\d{2}$/;
|
|
18
18
|
var DATE_TIME = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:\d{2})$/;
|
|
19
19
|
var isMoment = /* @__PURE__ */ __name((text, pattern) => pattern.test(text) && !Number.isNaN(Date.parse(text)), "isMoment");
|
|
@@ -24,7 +24,9 @@ var partsOf = /* @__PURE__ */ __name((target) => {
|
|
|
24
24
|
case "chat":
|
|
25
25
|
return ["chat", target.provider, target.account, target.chat];
|
|
26
26
|
case "task":
|
|
27
|
-
|
|
27
|
+
case "person":
|
|
28
|
+
case "project":
|
|
29
|
+
return [target.type, target.id];
|
|
28
30
|
case "tasks":
|
|
29
31
|
return target.filter === "new" ? ["tasks", "new", target.since] : ["tasks", target.filter];
|
|
30
32
|
case "proposal":
|
|
@@ -45,7 +47,9 @@ var targetOfParts = /* @__PURE__ */ __name((parts) => {
|
|
|
45
47
|
case "chat":
|
|
46
48
|
return rest.length === 3 ? { type: "chat", provider: a, account: b, chat: c } : null;
|
|
47
49
|
case "task":
|
|
48
|
-
|
|
50
|
+
case "person":
|
|
51
|
+
case "project":
|
|
52
|
+
return rest.length === 1 ? { type: kind, id: a } : null;
|
|
49
53
|
case "tasks":
|
|
50
54
|
if (rest.length === 1 && TASK_FILTERS.includes(a))
|
|
51
55
|
return { type: "tasks", filter: a };
|
|
@@ -82,7 +86,12 @@ var parseLink = /* @__PURE__ */ __name((text) => {
|
|
|
82
86
|
return targetOfPath(rest);
|
|
83
87
|
}, "parseLink");
|
|
84
88
|
var LINK_ONLY = /* @__PURE__ */ new Set(["tasks", "proposal", "digest", "sync"]);
|
|
85
|
-
var FROM_REFERENCE = /* @__PURE__ */ new Set(["message", "chat", "task"]);
|
|
89
|
+
var FROM_REFERENCE = /* @__PURE__ */ new Set(["message", "chat", "task", "person", "project"]);
|
|
90
|
+
var ENTITY_KINDS = /* @__PURE__ */ new Set(["person", "project"]);
|
|
91
|
+
var refsForLink = /* @__PURE__ */ __name((refs) => [
|
|
92
|
+
...refs.filter((ref) => !ENTITY_KINDS.has(ref.slice(0, ref.indexOf(":")))),
|
|
93
|
+
...refs.filter((ref) => ENTITY_KINDS.has(ref.slice(0, ref.indexOf(":"))))
|
|
94
|
+
], "refsForLink");
|
|
86
95
|
var linkTargetOf = /* @__PURE__ */ __name((ref) => {
|
|
87
96
|
const text = ref.trim();
|
|
88
97
|
const colon = text.indexOf(":");
|
|
@@ -120,6 +129,7 @@ export {
|
|
|
120
129
|
DEFAULT_LINK_CONFIG,
|
|
121
130
|
formatLink,
|
|
122
131
|
parseLink,
|
|
132
|
+
refsForLink,
|
|
123
133
|
linkTargetOf,
|
|
124
134
|
linkConfigOf,
|
|
125
135
|
linkFor
|
|
@@ -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-DK6ICIGL.js";
|
|
7
7
|
import {
|
|
8
8
|
Command,
|
|
9
9
|
InvalidArgumentError,
|
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
renderAnswer,
|
|
18
18
|
sharedCommand,
|
|
19
19
|
snakeKeys
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-DSVZEXYJ.js";
|
|
21
21
|
import {
|
|
22
22
|
readOnlyLockOf
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-UG447QY2.js";
|
|
24
24
|
import {
|
|
25
25
|
formatReference
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-XI3VIQKW.js";
|
|
27
27
|
import {
|
|
28
28
|
EVENT_QUERY,
|
|
29
29
|
MEETING_PROJECT_EVIDENCE_QUERY,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
readMeetingProjectEvidence,
|
|
47
47
|
validateMeetingHitSearch,
|
|
48
48
|
validateMeetingPassage
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-ULDXZ6LH.js";
|
|
50
50
|
import {
|
|
51
51
|
OPERATORS_BY_TYPE,
|
|
52
52
|
QUERY_LIMITS,
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
__name
|
|
83
83
|
} from "./chunk-ZVVMGPBJ.js";
|
|
84
84
|
|
|
85
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
85
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
86
86
|
var COMMAND_NEEDS = {
|
|
87
87
|
"account update": ["updateProfile", "change the profile"],
|
|
88
88
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -132,7 +132,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
132
132
|
return group;
|
|
133
133
|
}, "hideNever");
|
|
134
134
|
|
|
135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
136
136
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
137
137
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
138
138
|
const zone = timezoneOf();
|
|
@@ -218,7 +218,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
218
218
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
219
219
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
220
220
|
|
|
221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
221
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
222
222
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
223
223
|
command.allowUnknownOption();
|
|
224
224
|
const parse = command.parseOptions.bind(command);
|
|
@@ -238,7 +238,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
238
238
|
return command;
|
|
239
239
|
}, "queryWordsAfterOptions");
|
|
240
240
|
|
|
241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
241
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
242
242
|
var count = /* @__PURE__ */ __name((value) => {
|
|
243
243
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
244
244
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -280,7 +280,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
280
280
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
281
281
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
282
282
|
|
|
283
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
284
284
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
285
285
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
286
286
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -303,7 +303,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
303
303
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
304
304
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
305
305
|
|
|
306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
307
307
|
var integer3 = /* @__PURE__ */ __name((text) => {
|
|
308
308
|
if (!/^[1-9]\d*$/.test(text) || !Number.isSafeInteger(Number(text)))
|
|
309
309
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -447,7 +447,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
447
447
|
}, "addMeetingCommandsDefinition");
|
|
448
448
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
449
449
|
|
|
450
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
450
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
451
451
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
452
452
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
453
453
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -588,7 +588,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
588
588
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
589
589
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
590
590
|
|
|
591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
591
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
592
592
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
593
593
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
594
594
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -597,7 +597,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
597
597
|
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");
|
|
598
598
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
599
599
|
|
|
600
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
600
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
601
601
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
602
602
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
603
603
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -859,7 +859,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
859
859
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
860
860
|
}), "sessionAnswer");
|
|
861
861
|
|
|
862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
862
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
863
863
|
import { createHash } from "node:crypto";
|
|
864
864
|
import { chmodSync, lstatSync, mkdirSync, rmSync } from "node:fs";
|
|
865
865
|
import { createConnection, createServer } from "node:net";
|
|
@@ -1080,7 +1080,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
|
|
|
1080
1080
|
}, () => finish({ error: stopped() }));
|
|
1081
1081
|
}), "relayCommand");
|
|
1082
1082
|
|
|
1083
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1083
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
1084
1084
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
1085
1085
|
close: /* @__PURE__ */ __name(async () => {
|
|
1086
1086
|
}, "close"),
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
11
11
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
12
12
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
13
13
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -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.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/runs/secrets.js
|
|
8
8
|
var SECRET_WORDS = /* @__PURE__ */ new Set([
|
|
9
9
|
"authorization",
|
|
10
10
|
"cookie",
|
|
@@ -2,21 +2,21 @@ 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-CT4WVR4N.js";
|
|
6
6
|
import {
|
|
7
7
|
SAMPLE_RATE,
|
|
8
8
|
toModelRate
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4QUFFB2U.js";
|
|
10
10
|
import {
|
|
11
11
|
OPENAI_URL
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-CFQF6IGY.js";
|
|
13
13
|
import {
|
|
14
14
|
OPENAI_TRANSCRIBE_MODEL,
|
|
15
15
|
VAD,
|
|
16
16
|
filesPresent,
|
|
17
17
|
modelsDirectory,
|
|
18
18
|
vadPath
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-GXF5HFFP.js";
|
|
20
20
|
import {
|
|
21
21
|
DEFAULT_RETRY,
|
|
22
22
|
backoffMs
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
__name
|
|
30
30
|
} from "./chunk-ZVVMGPBJ.js";
|
|
31
31
|
|
|
32
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
33
33
|
import { setTimeout as wait } from "node:timers/promises";
|
|
34
34
|
|
|
35
35
|
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/body.js
|
|
@@ -159,7 +159,7 @@ var statusToCode = /* @__PURE__ */ __name((status) => {
|
|
|
159
159
|
return "provider_error";
|
|
160
160
|
}, "statusToCode");
|
|
161
161
|
|
|
162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
163
163
|
var LONGEST_REQUEST_SECONDS = 600;
|
|
164
164
|
var JOINED_SECONDS = 0.2;
|
|
165
165
|
var PAD_SECONDS = 0.2;
|
|
@@ -281,7 +281,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
|
|
|
281
281
|
return pieces;
|
|
282
282
|
}, "piecesOf");
|
|
283
283
|
var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
|
|
284
|
-
const { openSpeechCutter } = await import("./recognize-
|
|
284
|
+
const { openSpeechCutter } = await import("./recognize-ECXDGTB7.js");
|
|
285
285
|
return openSpeechCutter(vadModel);
|
|
286
286
|
}, "openCutter");
|
|
287
287
|
var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BBTQIVFP.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
10
|
} from "./chunk-FEM2JQN2.js";
|
|
@@ -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.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
|
|
16
16
|
import { createInterface } from "node:readline";
|
|
17
17
|
import { Writable } from "node:stream";
|
|
18
18
|
var EMPTY_TRIES = 3;
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-ZVVMGPBJ.js";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
23
23
|
var named = /* @__PURE__ */ __name((work) => {
|
|
24
24
|
try {
|
|
25
25
|
return work();
|
|
@@ -46,7 +46,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
46
46
|
return projectFields(value, fields);
|
|
47
47
|
}), "projectFields");
|
|
48
48
|
|
|
49
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
50
50
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
51
51
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
52
52
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -82,7 +82,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
82
82
|
return value;
|
|
83
83
|
}, "atDetail");
|
|
84
84
|
|
|
85
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
85
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_737712cd0065e7e21fd5896a79d0773d/node_modules/@wirecat/cli-core/dist/output.js
|
|
86
86
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
87
87
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
88
88
|
if (other)
|