@wirecat/mail-cli 0.32.0 → 0.34.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/CHANGELOG.md +31 -0
- package/contracts/wirecat.json +2 -2
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-OTCWJSJS.js → all-profiles-2KUKROHY.js} +10 -10
- package/dist/bundle/{anthropic-GUXHDK32.js → anthropic-E5KRCEVC.js} +8 -8
- package/dist/bundle/{app-server-GX7DOE4O.js → app-server-HIQ3QO5K.js} +60 -52
- package/dist/bundle/{bun-V5QLYBZU.js → bun-KARJPE5D.js} +2 -2
- package/dist/bundle/{bun-sqlite-AXD5CCO3.js → bun-sqlite-NHGX6ZUN.js} +6 -6
- package/dist/bundle/{chunk-4YNUQGDP.js → chunk-26DYRMXE.js} +1 -1
- package/dist/bundle/{chunk-3URYKAJP.js → chunk-2GDLJKPT.js} +1 -1
- package/dist/bundle/{chunk-JUS4Y4BW.js → chunk-2SCQ7Z4I.js} +4 -4
- package/dist/bundle/{chunk-LVJWN2PR.js → chunk-2VBEBPGX.js} +21 -11
- package/dist/bundle/{chunk-OUM4ZO53.js → chunk-4SKE5GYA.js} +1 -1
- package/dist/bundle/{chunk-WNGMI6AZ.js → chunk-4URI6EAV.js} +3 -3
- package/dist/bundle/chunk-4VHK5UBM.js +170 -0
- package/dist/bundle/{chunk-O7OP5NQO.js → chunk-4VM3UCSO.js} +2 -2
- package/dist/bundle/chunk-5GANGHQI.js +721 -0
- package/dist/bundle/{chunk-SWXKS7JK.js → chunk-6G4VQFVX.js} +19 -19
- package/dist/bundle/{chunk-TDTCCHAI.js → chunk-6GGMFL7J.js} +3 -3
- package/dist/bundle/{chunk-6XNTELM5.js → chunk-6LFRZDPV.js} +1 -1
- package/dist/bundle/{chunk-CD3TAITM.js → chunk-A2Y2RFNW.js} +75 -11
- package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-AGZ7SNFF.js} +1 -1
- package/dist/bundle/chunk-CKVWAUBW.js +787 -0
- package/dist/bundle/{chunk-SZZJOSIS.js → chunk-DYQGEZA2.js} +3 -3
- package/dist/bundle/{chunk-JRGPPS6H.js → chunk-DZRP4UCK.js} +13 -13
- package/dist/bundle/{chunk-7GW4D3OW.js → chunk-EGQJDEFY.js} +85 -39
- package/dist/bundle/{chunk-7MEVD5PI.js → chunk-EZAX77SM.js} +20 -20
- package/dist/bundle/{chunk-2IYAZRTC.js → chunk-FNYWC6A3.js} +2 -2
- package/dist/bundle/chunk-FORAOCZ3.js +334 -0
- package/dist/bundle/{chunk-IX3GUNGV.js → chunk-H77ALM2Y.js} +4 -4
- package/dist/bundle/{chunk-MENP3FF5.js → chunk-HH647UBC.js} +23 -23
- package/dist/bundle/{chunk-HUWQ7LXZ.js → chunk-HRDCH2VB.js} +947 -953
- package/dist/bundle/{chunk-ZDP6A2VL.js → chunk-I3MS74OF.js} +4 -4
- package/dist/bundle/{chunk-TWHIZJAZ.js → chunk-IMQ4CVZJ.js} +2 -2
- package/dist/bundle/{chunk-NMN5JUYL.js → chunk-JVGVLRBA.js} +5 -5
- package/dist/bundle/{chunk-U57QRUP7.js → chunk-KF6O4RZO.js} +3 -3
- package/dist/bundle/{chunk-LVFI3TCG.js → chunk-KGYK3OI3.js} +6 -6
- package/dist/bundle/{chunk-PALY5PGE.js → chunk-KLI5FKZ2.js} +7 -7
- package/dist/bundle/chunk-KNVTBDTE.js +72 -0
- package/dist/bundle/{chunk-PCWAZVAD.js → chunk-LKTDW5LH.js} +7 -7
- package/dist/bundle/{chunk-ECZSYLSL.js → chunk-LOSYDRJU.js} +45 -8
- package/dist/bundle/{chunk-HFA6AZWA.js → chunk-MDISZMK4.js} +4 -4
- package/dist/bundle/{chunk-GPOTPA3S.js → chunk-MGXYIVVJ.js} +14 -13
- package/dist/bundle/{chunk-KLGZX6QT.js → chunk-NAENYLIO.js} +2 -2
- package/dist/bundle/{chunk-SDAYOJLL.js → chunk-NHD5BOJU.js} +6 -6
- package/dist/bundle/{chunk-FA3B2DHZ.js → chunk-NI4GCP2T.js} +2 -2
- package/dist/bundle/{chunk-ZAD7K4TI.js → chunk-NJVJH5MH.js} +8053 -8240
- package/dist/bundle/{chunk-IVD3JTN5.js → chunk-NWD7AFOR.js} +2 -2
- package/dist/bundle/{chunk-U346WBJ5.js → chunk-NXERDBEK.js} +4 -4
- package/dist/bundle/{chunk-AJY2IT25.js → chunk-OG5QO5RR.js} +8 -8
- package/dist/bundle/{chunk-RNBG75HW.js → chunk-OJ3BI2U4.js} +29 -30
- package/dist/bundle/chunk-OOYRMTX5.js +374 -0
- package/dist/bundle/{chunk-GSXCMQWV.js → chunk-OX5MCGXL.js} +40 -40
- package/dist/bundle/{chunk-T577U52I.js → chunk-PA4GEJXQ.js} +9 -9
- package/dist/bundle/{chunk-2UMEZY6D.js → chunk-PC3N3LH3.js} +3 -3
- package/dist/bundle/{chunk-WQOGHND4.js → chunk-PRDKEVUL.js} +1 -1
- package/dist/bundle/{chunk-Z6OKVD3R.js → chunk-PVZMN3UZ.js} +8 -8
- package/dist/bundle/{chunk-SEJBS7SI.js → chunk-QFJC6POK.js} +1 -1
- package/dist/bundle/{chunk-MVMNZ3Q3.js → chunk-QOQF2TX3.js} +893 -1491
- package/dist/bundle/{chunk-7KCBPAQS.js → chunk-QQGPV3QN.js} +2 -2
- package/dist/bundle/{chunk-6SJ7HHAE.js → chunk-QXLYLVEC.js} +1 -1
- package/dist/bundle/chunk-QXYNDMA6.js +259 -0
- package/dist/bundle/{chunk-QHXOXYAT.js → chunk-R2GS3GBJ.js} +61 -59
- package/dist/bundle/{chunk-6TRKNME5.js → chunk-RPNQXWRS.js} +4 -4
- package/dist/bundle/{chunk-7C6FGWDH.js → chunk-SK3N4CK5.js} +4 -4
- package/dist/bundle/{chunk-GDDCKTBR.js → chunk-T2EE5M7O.js} +5 -5
- package/dist/bundle/{chunk-U7RLFLTM.js → chunk-TZJC4AOK.js} +30 -29
- package/dist/bundle/{chunk-PCMQYGEM.js → chunk-V43KEZYA.js} +9 -9
- package/dist/bundle/{chunk-MSK7RNOM.js → chunk-VBVR6JRC.js} +283 -515
- package/dist/bundle/{chunk-KLFF54AF.js → chunk-VRGEDK4T.js} +8 -8
- package/dist/bundle/{chunk-ANYADN3S.js → chunk-WYGDALB3.js} +31 -85
- package/dist/bundle/{chunk-IBCGCYRU.js → chunk-X6IGETU6.js} +2 -2
- package/dist/bundle/{chunk-CAQ5GW3A.js → chunk-XIF75Z7D.js} +1 -1
- package/dist/bundle/chunk-XWU3A7H6.js +29 -0
- package/dist/bundle/{chunk-XXXVVNGI.js → chunk-YWX5X5RI.js} +19 -117
- package/dist/bundle/{chunk-FIVFP53N.js → chunk-Z6A6QPPW.js} +1 -1
- package/dist/bundle/{chunk-MHXZ62CU.js → chunk-ZGZADWD7.js} +1 -1
- package/dist/bundle/{chunk-MT2WDBG2.js → chunk-ZZEWQR43.js} +18 -14
- package/dist/bundle/command-contract-PZ7VOOXP.js +39 -0
- package/dist/bundle/{command-server-entry-BVXOPKXH.js → command-server-entry-NF45UPEV.js} +28 -25
- package/dist/bundle/decode-DUZA3EHC.js +296 -0
- package/dist/bundle/{dispatch-DSVN7MNG.js → dispatch-CDJZAMVP.js} +8 -8
- package/dist/bundle/{dist-B2JWWTNN.js → dist-RH7EMC4J.js} +29 -24
- package/dist/bundle/{echarts-QIXLXS3G.js → echarts-GZHZBNRA.js} +2 -2
- package/dist/bundle/{embed-4NC4ELYP.js → embed-VE3CSJN4.js} +6 -6
- package/dist/bundle/{embedder-HBRDIFQC.js → embedder-DSJ77DX5.js} +9 -9
- package/dist/bundle/{failure-COTPFUP4.js → failure-YH6HAGFT.js} +2 -2
- package/dist/bundle/{first-run-6QF67AAZ.js → first-run-3L7HLYTI.js} +12 -12
- package/dist/bundle/first-screen-MY5KID77.js +37 -0
- package/dist/bundle/{instructions-MD2RZT5Z.js → instructions-OZK3BLIO.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-TDKGDB4V.js → mcp-YUG4YR4R.js} +2 -2
- package/dist/bundle/meeting-combined-RYMUPY54.js +24 -0
- package/dist/bundle/meeting-model-U7LW5WEN.js +24 -0
- package/dist/bundle/meeting-semantic-64IOIQRR.js +21 -0
- package/dist/bundle/{node-IEVT2FSJ.js → node-OS3VWBUZ.js} +2 -2
- package/dist/bundle/{node-sqlite-EOTTDMOG.js → node-sqlite-RQ623VFA.js} +7 -7
- package/dist/bundle/{oauth-A5BEFGCI.js → oauth-CBPAG734.js} +7 -7
- package/dist/bundle/{open-HWN2EZYG.js → open-H4DGOMBC.js} +5 -5
- package/dist/bundle/{openai-PJKJ4CIU.js → openai-EMWRGR54.js} +28 -26
- package/dist/bundle/{process-6Q23D3TO.js → process-3TOIYASI.js} +1 -1
- package/dist/bundle/{program-WR43NPAV.js → program-WA6RGAJL.js} +3151 -2105
- package/dist/bundle/{prompt-E7Q2662O.js → prompt-22KNCMBI.js} +5 -5
- package/dist/bundle/{recognize-4F4PIL4B.js → recognize-UWD4RSCZ.js} +4 -4
- package/dist/bundle/{remote-RGJXO7XK.js → remote-LJY7MF2E.js} +9 -9
- package/dist/bundle/{rerank-EDY7PHMG.js → rerank-JJ6KNJFB.js} +7 -7
- package/dist/bundle/{serve-Q4XF6ID2.js → serve-3EPLJYVZ.js} +9 -9
- package/dist/bundle/{server-5I72DSDF.js → server-5JOFO4V4.js} +52 -44
- package/dist/bundle/server-EOQNS7B7.js +75 -0
- package/dist/bundle/{sqlite-runtime-PU3Z2H7C.js → sqlite-runtime-MGJA5E27.js} +6 -6
- package/dist/bundle/{state-CWSXJBU2.js → state-UCRDOWOP.js} +6 -6
- package/dist/bundle/{store-KQPKS3PX.js → store-265VRRQV.js} +25 -20
- package/dist/bundle/{store-ZAMKKM2A.js → store-HS272YSA.js} +21 -17
- package/dist/bundle/store-maintenance-command-IKZM5NRP.js +66 -0
- package/dist/commands/messages.js +1 -1
- package/dist/commands/messages.js.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +2 -2
- package/dist/identity.js.map +1 -1
- package/dist/mail/cleanup.d.ts.map +1 -1
- package/dist/mail/cleanup.js +4 -3
- package/dist/mail/cleanup.js.map +1 -1
- package/dist/mail/rules/apply.js +1 -1
- package/dist/mail/rules/apply.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-DZ6XRIOI.js +0 -36
- package/dist/bundle/decode-STN3EHT7.js +0 -162
- package/dist/bundle/first-screen-LXSZMK2P.js +0 -34
- package/dist/bundle/server-2Y5NSP2U.js +0 -67
- package/dist/bundle/store-maintenance-command-PMTTDR6J.js +0 -58
- /package/dist/bundle/{chunk-XWBPP2HX.js → chunk-FEBUZHU3.js} +0 -0
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NWD7AFOR.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QQGPV3QN.js";
|
|
11
11
|
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.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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;
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QQGPV3QN.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.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
|
|
11
11
|
import { constants } from "node:fs";
|
|
12
12
|
import { lstat, open } from "node:fs/promises";
|
|
13
13
|
var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
|
|
@@ -73,7 +73,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
|
|
|
73
73
|
}
|
|
74
74
|
}, "syncDirectory");
|
|
75
75
|
|
|
76
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
76
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
|
|
77
77
|
import { randomUUID } from "node:crypto";
|
|
78
78
|
import { constants as constants2 } from "node:fs";
|
|
79
79
|
import { link, open as open2, realpath, rename, unlink } from "node:fs/promises";
|
|
@@ -111,7 +111,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
|
|
|
111
111
|
}
|
|
112
112
|
}, "writeFileAtomic");
|
|
113
113
|
|
|
114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
|
|
115
115
|
var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
116
116
|
if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
|
|
117
117
|
throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
|
|
@@ -140,21 +140,21 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
|
140
140
|
}
|
|
141
141
|
}, "readBoundedUtf8File");
|
|
142
142
|
|
|
143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
144
144
|
import { mkdir as mkdir2 } from "node:fs/promises";
|
|
145
145
|
import { basename as basename2, dirname as dirname2 } from "node:path";
|
|
146
146
|
|
|
147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
148
148
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
149
149
|
import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
|
|
150
150
|
import { hostname as hostname2 } from "node:os";
|
|
151
151
|
import { join as join3 } from "node:path";
|
|
152
152
|
|
|
153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
154
154
|
import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
|
|
155
155
|
import { join as join2 } from "node:path";
|
|
156
156
|
|
|
157
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
|
|
158
158
|
import { hostname } from "node:os";
|
|
159
159
|
var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
|
|
160
160
|
var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
|
|
@@ -199,7 +199,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
|
|
|
199
199
|
}
|
|
200
200
|
}, "leaseOwnerStatus");
|
|
201
201
|
|
|
202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
203
203
|
var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
204
204
|
const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
|
|
205
205
|
options.signal?.throwIfAborted();
|
|
@@ -258,7 +258,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
|
258
258
|
return { inspect, recover };
|
|
259
259
|
}, "leaseInspection");
|
|
260
260
|
|
|
261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
|
|
262
262
|
import { rmdir, unlink as unlink3 } from "node:fs/promises";
|
|
263
263
|
var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
|
|
264
264
|
let releasing;
|
|
@@ -283,7 +283,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
|
|
|
283
283
|
};
|
|
284
284
|
}, "ownedNativeLease");
|
|
285
285
|
|
|
286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
287
287
|
var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
|
|
288
288
|
var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
289
289
|
const { markerDirectory, legacyMarker } = layout;
|
|
@@ -354,7 +354,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
|
354
354
|
};
|
|
355
355
|
}, "nativeWriterLeaseStore");
|
|
356
356
|
|
|
357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
358
358
|
var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
359
359
|
const folder = dirname2(path);
|
|
360
360
|
await mkdir2(folder, { recursive: true, mode: 448 });
|
|
@@ -369,7 +369,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
|
369
369
|
});
|
|
370
370
|
}, "acquireLock");
|
|
371
371
|
|
|
372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/files/safe-name.js
|
|
373
373
|
import { basename as basename3 } from "node:path";
|
|
374
374
|
var safeName = /* @__PURE__ */ __name((name, platform = process.platform) => {
|
|
375
375
|
let plain = name === void 0 ? "" : basename3(name.replaceAll("\\", "/")).replace(/[\p{Cc}---]/gu, "").replace(/^\.+/, "");
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
agentArguments,
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HH647UBC.js";
|
|
10
10
|
import {
|
|
11
11
|
failureContext
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-A2Y2RFNW.js";
|
|
13
13
|
import {
|
|
14
14
|
callerOf
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6GGMFL7J.js";
|
|
16
16
|
import {
|
|
17
17
|
QUERY_ARGUMENT,
|
|
18
18
|
lentConnection,
|
|
@@ -20,10 +20,7 @@ import {
|
|
|
20
20
|
refuseLacking,
|
|
21
21
|
servicesFor,
|
|
22
22
|
storeModeDeps
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import {
|
|
25
|
-
MAX_BUFFERED_INPUT
|
|
26
|
-
} from "./chunk-IVD3JTN5.js";
|
|
23
|
+
} from "./chunk-HRDCH2VB.js";
|
|
27
24
|
import {
|
|
28
25
|
DEFAULT_OUTPUT_BYTES,
|
|
29
26
|
ENTITIES,
|
|
@@ -38,7 +35,7 @@ import {
|
|
|
38
35
|
refuseStoreChange,
|
|
39
36
|
sealed,
|
|
40
37
|
startRecording
|
|
41
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-VBVR6JRC.js";
|
|
42
39
|
import {
|
|
43
40
|
authorityAllowed,
|
|
44
41
|
botApiAllowed,
|
|
@@ -46,29 +43,32 @@ import {
|
|
|
46
43
|
keyForCommand,
|
|
47
44
|
levelFor,
|
|
48
45
|
readKeysForCommand
|
|
49
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-LKTDW5LH.js";
|
|
50
47
|
import {
|
|
51
48
|
currentCaller,
|
|
52
49
|
keepsSuccess,
|
|
53
50
|
runContextOf,
|
|
54
51
|
withCaller
|
|
55
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-PVZMN3UZ.js";
|
|
53
|
+
import {
|
|
54
|
+
MAX_BUFFERED_INPUT
|
|
55
|
+
} from "./chunk-NWD7AFOR.js";
|
|
56
56
|
import {
|
|
57
57
|
enclosingTraceId,
|
|
58
58
|
inRun,
|
|
59
59
|
newRunId,
|
|
60
60
|
traceOf
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import {
|
|
63
|
-
queryDescription
|
|
64
|
-
} from "./chunk-MVMNZ3Q3.js";
|
|
61
|
+
} from "./chunk-TZJC4AOK.js";
|
|
65
62
|
import {
|
|
66
63
|
storeDamaged
|
|
67
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-4VM3UCSO.js";
|
|
65
|
+
import {
|
|
66
|
+
queryDescription
|
|
67
|
+
} from "./chunk-QOQF2TX3.js";
|
|
68
68
|
import {
|
|
69
69
|
captureStreams,
|
|
70
70
|
traceIdOf
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-EZAX77SM.js";
|
|
72
72
|
import {
|
|
73
73
|
COMPACT_FLAG,
|
|
74
74
|
SNAKE_CASE,
|
|
@@ -107,19 +107,19 @@ import {
|
|
|
107
107
|
unknown,
|
|
108
108
|
word,
|
|
109
109
|
writes
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-LOSYDRJU.js";
|
|
111
111
|
import {
|
|
112
112
|
CliError,
|
|
113
113
|
errorCodes
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-QQGPV3QN.js";
|
|
115
115
|
import {
|
|
116
116
|
__name
|
|
117
117
|
} from "./chunk-ZVVMGPBJ.js";
|
|
118
118
|
|
|
119
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
119
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
120
120
|
import { Readable } from "node:stream";
|
|
121
121
|
|
|
122
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
122
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
|
|
123
123
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
124
124
|
var lintRuleSchema = strictObject({
|
|
125
125
|
id: word,
|
|
@@ -265,7 +265,7 @@ var overrideSchema = strictObject({
|
|
|
265
265
|
});
|
|
266
266
|
var overridesSchema = array(overrideSchema);
|
|
267
267
|
|
|
268
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
268
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
|
|
269
269
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
270
270
|
var defineAuditRules = /* @__PURE__ */ __name((input) => parseRegistry("audit rules", array(auditRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineAuditRules");
|
|
271
271
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -394,11 +394,12 @@ var PARITY_GROUPS = defineParityGroups([
|
|
|
394
394
|
covers: ["commands", "upgrade", "notes", "meetings"],
|
|
395
395
|
differences: FAMILY_SINCE_0_98
|
|
396
396
|
},
|
|
397
|
-
// bitrix24-cli's search is cli-core's CRM `search all`, and beeline-cli's meetings take call
|
|
398
|
-
// zoom-cli's:
|
|
397
|
+
// bitrix24-cli's search is cli-core's CRM `search all`, and beeline-cli's and asterisk-cli's meetings take call
|
|
398
|
+
// recordings, not zoom-cli's: they are compared on the root commands every CLI shares, the way gcal and mail are.
|
|
399
|
+
// notion-cli joins here until its documents commands ship; then it moves next to drive.
|
|
399
400
|
{
|
|
400
401
|
name: "shared-roots",
|
|
401
|
-
members: ["tg", "max", "memo", "drive", "zm", "wa", "b24", "beeline"],
|
|
402
|
+
members: ["tg", "max", "memo", "drive", "zm", "wa", "b24", "beeline", "pbx", "notion"],
|
|
402
403
|
covers: ["commands", "doctor", "skill", "mcp", "upgrade"],
|
|
403
404
|
differences: [...MEMO_HAS_NO_PROFILES, MEMO_DOCTOR_DEEP]
|
|
404
405
|
}
|
|
@@ -414,7 +415,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
414
415
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
415
416
|
]);
|
|
416
417
|
|
|
417
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
418
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
|
|
418
419
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
419
420
|
var defineFieldRules = /* @__PURE__ */ __name((input) => parseRegistry("output field rules", array(fieldRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineFieldRules");
|
|
420
421
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -430,7 +431,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
430
431
|
}
|
|
431
432
|
]);
|
|
432
433
|
|
|
433
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
434
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
|
|
434
435
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
435
436
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
436
437
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -452,7 +453,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
452
453
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
453
454
|
]);
|
|
454
455
|
|
|
455
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
456
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-account.js
|
|
456
457
|
var ACCOUNT_FLAGS = [
|
|
457
458
|
{
|
|
458
459
|
name: "--client-id",
|
|
@@ -489,7 +490,7 @@ var ACCOUNT_FLAGS = [
|
|
|
489
490
|
{ name: "--hide-phone", role: "output", type: "switch", meaning: "leave the phone number out of the answer" }
|
|
490
491
|
];
|
|
491
492
|
|
|
492
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
493
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
|
|
493
494
|
var CALENDAR_FLAGS = [
|
|
494
495
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
495
496
|
{
|
|
@@ -514,6 +515,20 @@ var CALENDAR_FLAGS = [
|
|
|
514
515
|
type: "string",
|
|
515
516
|
meaning: "a person invited to the event, by email address; repeat it for more"
|
|
516
517
|
},
|
|
518
|
+
{
|
|
519
|
+
name: "--setting",
|
|
520
|
+
value: "<name=value>",
|
|
521
|
+
role: "value",
|
|
522
|
+
type: "string",
|
|
523
|
+
meaning: "one of the service's own settings, such as a meeting's waiting room; repeat it for more"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
name: "--conference",
|
|
527
|
+
value: "<service>",
|
|
528
|
+
role: "value",
|
|
529
|
+
type: "string",
|
|
530
|
+
meaning: "the video meeting service that gives the event a new meeting link, such as google-meet"
|
|
531
|
+
},
|
|
517
532
|
{
|
|
518
533
|
name: "--id",
|
|
519
534
|
value: "<id>",
|
|
@@ -563,8 +578,22 @@ var CALENDAR_FLAGS = [
|
|
|
563
578
|
}
|
|
564
579
|
];
|
|
565
580
|
|
|
566
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
581
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-crm.js
|
|
567
582
|
var CRM_FLAGS = [
|
|
583
|
+
{
|
|
584
|
+
name: "--email",
|
|
585
|
+
value: "<address>",
|
|
586
|
+
role: "value",
|
|
587
|
+
type: "string",
|
|
588
|
+
meaning: "an e-mail address to give it; repeat it for more"
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
name: "--phone",
|
|
592
|
+
value: "<phone>",
|
|
593
|
+
role: "value",
|
|
594
|
+
type: "string",
|
|
595
|
+
meaning: "a phone number to give it, in international form starting with +; repeat it for more"
|
|
596
|
+
},
|
|
568
597
|
{
|
|
569
598
|
name: "--pipeline",
|
|
570
599
|
value: "<pipeline>",
|
|
@@ -713,7 +742,7 @@ var CRM_FLAGS = [
|
|
|
713
742
|
}
|
|
714
743
|
];
|
|
715
744
|
|
|
716
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
745
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
|
|
717
746
|
var HOW_FLAGS = [
|
|
718
747
|
{
|
|
719
748
|
name: "--limit",
|
|
@@ -1710,7 +1739,7 @@ var HOW_FLAGS = [
|
|
|
1710
1739
|
}
|
|
1711
1740
|
];
|
|
1712
1741
|
|
|
1713
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1742
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-knowledge.js
|
|
1714
1743
|
var KNOWLEDGE_FLAGS = [
|
|
1715
1744
|
{
|
|
1716
1745
|
name: "--accept-terms",
|
|
@@ -1745,10 +1774,24 @@ var KNOWLEDGE_FLAGS = [
|
|
|
1745
1774
|
type: "count",
|
|
1746
1775
|
meaning: "at most this many characters read",
|
|
1747
1776
|
unit: "characters"
|
|
1777
|
+
},
|
|
1778
|
+
{
|
|
1779
|
+
name: "--tag",
|
|
1780
|
+
value: "<name>",
|
|
1781
|
+
role: "target",
|
|
1782
|
+
type: "string",
|
|
1783
|
+
meaning: "a tag, by its name or an alias: only what carries it is read"
|
|
1784
|
+
},
|
|
1785
|
+
{
|
|
1786
|
+
name: "--matching",
|
|
1787
|
+
value: "<query>",
|
|
1788
|
+
role: "target",
|
|
1789
|
+
type: "string",
|
|
1790
|
+
meaning: "every stored thing a search with this query finds, in its query language; the command acts on each"
|
|
1748
1791
|
}
|
|
1749
1792
|
];
|
|
1750
1793
|
|
|
1751
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1794
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-mail.js
|
|
1752
1795
|
var MAIL_FLAGS = [
|
|
1753
1796
|
{
|
|
1754
1797
|
name: "--cc",
|
|
@@ -1778,7 +1821,7 @@ var MAIL_FLAGS = [
|
|
|
1778
1821
|
}
|
|
1779
1822
|
];
|
|
1780
1823
|
|
|
1781
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1824
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-privacy.js
|
|
1782
1825
|
var PRIVACY_FLAGS = [
|
|
1783
1826
|
{
|
|
1784
1827
|
name: "--about-text",
|
|
@@ -1839,7 +1882,7 @@ var PRIVACY_FLAGS = [
|
|
|
1839
1882
|
{ name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" }
|
|
1840
1883
|
];
|
|
1841
1884
|
|
|
1842
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1885
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-schedule.js
|
|
1843
1886
|
var SCHEDULE_FLAGS = [
|
|
1844
1887
|
{
|
|
1845
1888
|
name: "--locale",
|
|
@@ -1872,7 +1915,7 @@ var SCHEDULE_FLAGS = [
|
|
|
1872
1915
|
}
|
|
1873
1916
|
];
|
|
1874
1917
|
|
|
1875
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1918
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
|
|
1876
1919
|
var WHAT_FLAGS = [
|
|
1877
1920
|
{
|
|
1878
1921
|
name: "--analysis-provider",
|
|
@@ -2869,7 +2912,7 @@ var WHAT_FLAGS = [
|
|
|
2869
2912
|
}
|
|
2870
2913
|
];
|
|
2871
2914
|
|
|
2872
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2915
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
|
|
2873
2916
|
var FLAG_TYPES = [
|
|
2874
2917
|
"switch",
|
|
2875
2918
|
"count",
|
|
@@ -3142,6 +3185,8 @@ var collections = [
|
|
|
3142
3185
|
["splits", "parts of one transaction, each with its own amount and category"],
|
|
3143
3186
|
["users", "people who work in the owner's account at a service, such as a CRM's employees"],
|
|
3144
3187
|
["fields", "a record type's field definitions: code, label, type and options, such as a CRM's custom fields"],
|
|
3188
|
+
["activities", "a CRM's calls, e-mails, meetings, to-dos and comments on its records"],
|
|
3189
|
+
["changes", "what changed in a copied source over a time: records added, moved, closed or reassigned"],
|
|
3145
3190
|
[
|
|
3146
3191
|
"identities",
|
|
3147
3192
|
"ways to reach a person or an organization: an account in one messenger or mailbox, an e-mail address, a phone"
|
|
@@ -3154,6 +3199,7 @@ var collections = [
|
|
|
3154
3199
|
["files", "files in the source, such as Google Drive, read and changed there"],
|
|
3155
3200
|
["comments", "comments people left on a thing in the source: a channel post or a file"],
|
|
3156
3201
|
["meetings", "stored meetings, from Zoom or another provider"],
|
|
3202
|
+
["calls", "phone calls a phone system recorded, stored as meetings with their transcripts"],
|
|
3157
3203
|
["calendars", "calendars of an account, each synced or not"],
|
|
3158
3204
|
["events", "calendar entries: meetings, appointments and other things on a calendar"],
|
|
3159
3205
|
["people", "persons the owner deals with, such as the attendees of events"],
|
|
@@ -3288,7 +3334,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
3288
3334
|
]
|
|
3289
3335
|
});
|
|
3290
3336
|
|
|
3291
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3337
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
3292
3338
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
3293
3339
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
3294
3340
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -3515,7 +3561,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3515
3561
|
}
|
|
3516
3562
|
}, "runCommandForAgent");
|
|
3517
3563
|
|
|
3518
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3564
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
3519
3565
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
3520
3566
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
3521
3567
|
var message = pipe(
|
|
@@ -3774,7 +3820,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3774
3820
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
|
|
3775
3821
|
}, "failed");
|
|
3776
3822
|
|
|
3777
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3823
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3778
3824
|
import { randomUUID } from "node:crypto";
|
|
3779
3825
|
var MATCHES = 8;
|
|
3780
3826
|
var ANSWER = answerSchema();
|
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
string,
|
|
20
20
|
text,
|
|
21
21
|
unknown
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-LOSYDRJU.js";
|
|
23
23
|
import {
|
|
24
24
|
CliError,
|
|
25
25
|
visibleControls
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-QQGPV3QN.js";
|
|
27
27
|
import {
|
|
28
28
|
__commonJS,
|
|
29
29
|
__name,
|
|
@@ -1896,7 +1896,7 @@ var require_cli_table3 = __commonJS({
|
|
|
1896
1896
|
}
|
|
1897
1897
|
});
|
|
1898
1898
|
|
|
1899
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1899
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
|
|
1900
1900
|
import { realpathSync } from "node:fs";
|
|
1901
1901
|
import { homedir, userInfo } from "node:os";
|
|
1902
1902
|
import { join, posix, win32 } from "node:path";
|
|
@@ -1970,7 +1970,7 @@ var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = proces
|
|
|
1970
1970
|
var isMovedRun = /* @__PURE__ */ __name((options) => pathsAreOverridden(options) || homeIsMoved(options), "isMovedRun");
|
|
1971
1971
|
var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join(configDir, fileName), "configFilePath");
|
|
1972
1972
|
|
|
1973
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1973
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/retry.js
|
|
1974
1974
|
var DEFAULT_RETRY = {
|
|
1975
1975
|
retries: 1,
|
|
1976
1976
|
baseDelayMs: 250,
|
|
@@ -1982,7 +1982,7 @@ var backoffMs = /* @__PURE__ */ __name((attempt, config, random) => {
|
|
|
1982
1982
|
return Math.round(random() * ceiling);
|
|
1983
1983
|
}, "backoffMs");
|
|
1984
1984
|
|
|
1985
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1985
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/result-fields.js
|
|
1986
1986
|
var forbidden = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
|
|
1987
1987
|
var validate = /* @__PURE__ */ __name((paths) => {
|
|
1988
1988
|
if (paths.length === 0 || paths.length > 128 || paths.some((path) => path.length > 256 || !/^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)*$/.test(path) || path.split(".").some((part) => forbidden.has(part))))
|
|
@@ -1994,7 +1994,7 @@ var fieldsOf = /* @__PURE__ */ __name((value) => {
|
|
|
1994
1994
|
return [...new Set(paths)];
|
|
1995
1995
|
}, "fieldsOf");
|
|
1996
1996
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "object");
|
|
1997
|
-
var retained = /* @__PURE__ */ new Set(["operation_id", "page", "next", "missing", "meta", "coverage"]);
|
|
1997
|
+
var retained = /* @__PURE__ */ new Set(["operation_id", "page", "next", "missing", "meta", "coverage", "untrusted"]);
|
|
1998
1998
|
var itemPaths = /* @__PURE__ */ __name((paths) => paths.map((path) => path.startsWith("items.") ? path.slice(6) : path), "itemPaths");
|
|
1999
1999
|
var onePaths = /* @__PURE__ */ __name((paths) => paths.map((path) => path.startsWith("item.") ? path.slice(5) : path), "onePaths");
|
|
2000
2000
|
var select = /* @__PURE__ */ __name((value, paths) => {
|
|
@@ -2047,7 +2047,7 @@ var projectFields = /* @__PURE__ */ __name((value, fields) => {
|
|
|
2047
2047
|
return project(value, fields);
|
|
2048
2048
|
}, "projectFields");
|
|
2049
2049
|
|
|
2050
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2050
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
|
|
2051
2051
|
var BATCH_LIMITS = Object.freeze({
|
|
2052
2052
|
requests: 32,
|
|
2053
2053
|
input_bytes: 262144,
|
|
@@ -2174,7 +2174,7 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
|
|
|
2174
2174
|
};
|
|
2175
2175
|
}, "runBatch");
|
|
2176
2176
|
|
|
2177
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2177
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
|
|
2178
2178
|
import { randomBytes } from "node:crypto";
|
|
2179
2179
|
import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
2180
2180
|
import { dirname, join as join2 } from "node:path";
|
|
@@ -2218,7 +2218,7 @@ var saveConfigFile = /* @__PURE__ */ __name((path, config) => {
|
|
|
2218
2218
|
`, 384);
|
|
2219
2219
|
}, "saveConfigFile");
|
|
2220
2220
|
|
|
2221
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2221
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/constants.js
|
|
2222
2222
|
import { fileURLToPath } from "node:url";
|
|
2223
2223
|
var BASE_CONSTANTS = new URL("../constants.json", new URL("constants.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
2224
2224
|
var baseConstantsSchema = object({});
|
|
@@ -2273,11 +2273,11 @@ var loadConstants = /* @__PURE__ */ __name((layers, schema) => {
|
|
|
2273
2273
|
return deepFreeze(result.output);
|
|
2274
2274
|
}, "loadConstants");
|
|
2275
2275
|
|
|
2276
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2276
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2277
2277
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
2278
2278
|
import { join as join3, resolve } from "node:path";
|
|
2279
2279
|
|
|
2280
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2280
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
|
|
2281
2281
|
import { createRequire } from "node:module";
|
|
2282
2282
|
var ENTRY_OPTIONS = { linux: { store: "secret-service" } };
|
|
2283
2283
|
var require2 = createRequire(new URL("keyring.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
@@ -2303,7 +2303,7 @@ var systemKeyring = {
|
|
|
2303
2303
|
delete: /* @__PURE__ */ __name((service, account) => entry(service, account).deletePassword(), "delete")
|
|
2304
2304
|
};
|
|
2305
2305
|
|
|
2306
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2306
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2307
2307
|
var keyringService = /* @__PURE__ */ __name((service, _configDir, _isolated) => service, "keyringService");
|
|
2308
2308
|
var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
|
|
2309
2309
|
var warnedRuns = /* @__PURE__ */ new WeakSet();
|
|
@@ -2439,7 +2439,7 @@ var Credentials = class {
|
|
|
2439
2439
|
}
|
|
2440
2440
|
};
|
|
2441
2441
|
|
|
2442
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2442
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
|
|
2443
2443
|
var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
|
|
2444
2444
|
var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, reject) => {
|
|
2445
2445
|
if (signal?.aborted) {
|
|
@@ -2453,10 +2453,10 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, re
|
|
|
2453
2453
|
}, { once: true });
|
|
2454
2454
|
}), "realSleep");
|
|
2455
2455
|
|
|
2456
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2456
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2457
2457
|
import { appendFileSync } from "node:fs";
|
|
2458
2458
|
|
|
2459
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2459
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/log.js
|
|
2460
2460
|
var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
|
|
2461
2461
|
var logRecordSchema = strictObject({
|
|
2462
2462
|
time: isoTime,
|
|
@@ -2534,7 +2534,7 @@ var traceIdOf = /* @__PURE__ */ __name((traceparent) => {
|
|
|
2534
2534
|
return traceId;
|
|
2535
2535
|
}, "traceIdOf");
|
|
2536
2536
|
|
|
2537
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2537
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2538
2538
|
var REDACTED_FIELDS = [
|
|
2539
2539
|
"authorization",
|
|
2540
2540
|
"Authorization",
|
|
@@ -2628,7 +2628,7 @@ var silent = {
|
|
|
2628
2628
|
}, "error")
|
|
2629
2629
|
};
|
|
2630
2630
|
|
|
2631
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2631
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
|
|
2632
2632
|
var import_cli_table3 = __toESM(require_cli_table3(), 1);
|
|
2633
2633
|
import { styleText } from "node:util";
|
|
2634
2634
|
var renderPretty = /* @__PURE__ */ __name((value, options) => {
|
|
@@ -2703,7 +2703,7 @@ var BORDERLESS = {
|
|
|
2703
2703
|
middle: ""
|
|
2704
2704
|
};
|
|
2705
2705
|
|
|
2706
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2706
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
|
|
2707
2707
|
var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
2708
2708
|
if (signal?.aborted)
|
|
2709
2709
|
return Promise.reject(signal.reason);
|
|
@@ -2731,7 +2731,7 @@ var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
|
2731
2731
|
});
|
|
2732
2732
|
}, "waitForDrain");
|
|
2733
2733
|
|
|
2734
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2734
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
|
|
2735
2735
|
var processStreams = {
|
|
2736
2736
|
drain: /* @__PURE__ */ __name(async (signal) => {
|
|
2737
2737
|
await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
|
|
@@ -2760,7 +2760,7 @@ var captureStreams = /* @__PURE__ */ __name(() => {
|
|
|
2760
2760
|
};
|
|
2761
2761
|
}, "captureStreams");
|
|
2762
2762
|
|
|
2763
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2763
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
|
|
2764
2764
|
var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
|
|
2765
2765
|
const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
|
|
2766
2766
|
const say = /* @__PURE__ */ __name((symbol) => (message) => {
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
ACCESS_SECONDS,
|
|
9
9
|
REFRESH_SECONDS,
|
|
10
10
|
readStored
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NXERDBEK.js";
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
14
|
} from "./chunk-ZVVMGPBJ.js";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
|
|
17
17
|
import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
|
|
18
18
|
import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|