@wirecat/mail-cli 0.22.0 → 0.23.1
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 +34 -0
- package/README.md +2 -1
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-DTUWUCQQ.js → all-profiles-FJHJCGRU.js} +9 -9
- package/dist/bundle/{anthropic-YJAEQSNT.js → anthropic-AFL7NKVZ.js} +9 -7
- package/dist/bundle/{app-server-3ZXSTBA3.js → app-server-WKCBJMHI.js} +46 -46
- package/dist/bundle/{bun-34VBM7C5.js → bun-HQATAQJQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-GCT7ROCK.js → bun-sqlite-4ECAV7OU.js} +4 -4
- package/dist/bundle/{chunk-RFB27ACZ.js → chunk-2HXHAFRP.js} +2 -2
- package/dist/bundle/{chunk-MD64ITYO.js → chunk-34743C4C.js} +1 -1
- package/dist/bundle/{chunk-Z75WYAX6.js → chunk-3OZKDC6Y.js} +8 -7
- package/dist/bundle/{chunk-UWL2IOII.js → chunk-3QVGB2CI.js} +2 -2
- package/dist/bundle/{chunk-3HDQVTND.js → chunk-3UFD76IR.js} +5 -5
- package/dist/bundle/{chunk-SCIC2CJS.js → chunk-4IFX4HV2.js} +4 -4
- package/dist/bundle/{chunk-QE72KTS7.js → chunk-4IWJARFA.js} +1 -1
- package/dist/bundle/{chunk-ZZSHGCRC.js → chunk-4YJJQNNJ.js} +4 -4
- package/dist/bundle/{chunk-RPCKBXKN.js → chunk-5UKBUI4I.js} +2 -2
- package/dist/bundle/{chunk-J4UZXBEV.js → chunk-76RTQYJQ.js} +1 -1
- package/dist/bundle/{chunk-I2SDXWLR.js → chunk-7YRKUEYE.js} +118 -54
- package/dist/bundle/{chunk-ZKLXSVIO.js → chunk-AGNAT7CM.js} +1 -1
- package/dist/bundle/{chunk-HSBGNVEL.js → chunk-B6QMMRIM.js} +361 -188
- package/dist/bundle/{chunk-WBAA2X3E.js → chunk-BVJQBAGL.js} +11 -11
- package/dist/bundle/{chunk-TCCN5TON.js → chunk-CBWA2T3N.js} +24 -2
- package/dist/bundle/{chunk-P6FT6YYT.js → chunk-CCYHBNRL.js} +16 -16
- package/dist/bundle/{chunk-B74SOC4R.js → chunk-CUOCDJFI.js} +8 -8
- package/dist/bundle/{chunk-RY7PBP4F.js → chunk-CYQVWITQ.js} +16 -16
- package/dist/bundle/{chunk-566MEXK5.js → chunk-E7ZVKQHG.js} +3 -3
- package/dist/bundle/{chunk-HJ2CXDKJ.js → chunk-EXPR6QAX.js} +26 -12
- package/dist/bundle/{chunk-LTXYJAJK.js → chunk-FWFNUJQD.js} +24 -63
- package/dist/bundle/{chunk-VINSQR4X.js → chunk-GJNFNC76.js} +7 -7
- package/dist/bundle/{chunk-BHNBWFT5.js → chunk-GOMJNH56.js} +44 -0
- package/dist/bundle/{chunk-7XLOWYGD.js → chunk-HOKGIYUO.js} +39 -4
- package/dist/bundle/{chunk-FTI73RLC.js → chunk-KKGX7JMX.js} +2 -2
- package/dist/bundle/{chunk-BMV56JCL.js → chunk-LLYVBO3R.js} +1 -1
- package/dist/bundle/{chunk-QTMVGOSF.js → chunk-LQDMUMA2.js} +1336 -796
- package/dist/bundle/{chunk-VQZCIDSO.js → chunk-M7RGG3UU.js} +3 -3
- package/dist/bundle/{chunk-R3WPMQYZ.js → chunk-MBKNL5TX.js} +632 -435
- package/dist/bundle/{chunk-AF62BPIW.js → chunk-MUDHCYN4.js} +5 -5
- package/dist/bundle/{chunk-25PD6FZY.js → chunk-NKBAZ4VC.js} +2 -2
- package/dist/bundle/{chunk-2PPEDB67.js → chunk-NMGF3UOZ.js} +30 -30
- package/dist/bundle/{chunk-KMQAHDBM.js → chunk-NOA6E6MM.js} +2173 -1297
- package/dist/bundle/{chunk-J2U6LUT5.js → chunk-OJCUSHZG.js} +3 -3
- package/dist/bundle/{chunk-T3DTYJTG.js → chunk-OU5CWCG2.js} +1 -1
- package/dist/bundle/{chunk-OKO2Q6H6.js → chunk-PMIKRELC.js} +2 -2
- package/dist/bundle/{chunk-RT6SLZBI.js → chunk-QR7JZM3D.js} +1 -1
- package/dist/bundle/{chunk-O3M2S62X.js → chunk-QUKD5SO2.js} +3 -3
- package/dist/bundle/{chunk-SFC46MP2.js → chunk-QV3M2MHG.js} +10 -10
- package/dist/bundle/{chunk-SYEICLTR.js → chunk-R554W7ZO.js} +1 -1
- package/dist/bundle/{chunk-NOVBK4SY.js → chunk-R5MYOLQP.js} +12 -12
- package/dist/bundle/{chunk-4FWJNIPH.js → chunk-ROKTS7WM.js} +1 -1
- package/dist/bundle/{chunk-GAPQENMY.js → chunk-S5OTP7XS.js} +22 -4
- package/dist/bundle/{chunk-HRRSTIGP.js → chunk-SBGXKM4U.js} +10 -6
- package/dist/bundle/{chunk-ODFHIXMA.js → chunk-SNTLN2QT.js} +1 -1
- package/dist/bundle/{chunk-VDUGE6TH.js → chunk-SR3ADLGX.js} +2 -2
- package/dist/bundle/{chunk-4WIEVQ2Q.js → chunk-UMXVQIGD.js} +137 -9
- package/dist/bundle/{chunk-HN43G27G.js → chunk-V3TDQUXD.js} +45 -27
- package/dist/bundle/{chunk-3DSYLE5N.js → chunk-V7CFZ773.js} +2 -2
- package/dist/bundle/{chunk-LF5XM4HE.js → chunk-VAMCRP47.js} +1 -1
- package/dist/bundle/{chunk-Z7N4MGOQ.js → chunk-VFKX5UMJ.js} +5 -5
- package/dist/bundle/{chunk-72N26BQM.js → chunk-VYHIX3OP.js} +88 -88
- package/dist/bundle/{chunk-P2QJA7S5.js → chunk-VYIIX6VN.js} +1 -1
- package/dist/bundle/{chunk-V6OIIVH3.js → chunk-WN4HP7IZ.js} +11 -11
- package/dist/bundle/{chunk-MDDB7M7Z.js → chunk-ZXIPJF3Y.js} +1 -1
- package/dist/bundle/command-contract-IIHBNF7J.js +35 -0
- package/dist/bundle/{decode-BIOOL5E4.js → decode-QXKTMOTH.js} +4 -4
- package/dist/bundle/{dispatch-R5OF2FVZ.js → dispatch-G4CYFWQ2.js} +1 -1
- package/dist/bundle/{dist-TJVIRLE5.js → dist-5FX36DAW.js} +44 -22
- package/dist/bundle/{echarts-ECPGMKXO.js → echarts-HHUM43TU.js} +2 -2
- package/dist/bundle/{embed-F7JFSLHN.js → embed-SRZSDZVI.js} +5 -5
- package/dist/bundle/{embedder-U4G74HV3.js → embedder-WZIZCWLX.js} +8 -8
- package/dist/bundle/{failure-WYKVF6RH.js → failure-FFPK2WYB.js} +1 -1
- package/dist/bundle/{first-run-JTYPUYQP.js → first-run-6DVWZ3JQ.js} +8 -8
- package/dist/bundle/first-screen-SRZ7NYHZ.js +33 -0
- package/dist/bundle/{instructions-WNCGZ7OJ.js → instructions-UWONE6UT.js} +1 -1
- package/dist/bundle/mail.js +5 -5
- package/dist/bundle/{node-UIRGGMGT.js → node-HLAOYJDB.js} +2 -2
- package/dist/bundle/{node-sqlite-4ZM7OPRF.js → node-sqlite-RO66I7W6.js} +5 -5
- package/dist/bundle/{oauth-5RAJZPBW.js → oauth-VNLB2TET.js} +6 -6
- package/dist/bundle/{open-7ORCHOAI.js → open-QQSG343L.js} +4 -4
- package/dist/bundle/{openai-XSJNXJA7.js → openai-JTFC7OGF.js} +12 -12
- package/dist/bundle/{process-ZLO72UVZ.js → process-3CZAXR6P.js} +1 -1
- package/dist/bundle/{program-MXGQFQJG.js → program-XTOS4RAM.js} +4528 -2579
- package/dist/bundle/{prompt-IDUPCUGM.js → prompt-HGQ6GPYL.js} +6 -4
- package/dist/bundle/{recognize-OS3EZKIM.js → recognize-2SHMNEIZ.js} +3 -3
- package/dist/bundle/{remote-PF4LZR65.js → remote-GBQC3433.js} +6 -6
- package/dist/bundle/{rerank-CQNZF3JI.js → rerank-FQHQXFNR.js} +6 -6
- package/dist/bundle/{serve-Y2DDLGBT.js → serve-THU67QUZ.js} +8 -8
- package/dist/bundle/{server-TVRT7YEY.js → server-LOT3CLYX.js} +36 -36
- package/dist/bundle/server-VKMUX7ZT.js +65 -0
- package/dist/bundle/{sqlite-runtime-5343C3OE.js → sqlite-runtime-NOOUMBC4.js} +5 -5
- package/dist/bundle/{state-4GBTMPIV.js → state-KSKZCV2U.js} +5 -5
- package/dist/bundle/{store-QA6QJ5BB.js → store-BAKSHTKF.js} +37 -14
- package/dist/bundle/{store-OLBLTQPT.js → store-OHNZOQ7U.js} +30 -18
- package/dist/bundle/store-maintenance-command-ROQHJVEA.js +54 -0
- package/dist/commands/account-remove.d.ts +3 -0
- package/dist/commands/account-remove.d.ts.map +1 -0
- package/dist/commands/account-remove.js +65 -0
- package/dist/commands/account-remove.js.map +1 -0
- package/dist/commands/account.d.ts.map +1 -1
- package/dist/commands/account.js +3 -1
- package/dist/commands/account.js.map +1 -1
- package/dist/commands/context.d.ts +3 -1
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/rules.d.ts.map +1 -1
- package/dist/commands/rules.js +29 -7
- package/dist/commands/rules.js.map +1 -1
- package/dist/commands/sync.d.ts +0 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +8 -2
- package/dist/commands/sync.js.map +1 -1
- package/dist/mail/changes.d.ts +1 -0
- package/dist/mail/changes.d.ts.map +1 -1
- package/dist/mail/changes.js +1 -1
- package/dist/mail/changes.js.map +1 -1
- package/dist/providers.js +2 -2
- package/dist/providers.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/chunk-QPRXTLMD.js +0 -33
- package/dist/bundle/command-contract-Y4ZQAJEC.js +0 -35
- package/dist/bundle/first-screen-W6RWTAU7.js +0 -33
- package/dist/bundle/server-I3IALQMC.js +0 -65
- package/dist/bundle/store-maintenance-command-LB6CMGP4.js +0 -55
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
Notable changes to `@wirecat/mail-cli`. One section per version, newest first.
|
|
4
4
|
|
|
5
|
+
## 0.23.1 — 08.11.2026
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **`MAIL_READ_ONLY` lets `rules add` through, narrowed**, so memo's scheduled mail triage can file a sender as
|
|
10
|
+
envelopes: only `--sender` or `--list-id` with `--do envelope`, only where no rule with those conditions exists,
|
|
11
|
+
recorded with `source: agent`. `--domain`, `--filter`, `--kind`, any other action or a tag, a replaced rule,
|
|
12
|
+
`rules remove|import|apply` and every change on the mail server stay refused.
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- **A `sync --rescan` that stops at its request cap now says so and says how to go on.** `--timeout` sets the cap (about
|
|
17
|
+
85 requests at the default) and `--max-pages` can only lower it, so a high `--max-pages` looked ignored. Running the
|
|
18
|
+
same `--rescan` again starts over from the newest mail and never reaches the oldest; the hint and the next step now
|
|
19
|
+
name the cap and tell you to run `sync` without `--rescan`, which continues from where the run stopped.
|
|
20
|
+
- **cli-core 0.618.0 (was 0.614.0).** After `store recover run` (from memo, tg, max or wa) the recovered store makes
|
|
21
|
+
each mail folder forget the UIDs it listed past its last stored email from a day before the last deep check that
|
|
22
|
+
passed, so the next ordinary `mail sync` reads that mail again; `--rescan` is no longer needed for it.
|
|
23
|
+
|
|
5
24
|
## 0.22.0 — 08.11.2026
|
|
6
25
|
|
|
7
26
|
### Added
|
|
@@ -10,6 +29,21 @@ Notable changes to `@wirecat/mail-cli`. One section per version, newest first.
|
|
|
10
29
|
your own is needed; `--client-file` still names yours. Google may show an "unverified app" screen until it finishes
|
|
11
30
|
its review. `--method app-password` asks for the app password, the default for Gmail. `--method` sets only a new
|
|
12
31
|
profile's way; an existing one is switched with `config set auth`.
|
|
32
|
+
- **`mail <profile> account remove --keep-data|--delete-data`** removes a profile from this computer: it signs out
|
|
33
|
+
(a Gmail OAuth sign-in is also revoked at Google, which can end other sign-ins of the same Google app, as
|
|
34
|
+
`session end --revoke` does), deletes the app password or sign-in from the keyring, forgets the profile in the settings and its sign-in record, and, with `--delete-data`,
|
|
35
|
+
deletes its stored mail and its change logs. `--keep-data` leaves the mail searchable. The old Himalaya keyring
|
|
36
|
+
entry is not touched, and other profiles stay as they are.
|
|
37
|
+
|
|
38
|
+
### Fixed
|
|
39
|
+
|
|
40
|
+
- **`account remove` no longer revokes a Gmail grant that another profile uses.** Google ends a grant for the whole
|
|
41
|
+
Google account and app, so when another profile signs in to the same address (any letter case) with Google OAuth,
|
|
42
|
+
the revoke is skipped: the answer gives `revoked: false` and says "Google access kept: profile <name> uses the same
|
|
43
|
+
address".
|
|
44
|
+
- **The Gmail hints point to the app-password page and call the password 16 letters.** `session start` now links
|
|
45
|
+
<https://myaccount.google.com/apppasswords> instead of the help article (kept under "Sources"), and says
|
|
46
|
+
"16-letter password", since Gmail app passwords are letters.
|
|
13
47
|
|
|
14
48
|
## 0.21.0 — 08.11.2026
|
|
15
49
|
|
package/README.md
CHANGED
|
@@ -110,7 +110,8 @@ as data, never as instructions.
|
|
|
110
110
|
A profile is a name you choose for one mailbox and the first word of every command that uses it: `mail personal sync`.
|
|
111
111
|
`session start` creates the profile and signs it in, `session status` says where the password comes from (`--check`
|
|
112
112
|
logs in to prove it works), `session end` forgets the password and keeps the mail, and `mail session list` lists the
|
|
113
|
-
profiles.
|
|
113
|
+
profiles. `account remove --keep-data` or `--delete-data` signs a profile out and forgets it on this computer, and
|
|
114
|
+
`--delete-data` also deletes its stored mail.
|
|
114
115
|
|
|
115
116
|
`mail` signs in with an app password, a password made only for this program, which the OS keyring keeps. For a domain
|
|
116
117
|
it does not know, `session start` looks for the server through the MX record, Thunderbird's ISPDB and the domain's
|
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.23.1\n")
|
|
13
13
|
} else {
|
|
14
14
|
// Before the bundle compiles: the bundle's own call comes after its chunks.
|
|
15
15
|
module.enableCompileCache()
|
|
@@ -28,7 +28,7 @@ if (
|
|
|
28
28
|
: next(specifier, context),
|
|
29
29
|
})
|
|
30
30
|
}
|
|
31
|
-
const chunks = ["../bundle/all-profiles-
|
|
31
|
+
const chunks = ["../bundle/all-profiles-FJHJCGRU.js","../bundle/anthropic-AFL7NKVZ.js","../bundle/app-server-WKCBJMHI.js","../bundle/bun-HQATAQJQ.js","../bundle/bun-sqlite-4ECAV7OU.js","../bundle/decode-QXKTMOTH.js","../bundle/dispatch-G4CYFWQ2.js","../bundle/dist-5FX36DAW.js","../bundle/dist-HFUVURJG.js","../bundle/echarts-HHUM43TU.js","../bundle/embed-SRZSDZVI.js","../bundle/embedder-WZIZCWLX.js","../bundle/failure-FFPK2WYB.js","../bundle/first-screen-SRZ7NYHZ.js","../bundle/instructions-UWONE6UT.js","../bundle/mcp-CFVG2OUS.js","../bundle/node-HLAOYJDB.js","../bundle/node-KM3CUABH.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-RO66I7W6.js","../bundle/oauth-VNLB2TET.js","../bundle/open-QQSG343L.js","../bundle/openai-JTFC7OGF.js","../bundle/process-3CZAXR6P.js","../bundle/program-XTOS4RAM.js","../bundle/prompt-HGQ6GPYL.js","../bundle/recognize-2SHMNEIZ.js","../bundle/remote-GBQC3433.js","../bundle/rerank-FQHQXFNR.js","../bundle/serve-THU67QUZ.js","../bundle/server-LOT3CLYX.js","../bundle/server-VKMUX7ZT.js","../bundle/sqlite-runtime-NOOUMBC4.js","../bundle/state-KSKZCV2U.js","../bundle/store-BAKSHTKF.js","../bundle/store-OHNZOQ7U.js","../bundle/store-maintenance-command-ROQHJVEA.js"]
|
|
32
32
|
if (((words) => words
|
|
33
33
|
.filter((word) => !word.startsWith("-"))
|
|
34
34
|
.slice(0, 2)
|
|
@@ -2,30 +2,30 @@ 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-4IWJARFA.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-KKGX7JMX.js";
|
|
13
13
|
import {
|
|
14
14
|
McpServer
|
|
15
15
|
} from "./chunk-5D4AEUVA.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-CUOCDJFI.js";
|
|
17
|
+
import "./chunk-R554W7ZO.js";
|
|
18
|
+
import "./chunk-ROKTS7WM.js";
|
|
19
19
|
import "./chunk-QZLK2ISN.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-LLYVBO3R.js";
|
|
21
|
+
import "./chunk-GOMJNH56.js";
|
|
22
22
|
import "./chunk-Y5E2WNWB.js";
|
|
23
23
|
import "./chunk-DALBYUPC.js";
|
|
24
24
|
import {
|
|
25
25
|
__name
|
|
26
26
|
} from "./chunk-ZVVMGPBJ.js";
|
|
27
27
|
|
|
28
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
|
|
29
29
|
import { spawn } from "node:child_process";
|
|
30
30
|
import { randomUUID } from "node:crypto";
|
|
31
31
|
var PROTOCOL = "2025-06-18";
|
|
@@ -259,7 +259,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
259
259
|
}, "serveAllProfilesOverStdio");
|
|
260
260
|
var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
261
261
|
const { build, close } = allProfilesServer(options);
|
|
262
|
-
const { serveOverHttp } = await import("./serve-
|
|
262
|
+
const { serveOverHttp } = await import("./serve-THU67QUZ.js");
|
|
263
263
|
const listening = await serveOverHttp(build, {
|
|
264
264
|
...http,
|
|
265
265
|
appName: options.command,
|
|
@@ -4,26 +4,24 @@ import {
|
|
|
4
4
|
Anthropic
|
|
5
5
|
} from "./chunk-XQUUANA2.js";
|
|
6
6
|
import {
|
|
7
|
-
checkedOptions
|
|
8
|
-
} from "./chunk-QPRXTLMD.js";
|
|
9
|
-
import {
|
|
7
|
+
checkedOptions,
|
|
10
8
|
messagesFor,
|
|
11
9
|
systemFor
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-CBWA2T3N.js";
|
|
11
|
+
import "./chunk-LLYVBO3R.js";
|
|
14
12
|
import {
|
|
15
13
|
array,
|
|
16
14
|
optional,
|
|
17
15
|
strictObject,
|
|
18
16
|
string
|
|
19
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-GOMJNH56.js";
|
|
20
18
|
import "./chunk-Y5E2WNWB.js";
|
|
21
19
|
import "./chunk-DALBYUPC.js";
|
|
22
20
|
import {
|
|
23
21
|
__name
|
|
24
22
|
} from "./chunk-ZVVMGPBJ.js";
|
|
25
23
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/models/anthropic.js
|
|
27
25
|
var options = strictObject({
|
|
28
26
|
stop_sequences: optional(array(string()))
|
|
29
27
|
});
|
|
@@ -63,6 +61,10 @@ var anthropic = {
|
|
|
63
61
|
throw new Error("incomplete response");
|
|
64
62
|
return {
|
|
65
63
|
text: response.content.filter((block) => block.type === "text").map((block) => block.text).join(""),
|
|
64
|
+
usage: {
|
|
65
|
+
input: response.usage.input_tokens + (response.usage.cache_creation_input_tokens ?? 0) + (response.usage.cache_read_input_tokens ?? 0),
|
|
66
|
+
output: response.usage.output_tokens
|
|
67
|
+
},
|
|
66
68
|
tokens: response.usage.input_tokens + response.usage.output_tokens + (response.usage.cache_creation_input_tokens ?? 0) + (response.usage.cache_read_input_tokens ?? 0)
|
|
67
69
|
};
|
|
68
70
|
}, "complete")
|
|
@@ -3,42 +3,46 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
PER_RUN,
|
|
5
5
|
envelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NMGF3UOZ.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-CCYHBNRL.js";
|
|
14
14
|
import {
|
|
15
15
|
mcpUrlOf
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-V3TDQUXD.js";
|
|
17
17
|
import {
|
|
18
18
|
agentJson,
|
|
19
19
|
skillResource
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-BVJQBAGL.js";
|
|
21
|
+
import "./chunk-HOKGIYUO.js";
|
|
22
22
|
import {
|
|
23
23
|
appInstructions
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-VYIIX6VN.js";
|
|
25
25
|
import {
|
|
26
26
|
answeredWire
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-4IWJARFA.js";
|
|
28
28
|
import {
|
|
29
29
|
StdioServerTransport,
|
|
30
30
|
serveStdio
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-KKGX7JMX.js";
|
|
32
32
|
import {
|
|
33
33
|
McpServer
|
|
34
34
|
} from "./chunk-5D4AEUVA.js";
|
|
35
|
-
import
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
35
|
+
import {
|
|
36
|
+
mcpHttpMarker
|
|
37
|
+
} from "./chunk-4IFX4HV2.js";
|
|
38
|
+
import "./chunk-VYHIX3OP.js";
|
|
39
|
+
import "./chunk-LQDMUMA2.js";
|
|
40
|
+
import "./chunk-R5MYOLQP.js";
|
|
41
|
+
import "./chunk-QV3M2MHG.js";
|
|
42
|
+
import "./chunk-CBWA2T3N.js";
|
|
43
|
+
import "./chunk-M7RGG3UU.js";
|
|
44
|
+
import "./chunk-ZXIPJF3Y.js";
|
|
45
|
+
import "./chunk-4YJJQNNJ.js";
|
|
42
46
|
import {
|
|
43
47
|
DEFAULT_OUTPUT_BYTES,
|
|
44
48
|
changesAuthorityAt,
|
|
@@ -48,50 +52,46 @@ import {
|
|
|
48
52
|
readOnlyLockOf,
|
|
49
53
|
readsOverMcpAt,
|
|
50
54
|
rootOf2 as rootOf
|
|
51
|
-
} from "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
+
} from "./chunk-B6QMMRIM.js";
|
|
56
|
+
import "./chunk-SBGXKM4U.js";
|
|
57
|
+
import "./chunk-CUOCDJFI.js";
|
|
58
|
+
import "./chunk-OU5CWCG2.js";
|
|
59
|
+
import "./chunk-3QVGB2CI.js";
|
|
55
60
|
import "./chunk-3DQYO7FB.js";
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import
|
|
58
|
-
|
|
59
|
-
|
|
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-3HDQVTND.js";
|
|
72
|
-
import "./chunk-OKO2Q6H6.js";
|
|
73
|
-
import "./chunk-Z7N4MGOQ.js";
|
|
74
|
-
import "./chunk-O3M2S62X.js";
|
|
75
|
-
import "./chunk-RPCKBXKN.js";
|
|
61
|
+
import "./chunk-SR3ADLGX.js";
|
|
62
|
+
import "./chunk-CYQVWITQ.js";
|
|
63
|
+
import "./chunk-E7ZVKQHG.js";
|
|
64
|
+
import "./chunk-NOA6E6MM.js";
|
|
65
|
+
import "./chunk-FWFNUJQD.js";
|
|
66
|
+
import "./chunk-EXPR6QAX.js";
|
|
67
|
+
import "./chunk-7YRKUEYE.js";
|
|
68
|
+
import "./chunk-R554W7ZO.js";
|
|
69
|
+
import "./chunk-ROKTS7WM.js";
|
|
70
|
+
import "./chunk-GJNFNC76.js";
|
|
71
|
+
import "./chunk-3UFD76IR.js";
|
|
72
|
+
import "./chunk-PMIKRELC.js";
|
|
73
|
+
import "./chunk-VFKX5UMJ.js";
|
|
74
|
+
import "./chunk-QUKD5SO2.js";
|
|
75
|
+
import "./chunk-5UKBUI4I.js";
|
|
76
76
|
import "./chunk-UHC5I3JV.js";
|
|
77
77
|
import "./chunk-QZLK2ISN.js";
|
|
78
78
|
import "./chunk-D72URWJE.js";
|
|
79
|
-
import "./chunk-
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
79
|
+
import "./chunk-MUDHCYN4.js";
|
|
80
|
+
import "./chunk-SNTLN2QT.js";
|
|
81
|
+
import "./chunk-LLYVBO3R.js";
|
|
82
82
|
import {
|
|
83
83
|
mcpErrorResult
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-GOMJNH56.js";
|
|
85
85
|
import "./chunk-Y5E2WNWB.js";
|
|
86
86
|
import {
|
|
87
87
|
CliError
|
|
88
88
|
} from "./chunk-DALBYUPC.js";
|
|
89
|
-
import "./chunk-
|
|
89
|
+
import "./chunk-QR7JZM3D.js";
|
|
90
90
|
import {
|
|
91
91
|
__name
|
|
92
92
|
} from "./chunk-ZVVMGPBJ.js";
|
|
93
93
|
|
|
94
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
94
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
|
|
95
95
|
var EXCLUDED = [["mcp"]];
|
|
96
96
|
var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
|
|
97
97
|
const { app } = options;
|
|
@@ -209,7 +209,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
|
|
|
209
209
|
var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
|
|
210
210
|
const { app } = options;
|
|
211
211
|
const { build } = createAppServer(command, context, options);
|
|
212
|
-
const { serveOverHttp } = await import("./serve-
|
|
212
|
+
const { serveOverHttp } = await import("./serve-THU67QUZ.js");
|
|
213
213
|
const listening = await serveOverHttp(build, {
|
|
214
214
|
...http,
|
|
215
215
|
appName: app.command,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-QR7JZM3D.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.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/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,9 +3,9 @@ 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-VAMCRP47.js";
|
|
7
|
+
import "./chunk-LLYVBO3R.js";
|
|
8
|
+
import "./chunk-GOMJNH56.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -14,7 +14,7 @@ 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.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/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 {
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
ACCESS_SECONDS,
|
|
9
9
|
REFRESH_SECONDS,
|
|
10
10
|
readStored
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4IFX4HV2.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.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/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";
|
|
@@ -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.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/http/listen.js
|
|
8
8
|
import { createServer } from "node:http";
|
|
9
9
|
import { Readable } from "node:stream";
|
|
10
10
|
var MAX_BODY = 4 * 1024 * 1024;
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
commandPathOf,
|
|
5
5
|
findCommand,
|
|
6
6
|
outputOf
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4YJJQNNJ.js";
|
|
8
8
|
import {
|
|
9
9
|
wrapAnsi
|
|
10
10
|
} from "./chunk-HTQTIKWP.js";
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
environmentOf,
|
|
19
19
|
metaOf,
|
|
20
20
|
takesProfile
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-B6QMMRIM.js";
|
|
22
22
|
import {
|
|
23
23
|
writes
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-GOMJNH56.js";
|
|
25
25
|
import {
|
|
26
26
|
CliError
|
|
27
27
|
} from "./chunk-DALBYUPC.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
__name
|
|
30
30
|
} from "./chunk-ZVVMGPBJ.js";
|
|
31
31
|
|
|
32
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
|
|
33
33
|
var SECTIONS = {
|
|
34
34
|
read: "Read",
|
|
35
35
|
write: "Write",
|
|
@@ -76,6 +76,7 @@ var CORE_SECTIONS = {
|
|
|
76
76
|
replies: "automate",
|
|
77
77
|
runs: "automate",
|
|
78
78
|
schedule: "automate",
|
|
79
|
+
templates: "automate",
|
|
79
80
|
serve: "automate",
|
|
80
81
|
server: "automate",
|
|
81
82
|
account: "setup",
|
|
@@ -90,7 +91,7 @@ var CORE_SECTIONS = {
|
|
|
90
91
|
upgrade: "setup"
|
|
91
92
|
};
|
|
92
93
|
|
|
93
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
94
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
|
|
94
95
|
var DESCRIPTION = 90;
|
|
95
96
|
var COLUMN = 52;
|
|
96
97
|
var short = /* @__PURE__ */ __name((text) => {
|
|
@@ -129,7 +130,7 @@ var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
|
|
|
129
130
|
`;
|
|
130
131
|
}, "commandsText");
|
|
131
132
|
|
|
132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
133
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
|
|
133
134
|
var ARGUMENT_KINDS = {
|
|
134
135
|
chat: "chat",
|
|
135
136
|
chats: "chat",
|
|
@@ -321,7 +322,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
|
|
|
321
322
|
command.addHelpText("after", () => commandHelpText(command));
|
|
322
323
|
}, "installCommandHelp");
|
|
323
324
|
|
|
324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
325
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
|
|
325
326
|
var WIRECAT_TOOLS = [
|
|
326
327
|
{
|
|
327
328
|
command: "tg",
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
loadConfigFile,
|
|
12
12
|
saveConfigFile
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LLYVBO3R.js";
|
|
14
14
|
import {
|
|
15
15
|
number,
|
|
16
16
|
object,
|
|
17
17
|
optional,
|
|
18
18
|
string
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-GOMJNH56.js";
|
|
20
20
|
import {
|
|
21
21
|
__name,
|
|
22
22
|
__toESM
|
|
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
storePath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5UKBUI4I.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LLYVBO3R.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError,
|
|
11
11
|
singleLine
|
|
@@ -14,11 +14,11 @@ 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.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
18
18
|
import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname, join, resolve } from "node:path";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
22
22
|
var DEFAULT_TASK_CATEGORIES = [
|
|
23
23
|
{
|
|
24
24
|
name: "taxes",
|
|
@@ -773,7 +773,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
773
773
|
}
|
|
774
774
|
}, "storedTaskCategories");
|
|
775
775
|
|
|
776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
777
777
|
var SECTION = "task_categories";
|
|
778
778
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
779
779
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readLock,
|
|
6
6
|
releaseLock,
|
|
7
7
|
takeLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-M7RGG3UU.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.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
14
14
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
|
|
17
17
|
import { randomBytes } from "node:crypto";
|
|
18
18
|
import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
|
|
|
86
86
|
};
|
|
87
87
|
}, "activityRecorder");
|
|
88
88
|
|
|
89
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
89
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
90
90
|
var ACCESS_SECONDS = 60 * 60;
|
|
91
91
|
var REFRESH_SECONDS = 30 * 24 * 60 * 60;
|
|
92
92
|
var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
|
|
@@ -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.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/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 = "";
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
answerSchema,
|
|
7
7
|
describeOptions,
|
|
8
8
|
metaOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-B6QMMRIM.js";
|
|
10
10
|
import {
|
|
11
11
|
keyForCommand
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SBGXKM4U.js";
|
|
13
13
|
import {
|
|
14
14
|
jsonSchemaOf
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GOMJNH56.js";
|
|
16
16
|
import {
|
|
17
17
|
CliError
|
|
18
18
|
} from "./chunk-DALBYUPC.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
__name
|
|
21
21
|
} from "./chunk-ZVVMGPBJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
|
|
24
24
|
var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
25
25
|
var outputOf = /* @__PURE__ */ __name((command) => {
|
|
26
26
|
const entity = answerEntitySchema(command);
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
resolvePaths
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LLYVBO3R.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.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/store/path.js
|
|
11
11
|
import { userInfo } from "node:os";
|
|
12
12
|
import { isAbsolute, join, relative, resolve } from "node:path";
|
|
13
13
|
var wirecatDirectory = /* @__PURE__ */ __name((env = process.env, platform) => resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env, ...platform ? { platform } : {} }).state, "wirecatDirectory");
|
|
@@ -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.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
|
|
8
8
|
var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
|
|
9
9
|
`The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
|
|
10
10
|
"Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
|