@wirecat/zoom-cli 0.69.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/README.md +1 -1
- package/dist/account-removal.d.ts +6 -0
- package/dist/account-removal.d.ts.map +1 -0
- package/dist/account-removal.js +43 -0
- package/dist/account-removal.js.map +1 -0
- 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-ZQWPCJEK.js → all-profiles-O4YNVPZX.js} +9 -9
- package/dist/bundle/answer-policy-PPSPMCLH.js +104 -0
- package/dist/bundle/{anthropic-7FUQ2HYJ.js → anthropic-7GGRX3RX.js} +20 -9
- package/dist/bundle/{app-server-DNPE2EQB.js → app-server-CPMKM3HI.js} +50 -50
- package/dist/bundle/{bun-ZVQFCFCC.js → bun-POHZKEPV.js} +2 -2
- package/dist/bundle/{bun-sqlite-EB2UMUPJ.js → bun-sqlite-PGYMBPEL.js} +4 -4
- package/dist/bundle/{chunk-R2ULMWB4.js → chunk-2FV5JUQU.js} +39 -593
- package/dist/bundle/{chunk-R3JYPY3J.js → chunk-2KESWII5.js} +2 -2
- package/dist/bundle/{chunk-S2EAGDS7.js → chunk-2RUAMDVV.js} +11 -11
- package/dist/bundle/{chunk-H3MFBYTQ.js → chunk-2U27KIKU.js} +5 -5
- package/dist/bundle/{chunk-KAPJQGHE.js → chunk-2U6SER67.js} +1 -1
- package/dist/bundle/chunk-4LAQDZXU.js +1635 -0
- package/dist/bundle/{chunk-SQT47CFW.js → chunk-4QPQ7MDA.js} +1 -1
- package/dist/bundle/{chunk-MNOVYS43.js → chunk-4QUFFB2U.js} +3 -3
- package/dist/bundle/{chunk-V74QFMSL.js → chunk-54YDWBYG.js} +1 -1
- package/dist/bundle/{chunk-MSDCZ6GT.js → chunk-5J4AMBMM.js} +4 -4
- package/dist/bundle/{chunk-GR3QDHBU.js → chunk-5K7OGPGA.js} +5 -5
- package/dist/bundle/{chunk-WY4NYPPS.js → chunk-5LJTU4LY.js} +12 -12
- package/dist/bundle/{chunk-MJMVIFSC.js → chunk-633QXP57.js} +10 -8
- package/dist/bundle/{chunk-EPPSMCEV.js → chunk-64ZHF6PJ.js} +1 -1
- package/dist/bundle/{chunk-ZRHMB3LQ.js → chunk-77TCCHMP.js} +1 -1
- package/dist/bundle/{chunk-BOAMDYLY.js → chunk-7QC4M4HS.js} +2 -2
- package/dist/bundle/{chunk-O7L44JK2.js → chunk-7ROXXRGG.js} +3933 -1525
- package/dist/bundle/{chunk-MVDPZRFE.js → chunk-ALIT5QFT.js} +1 -1
- package/dist/bundle/{chunk-6N2D6JGX.js → chunk-BBTQIVFP.js} +1 -1
- package/dist/bundle/{chunk-QXM7S3Y3.js → chunk-BGTEVIW4.js} +5 -5
- package/dist/bundle/{chunk-JX5JJZC3.js → chunk-CFQF6IGY.js} +2 -2
- package/dist/bundle/{chunk-5GOE6PQK.js → chunk-CKPCVEXU.js} +5 -5
- package/dist/bundle/{chunk-6KMTQX3D.js → chunk-CRFOGYDG.js} +1 -1
- package/dist/bundle/{chunk-5H6VTEEC.js → chunk-CT4WVR4N.js} +2 -2
- package/dist/bundle/{chunk-3TPRYZUW.js → chunk-DHWBSXG3.js} +23 -23
- package/dist/bundle/{chunk-IPBZKUC3.js → chunk-DIQLXAAZ.js} +3 -3
- package/dist/bundle/{chunk-JZ4YOAHA.js → chunk-DK6ICIGL.js} +4558 -1670
- package/dist/bundle/{chunk-OSBHEM2A.js → chunk-DRBQDCDU.js} +10 -10
- package/dist/bundle/{chunk-G6IX2MD2.js → chunk-DSVZEXYJ.js} +1104 -948
- package/dist/bundle/{chunk-B6JMVB6R.js → chunk-EOSVN2ER.js} +1 -1
- package/dist/bundle/{chunk-MOTKS7XG.js → chunk-FSHCAWZS.js} +29354 -16490
- package/dist/bundle/{chunk-TKXLWFM2.js → chunk-GGS6D4W4.js} +3 -3
- package/dist/bundle/{chunk-4APZQYCH.js → chunk-GL3MYFMX.js} +4 -4
- package/dist/bundle/{chunk-LDRQ5NAP.js → chunk-GXF5HFFP.js} +3 -3
- package/dist/bundle/{chunk-5ZF6QVMC.js → chunk-HB6XJQ3Y.js} +4 -4
- package/dist/bundle/{chunk-QW5VPZEH.js → chunk-I4DFFR7F.js} +23 -1
- package/dist/bundle/{chunk-DHD25JII.js → chunk-IAV5BG3I.js} +1 -1
- package/dist/bundle/{chunk-52DCABMU.js → chunk-IED3NS7G.js} +30 -38
- package/dist/bundle/{chunk-LQX74VKG.js → chunk-INVTDIF6.js} +1 -1
- package/dist/bundle/{chunk-CKK6JOC4.js → chunk-KMV7GZB6.js} +2 -2
- package/dist/bundle/{chunk-XRZDYWF6.js → chunk-LE7MDAQG.js} +2 -2
- package/dist/bundle/{chunk-B5D7NZI7.js → chunk-M76MXMLY.js} +1 -1
- package/dist/bundle/{chunk-37B7A4RP.js → chunk-MEED7YFG.js} +1 -1
- package/dist/bundle/{chunk-LEA4BGK7.js → chunk-MRI6QMZ3.js} +11 -11
- package/dist/bundle/{chunk-6TICX3MN.js → chunk-MW4EGDDV.js} +2 -2
- package/dist/bundle/{chunk-SZ3Z4ZNO.js → chunk-N2FNMION.js} +1 -1
- package/dist/bundle/{chunk-CUZHKYC2.js → chunk-OHWMIUCT.js} +450 -641
- package/dist/bundle/{chunk-KNE6VFHZ.js → chunk-OORMSM6O.js} +1 -1
- package/dist/bundle/{chunk-Z6TTGTMU.js → chunk-OWEBWDHV.js} +76 -6
- package/dist/bundle/{chunk-5ZJXKASF.js → chunk-P3XC6EDU.js} +17 -21
- package/dist/bundle/chunk-Q2SUFGSH.js +136 -0
- package/dist/bundle/{chunk-TFFEFEG2.js → chunk-Q3XLZIY3.js} +18 -18
- package/dist/bundle/{chunk-IEC4E65G.js → chunk-Q5PI72CR.js} +5 -1
- package/dist/bundle/{chunk-V4MM6GST.js → chunk-QTHIU7CO.js} +1 -1
- package/dist/bundle/{chunk-JHFP3Z5S.js → chunk-QVSLSWAL.js} +8 -8
- package/dist/bundle/{chunk-QLGG7S6F.js → chunk-RN4EHCC5.js} +22 -4
- package/dist/bundle/{chunk-BL36NSV5.js → chunk-RQG5VOGH.js} +12 -2
- package/dist/bundle/{chunk-RPQ3JOD3.js → chunk-SELXER2Q.js} +5 -5
- package/dist/bundle/{chunk-KX5MZVPX.js → chunk-TM4JSVGQ.js} +60 -53
- package/dist/bundle/{chunk-TN77LX6W.js → chunk-UG447QY2.js} +1 -1
- package/dist/bundle/{chunk-HC56J5LB.js → chunk-ULDXZ6LH.js} +66 -59
- package/dist/bundle/chunk-USQ23X5V.js +1227 -0
- package/dist/bundle/{chunk-UEZ6URJR.js → chunk-VJXHIUFP.js} +19 -19
- package/dist/bundle/{chunk-TWIC6JJG.js → chunk-VRH7VRTK.js} +7 -7
- package/dist/bundle/{chunk-NRRI37NJ.js → chunk-WOIHSQAL.js} +44 -0
- package/dist/bundle/{chunk-L62EJDNZ.js → chunk-X277FBTF.js} +3 -3
- package/dist/bundle/{chunk-XITUFTON.js → chunk-X3ZDN3U7.js} +1 -1
- package/dist/bundle/{chunk-GXDOTUUO.js → chunk-X4GWR6GO.js} +9 -9
- package/dist/bundle/chunk-XI3VIQKW.js +756 -0
- package/dist/bundle/{chunk-FBLUKCIR.js → chunk-XRFHQGOD.js} +1 -1
- package/dist/bundle/{chunk-HW5QTRFF.js → chunk-YD2RYVMK.js} +36 -36
- package/dist/bundle/{chunk-XJBYGMZ4.js → chunk-YPO2U2YB.js} +669 -458
- package/dist/bundle/{chunk-C6TEYKXV.js → chunk-ZBFL5JPT.js} +8 -7
- package/dist/bundle/{chunk-7AUP2WT3.js → chunk-ZBKWRYRS.js} +2 -2
- package/dist/bundle/{chunk-HSI7YOYK.js → chunk-ZVI6TFQR.js} +100 -43
- package/dist/bundle/{cli-P3BZUE6S.js → cli-KHMEUXNG.js} +123 -68
- package/dist/bundle/command-contract-4K6XXZYE.js +41 -0
- package/dist/bundle/config-EEDB632I.js +90 -0
- package/dist/bundle/{decode-QWOQXM7M.js → decode-7RP4HSVE.js} +4 -4
- package/dist/bundle/{dispatch-5MGDLOK4.js → dispatch-IZCAK47P.js} +1 -1
- package/dist/bundle/{dist-OUE4MF37.js → dist-BFT2SUBV.js} +87 -51
- package/dist/bundle/{echarts-65IMPY43.js → echarts-T2BSQ2YV.js} +2 -2
- package/dist/bundle/{embed-4IULBCKL.js → embed-BAS6YPDT.js} +5 -5
- package/dist/bundle/{embedder-JW4W6IZI.js → embedder-5XD5FCAO.js} +8 -8
- package/dist/bundle/{failure-CR64C4XA.js → failure-R2OIHCE5.js} +1 -1
- package/dist/bundle/{first-run-CH6C674R.js → first-run-23WWZ2PW.js} +8 -8
- package/dist/bundle/first-screen-6HFUYVFR.js +39 -0
- package/dist/bundle/{folders-VU4IN35Y.js → folders-ZXTOFY4T.js} +3 -3
- package/dist/bundle/{instructions-G5QIH2TM.js → instructions-XZPROPKY.js} +1 -1
- package/dist/bundle/{main-O4ZJIEWP.js → main-TZXKGL3L.js} +18 -18
- package/dist/bundle/{meetings-77CCAVYD.js → meetings-JB2ISPND.js} +6 -4
- package/dist/bundle/{node-E6VQHU4Y.js → node-A3B3MJWX.js} +2 -2
- package/dist/bundle/{node-sqlite-RJZ4PGLD.js → node-sqlite-QVWDLGDX.js} +5 -5
- package/dist/bundle/{oauth-F4JKNRW4.js → oauth-YA6IYV4O.js} +6 -6
- package/dist/bundle/{open-NYOGMIAA.js → open-SY7TXJBS.js} +4 -4
- package/dist/bundle/{openai-5U6EQTFQ.js → openai-2AU24NRN.js} +10 -10
- package/dist/bundle/{output-file-6COFGPUL.js → output-file-YGQYZCBJ.js} +4 -4
- package/dist/bundle/{process-OBWUKBMX.js → process-6HNBTJIY.js} +1 -1
- package/dist/bundle/{program-MU7DEJTO.js → program-77BUCJ4H.js} +132 -100
- package/dist/bundle/{prompt-2QWQTHWT.js → prompt-YDG73YDS.js} +6 -4
- package/dist/bundle/{recognize-SNUNTUC3.js → recognize-ECXDGTB7.js} +3 -3
- package/dist/bundle/{remote-2CTCIQGF.js → remote-K4JHGBVJ.js} +6 -6
- package/dist/bundle/{rerank-XDA7NJNH.js → rerank-IU2YYD4T.js} +6 -6
- package/dist/bundle/{run-log-NSG3DJVX.js → run-log-LFEXNZ74.js} +54 -54
- package/dist/bundle/{serve-TWQFHOV2.js → serve-3XWIF3HI.js} +8 -8
- package/dist/bundle/{server-RIQ6HMH2.js → server-56VYOHWP.js} +42 -42
- package/dist/bundle/server-YSTMUZ22.js +72 -0
- package/dist/bundle/{services-NKZQJQIV.js → services-X7IPEGQ5.js} +118 -36
- package/dist/bundle/{speech-ZOB76SXA.js → speech-E2OBQWYA.js} +12 -12
- package/dist/bundle/{state-7YYEIXQ5.js → state-4GMJYK4H.js} +5 -5
- package/dist/bundle/{store-OX4HRBLO.js → store-KPI7GB5Y.js} +49 -22
- package/dist/bundle/{store-E6RTSSNR.js → store-LA4TV4DM.js} +39 -16
- package/dist/bundle/store-connection-AZTIF6IH.js +83 -0
- package/dist/bundle/store-maintenance-command-LR572PS4.js +61 -0
- package/dist/bundle/{streaming-O53PIORL.js → streaming-EJ3NM2C2.js} +5 -5
- package/dist/bundle/{tokens-QKNEP2GJ.js → tokens-BE6CJMR5.js} +5 -5
- package/dist/bundle/zm.js +3 -3
- package/dist/bundle/{zoom-app-TSI2MGVK.js → zoom-app-QEJBTIJ4.js} +6 -6
- 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/first-screen.d.ts.map +1 -1
- package/dist/first-screen.js +1 -0
- package/dist/first-screen.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/permissions.js +1 -1
- package/dist/permissions.js.map +1 -1
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +11 -0
- package/dist/setup-commands.js.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/tokens.d.ts +2 -0
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +11 -0
- package/dist/tokens.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/answer-policy-VBDYLUXI.js +0 -104
- package/dist/bundle/chunk-2SYWVIQJ.js +0 -33
- package/dist/bundle/chunk-6AMMTXEA.js +0 -12473
- package/dist/bundle/chunk-F5DYBWH7.js +0 -299
- package/dist/bundle/chunk-T5X4LGXE.js +0 -380
- package/dist/bundle/command-contract-TOLB32NJ.js +0 -41
- package/dist/bundle/config-4KLLIADY.js +0 -90
- package/dist/bundle/first-screen-OCAW5ZN6.js +0 -39
- package/dist/bundle/server-XO6XQQTJ.js +0 -72
- package/dist/bundle/store-connection-55QPNUDS.js +0 -83
- package/dist/bundle/store-maintenance-command-Q5MSU6OK.js +0 -62
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
QUERY_REASONS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EOSVN2ER.js";
|
|
6
6
|
import {
|
|
7
7
|
defineReasons
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WOIHSQAL.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.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"],
|
|
@@ -44,7 +44,17 @@ var SIGN_IN = [
|
|
|
44
44
|
["sign-in.client-file-invalid", "configuration_error", "the file is not a Desktop app OAuth client JSON"],
|
|
45
45
|
["oauth.scope-missing", "permission_error", "the sign-in lacks a permission this command needs"],
|
|
46
46
|
["sign-in.client-rejected", "configuration_error", "the provider rejected the OAuth client"],
|
|
47
|
-
["sign-in.secret-without-id", "configuration_error", "an OAuth client secret is set without its client id"]
|
|
47
|
+
["sign-in.secret-without-id", "configuration_error", "an OAuth client secret is set without its client id"],
|
|
48
|
+
validation("account-remove.no-choice", "account remove needs --keep-data or --delete-data, one of them"),
|
|
49
|
+
["account-remove.unknown-profile", "not_found", "no profile by this name on this computer"],
|
|
50
|
+
["account-remove.busy", "conflict", "a serve or a sync runs for this profile; stop it first"],
|
|
51
|
+
["account-remove.unconfirmed", "confirmation_required", "removing an account asks first; add --yes"],
|
|
52
|
+
["account-remove.path-outside", "configuration_error", "the tool named a path outside its own folders"],
|
|
53
|
+
[
|
|
54
|
+
"account-remove.folder-outside",
|
|
55
|
+
"configuration_error",
|
|
56
|
+
"the tool named a folder of its own outside the home folder"
|
|
57
|
+
]
|
|
48
58
|
];
|
|
49
59
|
var PROVIDER_API = [
|
|
50
60
|
["offline.refused", "permission_error", "this command needs the provider; --offline was given"],
|
|
@@ -57,7 +67,11 @@ var PROVIDER_API = [
|
|
|
57
67
|
];
|
|
58
68
|
var OTHERS = [
|
|
59
69
|
["query.time-limit", "timeout", "the search took longer than its time limit; the query itself is valid"],
|
|
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"],
|
|
60
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"],
|
|
61
75
|
[
|
|
62
76
|
"contract.unacknowledged-override",
|
|
63
77
|
"configuration_error",
|
|
@@ -80,6 +94,7 @@ var OTHERS = [
|
|
|
80
94
|
validation("mail-findings.invalid", "a checked mail findings batch would be refused; details.problems names why, finding by finding"),
|
|
81
95
|
validation("mail-findings.key-used", "the findings batch key was already used for different input"),
|
|
82
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"),
|
|
83
98
|
validation("finding.missing-field", "a finding leaves out a field its kind needs"),
|
|
84
99
|
validation("document.changed", "the document changed while it was read; nothing was saved"),
|
|
85
100
|
["document.not-imported", "not_found", "the document is not imported in this source account"],
|
|
@@ -151,7 +166,7 @@ var OTHERS = [
|
|
|
151
166
|
[
|
|
152
167
|
"source.needs-sign-in",
|
|
153
168
|
"authentication_error",
|
|
154
|
-
"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>"
|
|
155
170
|
],
|
|
156
171
|
validation("source.too-large", "the source is larger than one read takes"),
|
|
157
172
|
validation("source.unsupported", "no reader takes this kind of source"),
|
|
@@ -192,6 +207,11 @@ var OTHERS = [
|
|
|
192
207
|
"configuration_error",
|
|
193
208
|
"the store file is damaged; store recover says what is lost and recovers it"
|
|
194
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
|
+
],
|
|
195
215
|
validation("store.file-damaged", "the named store file is damaged or not a database"),
|
|
196
216
|
[
|
|
197
217
|
"store.unreadable",
|
|
@@ -205,6 +225,11 @@ var OTHERS = [
|
|
|
205
225
|
"recovering the store needs the sqlite3 program, 3.43 or newer, with its .recover command"
|
|
206
226
|
],
|
|
207
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
|
+
],
|
|
208
233
|
validation("store.recovering", "another recovery of the store is running; wait for it to finish"),
|
|
209
234
|
validation("store.changed-during-recovery", "the store was written to during the recovery, so it was left as it was"),
|
|
210
235
|
[
|
|
@@ -220,6 +245,7 @@ var OTHERS = [
|
|
|
220
245
|
validation("evidence.row-too-large", "one evidence row is over its size limit"),
|
|
221
246
|
validation("index.not-ready", "the search index is still being built"),
|
|
222
247
|
validation("input.closed", "the input closed before the answer"),
|
|
248
|
+
validation("input.empty", "a hidden prompt got an empty answer three times"),
|
|
223
249
|
validation("input.required", "the command needs an answer and cannot ask for one"),
|
|
224
250
|
validation("input.too-large", "the input is over its size limit"),
|
|
225
251
|
["meeting-project.stale", "configuration_error", "the meeting's project changed meanwhile"],
|
|
@@ -228,10 +254,13 @@ var OTHERS = [
|
|
|
228
254
|
validation("fact.payment-retired", "a payment is a payments row in store.finance, not a fact"),
|
|
229
255
|
validation("fact.revoke-correction", "an accepted correction cannot be revoked; its superseded fact stays"),
|
|
230
256
|
validation("finance.allocate", "the invoice or payment cannot take an allocation in its state"),
|
|
257
|
+
validation("finance.below-paid", "the invoice's lines would total less than is paid on it"),
|
|
231
258
|
validation("finance.currency", "the payment and the invoice are in different currencies; nothing is converted"),
|
|
232
259
|
validation("finance.field", "a field of the invoice or payment is not valid"),
|
|
233
260
|
validation("finance.line-amount", "an invoice line's amount is not its quantity times its unit price"),
|
|
261
|
+
validation("finance.line", "an invoice keeps at least one line: reject or void it instead"),
|
|
234
262
|
validation("finance.lines", "the invoice's lines are not valid"),
|
|
263
|
+
["finance.no-line", "not_found", "the invoice has no line at that position"],
|
|
235
264
|
["finance.not-allocated", "not_found", "the payment is not allocated to that invoice"],
|
|
236
265
|
validation("finance.over-invoice", "the allocation would settle more than the invoice's total"),
|
|
237
266
|
validation("finance.over-payment", "the allocation would use more than the payment's amount"),
|
|
@@ -271,8 +300,18 @@ var OTHERS = [
|
|
|
271
300
|
validation("deal.closed", "a deleted deal or lead does not move or close"),
|
|
272
301
|
validation("deal.copy", "a CRM's copy changes in the CRM; its next sync brings the change here"),
|
|
273
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"],
|
|
274
305
|
validation("deal.ref", "the reference names no deal or lead"),
|
|
275
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"],
|
|
276
315
|
validation("pipeline.ambiguous", "more than one pipeline has that name; name it by its pipeline: reference"),
|
|
277
316
|
validation("pipeline.duplicate", "a pipeline of that name and kind is already stored"),
|
|
278
317
|
validation("pipeline.field", "a pipeline needs a name and at least one stage, each named once"),
|
|
@@ -286,6 +325,7 @@ var OTHERS = [
|
|
|
286
325
|
validation("field.unknown-kind", "fields are listed for deals, leads, people and organizations only"),
|
|
287
326
|
validation("crm.write-unsupported", "the CRM does not take this write, or does not recognise a repeated one"),
|
|
288
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"),
|
|
289
329
|
validation("crm.not-reported", "the CRM did not list users or departments; what they would say is unknown, nothing withdrawn"),
|
|
290
330
|
validation("crm.reference-unknown", "a CRM row names a contact, company or user the store does not hold; that link was not made"),
|
|
291
331
|
validation("crm.pending-dropped", "relationships waited too long for an end that never came; they were dropped"),
|
|
@@ -332,6 +372,25 @@ var OTHERS = [
|
|
|
332
372
|
"conflict",
|
|
333
373
|
"the owner separated this identity from that person; only the owner links it again"
|
|
334
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"),
|
|
335
394
|
["transcription.no-key", "authentication_error", "no OpenAI key is set for transcription"],
|
|
336
395
|
validation("transcription.too-large", "the audio is over the transcription provider's size limit"),
|
|
337
396
|
[
|
|
@@ -346,8 +405,9 @@ var OTHERS = [
|
|
|
346
405
|
validation("output.unknown-field", "the answer has no field by that name"),
|
|
347
406
|
validation("name.taken", "the name is already used"),
|
|
348
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"],
|
|
349
409
|
validation("proposal.wrong-state", "the proposal is not in a state that allows this"),
|
|
350
|
-
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"),
|
|
351
411
|
validation("decision.request-invalid", "a decision request needs its batch, message, owner and distinct known actions"),
|
|
352
412
|
["decision.token-unknown", "not_found", "no button has this token"],
|
|
353
413
|
["decision.token-used", "permission_error", "this button was already pressed"],
|
|
@@ -364,6 +424,7 @@ var OTHERS = [
|
|
|
364
424
|
],
|
|
365
425
|
validation("proposal.decider-required", "a decision names who decides: the owner or an agent with a reason"),
|
|
366
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"],
|
|
367
428
|
["proposal.own", "permission_error", "an agent never decides its own proposal"],
|
|
368
429
|
["proposal.owner-only", "permission_error", "only the owner decides this proposal"],
|
|
369
430
|
["proposals.agent-decisions-off", "permission_error", "agent decisions are turned off; the owner decides"],
|
|
@@ -373,6 +434,8 @@ var OTHERS = [
|
|
|
373
434
|
validation("relationship.role-built-in", "a built-in role stays on its list"),
|
|
374
435
|
validation("relationship.role-in-use", "relationships still hold that role; change them first (details.count)"),
|
|
375
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"),
|
|
376
439
|
validation("ranking.invalid", "the ranking is not valid"),
|
|
377
440
|
validation("ref.malformed", "the reference has a known kind but not its shape"),
|
|
378
441
|
validation("ref.unknown-kind", "the text names no kind of reference"),
|
|
@@ -390,6 +453,13 @@ var OTHERS = [
|
|
|
390
453
|
validation("tag-review.required", "the tag needs the owner's review first"),
|
|
391
454
|
["tag-review.stale", "configuration_error", "the tag review changed meanwhile"],
|
|
392
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"],
|
|
393
463
|
["reactions.list-hidden", "permission_error", "the chat does not let its members see who reacted"],
|
|
394
464
|
["reactions.broadcast", "permission_error", "a channel does not show who reacted to its posts"],
|
|
395
465
|
validation("task.external-id", "an external id is <service>:<id>, such as avito:4512345678"),
|
|
@@ -2,19 +2,21 @@ 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-6AMMTXEA.js";
|
|
14
|
+
providerNamed
|
|
15
|
+
} from "./chunk-XI3VIQKW.js";
|
|
14
16
|
import {
|
|
15
17
|
resolvePaths,
|
|
16
18
|
writeSecurely
|
|
17
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-OORMSM6O.js";
|
|
18
20
|
import {
|
|
19
21
|
array,
|
|
20
22
|
getDotPath,
|
|
@@ -33,7 +35,7 @@ import {
|
|
|
33
35
|
string,
|
|
34
36
|
transform,
|
|
35
37
|
unknown
|
|
36
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-WOIHSQAL.js";
|
|
37
39
|
import {
|
|
38
40
|
CliError
|
|
39
41
|
} from "./chunk-FEM2JQN2.js";
|
|
@@ -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"];
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
parseReference
|
|
5
|
+
} from "./chunk-XI3VIQKW.js";
|
|
6
|
+
import {
|
|
7
|
+
__name
|
|
8
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
9
|
+
|
|
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
|
+
var LINK_VERSION = "v1";
|
|
12
|
+
var DEFAULT_LINK_CONFIG = { base: "https://wirecat.dev/o", enabled: true };
|
|
13
|
+
var APP_PREFIX = "wirecat://open";
|
|
14
|
+
var MAX_PATH = 512;
|
|
15
|
+
var MAX_SEGMENTS = 6;
|
|
16
|
+
var TASK_FILTERS = ["overdue", "today", "tomorrow", "undated"];
|
|
17
|
+
var DATE = /^\d{4}-\d{2}-\d{2}$/;
|
|
18
|
+
var DATE_TIME = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:\d{2})$/;
|
|
19
|
+
var isMoment = /* @__PURE__ */ __name((text, pattern) => pattern.test(text) && !Number.isNaN(Date.parse(text)), "isMoment");
|
|
20
|
+
var partsOf = /* @__PURE__ */ __name((target) => {
|
|
21
|
+
switch (target.type) {
|
|
22
|
+
case "message":
|
|
23
|
+
return ["msg", target.provider, target.account, target.chat, target.message];
|
|
24
|
+
case "chat":
|
|
25
|
+
return ["chat", target.provider, target.account, target.chat];
|
|
26
|
+
case "task":
|
|
27
|
+
case "person":
|
|
28
|
+
case "project":
|
|
29
|
+
return [target.type, target.id];
|
|
30
|
+
case "tasks":
|
|
31
|
+
return target.filter === "new" ? ["tasks", "new", target.since] : ["tasks", target.filter];
|
|
32
|
+
case "proposal":
|
|
33
|
+
return ["proposal", target.id];
|
|
34
|
+
case "digest":
|
|
35
|
+
return ["digest", target.date];
|
|
36
|
+
case "sync":
|
|
37
|
+
return target.account === void 0 ? ["sync", target.tool] : ["sync", target.tool, target.account];
|
|
38
|
+
}
|
|
39
|
+
}, "partsOf");
|
|
40
|
+
var pathOf = /* @__PURE__ */ __name((target) => partsOf(target).map(encodeURIComponent).join("/"), "pathOf");
|
|
41
|
+
var targetOfParts = /* @__PURE__ */ __name((parts) => {
|
|
42
|
+
const [kind, ...rest] = parts;
|
|
43
|
+
const [a = "", b = "", c = "", d = ""] = rest;
|
|
44
|
+
switch (kind) {
|
|
45
|
+
case "msg":
|
|
46
|
+
return rest.length === 4 ? { type: "message", provider: a, account: b, chat: c, message: d } : null;
|
|
47
|
+
case "chat":
|
|
48
|
+
return rest.length === 3 ? { type: "chat", provider: a, account: b, chat: c } : null;
|
|
49
|
+
case "task":
|
|
50
|
+
case "person":
|
|
51
|
+
case "project":
|
|
52
|
+
return rest.length === 1 ? { type: kind, id: a } : null;
|
|
53
|
+
case "tasks":
|
|
54
|
+
if (rest.length === 1 && TASK_FILTERS.includes(a))
|
|
55
|
+
return { type: "tasks", filter: a };
|
|
56
|
+
return rest.length === 2 && a === "new" && (isMoment(b, DATE) || isMoment(b, DATE_TIME)) ? { type: "tasks", filter: "new", since: b } : null;
|
|
57
|
+
case "proposal":
|
|
58
|
+
return rest.length === 1 ? { type: "proposal", id: a } : null;
|
|
59
|
+
case "digest":
|
|
60
|
+
return rest.length === 1 && isMoment(a, DATE) ? { type: "digest", date: a } : null;
|
|
61
|
+
case "sync":
|
|
62
|
+
return rest.length === 1 || rest.length === 2 ? { type: "sync", tool: a, ...rest.length === 2 ? { account: b } : {} } : null;
|
|
63
|
+
default:
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
}, "targetOfParts");
|
|
67
|
+
var targetOfPath = /* @__PURE__ */ __name((path) => {
|
|
68
|
+
const raw = path.split("/");
|
|
69
|
+
if (raw.some((part) => part === ""))
|
|
70
|
+
return null;
|
|
71
|
+
try {
|
|
72
|
+
return targetOfParts(raw.map(decodeURIComponent));
|
|
73
|
+
} catch {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
}, "targetOfPath");
|
|
77
|
+
var formatLink = /* @__PURE__ */ __name((target) => `/${LINK_VERSION}/${pathOf(target)}`, "formatLink");
|
|
78
|
+
var parseLink = /* @__PURE__ */ __name((text) => {
|
|
79
|
+
const link = text.trim();
|
|
80
|
+
const path = link.startsWith(`${APP_PREFIX}/`) ? link.slice(APP_PREFIX.length) : link.startsWith("https://") && link.includes("#") ? link.slice(link.indexOf("#") + 1) : link;
|
|
81
|
+
if (path.length > MAX_PATH || !path.startsWith(`/${LINK_VERSION}/`))
|
|
82
|
+
return null;
|
|
83
|
+
const rest = path.split("?")[0].slice(LINK_VERSION.length + 2);
|
|
84
|
+
if (rest.split("/").length + 1 > MAX_SEGMENTS)
|
|
85
|
+
return null;
|
|
86
|
+
return targetOfPath(rest);
|
|
87
|
+
}, "parseLink");
|
|
88
|
+
var LINK_ONLY = /* @__PURE__ */ new Set(["tasks", "proposal", "digest", "sync"]);
|
|
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");
|
|
95
|
+
var linkTargetOf = /* @__PURE__ */ __name((ref) => {
|
|
96
|
+
const text = ref.trim();
|
|
97
|
+
const colon = text.indexOf(":");
|
|
98
|
+
if (colon < 0)
|
|
99
|
+
return null;
|
|
100
|
+
const kind = text.slice(0, colon);
|
|
101
|
+
if (LINK_ONLY.has(kind))
|
|
102
|
+
return targetOfPath(`${kind}/${text.slice(colon + 1)}`);
|
|
103
|
+
try {
|
|
104
|
+
const reference = parseReference(text);
|
|
105
|
+
return FROM_REFERENCE.has(reference.type) ? reference : null;
|
|
106
|
+
} catch {
|
|
107
|
+
return null;
|
|
108
|
+
}
|
|
109
|
+
}, "linkTargetOf");
|
|
110
|
+
var linkConfigOf = /* @__PURE__ */ __name((section) => {
|
|
111
|
+
const value = section && typeof section === "object" ? section : {};
|
|
112
|
+
const base = typeof value.base === "string" && /^https:\/\/[^\s#?]+$/.test(value.base) ? value.base.replace(/\/+$/, "") : DEFAULT_LINK_CONFIG.base;
|
|
113
|
+
return { base, enabled: typeof value.enabled === "boolean" ? value.enabled : DEFAULT_LINK_CONFIG.enabled };
|
|
114
|
+
}, "linkConfigOf");
|
|
115
|
+
var linkFor = /* @__PURE__ */ __name((ref, { form, config = DEFAULT_LINK_CONFIG, env = process.env }) => {
|
|
116
|
+
if (!config.enabled || env.WIRECAT_LINKS === "off")
|
|
117
|
+
return null;
|
|
118
|
+
const target = typeof ref === "string" ? linkTargetOf(ref) : ref;
|
|
119
|
+
if (target === null)
|
|
120
|
+
return null;
|
|
121
|
+
const path = formatLink(target);
|
|
122
|
+
if (path.length > MAX_PATH || parseLink(path) === null)
|
|
123
|
+
return null;
|
|
124
|
+
return form === "app" ? `${APP_PREFIX}${path}` : `${config.base}#${path}`;
|
|
125
|
+
}, "linkFor");
|
|
126
|
+
|
|
127
|
+
export {
|
|
128
|
+
LINK_VERSION,
|
|
129
|
+
DEFAULT_LINK_CONFIG,
|
|
130
|
+
formatLink,
|
|
131
|
+
parseLink,
|
|
132
|
+
refsForLink,
|
|
133
|
+
linkTargetOf,
|
|
134
|
+
linkConfigOf,
|
|
135
|
+
linkFor
|
|
136
|
+
};
|
|
@@ -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,
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
timezoneOf,
|
|
62
62
|
validateQuery,
|
|
63
63
|
zonedMoment
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-EOSVN2ER.js";
|
|
65
65
|
import {
|
|
66
66
|
array,
|
|
67
67
|
boolean,
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
safeParse,
|
|
75
75
|
strictObject,
|
|
76
76
|
string
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-WOIHSQAL.js";
|
|
78
78
|
import {
|
|
79
79
|
CliError
|
|
80
80
|
} from "./chunk-FEM2JQN2.js";
|
|
@@ -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");
|
|
@@ -36,6 +36,10 @@ var DEFAULT_PERMISSIONS = {
|
|
|
36
36
|
"server.stop": "ask",
|
|
37
37
|
"server.restart": "ask",
|
|
38
38
|
"models.download": "ask",
|
|
39
|
+
// NEED-2357.f: many MCP clients (ChatGPT) cannot answer a question, and a switch deletes nothing; kept as a key so a
|
|
40
|
+
// profile can still deny it.
|
|
41
|
+
"models.set": "allow",
|
|
42
|
+
"models.add": "ask",
|
|
39
43
|
"images.models.download": "ask",
|
|
40
44
|
"schedule.run": "ask",
|
|
41
45
|
"schedule.exec": "ask",
|