@wirecat/mail-cli 0.24.0 → 0.26.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 +48 -0
- package/README.md +3 -0
- package/contracts/wirecat.json +1325 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bin/mail.js.map +1 -1
- package/dist/bundle/{all-profiles-VS7P6DJY.js → all-profiles-6NXVQLUQ.js} +11 -11
- package/dist/bundle/{anthropic-C5JXKGBS.js → anthropic-OLNFE2CL.js} +17 -10
- package/dist/bundle/{app-server-HU3LVU42.js → app-server-J76N6XIK.js} +60 -49
- package/dist/bundle/{bun-QLFX47WZ.js → bun-6PYDHXNR.js} +2 -2
- package/dist/bundle/{bun-sqlite-W4PGAKVY.js → bun-sqlite-QD5PFHPS.js} +9 -5
- package/dist/bundle/{chunk-WOX7FZJP.js → chunk-2E2EV4HD.js} +130 -77
- package/dist/bundle/{chunk-A6J4MPTI.js → chunk-2TCS4PLJ.js} +1 -1
- package/dist/bundle/{chunk-QI3PXUOJ.js → chunk-3J2UJFBJ.js} +39 -32
- package/dist/bundle/{chunk-LVGX7VTD.js → chunk-3RY4HC4V.js} +63 -5
- package/dist/bundle/chunk-3XTKQ5EM.js +54 -0
- package/dist/bundle/{chunk-ZO4MQWIK.js → chunk-4Q6KAV4O.js} +8 -8
- package/dist/bundle/{chunk-JOQGJUFT.js → chunk-52M5BAEG.js} +1 -1
- package/dist/bundle/{chunk-Q4OKEN3B.js → chunk-5WROIMUV.js} +12 -7
- package/dist/bundle/{chunk-VVL4MKYH.js → chunk-66C66FNK.js} +1 -1
- package/dist/bundle/{chunk-O373QEAJ.js → chunk-76EKZSDK.js} +27 -27
- package/dist/bundle/{chunk-AUTX2MLF.js → chunk-76VSHS5Y.js} +15 -10
- package/dist/bundle/{chunk-HBZAJINU.js → chunk-7C6FGWDH.js} +4 -4
- package/dist/bundle/{chunk-VUBZFMGP.js → chunk-7KCBPAQS.js} +2 -2
- package/dist/bundle/{chunk-FNLUKODV.js → chunk-7MEVD5PI.js} +57 -28
- package/dist/bundle/chunk-A3EBRXOQ.js +16 -0
- package/dist/bundle/{chunk-C3NYJW6B.js → chunk-A6XETABW.js} +852 -278
- package/dist/bundle/{chunk-VNKWSCN7.js → chunk-AJ5K74X6.js} +17 -17
- package/dist/bundle/{chunk-BFQQV22T.js → chunk-BDYQQ6G2.js} +1 -1
- package/dist/bundle/{chunk-ZR2BDNGG.js → chunk-BMGRDZM3.js} +1 -1
- package/dist/bundle/{chunk-TLEBSMC7.js → chunk-CFBIPM7T.js} +4109 -3575
- package/dist/bundle/{chunk-IRUN4XOV.js → chunk-CZI45AQM.js} +2 -2
- package/dist/bundle/{chunk-QVMOEB3I.js → chunk-DKIVYAXW.js} +18 -17
- package/dist/bundle/{chunk-X7J3TTDO.js → chunk-ECZSYLSL.js} +48 -9
- package/dist/bundle/{chunk-EKGRNFYQ.js → chunk-EDWJ7IYH.js} +1 -1
- package/dist/bundle/{chunk-MCPOZNWG.js → chunk-FIVFP53N.js} +1 -1
- package/dist/bundle/{chunk-5X3GU5LI.js → chunk-GIG7F6UW.js} +6 -6
- package/dist/bundle/{chunk-RN7OI5KL.js → chunk-H2IJQH5X.js} +20 -112
- package/dist/bundle/{chunk-NWKKPDZV.js → chunk-HI5XUETY.js} +2 -2
- package/dist/bundle/{chunk-YBQ5AYLZ.js → chunk-HNSBXC6U.js} +3 -3
- package/dist/bundle/{chunk-4W4EVVL4.js → chunk-IX3GUNGV.js} +4 -4
- package/dist/bundle/{chunk-PT6MF2VU.js → chunk-JNKXU7AE.js} +340 -108
- package/dist/bundle/{chunk-64ZG5ERD.js → chunk-JVJG54QK.js} +40 -2
- package/dist/bundle/{chunk-KGOVFEWZ.js → chunk-KXASCNOV.js} +3 -3
- package/dist/bundle/{chunk-5NLHDK7P.js → chunk-LMTQMYUF.js} +31 -31
- package/dist/bundle/{chunk-Q6K2XUGU.js → chunk-LTZGLOKE.js} +3 -2
- package/dist/bundle/{chunk-RLQZFZLK.js → chunk-M2LATBP2.js} +84 -10
- package/dist/bundle/{chunk-RX5CJ55S.js → chunk-M4OP5ASJ.js} +1 -1
- package/dist/bundle/{chunk-H5FJTHVA.js → chunk-M4Y33SJJ.js} +2 -2
- package/dist/bundle/{chunk-SWKQ6IAR.js → chunk-M7ECSGSN.js} +3 -3
- package/dist/bundle/{chunk-MTO6YVMN.js → chunk-M7RHPCXM.js} +3 -3
- package/dist/bundle/{chunk-PRQ2U7HF.js → chunk-MIWSCTLG.js} +2 -2
- package/dist/bundle/{chunk-NSIN5IM4.js → chunk-NBJU6MBU.js} +10 -15
- package/dist/bundle/{chunk-JWMLMAHP.js → chunk-NMFPK3MU.js} +14 -5
- package/dist/bundle/{chunk-4QNHAM3J.js → chunk-OGE7YG4J.js} +2 -2
- package/dist/bundle/{chunk-XBEO472U.js → chunk-PJ6YMNJG.js} +26515 -24466
- package/dist/bundle/{chunk-RUASZW3M.js → chunk-PY2IOVUN.js} +5 -5
- package/dist/bundle/{chunk-OQW6GHUA.js → chunk-QI6EXKSH.js} +1 -1
- package/dist/bundle/{chunk-KV4VTKF3.js → chunk-QJGG6QYV.js} +69 -6
- package/dist/bundle/{chunk-JMLIKXFO.js → chunk-RXKIP2ML.js} +2 -2
- package/dist/bundle/{chunk-6VV7J2TN.js → chunk-T7SHPALQ.js} +35 -28
- package/dist/bundle/{chunk-YI544LHI.js → chunk-UE2NKPA4.js} +9 -9
- package/dist/bundle/{chunk-X47BL4M5.js → chunk-UNJUCK5R.js} +13 -13
- package/dist/bundle/{chunk-C5BMCLCQ.js → chunk-V32L23NN.js} +4 -4
- package/dist/bundle/{chunk-DW3F6DUW.js → chunk-V4PFD25P.js} +1 -1
- package/dist/bundle/{chunk-U6MMQNNK.js → chunk-VA4V73SL.js} +6 -6
- package/dist/bundle/{chunk-3KSK5BBB.js → chunk-VJPLIXV4.js} +8 -2
- package/dist/bundle/{chunk-YA45XV6G.js → chunk-VWRT57QU.js} +4 -4
- package/dist/bundle/{chunk-FKWUUCX2.js → chunk-XELZCDWE.js} +427 -189
- package/dist/bundle/{chunk-3FD3IATT.js → chunk-XUJEZ5YF.js} +6 -6
- package/dist/bundle/{chunk-TI7ZIPA2.js → chunk-XZ7CQ6NA.js} +4 -4
- package/dist/bundle/{chunk-NCRSE647.js → chunk-YM345236.js} +159 -46
- package/dist/bundle/{chunk-6PWCQKMD.js → chunk-YXGHC3NP.js} +14 -14
- package/dist/bundle/{chunk-RNZKQMFY.js → chunk-ZZSZN4CJ.js} +22 -15
- package/dist/bundle/command-contract-NNEXHZW5.js +36 -0
- package/dist/bundle/{command-server-entry-5E3PPDE5.js → command-server-entry-AIBWNC5D.js} +25 -24
- package/dist/bundle/{decode-AVWV7SVZ.js → decode-H7KLRD33.js} +5 -5
- package/dist/bundle/{dispatch-BXPHSNK5.js → dispatch-DSVN7MNG.js} +8 -8
- package/dist/bundle/{dist-PIOOKBWT.js → dist-YYSP43J3.js} +29 -18
- package/dist/bundle/{echarts-7K6YQV52.js → echarts-VSD3LS6D.js} +2 -2
- package/dist/bundle/{embed-4NT76GJK.js → embed-UENZ5HN3.js} +6 -6
- package/dist/bundle/{embedder-ITQFF7EN.js → embedder-MJMGOJT7.js} +9 -9
- package/dist/bundle/{failure-3Q65JOPD.js → failure-COTPFUP4.js} +2 -2
- package/dist/bundle/{first-run-PM74YU4X.js → first-run-HYALREFN.js} +12 -11
- package/dist/bundle/first-screen-GPF5RHBX.js +34 -0
- package/dist/bundle/{instructions-JDSITYHV.js → instructions-WOHRYOLN.js} +1 -1
- package/dist/bundle/mail.js +15 -20
- package/dist/bundle/{mcp-7KQUJNFN.js → mcp-TDKGDB4V.js} +2 -2
- package/dist/bundle/{node-D6YIJOJI.js → node-4BRWJJCE.js} +2 -2
- package/dist/bundle/{node-sqlite-PJOHHB4X.js → node-sqlite-D3QESEYQ.js} +10 -6
- package/dist/bundle/{oauth-BOWJ3IBT.js → oauth-T7TTOBIZ.js} +7 -7
- package/dist/bundle/{open-FIAKKZMW.js → open-6P6627QB.js} +5 -5
- package/dist/bundle/{openai-QL54VVLC.js → openai-FIMCJGAP.js} +24 -19
- package/dist/bundle/{process-AYHK7WRC.js → process-35IH3WHC.js} +1 -1
- package/dist/bundle/{program-6FKWOTBK.js → program-IEXB72IK.js} +6685 -5463
- package/dist/bundle/{prompt-XJZCBELC.js → prompt-HFBCPMVL.js} +5 -5
- package/dist/bundle/{recognize-OQKWAHBY.js → recognize-CNL4HJ7Z.js} +4 -4
- package/dist/bundle/{remote-NLVUZ5WK.js → remote-AYGZI7HT.js} +9 -7
- package/dist/bundle/{rerank-NRPZDTJ7.js → rerank-5C2OZZXD.js} +7 -7
- package/dist/bundle/{serve-O4YUI7F6.js → serve-S6OYBDIB.js} +9 -9
- package/dist/bundle/{server-WAL3M4OO.js → server-VKO6E6PI.js} +42 -40
- package/dist/bundle/server-WXSHVDME.js +68 -0
- package/dist/bundle/{sqlite-runtime-5YHGI4D4.js → sqlite-runtime-DBTGNTVE.js} +6 -6
- package/dist/bundle/{state-WYYOJ7KK.js → state-ZQG6AL2Y.js} +6 -6
- package/dist/bundle/{store-X72GOJHD.js → store-B7BXWILZ.js} +25 -18
- package/dist/bundle/{store-6BJO3F2J.js → store-LY4QKTOO.js} +19 -16
- package/dist/bundle/store-maintenance-command-UR6NQDVV.js +58 -0
- package/dist/commands/rules.d.ts.map +1 -1
- package/dist/commands/rules.js +57 -19
- package/dist/commands/rules.js.map +1 -1
- package/dist/commands/session-start.d.ts.map +1 -1
- package/dist/commands/session-start.js +1 -1
- package/dist/commands/session-start.js.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +13 -12
- package/dist/config.js.map +1 -1
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +7 -2
- package/dist/discovery.js.map +1 -1
- package/dist/identity.d.ts +2 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +34 -0
- package/dist/identity.js.map +1 -1
- package/dist/mail/domain-age.d.ts +1 -1
- package/dist/mail/domain-age.d.ts.map +1 -1
- package/dist/mail/domain-age.js +9 -3
- package/dist/mail/domain-age.js.map +1 -1
- package/dist/mail/rules/file.d.ts.map +1 -1
- package/dist/mail/rules/file.js +4 -1
- package/dist/mail/rules/file.js.map +1 -1
- package/dist/mail/rules/query.d.ts +2 -1
- package/dist/mail/rules/query.d.ts.map +1 -1
- package/dist/mail/rules/query.js +16 -3
- package/dist/mail/rules/query.js.map +1 -1
- package/dist/oauth.d.ts +3 -1
- package/dist/oauth.d.ts.map +1 -1
- package/dist/oauth.js +48 -34
- package/dist/oauth.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +5 -0
- package/dist/reasons.js.map +1 -1
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +2 -21
- package/dist/store.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wcat.d.ts +3 -0
- package/dist/wcat.d.ts.map +1 -0
- package/dist/wcat.js +4 -0
- package/dist/wcat.js.map +1 -0
- package/package.json +10 -9
- package/dist/bundle/chunk-B72343TK.js +0 -35
- package/dist/bundle/command-contract-ERYYPAD2.js +0 -35
- package/dist/bundle/first-screen-WBVGVSMY.js +0 -33
- package/dist/bundle/server-6OT5ZEWL.js +0 -66
- package/dist/bundle/store-maintenance-command-ASS7RBYC.js +0 -54
- /package/dist/bundle/{chunk-YVNHQFLC.js → chunk-XWBPP2HX.js} +0 -0
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.26.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,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-6NXVQLUQ.js","../bundle/anthropic-OLNFE2CL.js","../bundle/app-server-J76N6XIK.js","../bundle/bun-6PYDHXNR.js","../bundle/bun-sqlite-QD5PFHPS.js","../bundle/decode-H7KLRD33.js","../bundle/dispatch-DSVN7MNG.js","../bundle/dist-HFUVURJG.js","../bundle/dist-YYSP43J3.js","../bundle/echarts-VSD3LS6D.js","../bundle/embed-UENZ5HN3.js","../bundle/embedder-MJMGOJT7.js","../bundle/failure-COTPFUP4.js","../bundle/first-screen-GPF5RHBX.js","../bundle/instructions-WOHRYOLN.js","../bundle/mcp-TDKGDB4V.js","../bundle/node-4BRWJJCE.js","../bundle/node-KM3CUABH.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-D3QESEYQ.js","../bundle/oauth-T7TTOBIZ.js","../bundle/open-6P6627QB.js","../bundle/openai-FIMCJGAP.js","../bundle/process-35IH3WHC.js","../bundle/program-IEXB72IK.js","../bundle/prompt-HFBCPMVL.js","../bundle/recognize-CNL4HJ7Z.js","../bundle/remote-AYGZI7HT.js","../bundle/rerank-5C2OZZXD.js","../bundle/serve-S6OYBDIB.js","../bundle/server-VKO6E6PI.js","../bundle/server-WXSHVDME.js","../bundle/sqlite-runtime-DBTGNTVE.js","../bundle/state-ZQG6AL2Y.js","../bundle/store-B7BXWILZ.js","../bundle/store-LY4QKTOO.js","../bundle/store-maintenance-command-UR6NQDVV.js"]
|
|
32
32
|
if (((words) => words
|
|
33
33
|
.filter((word) => !word.startsWith("-"))
|
|
34
34
|
.slice(0, 2)
|
package/dist/bin/mail.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mail.js","sourceRoot":"","sources":["../../src/bin/mail.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"mail.js","sourceRoot":"","sources":["../../src/bin/mail.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAExC,kBAAkB,EAAE,CAAA;AACpB,MAAM,IAAI,GAAG,MAAM,SAAS,CAAC,OAAO,CAAC,CAAA;AACrC,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;IAC5B,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC;KAAM,CAAC;IACN,MAAM,YAAY,GAAG,YAAY,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC,CAAA;IACvG,MAAM,EAAE,GAAG,EAAE,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,CAAA;IAC7C,IAAI,CAAC;QACH,OAAO,CAAC,QAAQ,GAAG,MAAM,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;IACrD,CAAC;YAAS,CAAC;QACT,YAAY,EAAE,CAAA;IAChB,CAAC;AACH,CAAC"}
|
|
@@ -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-BDYQQ6G2.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-M4Y33SJJ.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-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-76VSHS5Y.js";
|
|
17
|
+
import "./chunk-VJPLIXV4.js";
|
|
18
|
+
import "./chunk-LTZGLOKE.js";
|
|
19
|
+
import "./chunk-XWBPP2HX.js";
|
|
20
|
+
import "./chunk-7MEVD5PI.js";
|
|
21
|
+
import "./chunk-ECZSYLSL.js";
|
|
22
22
|
import "./chunk-Y5E2WNWB.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-7KCBPAQS.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.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/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-S6OYBDIB.js");
|
|
263
263
|
const listening = await serveOverHttp(build, {
|
|
264
264
|
...http,
|
|
265
265
|
appName: options.command,
|
|
@@ -4,11 +4,12 @@ import {
|
|
|
4
4
|
Anthropic
|
|
5
5
|
} from "./chunk-XQUUANA2.js";
|
|
6
6
|
import {
|
|
7
|
+
EmptyAnswer,
|
|
7
8
|
checkedOptions,
|
|
8
9
|
messagesFor,
|
|
9
10
|
systemFor
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-NMFPK3MU.js";
|
|
12
|
+
import "./chunk-7MEVD5PI.js";
|
|
12
13
|
import {
|
|
13
14
|
array,
|
|
14
15
|
literal,
|
|
@@ -18,14 +19,14 @@ import {
|
|
|
18
19
|
strictObject,
|
|
19
20
|
string,
|
|
20
21
|
unknown
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ECZSYLSL.js";
|
|
22
23
|
import "./chunk-Y5E2WNWB.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-7KCBPAQS.js";
|
|
24
25
|
import {
|
|
25
26
|
__name
|
|
26
27
|
} from "./chunk-ZVVMGPBJ.js";
|
|
27
28
|
|
|
28
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/models/anthropic.js
|
|
29
30
|
var options = strictObject({
|
|
30
31
|
stop_sequences: optional(array(string())),
|
|
31
32
|
thinking: optional(strictObject({ type: picklist(["disabled", "adaptive"]) })),
|
|
@@ -57,10 +58,13 @@ var anthropic = {
|
|
|
57
58
|
...request.images === void 0 ? [] : [
|
|
58
59
|
{
|
|
59
60
|
role: "user",
|
|
60
|
-
content:
|
|
61
|
-
type: "
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
content: [
|
|
62
|
+
{ type: "text", text: request.prompt },
|
|
63
|
+
...request.images.map((image) => ({
|
|
64
|
+
type: "image",
|
|
65
|
+
source: { type: "base64", media_type: image.mimeType, data: image.data }
|
|
66
|
+
}))
|
|
67
|
+
]
|
|
64
68
|
}
|
|
65
69
|
]
|
|
66
70
|
],
|
|
@@ -68,8 +72,11 @@ var anthropic = {
|
|
|
68
72
|
}).finalMessage();
|
|
69
73
|
if (response.stop_reason !== "end_turn")
|
|
70
74
|
throw new Error("incomplete response");
|
|
75
|
+
const text = response.content.filter((block) => block.type === "text").map((block) => block.text).join("");
|
|
76
|
+
if (text.trim() === "")
|
|
77
|
+
throw new EmptyAnswer();
|
|
71
78
|
return {
|
|
72
|
-
text
|
|
79
|
+
text,
|
|
73
80
|
usage: {
|
|
74
81
|
input: response.usage.input_tokens + (response.usage.cache_creation_input_tokens ?? 0) + (response.usage.cache_read_input_tokens ?? 0),
|
|
75
82
|
output: response.usage.output_tokens
|
|
@@ -3,47 +3,47 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
PER_RUN,
|
|
5
5
|
envelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LMTQMYUF.js";
|
|
7
7
|
import {
|
|
8
8
|
mcpUrlOf
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-T7SHPALQ.js";
|
|
10
|
+
import "./chunk-EDWJ7IYH.js";
|
|
11
11
|
import {
|
|
12
12
|
answered,
|
|
13
13
|
failed,
|
|
14
14
|
registerCommands,
|
|
15
15
|
runCommandForAgent,
|
|
16
16
|
toolsFromCommands
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YM345236.js";
|
|
18
18
|
import {
|
|
19
19
|
agentJson,
|
|
20
20
|
skillResource
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-ZZSZN4CJ.js";
|
|
22
|
+
import "./chunk-M2LATBP2.js";
|
|
23
23
|
import {
|
|
24
24
|
appInstructions
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-QI6EXKSH.js";
|
|
26
26
|
import {
|
|
27
27
|
answeredWire
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-BDYQQ6G2.js";
|
|
29
29
|
import {
|
|
30
30
|
StdioServerTransport,
|
|
31
31
|
serveStdio
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-M4Y33SJJ.js";
|
|
33
33
|
import {
|
|
34
34
|
McpServer
|
|
35
35
|
} from "./chunk-5D4AEUVA.js";
|
|
36
36
|
import {
|
|
37
37
|
mcpHttpMarker
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-VWRT57QU.js";
|
|
39
|
+
import "./chunk-3J2UJFBJ.js";
|
|
40
|
+
import "./chunk-CFBIPM7T.js";
|
|
41
|
+
import "./chunk-UNJUCK5R.js";
|
|
42
|
+
import "./chunk-UE2NKPA4.js";
|
|
43
|
+
import "./chunk-NMFPK3MU.js";
|
|
44
|
+
import "./chunk-HNSBXC6U.js";
|
|
45
|
+
import "./chunk-HI5XUETY.js";
|
|
46
|
+
import "./chunk-PY2IOVUN.js";
|
|
47
47
|
import {
|
|
48
48
|
DEFAULT_OUTPUT_BYTES,
|
|
49
49
|
changesAuthorityAt,
|
|
@@ -53,47 +53,56 @@ import {
|
|
|
53
53
|
readOnlyLockOf,
|
|
54
54
|
readsOverMcpAt,
|
|
55
55
|
rootOf2 as rootOf
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./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-
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
56
|
+
} from "./chunk-XELZCDWE.js";
|
|
57
|
+
import "./chunk-5WROIMUV.js";
|
|
58
|
+
import "./chunk-76VSHS5Y.js";
|
|
59
|
+
import "./chunk-V4PFD25P.js";
|
|
60
|
+
import "./chunk-7C6FGWDH.js";
|
|
61
|
+
import "./chunk-FIVFP53N.js";
|
|
62
|
+
import "./chunk-M7ECSGSN.js";
|
|
63
|
+
import "./chunk-AJ5K74X6.js";
|
|
64
|
+
import "./chunk-M7RHPCXM.js";
|
|
65
|
+
import "./chunk-PJ6YMNJG.js";
|
|
66
|
+
import "./chunk-A6XETABW.js";
|
|
67
|
+
import "./chunk-76EKZSDK.js";
|
|
68
|
+
import "./chunk-2E2EV4HD.js";
|
|
69
|
+
import "./chunk-VJPLIXV4.js";
|
|
70
|
+
import "./chunk-LTZGLOKE.js";
|
|
71
|
+
import "./chunk-NBJU6MBU.js";
|
|
72
|
+
import "./chunk-A3EBRXOQ.js";
|
|
73
|
+
import "./chunk-QJGG6QYV.js";
|
|
74
|
+
import "./chunk-3RY4HC4V.js";
|
|
75
|
+
import "./chunk-XUJEZ5YF.js";
|
|
76
|
+
import "./chunk-GIG7F6UW.js";
|
|
77
|
+
import "./chunk-XZ7CQ6NA.js";
|
|
78
|
+
import "./chunk-M4OP5ASJ.js";
|
|
79
|
+
import "./chunk-XWBPP2HX.js";
|
|
79
80
|
import "./chunk-D72URWJE.js";
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
82
|
-
import "./chunk-
|
|
81
|
+
import "./chunk-3XTKQ5EM.js";
|
|
82
|
+
import "./chunk-VA4V73SL.js";
|
|
83
|
+
import "./chunk-2TCS4PLJ.js";
|
|
84
|
+
import "./chunk-7MEVD5PI.js";
|
|
83
85
|
import {
|
|
84
86
|
mcpErrorResult
|
|
85
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-ECZSYLSL.js";
|
|
86
88
|
import "./chunk-Y5E2WNWB.js";
|
|
87
89
|
import {
|
|
88
90
|
CliError
|
|
89
|
-
} from "./chunk-
|
|
90
|
-
import "./chunk-
|
|
91
|
+
} from "./chunk-7KCBPAQS.js";
|
|
92
|
+
import "./chunk-52M5BAEG.js";
|
|
91
93
|
import {
|
|
92
94
|
__name
|
|
93
95
|
} from "./chunk-ZVVMGPBJ.js";
|
|
94
96
|
|
|
95
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
97
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
|
|
96
98
|
var EXCLUDED = [["mcp"]];
|
|
99
|
+
var aliasesOf = /* @__PURE__ */ __name((root, path) => {
|
|
100
|
+
let at = root;
|
|
101
|
+
for (const name of path)
|
|
102
|
+
at = at?.commands.find((child) => child.name() === name);
|
|
103
|
+
const aliases = at?.aliases() ?? [];
|
|
104
|
+
return aliases.length > 0 ? { aliases } : {};
|
|
105
|
+
}, "aliasesOf");
|
|
97
106
|
var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
|
|
98
107
|
const { app } = options;
|
|
99
108
|
const root = rootOf(command);
|
|
@@ -130,6 +139,8 @@ var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
|
|
|
130
139
|
{
|
|
131
140
|
title: one.title,
|
|
132
141
|
description: one.description,
|
|
142
|
+
...one.keywords ? { keywords: one.keywords } : {},
|
|
143
|
+
...aliasesOf(root, one.path),
|
|
133
144
|
writes: one.writes,
|
|
134
145
|
availability: availability(one),
|
|
135
146
|
input: one.input,
|
|
@@ -210,7 +221,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
|
|
|
210
221
|
var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
|
|
211
222
|
const { app } = options;
|
|
212
223
|
const { build } = createAppServer(command, context, options);
|
|
213
|
-
const { serveOverHttp } = await import("./serve-
|
|
224
|
+
const { serveOverHttp } = await import("./serve-S6OYBDIB.js");
|
|
214
225
|
const listening = await serveOverHttp(build, {
|
|
215
226
|
...http,
|
|
216
227
|
appName: app.command,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-52M5BAEG.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.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/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,21 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import
|
|
8
|
-
|
|
6
|
+
} from "./chunk-RXKIP2ML.js";
|
|
7
|
+
import {
|
|
8
|
+
refuseOwnerStoreInTests
|
|
9
|
+
} from "./chunk-3XTKQ5EM.js";
|
|
10
|
+
import "./chunk-7MEVD5PI.js";
|
|
11
|
+
import "./chunk-ECZSYLSL.js";
|
|
9
12
|
import {
|
|
10
13
|
importFrom
|
|
11
14
|
} from "./chunk-Y5E2WNWB.js";
|
|
12
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-7KCBPAQS.js";
|
|
13
16
|
import {
|
|
14
17
|
__name
|
|
15
18
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
19
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
|
|
18
21
|
var customised = false;
|
|
19
22
|
var ownLibrary = /* @__PURE__ */ __name(async () => {
|
|
20
23
|
try {
|
|
@@ -37,6 +40,7 @@ var bunDatabase = /* @__PURE__ */ __name(async () => {
|
|
|
37
40
|
}, "bunDatabase");
|
|
38
41
|
var openWithBunSqlite = /* @__PURE__ */ __name(async (path) => cacheOverBunSqlite(await bunClient(path)), "openWithBunSqlite");
|
|
39
42
|
var bunClient = /* @__PURE__ */ __name(async (path, options) => {
|
|
43
|
+
refuseOwnerStoreInTests(path);
|
|
40
44
|
const Database = await bunDatabase();
|
|
41
45
|
const extension = await vectorExtension();
|
|
42
46
|
const client = options ? new Database(path, options) : new Database(path);
|