@wirecat/mail-cli 0.8.0 → 0.10.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 +51 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-MXGDUBAM.js → all-profiles-OJPRIFKU.js} +9 -9
- package/dist/bundle/{anthropic-A2QA4W7L.js → anthropic-3AXHD4WH.js} +6 -6
- package/dist/bundle/{app-server-PMIMK6FK.js → app-server-V4KHCUGE.js} +45 -46
- package/dist/bundle/{bun-3UW3LFNL.js → bun-ISYNUTQJ.js} +2 -2
- package/dist/bundle/{bun-sqlite-TGFZFKAX.js → bun-sqlite-FH3D4AXL.js} +5 -5
- package/dist/bundle/{chunk-W7H3PZ67.js → chunk-2TTCKOQ7.js} +2 -2
- package/dist/bundle/{chunk-U4IF2MOB.js → chunk-35Y3INBK.js} +2 -2
- package/dist/bundle/{chunk-Q5DOXSBM.js → chunk-44LVUMS2.js} +1 -1
- package/dist/bundle/{chunk-ZKAT6I2I.js → chunk-4D52FA34.js} +1 -1
- package/dist/bundle/{chunk-L3KMVMRJ.js → chunk-4DPICEPQ.js} +2 -2
- package/dist/bundle/{chunk-PXCIM6D5.js → chunk-4GPPRLIG.js} +7 -42
- package/dist/bundle/{chunk-BEUQ2X7U.js → chunk-5TACUBRJ.js} +8 -8
- package/dist/bundle/{chunk-EN3UZPGB.js → chunk-6LNRNQHJ.js} +4 -4
- package/dist/bundle/{chunk-6U6Z3GXR.js → chunk-6QNPJSRM.js} +6 -6
- package/dist/bundle/{chunk-5W74YMCK.js → chunk-6UT3MXOB.js} +3 -3
- package/dist/bundle/{chunk-TCWJYOZV.js → chunk-AJ4JS2ZR.js} +36 -11
- package/dist/bundle/{chunk-NEBO3NZU.js → chunk-BYQ3Z6UL.js} +3 -3
- package/dist/bundle/{chunk-Z5GDZ3QF.js → chunk-DN54W657.js} +2 -2
- package/dist/bundle/{chunk-RFWTPSJX.js → chunk-F3QDSQ7V.js} +34 -28
- package/dist/bundle/{chunk-YS2WUWY7.js → chunk-FYMQPAE5.js} +4 -4
- package/dist/bundle/{chunk-NI6WX55Z.js → chunk-G2WDY5XB.js} +2 -2
- package/dist/bundle/{chunk-EU35YQXE.js → chunk-GAIVTJ3E.js} +121 -32
- package/dist/bundle/{chunk-J5RKMQ6A.js → chunk-GFCNSU3B.js} +48 -48
- package/dist/bundle/{chunk-L2ZHPIFC.js → chunk-GUFWLTOW.js} +2 -2
- package/dist/bundle/{chunk-CMNFLAUG.js → chunk-GYNHU56E.js} +4 -4
- package/dist/bundle/{chunk-BCDPLG7T.js → chunk-HVVLSCFB.js} +1 -1
- package/dist/bundle/{chunk-EVO77D3Y.js → chunk-IG2WXKIT.js} +8 -8
- package/dist/bundle/{chunk-QBBKSCQD.js → chunk-IWHXM2S7.js} +1620 -671
- package/dist/bundle/{chunk-KBKEZV4L.js → chunk-IXYKM7OJ.js} +13 -13
- package/dist/bundle/{chunk-ZISFMUYB.js → chunk-JAWJZTFL.js} +18 -18
- package/dist/bundle/{chunk-PEF637VV.js → chunk-JIIEJLAX.js} +4 -4
- package/dist/bundle/{chunk-DLB2JPLU.js → chunk-JNUKTAMZ.js} +1 -1
- package/dist/bundle/{chunk-DM4ULDS3.js → chunk-K2F7YMMM.js} +6 -6
- package/dist/bundle/{chunk-NWKLBZN5.js → chunk-KJP2B65C.js} +30 -30
- package/dist/bundle/{chunk-CRS63C3T.js → chunk-KQXLRAHT.js} +2 -5
- package/dist/bundle/{chunk-4QDBMYK4.js → chunk-KVN4RY7E.js} +52 -53
- package/dist/bundle/{chunk-DYCPBLUC.js → chunk-L3PVAY3M.js} +2 -2
- package/dist/bundle/{chunk-W5J6I5GW.js → chunk-LIQ5LICB.js} +3 -3
- package/dist/bundle/{chunk-SZ5PKNDF.js → chunk-LXHLQ6RK.js} +7 -7
- package/dist/bundle/{chunk-XWNCXFR5.js → chunk-MDIRW3AT.js} +2 -2
- package/dist/bundle/{chunk-LN7TNZIS.js → chunk-N6P55LDU.js} +84 -8
- package/dist/bundle/{chunk-7JUTNCQX.js → chunk-NBQQ2ZTF.js} +19 -14
- package/dist/bundle/{chunk-NAIJNJZZ.js → chunk-NSDOYHIS.js} +10 -8
- package/dist/bundle/{chunk-UR6WHUJF.js → chunk-OHC4GVWV.js} +2 -2
- package/dist/bundle/{chunk-6JK46V5X.js → chunk-PLPSFJO6.js} +6 -6
- package/dist/bundle/{chunk-RVZ4JIRR.js → chunk-PSXAC6OO.js} +1 -1
- package/dist/bundle/{chunk-WS4L47DG.js → chunk-QB54TE52.js} +1 -1
- package/dist/bundle/{chunk-KF4YULWC.js → chunk-QPQSMJBW.js} +10 -10
- package/dist/bundle/{chunk-WWNAQ75T.js → chunk-S64N24ON.js} +3 -3
- package/dist/bundle/{chunk-J6ACLZKV.js → chunk-SW5NVASW.js} +9 -9
- package/dist/bundle/{chunk-FSBKLJXM.js → chunk-SYBMOE6F.js} +865 -838
- package/dist/bundle/{chunk-VSDVH2M2.js → chunk-T3AGR4TI.js} +4840 -894
- package/dist/bundle/{chunk-KEZHPPMI.js → chunk-TTKNBUMT.js} +45 -5
- package/dist/bundle/{chunk-ROZBXOES.js → chunk-TZGQPTZ2.js} +1 -1
- package/dist/bundle/{chunk-AO3XYONW.js → chunk-UDJIC6YL.js} +67 -30
- package/dist/bundle/{chunk-2MQXXPPK.js → chunk-V6K2GX2Y.js} +17 -17
- package/dist/bundle/{chunk-2KZJWBXB.js → chunk-VEXXVLBM.js} +3 -3
- package/dist/bundle/{chunk-TMQA4KR7.js → chunk-WL7CYT7O.js} +1 -1
- package/dist/bundle/{chunk-6J3DKKOV.js → chunk-X37KLD23.js} +14 -14
- package/dist/bundle/{chunk-5PWKPRTD.js → chunk-XTIQFMZH.js} +4 -4
- package/dist/bundle/{chunk-OAQ4UB6V.js → chunk-YDUES6ET.js} +4 -4
- package/dist/bundle/{chunk-VGR3AGAC.js → chunk-YRZ23RCS.js} +164 -59
- package/dist/bundle/command-contract-TW44FY47.js +33 -0
- package/dist/bundle/{decode-NF4TGOR3.js → decode-FM4C2WWG.js} +5 -5
- package/dist/bundle/{dispatch-5C6XNGEE.js → dispatch-K3HG4RYT.js} +8 -8
- package/dist/bundle/{dist-DVYY3YFG.js → dist-7LNVI7VB.js} +17 -13
- package/dist/bundle/{echarts-F3USGP5B.js → echarts-5C2A72XM.js} +2 -2
- package/dist/bundle/{embed-2RXV3BEC.js → embed-N56P6YVY.js} +6 -6
- package/dist/bundle/{embedder-I2SJMC6N.js → embedder-QLYKFLOL.js} +9 -9
- package/dist/bundle/{failure-YRGRZBTX.js → failure-5ZLVZTRU.js} +2 -2
- package/dist/bundle/{first-run-3GA7YCKZ.js → first-run-VMF4PJ7Q.js} +11 -11
- package/dist/bundle/first-screen-ZN7ODW5K.js +31 -0
- package/dist/bundle/{instructions-VHI5CWH5.js → instructions-QA5FHDOJ.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-B25MZCS7.js → mcp-LO2XDBBC.js} +2 -2
- package/dist/bundle/{node-4RBB3RDY.js → node-OXJZWUYZ.js} +2 -2
- package/dist/bundle/{node-sqlite-FWYX3P2D.js → node-sqlite-7GCEI67B.js} +5 -5
- package/dist/bundle/{oauth-6JKKRGLX.js → oauth-VTPIYBTP.js} +7 -7
- package/dist/bundle/{open-7JSNC3MR.js → open-7XX3YF2X.js} +4 -4
- package/dist/bundle/{openai-ASLWL3D6.js → openai-D3KRCXSY.js} +14 -14
- package/dist/bundle/{process-AB2D2G2Q.js → process-KFI7SXQD.js} +1 -1
- package/dist/bundle/{program-ZJPQ3IDU.js → program-OJUWUHHC.js} +1355 -864
- package/dist/bundle/{prompt-JDFVQR3L.js → prompt-TBZT3APW.js} +5 -5
- package/dist/bundle/{recognize-PKYA4HRC.js → recognize-WQSE5ZPL.js} +4 -4
- package/dist/bundle/{remote-USBVVO4O.js → remote-J5HHRNVQ.js} +7 -7
- package/dist/bundle/{rerank-UBMV6KO6.js → rerank-DP2Y3WDT.js} +7 -7
- package/dist/bundle/{serve-SVS3YOYS.js → serve-VXPOQDQO.js} +9 -9
- package/dist/bundle/{server-7PZMYXY6.js → server-OSBNGA2F.js} +37 -38
- package/dist/bundle/server-XHWSCXVX.js +62 -0
- package/dist/bundle/{sqlite-runtime-IDPTXAM7.js → sqlite-runtime-XY32WOIT.js} +5 -5
- package/dist/bundle/{state-6G2TSVP7.js → state-KPOPMR6O.js} +6 -6
- package/dist/bundle/{store-7A464D4X.js → store-FWRGNGP3.js} +25 -17
- package/dist/bundle/{store-L56GFI4P.js → store-UBI2YCRC.js} +13 -13
- package/dist/bundle/store-maintenance-command-3ZXPEIGF.js +52 -0
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +2 -1
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/session-start.d.ts.map +1 -1
- package/dist/commands/session-start.js +3 -3
- package/dist/commands/session-start.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +22 -7
- package/dist/commands/sync.js.map +1 -1
- package/dist/config.d.ts +6 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/mail/imap/connection.d.ts.map +1 -1
- package/dist/mail/imap/connection.js +6 -4
- package/dist/mail/imap/connection.js.map +1 -1
- package/dist/mail/imap/errors.d.ts +7 -0
- package/dist/mail/imap/errors.d.ts.map +1 -1
- package/dist/mail/imap/errors.js +8 -4
- package/dist/mail/imap/errors.js.map +1 -1
- package/dist/mail/imap/read.d.ts.map +1 -1
- package/dist/mail/imap/read.js +36 -20
- package/dist/mail/imap/read.js.map +1 -1
- package/dist/mail/imap/search.d.ts +7 -2
- package/dist/mail/imap/search.d.ts.map +1 -1
- package/dist/mail/imap/search.js +13 -7
- package/dist/mail/imap/search.js.map +1 -1
- package/dist/mail/imap/write.d.ts.map +1 -1
- package/dist/mail/imap/write.js +2 -1
- package/dist/mail/imap/write.js.map +1 -1
- package/dist/mail/organise.d.ts.map +1 -1
- package/dist/mail/organise.js +92 -87
- package/dist/mail/organise.js.map +1 -1
- package/dist/mail/send.d.ts.map +1 -1
- package/dist/mail/send.js +26 -5
- package/dist/mail/send.js.map +1 -1
- package/dist/oauth.d.ts +2 -8
- package/dist/oauth.d.ts.map +1 -1
- package/dist/oauth.js +6 -40
- package/dist/oauth.js.map +1 -1
- package/dist/providers.d.ts.map +1 -1
- package/dist/providers.js +2 -1
- package/dist/providers.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +0 -3
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-NSODLSEL.js +0 -3604
- package/dist/bundle/command-contract-Q32SL5KX.js +0 -34
- package/dist/bundle/first-screen-JFIXKYAK.js +0 -32
- package/dist/bundle/server-KA7Q5XCL.js +0 -63
- package/dist/bundle/store-maintenance-command-2LM4GOI3.js +0 -52
- /package/dist/bundle/{chunk-EKRM2QJB.js → chunk-MRLSUCHT.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,57 @@
|
|
|
2
2
|
|
|
3
3
|
Notable changes to `@wirecat/mail-cli`. One section per version, newest first.
|
|
4
4
|
|
|
5
|
+
## 0.10.0 — 02.11.2026
|
|
6
|
+
|
|
7
|
+
### Changed — may break callers
|
|
8
|
+
|
|
9
|
+
- **`search messages` says `search.server-partial`, not `search.server-too-large`.** It downloads the first 256 KiB of
|
|
10
|
+
each message the server finds and stores a bigger one with its text and without its attachments; the next `sync`
|
|
11
|
+
reads it whole. Before, a candidate over 5 MB was left on the server and a smaller one was downloaded with all its
|
|
12
|
+
attachments. A script that matched `search.server-too-large` matches `search.server-partial` instead.
|
|
13
|
+
- **After `messages send`, `stored` is true only when this message is in the store**, not when any other mail of the
|
|
14
|
+
last 10 minutes was. A caller that read `stored: true` as "some mail was synced" reads it now as "this message is
|
|
15
|
+
stored".
|
|
16
|
+
- **`mail.search-refused` is cli-core's reason now** (cli-core 0.550.0); the reason, its code and its message are
|
|
17
|
+
the same.
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- **`--compact` answers one line per item** (cli-base 0.74.0). mail now needs `@wirecat/cli-core` 0.550.0 and
|
|
22
|
+
`@wirecat/cli-base` 0.74.0.
|
|
23
|
+
- **`sync` says what became of the emails a search stored text-first**: `partial_emails` with `completed` (read whole
|
|
24
|
+
this run), `left` (waiting for a later run) and `stuck` (given up on: the server no longer gives them where they
|
|
25
|
+
were stored). It is absent when there are none.
|
|
26
|
+
|
|
27
|
+
### Fixed
|
|
28
|
+
|
|
29
|
+
- **A Microsoft sign-in whose new token the mail server refuses says how to turn IMAP on.** On Outlook.com IMAP is
|
|
30
|
+
off by default; the error now names the switch (Settings, "Mail", "Forwarding and IMAP", "Let devices and apps use
|
|
31
|
+
IMAP") and no longer claims a refresh was tried. The answer carries the server's response code as `cause_code`, never
|
|
32
|
+
its text.
|
|
33
|
+
- **A server that refuses SEARCH no longer looks like an empty folder.** `sync` leaves that folder unread and reads
|
|
34
|
+
the rest: the answer is partial, names it in `refused_folders` with a `mail.search-refused` issue, and nothing of it
|
|
35
|
+
is marked deleted. `messages move`, `copy`, `delete`, `restore` and `drafts` stop with `mail.search-refused`
|
|
36
|
+
instead of acting on nothing (cli-core).
|
|
37
|
+
- **On Gmail, an email a search stored text-first is read whole by the next `sync`.** It was never completed there:
|
|
38
|
+
mail worked out its id from the Message-ID, and Gmail's mail is stored under its X-GM-MSGID, so every sync downloaded
|
|
39
|
+
the whole message again and threw it away. `fetchRaw` now reads Gmail's ids beside the bytes.
|
|
40
|
+
- **An email a search stored text-first is no longer downloaded whole on every sync when the server no longer gives
|
|
41
|
+
it.** It is read under the UIDVALIDITY it was stored with, and given up on after three failed tries, or at once when
|
|
42
|
+
its place holds another message; it no longer holds back newer ones (cli-core).
|
|
43
|
+
- **A search no longer stores a text-first copy over an email a sync in another process stored whole meanwhile**,
|
|
44
|
+
which dropped its attachments (cli-core).
|
|
45
|
+
- **The reader of your own Google `--client-file` and the browser opener come from `@wirecat/cli-core` 0.546.0**, not
|
|
46
|
+
copies in mail. The file shapes, the `chmod 600` check and the errors are unchanged.
|
|
47
|
+
|
|
48
|
+
## 0.9.0 — 02.11.2026
|
|
49
|
+
|
|
50
|
+
### Added
|
|
51
|
+
|
|
52
|
+
- **Microsoft sign-in works without a config**: WireCat's Microsoft app is built in. The sign-in sends
|
|
53
|
+
`http://localhost:<port>/callback`, the address registered for it (docs/oauth-microsoft.md). Google keeps
|
|
54
|
+
`127.0.0.1`.
|
|
55
|
+
|
|
5
56
|
## 0.8.0 — 02.11.2026
|
|
6
57
|
|
|
7
58
|
### Added
|
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.10.0\n")
|
|
13
13
|
} else {
|
|
14
14
|
// Before the bundle compiles: the bundle's own call comes after its chunks.
|
|
15
15
|
module.enableCompileCache()
|
|
@@ -29,7 +29,7 @@ if (
|
|
|
29
29
|
})
|
|
30
30
|
}
|
|
31
31
|
const running = import("../bundle/mail.js")
|
|
32
|
-
const chunks = ["../bundle/all-profiles-
|
|
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-OJUWUHHC.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
33
|
// After the server answers its first request, so it starts no later.
|
|
34
34
|
if (serves) setTimeout(() => void Promise.allSettled(chunks.map((chunk) => import(chunk))), 2000).unref()
|
|
35
35
|
await running
|
|
@@ -2,28 +2,28 @@ 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-4D52FA34.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-G2WDY5XB.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-SW5NVASW.js";
|
|
17
|
+
import "./chunk-MRLSUCHT.js";
|
|
18
|
+
import "./chunk-JAWJZTFL.js";
|
|
19
|
+
import "./chunk-NSDOYHIS.js";
|
|
20
20
|
import "./chunk-Y5E2WNWB.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-4DPICEPQ.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.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
|
|
27
27
|
import { spawn } from "node:child_process";
|
|
28
28
|
import { randomUUID } from "node:crypto";
|
|
29
29
|
var PROTOCOL = "2025-06-18";
|
|
@@ -257,7 +257,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
257
257
|
}, "serveAllProfilesOverStdio");
|
|
258
258
|
var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
259
259
|
const { build, close } = allProfilesServer(options);
|
|
260
|
-
const { serveOverHttp } = await import("./serve-
|
|
260
|
+
const { serveOverHttp } = await import("./serve-VXPOQDQO.js");
|
|
261
261
|
const listening = await serveOverHttp(build, {
|
|
262
262
|
...http,
|
|
263
263
|
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-S64N24ON.js";
|
|
9
9
|
import {
|
|
10
10
|
messagesFor,
|
|
11
11
|
systemFor
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-OHC4GVWV.js";
|
|
13
|
+
import "./chunk-JAWJZTFL.js";
|
|
14
14
|
import {
|
|
15
15
|
array,
|
|
16
16
|
optional,
|
|
17
17
|
strictObject,
|
|
18
18
|
string
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NSDOYHIS.js";
|
|
20
20
|
import "./chunk-Y5E2WNWB.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-4DPICEPQ.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.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/models/anthropic.js
|
|
27
27
|
var options = strictObject({
|
|
28
28
|
stop_sequences: optional(array(string()))
|
|
29
29
|
});
|
|
@@ -3,43 +3,42 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
PER_RUN,
|
|
5
5
|
envelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KJP2B65C.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-F3QDSQ7V.js";
|
|
14
14
|
import {
|
|
15
15
|
mcpUrlOf
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UDJIC6YL.js";
|
|
17
17
|
import {
|
|
18
18
|
agentJson,
|
|
19
19
|
skillResource
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-NBQQ2ZTF.js";
|
|
21
|
+
import "./chunk-TTKNBUMT.js";
|
|
22
22
|
import {
|
|
23
23
|
appInstructions
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-HVVLSCFB.js";
|
|
25
25
|
import {
|
|
26
26
|
answeredWire
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-4D52FA34.js";
|
|
28
28
|
import {
|
|
29
29
|
StdioServerTransport,
|
|
30
30
|
serveStdio
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-G2WDY5XB.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-
|
|
42
|
-
import "./chunk-NSODLSEL.js";
|
|
35
|
+
import "./chunk-GAIVTJ3E.js";
|
|
36
|
+
import "./chunk-SYBMOE6F.js";
|
|
37
|
+
import "./chunk-IXYKM7OJ.js";
|
|
38
|
+
import "./chunk-N6P55LDU.js";
|
|
39
|
+
import "./chunk-OHC4GVWV.js";
|
|
40
|
+
import "./chunk-L3PVAY3M.js";
|
|
41
|
+
import "./chunk-4GPPRLIG.js";
|
|
43
42
|
import {
|
|
44
43
|
DEFAULT_OUTPUT_BYTES,
|
|
45
44
|
changesAuthorityAt,
|
|
@@ -49,47 +48,47 @@ import {
|
|
|
49
48
|
readOnlyLockOf,
|
|
50
49
|
readsOverMcpAt,
|
|
51
50
|
rootOf2 as rootOf
|
|
52
|
-
} from "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
51
|
+
} from "./chunk-T3AGR4TI.js";
|
|
52
|
+
import "./chunk-AJ4JS2ZR.js";
|
|
53
|
+
import "./chunk-SW5NVASW.js";
|
|
54
|
+
import "./chunk-XTIQFMZH.js";
|
|
55
|
+
import "./chunk-TZGQPTZ2.js";
|
|
56
|
+
import "./chunk-VEXXVLBM.js";
|
|
58
57
|
import {
|
|
59
58
|
mcpHttpMarker
|
|
60
|
-
} from "./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-GYNHU56E.js";
|
|
60
|
+
import "./chunk-BYQ3Z6UL.js";
|
|
61
|
+
import "./chunk-44LVUMS2.js";
|
|
62
|
+
import "./chunk-6UT3MXOB.js";
|
|
63
|
+
import "./chunk-6QNPJSRM.js";
|
|
64
|
+
import "./chunk-6LNRNQHJ.js";
|
|
65
|
+
import "./chunk-V6K2GX2Y.js";
|
|
66
|
+
import "./chunk-YDUES6ET.js";
|
|
67
|
+
import "./chunk-IWHXM2S7.js";
|
|
68
|
+
import "./chunk-YRZ23RCS.js";
|
|
69
|
+
import "./chunk-LXHLQ6RK.js";
|
|
70
|
+
import "./chunk-KVN4RY7E.js";
|
|
71
|
+
import "./chunk-IG2WXKIT.js";
|
|
72
|
+
import "./chunk-PLPSFJO6.js";
|
|
73
|
+
import "./chunk-MDIRW3AT.js";
|
|
74
|
+
import "./chunk-JNUKTAMZ.js";
|
|
75
|
+
import "./chunk-MRLSUCHT.js";
|
|
76
76
|
import "./chunk-D72URWJE.js";
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
79
|
-
import "./chunk-XWNCXFR5.js";
|
|
80
|
-
import "./chunk-ZISFMUYB.js";
|
|
77
|
+
import "./chunk-K2F7YMMM.js";
|
|
78
|
+
import "./chunk-JAWJZTFL.js";
|
|
81
79
|
import {
|
|
82
80
|
mcpErrorResult
|
|
83
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-NSDOYHIS.js";
|
|
84
82
|
import "./chunk-Y5E2WNWB.js";
|
|
85
83
|
import {
|
|
86
84
|
CliError
|
|
87
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-4DPICEPQ.js";
|
|
86
|
+
import "./chunk-PSXAC6OO.js";
|
|
88
87
|
import {
|
|
89
88
|
__name
|
|
90
89
|
} from "./chunk-ZVVMGPBJ.js";
|
|
91
90
|
|
|
92
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
91
|
+
// 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/mcp/app-server.js
|
|
93
92
|
var EXCLUDED = [["mcp"]];
|
|
94
93
|
var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
|
|
95
94
|
const { app } = options;
|
|
@@ -204,7 +203,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
|
|
|
204
203
|
var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
|
|
205
204
|
const { app } = options;
|
|
206
205
|
const { build } = createAppServer(command, context, options);
|
|
207
|
-
const { serveOverHttp } = await import("./serve-
|
|
206
|
+
const { serveOverHttp } = await import("./serve-VXPOQDQO.js");
|
|
208
207
|
const listening = await serveOverHttp(build, {
|
|
209
208
|
...http,
|
|
210
209
|
appName: app.command,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-PSXAC6OO.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.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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-35Y3INBK.js";
|
|
7
|
+
import "./chunk-JAWJZTFL.js";
|
|
8
|
+
import "./chunk-NSDOYHIS.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-4DPICEPQ.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.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/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 {
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
CAPABILITY_STATEMENTS,
|
|
5
5
|
storeCapable
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-K2F7YMMM.js";
|
|
7
7
|
import {
|
|
8
8
|
importFrom
|
|
9
9
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// 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/sqlite-runtime.js
|
|
15
15
|
import { spawn, spawnSync } from "node:child_process";
|
|
16
16
|
import { readFileSync } from "node:fs";
|
|
17
17
|
import { dirname } from "node:path";
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
} from "./chunk-Y5E2WNWB.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4DPICEPQ.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.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
|
|
14
14
|
import { readFileSync } from "node:fs";
|
|
15
15
|
var musl = /* @__PURE__ */ __name(() => {
|
|
16
16
|
if (process.platform !== "linux")
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/background/processes.js
|
|
8
8
|
import { execFileSync } from "node:child_process";
|
|
9
9
|
import { readdirSync, readFileSync, readlinkSync } from "node:fs";
|
|
10
10
|
var alive = /* @__PURE__ */ __name((pid) => {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
|
|
8
8
|
import { PassThrough, Writable } from "node:stream";
|
|
9
9
|
var lineReader = /* @__PURE__ */ __name((onMessage) => {
|
|
10
10
|
let rest = "";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/errors.js
|
|
8
8
|
var errorCodes = [
|
|
9
9
|
"validation_error",
|
|
10
10
|
"configuration_error",
|
|
@@ -38,7 +38,7 @@ var CliError = class extends Error {
|
|
|
38
38
|
};
|
|
39
39
|
var isCliError = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && value[BRAND] === true, "isCliError");
|
|
40
40
|
|
|
41
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
41
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
|
|
42
42
|
var CONTROL = (
|
|
43
43
|
// biome-ignore lint/suspicious/noControlCharactersInRegex: matching them is the whole point
|
|
44
44
|
/[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u200B\u200E\u200F\u202A-\u202E\u2066-\u2069\uFEFF\u{E0000}-\u{E007F}]/gu
|
|
@@ -1,58 +1,26 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import {
|
|
7
|
-
annotate,
|
|
4
|
+
answerEntitySchema,
|
|
5
|
+
answerProjectionSchema,
|
|
8
6
|
answerSchema,
|
|
9
7
|
describeOptions,
|
|
10
8
|
metaOf
|
|
11
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-T3AGR4TI.js";
|
|
12
10
|
import {
|
|
13
11
|
keyForCommand
|
|
14
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AJ4JS2ZR.js";
|
|
15
13
|
import {
|
|
16
14
|
jsonSchemaOf
|
|
17
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NSDOYHIS.js";
|
|
18
16
|
import {
|
|
19
17
|
CliError
|
|
20
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4DPICEPQ.js";
|
|
21
19
|
import {
|
|
22
20
|
__name
|
|
23
21
|
} from "./chunk-ZVVMGPBJ.js";
|
|
24
22
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
-
var schemas = /* @__PURE__ */ new WeakMap();
|
|
27
|
-
var answerEntity = /* @__PURE__ */ __name((command, name, schema, options = {}) => {
|
|
28
|
-
if (Object.hasOwn(ENTITIES, name))
|
|
29
|
-
throw new Error(`${name} is a shared entity; use its existing schema`);
|
|
30
|
-
if (!/^[a-z][a-z0-9_]*$/.test(name))
|
|
31
|
-
throw new Error("an answer entity needs a lowercase name");
|
|
32
|
-
if (!("entries" in schema) && schema.type !== "union")
|
|
33
|
-
throw new Error("an answer entity needs an object schema or a union of object schemas");
|
|
34
|
-
if (options.project && !("entries" in options.project) && options.project.type !== "union")
|
|
35
|
-
throw new Error("projection needs an object schema or a union of object schemas");
|
|
36
|
-
schemas.set(command, { name, schema, ...options });
|
|
37
|
-
return annotate(command, { output: { entity: name } });
|
|
38
|
-
}, "answerEntity");
|
|
39
|
-
var answerEntitySchema = /* @__PURE__ */ __name((command) => {
|
|
40
|
-
const output = command && metaOf(command).output;
|
|
41
|
-
if (!output)
|
|
42
|
-
return void 0;
|
|
43
|
-
const name = output.view ? `${output.entity}.${output.view}` : output.entity;
|
|
44
|
-
const shared = ENTITIES[name];
|
|
45
|
-
if (shared)
|
|
46
|
-
return shared;
|
|
47
|
-
const own = schemas.get(command);
|
|
48
|
-
return own?.name === name ? own.schema : void 0;
|
|
49
|
-
}, "answerEntitySchema");
|
|
50
|
-
var answerProjectionSchema = /* @__PURE__ */ __name((command) => {
|
|
51
|
-
const own = command && schemas.get(command);
|
|
52
|
-
return own && metaOf(command).output?.entity === own.name ? own.project : void 0;
|
|
53
|
-
}, "answerProjectionSchema");
|
|
54
|
-
|
|
55
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
|
|
23
|
+
// 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/cli/command-contract.js
|
|
56
24
|
var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
57
25
|
var outputOf = /* @__PURE__ */ __name((command) => {
|
|
58
26
|
const entity = answerEntitySchema(command);
|
|
@@ -157,9 +125,6 @@ var commandContract = /* @__PURE__ */ __name((command) => {
|
|
|
157
125
|
}, "commandContract");
|
|
158
126
|
|
|
159
127
|
export {
|
|
160
|
-
answerEntity,
|
|
161
|
-
answerEntitySchema,
|
|
162
|
-
answerProjectionSchema,
|
|
163
128
|
SCHEMA_DIALECT,
|
|
164
129
|
outputOf,
|
|
165
130
|
commandPathOf,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
commandPathOf,
|
|
5
5
|
findCommand,
|
|
6
6
|
outputOf
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4GPPRLIG.js";
|
|
8
8
|
import {
|
|
9
9
|
wrapAnsi
|
|
10
10
|
} from "./chunk-HTQTIKWP.js";
|
|
@@ -18,18 +18,18 @@ import {
|
|
|
18
18
|
environmentOf,
|
|
19
19
|
metaOf,
|
|
20
20
|
takesProfile
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-T3AGR4TI.js";
|
|
22
22
|
import {
|
|
23
23
|
writes
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-NSDOYHIS.js";
|
|
25
25
|
import {
|
|
26
26
|
CliError
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-4DPICEPQ.js";
|
|
28
28
|
import {
|
|
29
29
|
__name
|
|
30
30
|
} from "./chunk-ZVVMGPBJ.js";
|
|
31
31
|
|
|
32
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
|
|
33
33
|
var SECTIONS = {
|
|
34
34
|
read: "Read",
|
|
35
35
|
write: "Write",
|
|
@@ -90,7 +90,7 @@ var CORE_SECTIONS = {
|
|
|
90
90
|
upgrade: "setup"
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
93
|
+
// 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/cli/help/commands-text.js
|
|
94
94
|
var DESCRIPTION = 90;
|
|
95
95
|
var COLUMN = 52;
|
|
96
96
|
var short = /* @__PURE__ */ __name((text) => {
|
|
@@ -129,7 +129,7 @@ var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
|
|
|
129
129
|
`;
|
|
130
130
|
}, "commandsText");
|
|
131
131
|
|
|
132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
132
|
+
// 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/cli/help/command-help.js
|
|
133
133
|
var ARGUMENT_KINDS = {
|
|
134
134
|
chat: "chat",
|
|
135
135
|
chats: "chat",
|
|
@@ -321,7 +321,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
|
|
|
321
321
|
command.addHelpText("after", () => commandHelpText(command));
|
|
322
322
|
}, "installCommandHelp");
|
|
323
323
|
|
|
324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
324
|
+
// 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/cli/help/first-screen.js
|
|
325
325
|
var WIRECAT_TOOLS = [
|
|
326
326
|
{
|
|
327
327
|
command: "tg",
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
wirecatDirectory
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MDIRW3AT.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4DPICEPQ.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.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/speech/models.js
|
|
14
14
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
15
15
|
var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
|
|
16
16
|
var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
|
|
@@ -135,7 +135,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
|
|
|
135
135
|
return model;
|
|
136
136
|
}, "speechModel");
|
|
137
137
|
|
|
138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
138
|
+
// 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/speech/install.js
|
|
139
139
|
import { createHash, randomUUID } from "node:crypto";
|
|
140
140
|
import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
|
|
141
141
|
import { rename, rm } from "node:fs/promises";
|
|
@@ -5,23 +5,23 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6LNRNQHJ.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4DPICEPQ.js";
|
|
15
15
|
import {
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// 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/embeddings/embed.js
|
|
20
20
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
21
21
|
import { availableParallelism } from "node:os";
|
|
22
22
|
import { basename, join as join2 } from "node:path";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// 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/embeddings/onnx-runtime.js
|
|
25
25
|
import { createHash } from "node:crypto";
|
|
26
26
|
import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
27
27
|
import { join } from "node:path";
|
|
@@ -678,7 +678,7 @@ var Unzip = /* @__PURE__ */ (function() {
|
|
|
678
678
|
return Unzip2;
|
|
679
679
|
})();
|
|
680
680
|
|
|
681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
681
|
+
// 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/embeddings/onnx-runtime.js
|
|
682
682
|
var ONNX_RUNTIME_VERSION = "1.30.0";
|
|
683
683
|
var release = /* @__PURE__ */ __name((name, sha256, bytes) => ({
|
|
684
684
|
name,
|
|
@@ -858,7 +858,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
|
|
|
858
858
|
return { ort, session: await ort.InferenceSession.create(bytes, options) };
|
|
859
859
|
}, "openSession");
|
|
860
860
|
|
|
861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
861
|
+
// 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/embeddings/embed.js
|
|
862
862
|
var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
|
|
863
863
|
var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
|
|
864
864
|
var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
|