@wirecat/mail-cli 0.12.0 → 0.14.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 +38 -0
- package/README.md +4 -0
- package/dist/bin/mail.js +6 -2
- package/dist/bundle/{all-profiles-OJPRIFKU.js → all-profiles-O7HQNZOF.js} +10 -9
- package/dist/bundle/{anthropic-3AXHD4WH.js → anthropic-SNA6PTVO.js} +6 -6
- package/dist/bundle/{app-server-V4KHCUGE.js → app-server-LBKMJMKN.js} +48 -45
- package/dist/bundle/{bun-ISYNUTQJ.js → bun-KF5QK2YN.js} +2 -2
- package/dist/bundle/{bun-sqlite-FH3D4AXL.js → bun-sqlite-2DKMM2PT.js} +5 -5
- package/dist/bundle/{chunk-YDUES6ET.js → chunk-2A4BAMNF.js} +4 -4
- package/dist/bundle/{chunk-XTIQFMZH.js → chunk-2F7D6YMB.js} +4 -4
- package/dist/bundle/{chunk-SW5NVASW.js → chunk-2KVR7FF3.js} +12 -89
- package/dist/bundle/{chunk-JAWJZTFL.js → chunk-3EAAEF5U.js} +18 -18
- package/dist/bundle/{chunk-TTKNBUMT.js → chunk-3YGYB3LJ.js} +43 -6
- package/dist/bundle/{chunk-GYNHU56E.js → chunk-5C74F7XX.js} +4 -4
- package/dist/bundle/{chunk-5TACUBRJ.js → chunk-6CZQJ5XR.js} +8 -8
- package/dist/bundle/{chunk-OHC4GVWV.js → chunk-6EZ7XGRG.js} +2 -2
- package/dist/bundle/{chunk-6UT3MXOB.js → chunk-7GSE57K3.js} +3 -3
- package/dist/bundle/{chunk-AJ4JS2ZR.js → chunk-7LDC275M.js} +8 -7
- package/dist/bundle/{chunk-QPQSMJBW.js → chunk-AOVOIXGR.js} +10 -10
- package/dist/bundle/{chunk-DN54W657.js → chunk-B5XAETYU.js} +4 -4
- package/dist/bundle/chunk-BP3TZ4EY.js +91 -0
- package/dist/bundle/{chunk-4DPICEPQ.js → chunk-CCHHEMPM.js} +2 -2
- package/dist/bundle/chunk-DIP3ENSY.js +34 -0
- package/dist/bundle/{chunk-4GPPRLIG.js → chunk-DPKHVBP3.js} +5 -5
- package/dist/bundle/{chunk-K2F7YMMM.js → chunk-E7BTD4P6.js} +8 -13
- package/dist/bundle/{chunk-VEXXVLBM.js → chunk-ER6PJAPK.js} +3 -3
- package/dist/bundle/{chunk-JIIEJLAX.js → chunk-EW3XTUPB.js} +4 -4
- package/dist/bundle/{chunk-6LNRNQHJ.js → chunk-F5SZVO3A.js} +6 -4
- package/dist/bundle/{chunk-UDJIC6YL.js → chunk-FTGCXIQA.js} +54 -29
- package/dist/bundle/{chunk-V6K2GX2Y.js → chunk-G53HRGTK.js} +17 -17
- package/dist/bundle/{chunk-L3PVAY3M.js → chunk-H2ZURG7Q.js} +2 -2
- package/dist/bundle/{chunk-F3QDSQ7V.js → chunk-H7OQ4YZV.js} +27 -26
- package/dist/bundle/{chunk-S64N24ON.js → chunk-I62OTHDE.js} +3 -3
- package/dist/bundle/{chunk-AO32MFDY.js → chunk-I7EWIIBC.js} +2 -2
- package/dist/bundle/{chunk-JNUKTAMZ.js → chunk-ILHTNOIV.js} +1 -1
- package/dist/bundle/{chunk-GAIVTJ3E.js → chunk-IPKXRW6W.js} +24 -23
- package/dist/bundle/{chunk-NSDOYHIS.js → chunk-IVDUR5Y4.js} +20 -8
- package/dist/bundle/{chunk-KJP2B65C.js → chunk-KBFIKUCA.js} +29 -28
- package/dist/bundle/{chunk-IWHXM2S7.js → chunk-KLLKDOO2.js} +3207 -1149
- package/dist/bundle/{chunk-4D52FA34.js → chunk-KQ5P5NLL.js} +1 -1
- package/dist/bundle/{chunk-PLPSFJO6.js → chunk-M2YIJDBL.js} +6 -6
- package/dist/bundle/{chunk-IG2WXKIT.js → chunk-MQK2UNG4.js} +8 -8
- package/dist/bundle/{chunk-YRZ23RCS.js → chunk-MXG4L7NH.js} +249 -8
- package/dist/bundle/{chunk-LXHLQ6RK.js → chunk-NGZW2JPK.js} +7 -9
- package/dist/bundle/{chunk-GFCNSU3B.js → chunk-NVQUK2DH.js} +176 -47
- package/dist/bundle/{chunk-6QNPJSRM.js → chunk-OGK7LMYT.js} +6 -6
- package/dist/bundle/{chunk-N6P55LDU.js → chunk-P547HU26.js} +10 -10
- package/dist/bundle/{chunk-NBQQ2ZTF.js → chunk-P62Z3Q35.js} +14 -14
- package/dist/bundle/{chunk-TZGQPTZ2.js → chunk-PQLBPYJR.js} +1 -1
- package/dist/bundle/{chunk-BYQ3Z6UL.js → chunk-Q5EYTU3Q.js} +3 -3
- package/dist/bundle/{chunk-PSXAC6OO.js → chunk-QWRBAQZ7.js} +1 -1
- package/dist/bundle/{chunk-QB54TE52.js → chunk-QZXHMQCM.js} +1 -1
- package/dist/bundle/{chunk-FYMQPAE5.js → chunk-RE5SEGSR.js} +4 -4
- package/dist/bundle/{chunk-KVN4RY7E.js → chunk-UHHARH5X.js} +421 -205
- package/dist/bundle/{chunk-44LVUMS2.js → chunk-UJEO3VWA.js} +1 -1
- package/dist/bundle/{chunk-IXYKM7OJ.js → chunk-UMWR5PKA.js} +13 -13
- package/dist/bundle/{chunk-WL7CYT7O.js → chunk-V5ZID7KC.js} +1 -1
- package/dist/bundle/{chunk-2TTCKOQ7.js → chunk-VA3JKERH.js} +2 -2
- package/dist/bundle/{chunk-G2WDY5XB.js → chunk-VERSKGJV.js} +2 -2
- package/dist/bundle/{chunk-GUFWLTOW.js → chunk-W643XZIR.js} +2 -2
- package/dist/bundle/{chunk-X37KLD23.js → chunk-WBJQEB6E.js} +12 -12
- package/dist/bundle/{chunk-SYBMOE6F.js → chunk-WVWNKZI4.js} +6195 -5014
- package/dist/bundle/chunk-X5XIFNTI.js +35 -0
- package/dist/bundle/{chunk-LIQ5LICB.js → chunk-XPREXN3W.js} +3 -3
- package/dist/bundle/{chunk-35Y3INBK.js → chunk-XRJIQC6P.js} +2 -2
- package/dist/bundle/{chunk-T3AGR4TI.js → chunk-YG4OI3HJ.js} +966 -204
- package/dist/bundle/{chunk-HVVLSCFB.js → chunk-ZCPUKUST.js} +1 -1
- package/dist/bundle/command-contract-B3OGAIDB.js +34 -0
- package/dist/bundle/{decode-FM4C2WWG.js → decode-X7Y2VSYZ.js} +5 -5
- package/dist/bundle/{dispatch-K3HG4RYT.js → dispatch-OWNO2CMC.js} +8 -8
- package/dist/bundle/{dist-7LNVI7VB.js → dist-L7FNC74Q.js} +42 -13
- package/dist/bundle/{echarts-5C2A72XM.js → echarts-5AB3LFVD.js} +2 -2
- package/dist/bundle/{embed-N56P6YVY.js → embed-VBS5LRCE.js} +6 -6
- package/dist/bundle/{embedder-QLYKFLOL.js → embedder-VFSYBDKK.js} +9 -9
- package/dist/bundle/{failure-5ZLVZTRU.js → failure-E534GZDF.js} +2 -2
- package/dist/bundle/{first-run-VMF4PJ7Q.js → first-run-NO2ODH2W.js} +11 -11
- package/dist/bundle/first-screen-7VJLGMJJ.js +32 -0
- package/dist/bundle/{instructions-QA5FHDOJ.js → instructions-52W6ZQTU.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-LO2XDBBC.js → mcp-MNI62HHE.js} +2 -2
- package/dist/bundle/{node-OXJZWUYZ.js → node-TL2PBNKO.js} +2 -2
- package/dist/bundle/{node-sqlite-7GCEI67B.js → node-sqlite-757HNQAD.js} +11 -5
- package/dist/bundle/{oauth-VTPIYBTP.js → oauth-VDRNJ7KN.js} +7 -7
- package/dist/bundle/{open-7XX3YF2X.js → open-NUWYOKPO.js} +5 -4
- package/dist/bundle/{openai-D3KRCXSY.js → openai-YLBFVK5X.js} +14 -14
- package/dist/bundle/{process-KFI7SXQD.js → process-PWAGP6YY.js} +1 -1
- package/dist/bundle/{program-4B25STRN.js → program-PPUPVL7O.js} +2253 -885
- package/dist/bundle/{prompt-TBZT3APW.js → prompt-M5U66RVJ.js} +5 -5
- package/dist/bundle/{recognize-WQSE5ZPL.js → recognize-DCMDZA2U.js} +4 -4
- package/dist/bundle/{remote-J5HHRNVQ.js → remote-4SHI5WJG.js} +7 -7
- package/dist/bundle/{rerank-DP2Y3WDT.js → rerank-DYMZMNPQ.js} +7 -7
- package/dist/bundle/{serve-VXPOQDQO.js → serve-HO3WME4G.js} +11 -10
- package/dist/bundle/server-244FHPY4.js +64 -0
- package/dist/bundle/{server-OSBNGA2F.js → server-R3TIPRZN.js} +39 -37
- package/dist/bundle/{sqlite-runtime-XY32WOIT.js → sqlite-runtime-DWRITUIH.js} +6 -5
- package/dist/bundle/{state-KPOPMR6O.js → state-QOMUDOGF.js} +6 -6
- package/dist/bundle/{store-FWRGNGP3.js → store-LHHMOE5V.js} +36 -18
- package/dist/bundle/{store-UBI2YCRC.js → store-RGO6IABA.js} +17 -13
- package/dist/bundle/store-maintenance-command-LU2ZBDUY.js +54 -0
- package/dist/commands/session.js +1 -1
- package/dist/commands/session.js.map +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +12 -7
- package/dist/commands/status.js.map +1 -1
- package/dist/config.d.ts +2 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-MDIRW3AT.js +0 -18
- package/dist/bundle/command-contract-TW44FY47.js +0 -33
- package/dist/bundle/first-screen-ZN7ODW5K.js +0 -31
- package/dist/bundle/server-XHWSCXVX.js +0 -62
- package/dist/bundle/store-maintenance-command-3ZXPEIGF.js +0 -52
- /package/dist/bundle/{chunk-MRLSUCHT.js → chunk-NUN6OGOV.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,44 @@
|
|
|
2
2
|
|
|
3
3
|
Notable changes to `@wirecat/mail-cli`. One section per version, newest first.
|
|
4
4
|
|
|
5
|
+
## 0.14.0 — 05.11.2026
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **`config migrate` writes each setting your config file lacks, at its default**, and keeps your values, their order
|
|
10
|
+
and keys it does not know; it creates no section and running it again adds nothing. A first run now writes every
|
|
11
|
+
shared setting into the file, and `config set` and `config unset` fill in the missing ones. `config show` gives each
|
|
12
|
+
setting its default and description, and no longer creates a missing file. From cli-core 0.563.0.
|
|
13
|
+
|
|
14
|
+
### Changed — may break callers
|
|
15
|
+
|
|
16
|
+
- **Mail sync reads attachments up to 10 MB a file by default**, and can skip them. From cli-core 0.563.0.
|
|
17
|
+
- **`review --holder` leaves out mail from suspicious senders too**, beside bulk, envelopes, drafts and partial mail.
|
|
18
|
+
From cli-core 0.560.0.
|
|
19
|
+
- **An answer over the output cap names what to run instead** (WC-OUT-22). From cli-core 0.563.0.
|
|
20
|
+
- **The store moves to version 48** (invoices and payments, imports through one envelope, the cleanup of test rows
|
|
21
|
+
that leaked into a real store). The first run of this version migrates it. From cli-core 0.557.0–0.560.0.
|
|
22
|
+
|
|
23
|
+
## 0.13.0 — 02.11.2026
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
|
|
27
|
+
- **`review`: what is new, what you owe, what waits for an answer**, with tg's words: `review "date>2h"`, `--new`
|
|
28
|
+
(a point per mailbox and reader), `--unanswered [duration]` (newest email came to you in To or Cc, no answer),
|
|
29
|
+
`--waiting [duration]` (you wrote last), and `bulk:false` to leave out mail sent to many. Each email carries
|
|
30
|
+
`bulk`, `list_id` and `rule_id`. It reads the store only; over MCP it is the read tool `review`. From cli-core.
|
|
31
|
+
- **A processing mark per agent**: `review --holder <name>` reads what is stored past that holder's mark, by store
|
|
32
|
+
order, so late-synced mail is not skipped; `messages acknowledge --holder <name> --cursor <cursor>` moves it forward.
|
|
33
|
+
Bulk mail, envelopes and drafts are skipped and counted, partial mail held. `status` lists each holder: how far it
|
|
34
|
+
got, held, read and skipped by reason. From cli-core 0.556.0.
|
|
35
|
+
- **`config repair`** mends a settings file whose JSON is broken only in its syntax, with a backup; `--dry-run`
|
|
36
|
+
previews. From cli-core.
|
|
37
|
+
|
|
38
|
+
### Fixed
|
|
39
|
+
|
|
40
|
+
- **The browser login page of `mail mcp serve --http` says the app asks to reach your mail** and names
|
|
41
|
+
`mail mcp serve --http`. It said "your messages" and `mail mcp --http`. From cli-core 0.551.0.
|
|
42
|
+
|
|
5
43
|
## 0.12.0 — 02.11.2026
|
|
6
44
|
|
|
7
45
|
### Added
|
package/README.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/WireCatLabs/mail-cli/main/docs/images/social-preview.png" alt="Your mailbox for your AI agents" width="100%">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
1
5
|
# mail CLI for people, scripts and agents
|
|
2
6
|
|
|
3
7
|
`mail` copies your mailbox into the shared WireCat store on your computer, so you and your AI agents can search it
|
package/dist/bin/mail.js
CHANGED
|
@@ -9,7 +9,7 @@ if (
|
|
|
9
9
|
(words[0] === "--version" || words[0] === "-V") &&
|
|
10
10
|
!Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
|
|
11
11
|
) {
|
|
12
|
-
process.stdout.write("0.
|
|
12
|
+
process.stdout.write("0.14.0\n")
|
|
13
13
|
} else {
|
|
14
14
|
// Before the bundle compiles: the bundle's own call comes after its chunks.
|
|
15
15
|
module.enableCompileCache()
|
|
@@ -28,8 +28,12 @@ if (
|
|
|
28
28
|
: next(specifier, context),
|
|
29
29
|
})
|
|
30
30
|
}
|
|
31
|
+
const chunks = ["../bundle/all-profiles-O7HQNZOF.js","../bundle/anthropic-SNA6PTVO.js","../bundle/app-server-LBKMJMKN.js","../bundle/bun-KF5QK2YN.js","../bundle/bun-sqlite-2DKMM2PT.js","../bundle/decode-X7Y2VSYZ.js","../bundle/dispatch-OWNO2CMC.js","../bundle/dist-HFUVURJG.js","../bundle/dist-L7FNC74Q.js","../bundle/echarts-5AB3LFVD.js","../bundle/embed-VBS5LRCE.js","../bundle/embedder-VFSYBDKK.js","../bundle/failure-E534GZDF.js","../bundle/first-screen-7VJLGMJJ.js","../bundle/instructions-52W6ZQTU.js","../bundle/mcp-MNI62HHE.js","../bundle/node-KM3CUABH.js","../bundle/node-TL2PBNKO.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-757HNQAD.js","../bundle/oauth-VDRNJ7KN.js","../bundle/open-NUWYOKPO.js","../bundle/openai-YLBFVK5X.js","../bundle/process-PWAGP6YY.js","../bundle/program-PPUPVL7O.js","../bundle/prompt-M5U66RVJ.js","../bundle/recognize-DCMDZA2U.js","../bundle/remote-4SHI5WJG.js","../bundle/rerank-DYMZMNPQ.js","../bundle/serve-HO3WME4G.js","../bundle/server-244FHPY4.js","../bundle/server-R3TIPRZN.js","../bundle/sqlite-runtime-DWRITUIH.js","../bundle/state-QOMUDOGF.js","../bundle/store-LHHMOE5V.js","../bundle/store-RGO6IABA.js","../bundle/store-maintenance-command-LU2ZBDUY.js"]
|
|
32
|
+
if (((words) => words
|
|
33
|
+
.filter((word) => !word.startsWith("-"))
|
|
34
|
+
.slice(0, 2)
|
|
35
|
+
.includes("upgrade"))(words)) await Promise.allSettled(chunks.map((chunk) => import(chunk)))
|
|
31
36
|
const running = import("../bundle/mail.js")
|
|
32
|
-
const chunks = ["../bundle/all-profiles-OJPRIFKU.js","../bundle/anthropic-3AXHD4WH.js","../bundle/app-server-V4KHCUGE.js","../bundle/bun-ISYNUTQJ.js","../bundle/bun-sqlite-FH3D4AXL.js","../bundle/decode-FM4C2WWG.js","../bundle/dispatch-K3HG4RYT.js","../bundle/dist-7LNVI7VB.js","../bundle/dist-HFUVURJG.js","../bundle/echarts-5C2A72XM.js","../bundle/embed-N56P6YVY.js","../bundle/embedder-QLYKFLOL.js","../bundle/failure-5ZLVZTRU.js","../bundle/first-screen-ZN7ODW5K.js","../bundle/instructions-QA5FHDOJ.js","../bundle/mcp-LO2XDBBC.js","../bundle/node-KM3CUABH.js","../bundle/node-OXJZWUYZ.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-7GCEI67B.js","../bundle/oauth-VTPIYBTP.js","../bundle/open-7XX3YF2X.js","../bundle/openai-D3KRCXSY.js","../bundle/process-KFI7SXQD.js","../bundle/program-4B25STRN.js","../bundle/prompt-TBZT3APW.js","../bundle/recognize-WQSE5ZPL.js","../bundle/remote-J5HHRNVQ.js","../bundle/rerank-DP2Y3WDT.js","../bundle/serve-VXPOQDQO.js","../bundle/server-OSBNGA2F.js","../bundle/server-XHWSCXVX.js","../bundle/sqlite-runtime-XY32WOIT.js","../bundle/state-KPOPMR6O.js","../bundle/store-FWRGNGP3.js","../bundle/store-UBI2YCRC.js","../bundle/store-maintenance-command-3ZXPEIGF.js"]
|
|
33
37
|
// After the server answers its first request, so it starts no later.
|
|
34
38
|
if (serves) setTimeout(() => void Promise.allSettled(chunks.map((chunk) => import(chunk))), 2000).unref()
|
|
35
39
|
await running
|
|
@@ -2,28 +2,29 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
answeredWire
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KQ5P5NLL.js";
|
|
6
6
|
import {
|
|
7
7
|
CALLER_META_KEY,
|
|
8
8
|
PROXY_CLIENT_NAME,
|
|
9
9
|
StdioServerTransport,
|
|
10
10
|
callerOf,
|
|
11
11
|
serveStdio
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VERSKGJV.js";
|
|
13
13
|
import {
|
|
14
14
|
McpServer
|
|
15
15
|
} from "./chunk-5D4AEUVA.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-2KVR7FF3.js";
|
|
17
|
+
import "./chunk-BP3TZ4EY.js";
|
|
18
|
+
import "./chunk-NUN6OGOV.js";
|
|
19
|
+
import "./chunk-3EAAEF5U.js";
|
|
20
|
+
import "./chunk-IVDUR5Y4.js";
|
|
20
21
|
import "./chunk-Y5E2WNWB.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-CCHHEMPM.js";
|
|
22
23
|
import {
|
|
23
24
|
__name
|
|
24
25
|
} from "./chunk-ZVVMGPBJ.js";
|
|
25
26
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
|
|
27
28
|
import { spawn } from "node:child_process";
|
|
28
29
|
import { randomUUID } from "node:crypto";
|
|
29
30
|
var PROTOCOL = "2025-06-18";
|
|
@@ -257,7 +258,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
257
258
|
}, "serveAllProfilesOverStdio");
|
|
258
259
|
var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
259
260
|
const { build, close } = allProfilesServer(options);
|
|
260
|
-
const { serveOverHttp } = await import("./serve-
|
|
261
|
+
const { serveOverHttp } = await import("./serve-HO3WME4G.js");
|
|
261
262
|
const listening = await serveOverHttp(build, {
|
|
262
263
|
...http,
|
|
263
264
|
appName: options.command,
|
|
@@ -5,25 +5,25 @@ import {
|
|
|
5
5
|
} from "./chunk-XQUUANA2.js";
|
|
6
6
|
import {
|
|
7
7
|
checkedOptions
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-I62OTHDE.js";
|
|
9
9
|
import {
|
|
10
10
|
messagesFor,
|
|
11
11
|
systemFor
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-6EZ7XGRG.js";
|
|
13
|
+
import "./chunk-3EAAEF5U.js";
|
|
14
14
|
import {
|
|
15
15
|
array,
|
|
16
16
|
optional,
|
|
17
17
|
strictObject,
|
|
18
18
|
string
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-IVDUR5Y4.js";
|
|
20
20
|
import "./chunk-Y5E2WNWB.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-CCHHEMPM.js";
|
|
22
22
|
import {
|
|
23
23
|
__name
|
|
24
24
|
} from "./chunk-ZVVMGPBJ.js";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/models/anthropic.js
|
|
27
27
|
var options = strictObject({
|
|
28
28
|
stop_sequences: optional(array(string()))
|
|
29
29
|
});
|
|
@@ -3,42 +3,42 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
PER_RUN,
|
|
5
5
|
envelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KBFIKUCA.js";
|
|
7
7
|
import {
|
|
8
8
|
answered,
|
|
9
9
|
failed,
|
|
10
10
|
registerCommands,
|
|
11
11
|
runCommandForAgent,
|
|
12
12
|
toolsFromCommands
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-H7OQ4YZV.js";
|
|
14
14
|
import {
|
|
15
15
|
mcpUrlOf
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FTGCXIQA.js";
|
|
17
17
|
import {
|
|
18
18
|
agentJson,
|
|
19
19
|
skillResource
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-P62Z3Q35.js";
|
|
21
|
+
import "./chunk-3YGYB3LJ.js";
|
|
22
22
|
import {
|
|
23
23
|
appInstructions
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-ZCPUKUST.js";
|
|
25
25
|
import {
|
|
26
26
|
answeredWire
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-KQ5P5NLL.js";
|
|
28
28
|
import {
|
|
29
29
|
StdioServerTransport,
|
|
30
30
|
serveStdio
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-VERSKGJV.js";
|
|
32
32
|
import {
|
|
33
33
|
McpServer
|
|
34
34
|
} from "./chunk-5D4AEUVA.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-IPKXRW6W.js";
|
|
36
|
+
import "./chunk-WVWNKZI4.js";
|
|
37
|
+
import "./chunk-UMWR5PKA.js";
|
|
38
|
+
import "./chunk-P547HU26.js";
|
|
39
|
+
import "./chunk-6EZ7XGRG.js";
|
|
40
|
+
import "./chunk-H2ZURG7Q.js";
|
|
41
|
+
import "./chunk-DPKHVBP3.js";
|
|
42
42
|
import {
|
|
43
43
|
DEFAULT_OUTPUT_BYTES,
|
|
44
44
|
changesAuthorityAt,
|
|
@@ -48,47 +48,49 @@ import {
|
|
|
48
48
|
readOnlyLockOf,
|
|
49
49
|
readsOverMcpAt,
|
|
50
50
|
rootOf2 as rootOf
|
|
51
|
-
} from "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
51
|
+
} from "./chunk-YG4OI3HJ.js";
|
|
52
|
+
import "./chunk-7LDC275M.js";
|
|
53
|
+
import "./chunk-2KVR7FF3.js";
|
|
54
|
+
import "./chunk-2F7D6YMB.js";
|
|
55
|
+
import "./chunk-PQLBPYJR.js";
|
|
56
|
+
import "./chunk-ER6PJAPK.js";
|
|
57
57
|
import {
|
|
58
58
|
mcpHttpMarker
|
|
59
|
-
} from "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
59
|
+
} from "./chunk-5C74F7XX.js";
|
|
60
|
+
import "./chunk-Q5EYTU3Q.js";
|
|
61
|
+
import "./chunk-UJEO3VWA.js";
|
|
62
|
+
import "./chunk-7GSE57K3.js";
|
|
63
|
+
import "./chunk-OGK7LMYT.js";
|
|
64
|
+
import "./chunk-F5SZVO3A.js";
|
|
65
|
+
import "./chunk-G53HRGTK.js";
|
|
66
|
+
import "./chunk-2A4BAMNF.js";
|
|
67
|
+
import "./chunk-KLLKDOO2.js";
|
|
68
|
+
import "./chunk-MXG4L7NH.js";
|
|
69
|
+
import "./chunk-NGZW2JPK.js";
|
|
70
|
+
import "./chunk-UHHARH5X.js";
|
|
71
|
+
import "./chunk-BP3TZ4EY.js";
|
|
72
|
+
import "./chunk-MQK2UNG4.js";
|
|
73
|
+
import "./chunk-M2YIJDBL.js";
|
|
74
|
+
import "./chunk-X5XIFNTI.js";
|
|
75
|
+
import "./chunk-ILHTNOIV.js";
|
|
76
|
+
import "./chunk-NUN6OGOV.js";
|
|
76
77
|
import "./chunk-D72URWJE.js";
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
78
|
+
import "./chunk-E7BTD4P6.js";
|
|
79
|
+
import "./chunk-DIP3ENSY.js";
|
|
80
|
+
import "./chunk-3EAAEF5U.js";
|
|
79
81
|
import {
|
|
80
82
|
mcpErrorResult
|
|
81
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-IVDUR5Y4.js";
|
|
82
84
|
import "./chunk-Y5E2WNWB.js";
|
|
83
85
|
import {
|
|
84
86
|
CliError
|
|
85
|
-
} from "./chunk-
|
|
86
|
-
import "./chunk-
|
|
87
|
+
} from "./chunk-CCHHEMPM.js";
|
|
88
|
+
import "./chunk-QWRBAQZ7.js";
|
|
87
89
|
import {
|
|
88
90
|
__name
|
|
89
91
|
} from "./chunk-ZVVMGPBJ.js";
|
|
90
92
|
|
|
91
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
93
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
|
|
92
94
|
var EXCLUDED = [["mcp"]];
|
|
93
95
|
var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
|
|
94
96
|
const { app } = options;
|
|
@@ -203,10 +205,11 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
|
|
|
203
205
|
var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
|
|
204
206
|
const { app } = options;
|
|
205
207
|
const { build } = createAppServer(command, context, options);
|
|
206
|
-
const { serveOverHttp } = await import("./serve-
|
|
208
|
+
const { serveOverHttp } = await import("./serve-HO3WME4G.js");
|
|
207
209
|
const listening = await serveOverHttp(build, {
|
|
208
210
|
...http,
|
|
209
211
|
appName: app.command,
|
|
212
|
+
reaches: `your ${options.name}`,
|
|
210
213
|
onCode: /* @__PURE__ */ __name((code, expires) => context.renderer.note(context.env[mcpHttpMarker(app.envPrefix)] === void 0 ? `login code for a new browser app: ${code} (until ${expires.toTimeString().slice(0, 5)}; a new one after each login)` : `a new login code for a browser app: \`${app.command} ${context.settings.profile} mcp server status\``), "onCode"),
|
|
211
214
|
onError: /* @__PURE__ */ __name((error) => context.renderer.note(`mcp: ${error.message}`), "onError")
|
|
212
215
|
}).catch((error) => {
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-QWRBAQZ7.js";
|
|
22
22
|
import {
|
|
23
23
|
__name
|
|
24
24
|
} from "./chunk-ZVVMGPBJ.js";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
|
|
27
27
|
import { Database } from "bun:sqlite";
|
|
28
28
|
var bunSQLiteCodecs = refineSqliteCodecs({
|
|
29
29
|
"integer:boolean": { normalize: booleanFromInteger },
|
|
@@ -3,18 +3,18 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-XRJIQC6P.js";
|
|
7
|
+
import "./chunk-3EAAEF5U.js";
|
|
8
|
+
import "./chunk-IVDUR5Y4.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-CCHHEMPM.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
|
|
18
18
|
var customised = false;
|
|
19
19
|
var ownLibrary = /* @__PURE__ */ __name(async () => {
|
|
20
20
|
try {
|
|
@@ -18,9 +18,9 @@ import {
|
|
|
18
18
|
strictObject,
|
|
19
19
|
string,
|
|
20
20
|
unknown
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-IVDUR5Y4.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
24
24
|
var text = string();
|
|
25
25
|
var id = pipe(string(), minLength(1));
|
|
26
26
|
var time = isoTime;
|
|
@@ -44,7 +44,7 @@ var author = strictObject({
|
|
|
44
44
|
name: nullable(text)
|
|
45
45
|
});
|
|
46
46
|
|
|
47
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
48
48
|
var organization = strictObject({
|
|
49
49
|
id,
|
|
50
50
|
ref: reference,
|
|
@@ -74,7 +74,7 @@ var reminder = strictObject({
|
|
|
74
74
|
receipt: nullable(text)
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
77
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/note.js
|
|
78
78
|
var link = {
|
|
79
79
|
target_text: nullable(text),
|
|
80
80
|
kind: text,
|
|
@@ -3,26 +3,26 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
executableEnvironment,
|
|
5
5
|
executableOnPath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PQLBPYJR.js";
|
|
7
7
|
import {
|
|
8
8
|
require_cross_spawn
|
|
9
9
|
} from "./chunk-D72URWJE.js";
|
|
10
10
|
import {
|
|
11
11
|
loadConfigFile,
|
|
12
12
|
saveConfigFile
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3EAAEF5U.js";
|
|
14
14
|
import {
|
|
15
15
|
number,
|
|
16
16
|
object,
|
|
17
17
|
optional,
|
|
18
18
|
string
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-IVDUR5Y4.js";
|
|
20
20
|
import {
|
|
21
21
|
__name,
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-ZVVMGPBJ.js";
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/update/index.js
|
|
26
26
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
27
27
|
import { existsSync } from "node:fs";
|
|
28
28
|
var updateCommand = /* @__PURE__ */ __name((installer, packageName) => {
|
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
secretNamed,
|
|
5
|
+
withoutSecrets
|
|
6
|
+
} from "./chunk-BP3TZ4EY.js";
|
|
3
7
|
import {
|
|
4
8
|
isContentKey
|
|
5
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3EAAEF5U.js";
|
|
6
10
|
import {
|
|
7
11
|
errorCodes
|
|
8
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-CCHHEMPM.js";
|
|
9
13
|
import {
|
|
10
14
|
__name
|
|
11
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
16
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
14
18
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
15
19
|
import { createHash } from "node:crypto";
|
|
16
20
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
18
22
|
import { homedir } from "node:os";
|
|
19
23
|
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/errors/failures.js
|
|
21
25
|
var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
|
|
22
26
|
var isCommanderFailure = /* @__PURE__ */ __name((value) => {
|
|
23
27
|
const { code, exitCode } = value ?? {};
|
|
@@ -25,7 +29,7 @@ var isCommanderFailure = /* @__PURE__ */ __name((value) => {
|
|
|
25
29
|
}, "isCommanderFailure");
|
|
26
30
|
var failureKey = /* @__PURE__ */ __name((error) => isCliFailure(error) ? error.code : error instanceof Error ? error.name : "error", "failureKey");
|
|
27
31
|
|
|
28
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/runs/events.js
|
|
29
33
|
var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
|
|
30
34
|
var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
31
35
|
if (event.event === "warning") {
|
|
@@ -73,88 +77,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
|
|
|
73
77
|
var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
|
|
74
78
|
var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
|
|
75
79
|
|
|
76
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
77
|
-
var SECRET_WORDS = /* @__PURE__ */ new Set([
|
|
78
|
-
"authorization",
|
|
79
|
-
"cookie",
|
|
80
|
-
"credential",
|
|
81
|
-
"credentials",
|
|
82
|
-
"passphrase",
|
|
83
|
-
"password",
|
|
84
|
-
"passwd",
|
|
85
|
-
"pwd",
|
|
86
|
-
"pass",
|
|
87
|
-
"passcode",
|
|
88
|
-
"pin",
|
|
89
|
-
"otp",
|
|
90
|
-
"2fa",
|
|
91
|
-
"secret",
|
|
92
|
-
"token",
|
|
93
|
-
"contrase\xF1a",
|
|
94
|
-
"contrasena",
|
|
95
|
-
"clave",
|
|
96
|
-
"\u043F\u0430\u0440\u043E\u043B\u044C",
|
|
97
|
-
"\u043F\u0438\u043D",
|
|
98
|
-
"\u043A\u043E\u0434",
|
|
99
|
-
...["api", "auth", "service", "account", "db", "database", "priv", "private", "client"].map((word) => `${word}key`),
|
|
100
|
-
...["db", "database", "key"].map((word) => `${word}pass`)
|
|
101
|
-
]);
|
|
102
|
-
var secretNamed = /* @__PURE__ */ __name((name) => {
|
|
103
|
-
const words = name.replace(/([a-z0-9])([A-Z])/g, "$1 $2").split(/[\s_.-]+/).map((word) => word.toLowerCase());
|
|
104
|
-
return words.some((word, at) => SECRET_WORDS.has(word) || SECRET_WORDS.has(word + (words[at + 1] ?? "")));
|
|
105
|
-
}, "secretNamed");
|
|
106
|
-
var START = "(?<![A-Za-z0-9_-])";
|
|
107
|
-
var END = "(?![A-Za-z0-9_-])";
|
|
108
|
-
var KNOWN_TOKENS = new RegExp(`${[
|
|
109
|
-
"gh[pousr]_[A-Za-z0-9]{36,}",
|
|
110
|
-
"github_pat_[A-Za-z0-9_]{22,}",
|
|
111
|
-
"sk-[A-Za-z0-9_-]{20,}",
|
|
112
|
-
"xox[abprs]-[A-Za-z0-9-]{10,}",
|
|
113
|
-
"(?:AKIA|ASIA)[A-Z0-9]{16}",
|
|
114
|
-
"AIza[A-Za-z0-9_-]{35}",
|
|
115
|
-
"(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{10,}",
|
|
116
|
-
"npm_[A-Za-z0-9]{36}",
|
|
117
|
-
"eyJ[A-Za-z0-9_-]{5,}\\.eyJ[A-Za-z0-9_-]{5,}\\.[A-Za-z0-9_-]*"
|
|
118
|
-
].map((pattern) => `${START}${pattern}${END}`).join("|")}|(?<!\\d)\\d{8,10}:[A-Za-z0-9_-]{35}${END}`, "g");
|
|
119
|
-
var PRIVATE_KEY = /-----BEGIN[A-Z ]* PRIVATE KEY-----[\s\S]*?(?:-----END[A-Z ]* PRIVATE KEY-----|$)/g;
|
|
120
|
-
var SCHEME = /(?<![A-Za-z])(Bearer|Basic)(\s+)(?![A-Z]?[a-z]+(?![A-Za-z0-9]))[A-Za-z0-9._~+/=-]{8,}/g;
|
|
121
|
-
var NAMED_PAIR = /(?<![\p{L}\p{N}])([\p{L}\p{N}_.-]*(?:token|pass|pwd|pin|otp|2fa|secret|credential|cookie|authorization|key|contrase|clave|пароль|пин|код)[\p{L}\p{N}_.-]*)(["']?\s*(?:=>|[:=])\s*["']?|\s+(?![\p{L}]+(?![\p{L}\p{N}])))((?:Bearer\s+|Basic\s+)?)([^\s"'&,;]+)/giu;
|
|
122
|
-
var looksRandom = /* @__PURE__ */ __name((run) => {
|
|
123
|
-
if (run.length < 20)
|
|
124
|
-
return false;
|
|
125
|
-
const classes = [/[a-z]/, /[A-Z]/, /\d/, /[^A-Za-z0-9]/].filter((kind) => kind.test(run)).length;
|
|
126
|
-
if (classes < 3)
|
|
127
|
-
return false;
|
|
128
|
-
let switches = 0;
|
|
129
|
-
for (let at = 1; at < run.length; at++) {
|
|
130
|
-
const [before, after] = [run[at - 1], run[at]];
|
|
131
|
-
if (/[a-z]/.test(before) && /[A-Z]/.test(after) || /[A-Z]/.test(before) && /[a-z]/.test(after))
|
|
132
|
-
switches += 1;
|
|
133
|
-
}
|
|
134
|
-
if (switches / run.length < 0.15)
|
|
135
|
-
return false;
|
|
136
|
-
const pieces = run.match(/[A-Z]?[a-z]+|[A-Z]+(?![a-z])|\d+/g) ?? [];
|
|
137
|
-
if (pieces.join("").length / Math.max(pieces.length, 1) >= 2.75)
|
|
138
|
-
return false;
|
|
139
|
-
return entropy(run) >= 3.5;
|
|
140
|
-
}, "looksRandom");
|
|
141
|
-
var entropy = /* @__PURE__ */ __name((text) => {
|
|
142
|
-
const counts = /* @__PURE__ */ new Map();
|
|
143
|
-
for (const char of text)
|
|
144
|
-
counts.set(char, (counts.get(char) ?? 0) + 1);
|
|
145
|
-
let bits = 0;
|
|
146
|
-
for (const count of counts.values())
|
|
147
|
-
bits -= count / text.length * Math.log2(count / text.length);
|
|
148
|
-
return bits;
|
|
149
|
-
}, "entropy");
|
|
150
|
-
var withoutSecrets = /* @__PURE__ */ __name((text, mark = "[redacted]") => text.replace(PRIVATE_KEY, mark).replace(KNOWN_TOKENS, mark).replace(SCHEME, `$1$2${mark}`).replace(NAMED_PAIR, (whole, name, separator, scheme) => secretNamed(name) ? `${name}${separator}${scheme}${mark}` : whole).replace(/[!-~]{20,}/g, (token) => (
|
|
151
|
-
// A URL or a path is somebody's address, not a key; a credential in one is caught by the rules above.
|
|
152
|
-
token.includes("://") || /^(?:\/|~\/|\.\.?\/)/.test(token) ? token : token.replace(RUN, (run) => looksRandom(run) ? mark : run.replace(HEX, (hex) => entropy(hex) >= 3 ? mark : hex))
|
|
153
|
-
)), "withoutSecrets");
|
|
154
|
-
var RUN = /(?<![A-Za-z0-9_+/-])[A-Za-z0-9_+/-]{20,}/g;
|
|
155
|
-
var HEX = /(?<![A-Za-z0-9])(?=[0-9]*[a-f])[0-9a-f]{20,}(?![A-Za-z0-9])/g;
|
|
156
|
-
|
|
157
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
80
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
158
81
|
var MESSAGE_AT_MOST = 500;
|
|
159
82
|
var CAUSES_AT_MOST = 5;
|
|
160
83
|
var FRAMES_AT_MOST = 15;
|
|
@@ -263,7 +186,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
|
|
|
263
186
|
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
264
187
|
}, "redactText");
|
|
265
188
|
|
|
266
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
189
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
267
190
|
var REDACTED = "[redacted]";
|
|
268
191
|
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
269
192
|
if (!record)
|