@wirecat/mail-cli 0.33.0 → 0.35.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 +39 -0
- package/README.md +4 -1
- package/contracts/wirecat.json +54 -4
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/agent-KWLCQCSC.js +39 -0
- package/dist/bundle/{all-profiles-W3CGXEEJ.js → all-profiles-6BDSMVOO.js} +63 -21
- package/dist/bundle/{anthropic-UMDO5AKP.js → anthropic-C3XUXUCJ.js} +8 -8
- package/dist/bundle/{app-server-4SICQ5RP.js → app-server-GUHDK4OR.js} +82 -64
- package/dist/bundle/{bun-QVVCH4MJ.js → bun-FN7AM4AG.js} +2 -2
- package/dist/bundle/{bun-sqlite-CHD4AIUK.js → bun-sqlite-56IVBF22.js} +6 -6
- package/dist/bundle/{chunk-HFFHL7SV.js → chunk-2B67TUIF.js} +101 -69
- package/dist/bundle/{chunk-OOYIPK4F.js → chunk-2UNQTKRH.js} +1 -1
- package/dist/bundle/{chunk-LXUHYDNE.js → chunk-3ACF6TIV.js} +1 -1
- package/dist/bundle/chunk-3EV2B7KZ.js +726 -0
- package/dist/bundle/chunk-3KAJCOJP.js +109 -0
- package/dist/bundle/{chunk-2BFXHCZW.js → chunk-3WAZKCDF.js} +2 -2
- package/dist/bundle/{chunk-LKGJMM6W.js → chunk-46SBNO67.js} +12 -63
- package/dist/bundle/{chunk-LB5FTCPZ.js → chunk-4IASS7NQ.js} +128 -10
- package/dist/bundle/chunk-4U5ODZO7.js +360 -0
- package/dist/bundle/{chunk-QN423PC6.js → chunk-5WYBI35N.js} +3 -3
- package/dist/bundle/{chunk-GZYICXO4.js → chunk-5XQI7WCJ.js} +1 -1
- package/dist/bundle/{chunk-JUYUWMTG.js → chunk-635AFLZO.js} +4 -4
- package/dist/bundle/{chunk-2P44S7XK.js → chunk-6B4WZVLN.js} +36 -28
- package/dist/bundle/{chunk-47YNANPZ.js → chunk-6Q5THDNW.js} +3 -3
- package/dist/bundle/chunk-6VARUB3J.js +787 -0
- package/dist/bundle/{chunk-BRRHYXUP.js → chunk-7FXZKQAC.js} +87 -76
- package/dist/bundle/{chunk-EW3JFV7J.js → chunk-7JVKQ6NM.js} +4 -4
- package/dist/bundle/{chunk-OWAJN74H.js → chunk-7KMI47AP.js} +106 -257
- package/dist/bundle/{chunk-BF73DBAA.js → chunk-7PXAUMK5.js} +30 -15
- package/dist/bundle/{chunk-UX76GMQM.js → chunk-7YMLEWTX.js} +43 -64
- package/dist/bundle/{chunk-2L6D54BR.js → chunk-AISQNKT7.js} +8 -8
- package/dist/bundle/chunk-AV2ZJ4WX.js +7 -0
- package/dist/bundle/{chunk-OFMYFFEF.js → chunk-AXKIXVQA.js} +991 -1609
- package/dist/bundle/{chunk-UAV74EY4.js → chunk-CDGVYQXG.js} +1 -1
- package/dist/bundle/{chunk-RXUVXAMM.js → chunk-CFQQTDSA.js} +1 -1
- package/dist/bundle/chunk-CMGZXBJW.js +259 -0
- package/dist/bundle/{chunk-H46MANPR.js → chunk-DD2P67NP.js} +3 -3
- package/dist/bundle/{chunk-IBIFX2LK.js → chunk-DFHUJTP5.js} +2 -2
- package/dist/bundle/{chunk-DI74RP6R.js → chunk-DREU6TN6.js} +31 -85
- package/dist/bundle/{chunk-XQXYAOBV.js → chunk-DZHEVVXA.js} +53 -33
- package/dist/bundle/{chunk-LFBD6RTX.js → chunk-E6HSSKRX.js} +4 -4
- package/dist/bundle/{chunk-UYZDH5LK.js → chunk-EHAXFDDP.js} +1 -1
- package/dist/bundle/chunk-EU4J6GCJ.js +52 -0
- package/dist/bundle/{chunk-CHNNKHLL.js → chunk-EX4Z7CCO.js} +4051 -2788
- package/dist/bundle/chunk-G662S2M4.js +559 -0
- package/dist/bundle/{chunk-XN5KH24X.js → chunk-GG634DR3.js} +5 -5
- package/dist/bundle/{chunk-FSMCXQH2.js → chunk-GU3PYIV2.js} +2 -2
- package/dist/bundle/{chunk-SW7YGW3T.js → chunk-HF5QWKK2.js} +18 -8
- package/dist/bundle/chunk-HJDIMVFW.js +108 -0
- package/dist/bundle/chunk-HKWZG7CZ.js +334 -0
- package/dist/bundle/{chunk-BI5P7JWM.js → chunk-HM6AMYHR.js} +2 -2
- package/dist/bundle/{chunk-35AH33VJ.js → chunk-HVXOA4FO.js} +1 -1
- package/dist/bundle/{chunk-LXAX6AZU.js → chunk-I3QZCQJT.js} +6 -6
- package/dist/bundle/{chunk-I3UAD4EI.js → chunk-ILEKGH44.js} +68 -59
- package/dist/bundle/{chunk-SDWYOYGN.js → chunk-J5ULUTWE.js} +4 -4
- package/dist/bundle/{chunk-TK77DCE5.js → chunk-L4RCWRWS.js} +1 -1
- package/dist/bundle/chunk-MCJYJIH5.js +192 -0
- package/dist/bundle/{chunk-S6CHYNFE.js → chunk-NEDS4ORI.js} +2 -2
- package/dist/bundle/{chunk-QO7BK4WD.js → chunk-ODQCRZX5.js} +35 -12
- package/dist/bundle/chunk-OO4OKMNB.js +80 -0
- package/dist/bundle/{chunk-JCQ47WR4.js → chunk-OOQFBRNR.js} +144 -10
- package/dist/bundle/{chunk-LACMDMDI.js → chunk-OTP2HJ67.js} +9 -9
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-AEKWEYIG.js → chunk-PQDQCCGG.js} +19 -19
- package/dist/bundle/{chunk-BZY5W35X.js → chunk-Q5U2HIBJ.js} +7 -7
- package/dist/bundle/{chunk-74BYHR44.js → chunk-QFMKCU42.js} +3738 -3415
- package/dist/bundle/{chunk-SYUIAMVA.js → chunk-QYCMB7JY.js} +373 -533
- package/dist/bundle/{chunk-KLLT572M.js → chunk-RBV2AM52.js} +2 -100
- package/dist/bundle/{chunk-6VCQ4CTK.js → chunk-RJNKM3CQ.js} +1 -1
- package/dist/bundle/{chunk-6IS4BEN4.js → chunk-RQHWSNX4.js} +4 -4
- package/dist/bundle/chunk-RQJGX7F7.js +170 -0
- package/dist/bundle/{chunk-RENCSP47.js → chunk-TARNPINT.js} +3 -3
- package/dist/bundle/chunk-TP2BCK2Z.js +721 -0
- package/dist/bundle/{chunk-MJ7DUSHT.js → chunk-TP766H4O.js} +18 -14
- package/dist/bundle/{chunk-2X344EUT.js → chunk-UHGKN5US.js} +8 -8
- package/dist/bundle/{chunk-L3MKFI3Y.js → chunk-UWDRU3R6.js} +2 -2
- package/dist/bundle/chunk-V4O47JV6.js +72 -0
- package/dist/bundle/{chunk-CIG4UVP6.js → chunk-W4JYGMTU.js} +14 -13
- package/dist/bundle/{chunk-JADBHKBP.js → chunk-W7ICCFG5.js} +1 -1
- package/dist/bundle/{chunk-MNJ3BMPZ.js → chunk-WDEVKKAD.js} +3 -3
- package/dist/bundle/{chunk-TBZLGT7R.js → chunk-WZKM5I7B.js} +23 -119
- package/dist/bundle/{chunk-MT7T5N2N.js → chunk-XKKYRMGG.js} +4 -4
- package/dist/bundle/chunk-XQNKAM26.js +338 -0
- package/dist/bundle/{chunk-UWF3SSRL.js → chunk-YA44BG3N.js} +58 -9
- package/dist/bundle/{chunk-Y2P2LC5R.js → chunk-YCIWSKOH.js} +9 -9
- package/dist/bundle/{chunk-7OYZU5SP.js → chunk-YQTRKNZQ.js} +4 -4
- package/dist/bundle/chunk-YRAJFTFU.js +353 -0
- package/dist/bundle/chunk-YTI533XF.js +29 -0
- package/dist/bundle/{chunk-UG2QDGAH.js → chunk-ZMYRPMAJ.js} +1 -1
- package/dist/bundle/{chunk-CZ6ZXDSO.js → chunk-ZX7HZDD6.js} +182 -562
- package/dist/bundle/{chunk-IPSLQX64.js → chunk-ZYEU35MB.js} +2 -2
- package/dist/bundle/command-contract-D5UXWHMS.js +39 -0
- package/dist/bundle/{command-server-entry-G2ZHCN5J.js → command-server-entry-TPJ47FYS.js} +28 -25
- package/dist/bundle/decode-XHUASXQK.js +296 -0
- package/dist/bundle/{dispatch-RHIK22OA.js → dispatch-MQZHGGVP.js} +8 -8
- package/dist/bundle/{dist-X5G2IMYG.js → dist-BAE4IQ52.js} +34 -29
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/{echarts-UZJ6AREV.js → echarts-U7Z2PKIG.js} +2 -2
- package/dist/bundle/{embed-FEXLUH3T.js → embed-W7GPB6EI.js} +6 -6
- package/dist/bundle/{embedder-NHQARKFJ.js → embedder-T72XLFQ5.js} +9 -9
- package/dist/bundle/{failure-7DIA4OET.js → failure-MP6VKL5Y.js} +2 -2
- package/dist/bundle/{first-run-PS5NR2QG.js → first-run-C44TJXRI.js} +12 -12
- package/dist/bundle/first-screen-IESI7DAU.js +39 -0
- package/dist/bundle/{instructions-SDDUBGH4.js → instructions-WGMWQNPP.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-GN4FTJX5.js → mcp-YGOAUNC3.js} +2 -2
- package/dist/bundle/meeting-combined-XGZBSWIQ.js +24 -0
- package/dist/bundle/meeting-model-QVHLD4WI.js +24 -0
- package/dist/bundle/meeting-semantic-QKQHUHXX.js +21 -0
- package/dist/bundle/{node-ELCNUOCE.js → node-WANDMJJQ.js} +2 -2
- package/dist/bundle/{node-sqlite-2E5MKZMH.js → node-sqlite-NM5XA4DR.js} +7 -7
- package/dist/bundle/{oauth-JGPEIY3M.js → oauth-6E63ELEE.js} +8 -8
- package/dist/bundle/{open-6DEMCZAB.js → open-5542RTLE.js} +5 -5
- package/dist/bundle/{openai-IVKDU5AH.js → openai-NOYNPFB5.js} +28 -26
- package/dist/bundle/{process-67DAKAAQ.js → process-7AEXXSBX.js} +1 -1
- package/dist/bundle/{program-ESJDQMAJ.js → program-VMA5CGNR.js} +5712 -3640
- package/dist/bundle/{prompt-ZBWOT5KG.js → prompt-WYYO4AJL.js} +5 -5
- package/dist/bundle/{recognize-UUBH2DOH.js → recognize-UGCCOMAS.js} +4 -4
- package/dist/bundle/{remote-UYTNWNOB.js → remote-VZS6BNQB.js} +9 -9
- package/dist/bundle/{rerank-X2633CQN.js → rerank-O46D5GJ2.js} +7 -7
- package/dist/bundle/{serve-CP7Q4OVW.js → serve-QAAF2LCW.js} +10 -10
- package/dist/bundle/server-456MYK3X.js +84 -0
- package/dist/bundle/{server-I7MXRSAG.js → server-Q3PUZLLX.js} +77 -58
- package/dist/bundle/{sqlite-runtime-BX55LI5G.js → sqlite-runtime-EQBCDO2U.js} +6 -6
- package/dist/bundle/{state-LLNJQXFH.js → state-XIOHYXCR.js} +6 -6
- package/dist/bundle/{store-N27XI3VV.js → store-OXJZZUR7.js} +34 -17
- package/dist/bundle/{store-K4KU5N75.js → store-VJBL5XKR.js} +30 -20
- package/dist/bundle/store-maintenance-command-D7XYIX52.js +71 -0
- package/dist/bundle/surface-N7LK7PKN.js +70 -0
- package/dist/commands/read.d.ts +2 -2
- package/dist/commands/read.d.ts.map +1 -1
- package/dist/commands/read.js +5 -4
- package/dist/commands/read.js.map +1 -1
- package/dist/commands/sync.d.ts +2 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +16 -9
- 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/config.js +16 -1
- package/dist/config.js.map +1 -1
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +2 -2
- package/dist/identity.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-BDCC2J2Z.js +0 -2
- package/dist/bundle/command-contract-NRNQAFFE.js +0 -36
- package/dist/bundle/decode-U6V6D6XH.js +0 -162
- package/dist/bundle/first-screen-C2WTLOG2.js +0 -34
- package/dist/bundle/server-QGTMJ7SF.js +0 -67
- package/dist/bundle/store-maintenance-command-VPAFQCNA.js +0 -58
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,45 @@
|
|
|
2
2
|
|
|
3
3
|
Notable changes to `@wirecat/mail-cli`. One section per version, newest first.
|
|
4
4
|
|
|
5
|
+
## 0.35.0 — 19.11.2026
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **`sync_since`: how far back `sync` reads, as a setting.** Before, `sync` read the last 30 days unless a run gave
|
|
10
|
+
`--since-time`, and WireCat Desktop had no way to read further back. The profile setting takes a window back from now
|
|
11
|
+
(`90d`, `12w`, `1y`) or a date (`2025-01-01`). The default stays `30d`. `--since-time` still wins for one run. Make
|
|
12
|
+
the window wider and the next `sync` reads the older mail too, with no `--rescan`. `config show` lists it, and
|
|
13
|
+
`config set sync_since 2x` is refused with the forms it takes. See [Settings](docs/configuration.md).
|
|
14
|
+
- **`inbox` sorts new mail with the AI model you chose**, with no agent: each thread that changed since the last run
|
|
15
|
+
goes under needs an answer, to read or can wait, with a one-line reason. A local Ollama works. It follows local
|
|
16
|
+
only and `memo models chats`, sends at most 40 emails a run, and runs on a schedule. `review` shows the verdict
|
|
17
|
+
as `email.inbox`. See [usage](docs/usage.md#inbox-new-mail-sorted-by-an-ai-model).
|
|
18
|
+
|
|
19
|
+
### Changed — may break callers
|
|
20
|
+
|
|
21
|
+
- **The MCP Registry entry asks which profiles to serve.** It started `mcp serve --profiles all`, so a client that
|
|
22
|
+
installed the server from the registry reached every account on the computer without the owner choosing. Now
|
|
23
|
+
`--profiles` is a required argument with the example `personal`: the client asks for one profile, a
|
|
24
|
+
comma-separated list or `all`. Why: a CLI never picks an account for the owner
|
|
25
|
+
([WC-MCP-9](https://github.com/WireCatLabs/cli-base/blob/main/docs/standards/mcp.md#wc-mcp-9--a-server-serves-the-profiles-it-is-told-with-one-connection-for-each)). Watch for: a client set up from the old entry keeps `--profiles all` until it is set up again; a
|
|
26
|
+
server added by hand or with `mcp config` does not change.
|
|
27
|
+
|
|
28
|
+
## 0.34.0 — 16.11.2026
|
|
29
|
+
|
|
30
|
+
### Changed — may break callers
|
|
31
|
+
|
|
32
|
+
- **Built on cli-core 0.674.0** (was 0.663.0) and cli-base 0.103.0 (was 0.100.0). The shared store moves to version
|
|
33
|
+
67, so upgrade the other WireCat CLIs that share it too. A command run without a profile it needs now carries the
|
|
34
|
+
reason `profile.missing`. See the
|
|
35
|
+
[cli-core changelog](https://github.com/WireCatLabs/cli-core/blob/main/CHANGELOG.md).
|
|
36
|
+
|
|
37
|
+
### Fixed
|
|
38
|
+
|
|
39
|
+
- **WireCat Desktop's texts for mail say what it does.** The sign-in card said mail reads, organises and sends your
|
|
40
|
+
mail. It now says the agent sorts and sends mail as far as your settings allow (deleting and mail to others ask by
|
|
41
|
+
default), and that a Microsoft sign-in may not grant sending. The sync's label is
|
|
42
|
+
"mail", one word, as Desktop expects.
|
|
43
|
+
|
|
5
44
|
## 0.33.0 — 14.11.2026
|
|
6
45
|
|
|
7
46
|
### Changed — may break callers
|
package/README.md
CHANGED
|
@@ -8,7 +8,10 @@
|
|
|
8
8
|
and read it there, offline. It also organises the mailbox on the server: flags, folders, and deletion to Trash, each
|
|
9
9
|
change one you can undo. It keeps drafts, and sends, replies and forwards over SMTP.
|
|
10
10
|
|
|
11
|
-
[
|
|
11
|
+
[Docs](https://wirecat.dev/en/docs/mail) ·
|
|
12
|
+
[Install](https://github.com/WireCatLabs/mail-cli/blob/main/docs/installation.md) ·
|
|
13
|
+
[Usage](https://github.com/WireCatLabs/mail-cli/blob/main/docs/usage.md) ·
|
|
14
|
+
[Discord](https://discord.gg/DebENqbRrJ)
|
|
12
15
|
|
|
13
16
|
[](https://www.npmjs.com/package/@wirecat/mail-cli)
|
|
14
17
|
[](https://github.com/WireCatLabs/mail-cli/actions/workflows/ci.yml)
|
package/contracts/wirecat.json
CHANGED
|
@@ -522,6 +522,18 @@
|
|
|
522
522
|
},
|
|
523
523
|
"permission": "conversations.show"
|
|
524
524
|
},
|
|
525
|
+
{
|
|
526
|
+
"path": [
|
|
527
|
+
"inbox"
|
|
528
|
+
],
|
|
529
|
+
"summary": "new mail sorted by the AI model: needs an answer, to read, can wait",
|
|
530
|
+
"effects": {
|
|
531
|
+
"remote": "read",
|
|
532
|
+
"local": "write"
|
|
533
|
+
},
|
|
534
|
+
"permission": "inbox",
|
|
535
|
+
"entity": "mail_inbox_thread"
|
|
536
|
+
},
|
|
525
537
|
{
|
|
526
538
|
"path": [
|
|
527
539
|
"attachments",
|
|
@@ -945,7 +957,7 @@
|
|
|
945
957
|
"schedule",
|
|
946
958
|
"command"
|
|
947
959
|
],
|
|
948
|
-
"summary": "run mail <args…> on a timer — reads save what they read, so this is how
|
|
960
|
+
"summary": "run mail <args…> on a timer — reads save what they read, so this is how the…",
|
|
949
961
|
"effects": {
|
|
950
962
|
"remote": "none",
|
|
951
963
|
"local": "write"
|
|
@@ -1216,7 +1228,7 @@
|
|
|
1216
1228
|
"start"
|
|
1217
1229
|
],
|
|
1218
1230
|
"signIn": {
|
|
1219
|
-
"gives": "Lets your agent read,
|
|
1231
|
+
"gives": "Lets your agent read and search your mail, and sort and send it as far as your settings allow. A Microsoft sign-in may not grant sending.",
|
|
1220
1232
|
"asks": "Your mail address and an app password, or a Microsoft or Google sign-in in the browser."
|
|
1221
1233
|
},
|
|
1222
1234
|
"skill": {
|
|
@@ -1305,7 +1317,7 @@
|
|
|
1305
1317
|
"--json"
|
|
1306
1318
|
],
|
|
1307
1319
|
"lastShape": "runs",
|
|
1308
|
-
"what": "mail
|
|
1320
|
+
"what": "mail",
|
|
1309
1321
|
"note": null
|
|
1310
1322
|
},
|
|
1311
1323
|
"storeInfo": null,
|
|
@@ -1320,6 +1332,44 @@
|
|
|
1320
1332
|
"app": "mail-cli",
|
|
1321
1333
|
"env": "MAIL"
|
|
1322
1334
|
},
|
|
1323
|
-
"settings": null
|
|
1335
|
+
"settings": null,
|
|
1336
|
+
"accountRemove": {
|
|
1337
|
+
"signOut": [
|
|
1338
|
+
"{profile}",
|
|
1339
|
+
"session",
|
|
1340
|
+
"end",
|
|
1341
|
+
"--record",
|
|
1342
|
+
"--json"
|
|
1343
|
+
],
|
|
1344
|
+
"remove": {
|
|
1345
|
+
"minVersion": "0.0.0",
|
|
1346
|
+
"keepData": [
|
|
1347
|
+
"{profile}",
|
|
1348
|
+
"account",
|
|
1349
|
+
"remove",
|
|
1350
|
+
"--keep-data",
|
|
1351
|
+
"--record",
|
|
1352
|
+
"--json"
|
|
1353
|
+
],
|
|
1354
|
+
"deleteData": [
|
|
1355
|
+
"{profile}",
|
|
1356
|
+
"account",
|
|
1357
|
+
"remove",
|
|
1358
|
+
"--delete-data",
|
|
1359
|
+
"--record",
|
|
1360
|
+
"--json"
|
|
1361
|
+
],
|
|
1362
|
+
"dryRun": "--dry-run",
|
|
1363
|
+
"confirm": "--yes"
|
|
1364
|
+
},
|
|
1365
|
+
"removes": [
|
|
1366
|
+
"signIn"
|
|
1367
|
+
],
|
|
1368
|
+
"keeps": [
|
|
1369
|
+
"settings",
|
|
1370
|
+
"data",
|
|
1371
|
+
"listed"
|
|
1372
|
+
]
|
|
1373
|
+
}
|
|
1324
1374
|
}
|
|
1325
1375
|
}
|
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.35.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/agent-KWLCQCSC.js","../bundle/all-profiles-6BDSMVOO.js","../bundle/anthropic-C3XUXUCJ.js","../bundle/app-server-GUHDK4OR.js","../bundle/bun-FN7AM4AG.js","../bundle/bun-sqlite-56IVBF22.js","../bundle/decode-XHUASXQK.js","../bundle/dispatch-MQZHGGVP.js","../bundle/dist-BAE4IQ52.js","../bundle/dist-HFUVURJG.js","../bundle/dist-PAKDDIBT.js","../bundle/echarts-U7Z2PKIG.js","../bundle/embed-W7GPB6EI.js","../bundle/embedder-T72XLFQ5.js","../bundle/failure-MP6VKL5Y.js","../bundle/first-screen-IESI7DAU.js","../bundle/instructions-WGMWQNPP.js","../bundle/mcp-YGOAUNC3.js","../bundle/node-KM3CUABH.js","../bundle/node-TLZSIHIJ.js","../bundle/node-WANDMJJQ.js","../bundle/node-sqlite-NM5XA4DR.js","../bundle/oauth-6E63ELEE.js","../bundle/open-5542RTLE.js","../bundle/openai-NOYNPFB5.js","../bundle/process-7AEXXSBX.js","../bundle/program-VMA5CGNR.js","../bundle/prompt-WYYO4AJL.js","../bundle/recognize-UGCCOMAS.js","../bundle/remote-VZS6BNQB.js","../bundle/rerank-O46D5GJ2.js","../bundle/serve-QAAF2LCW.js","../bundle/server-456MYK3X.js","../bundle/server-Q3PUZLLX.js","../bundle/sqlite-runtime-EQBCDO2U.js","../bundle/state-XIOHYXCR.js","../bundle/store-OXJZZUR7.js","../bundle/store-VJBL5XKR.js","../bundle/store-maintenance-command-D7XYIX52.js","../bundle/surface-N7LK7PKN.js"]
|
|
32
32
|
if (((words) => words
|
|
33
33
|
.filter((word) => !word.startsWith("-"))
|
|
34
34
|
.slice(0, 2)
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
runCommandForAgent,
|
|
5
|
+
toolsFromCommands
|
|
6
|
+
} from "./chunk-ZX7HZDD6.js";
|
|
7
|
+
import "./chunk-EU4J6GCJ.js";
|
|
8
|
+
import "./chunk-XQNKAM26.js";
|
|
9
|
+
import "./chunk-HJDIMVFW.js";
|
|
10
|
+
import "./chunk-3EV2B7KZ.js";
|
|
11
|
+
import "./chunk-PL5P7UKW.js";
|
|
12
|
+
import "./chunk-QYCMB7JY.js";
|
|
13
|
+
import "./chunk-HF5QWKK2.js";
|
|
14
|
+
import "./chunk-UHGKN5US.js";
|
|
15
|
+
import "./chunk-WDEVKKAD.js";
|
|
16
|
+
import "./chunk-HKWZG7CZ.js";
|
|
17
|
+
import "./chunk-ZMYRPMAJ.js";
|
|
18
|
+
import "./chunk-DD2P67NP.js";
|
|
19
|
+
import "./chunk-OO4OKMNB.js";
|
|
20
|
+
import "./chunk-DZHEVVXA.js";
|
|
21
|
+
import "./chunk-6VARUB3J.js";
|
|
22
|
+
import "./chunk-UWDRU3R6.js";
|
|
23
|
+
import "./chunk-3ACF6TIV.js";
|
|
24
|
+
import "./chunk-YTI533XF.js";
|
|
25
|
+
import "./chunk-AXKIXVQA.js";
|
|
26
|
+
import "./chunk-OOQFBRNR.js";
|
|
27
|
+
import "./chunk-Q5U2HIBJ.js";
|
|
28
|
+
import "./chunk-635AFLZO.js";
|
|
29
|
+
import "./chunk-AV2ZJ4WX.js";
|
|
30
|
+
import "./chunk-ZYEU35MB.js";
|
|
31
|
+
import "./chunk-7FXZKQAC.js";
|
|
32
|
+
import "./chunk-YA44BG3N.js";
|
|
33
|
+
import "./chunk-Y5E2WNWB.js";
|
|
34
|
+
import "./chunk-HM6AMYHR.js";
|
|
35
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
36
|
+
export {
|
|
37
|
+
runCommandForAgent,
|
|
38
|
+
toolsFromCommands
|
|
39
|
+
};
|
|
@@ -1,34 +1,37 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
CALLER_META_KEY,
|
|
5
|
-
PROXY_CLIENT_NAME,
|
|
6
4
|
StdioServerTransport,
|
|
7
5
|
answeredWire,
|
|
8
|
-
callerOf,
|
|
9
6
|
serveStdio
|
|
10
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RBV2AM52.js";
|
|
8
|
+
import {
|
|
9
|
+
CALLER_META_KEY,
|
|
10
|
+
PROXY_CLIENT_NAME,
|
|
11
|
+
callerOf
|
|
12
|
+
} from "./chunk-HJDIMVFW.js";
|
|
11
13
|
import {
|
|
14
|
+
InMemoryTransport,
|
|
12
15
|
McpServer
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-PL5P7UKW.js";
|
|
17
|
+
import "./chunk-UHGKN5US.js";
|
|
18
|
+
import "./chunk-UWDRU3R6.js";
|
|
19
|
+
import "./chunk-3ACF6TIV.js";
|
|
20
|
+
import "./chunk-AV2ZJ4WX.js";
|
|
21
|
+
import "./chunk-7FXZKQAC.js";
|
|
19
22
|
import {
|
|
20
23
|
errorObjectOf,
|
|
21
24
|
mcpErrorResult
|
|
22
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-YA44BG3N.js";
|
|
23
26
|
import "./chunk-Y5E2WNWB.js";
|
|
24
27
|
import {
|
|
25
28
|
CliError
|
|
26
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-HM6AMYHR.js";
|
|
27
30
|
import {
|
|
28
31
|
__name
|
|
29
32
|
} from "./chunk-ZVVMGPBJ.js";
|
|
30
33
|
|
|
31
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
|
|
32
35
|
import { spawn } from "node:child_process";
|
|
33
36
|
import { randomUUID } from "node:crypto";
|
|
34
37
|
var PROTOCOL = "2025-06-18";
|
|
@@ -169,13 +172,16 @@ var withProfile = /* @__PURE__ */ __name((tool, profiles, name, signedIn = () =>
|
|
|
169
172
|
inputSchema: {
|
|
170
173
|
...tool.inputSchema,
|
|
171
174
|
properties: {
|
|
172
|
-
profile:
|
|
175
|
+
profile: profiles.length === 0 ? (
|
|
176
|
+
// An empty enum matches nothing, and a directory that checks the schema refuses the tool.
|
|
177
|
+
{
|
|
178
|
+
type: "string",
|
|
179
|
+
description: `Which ${name} account, by its profile. None is set up on this computer yet.`
|
|
180
|
+
}
|
|
181
|
+
) : {
|
|
173
182
|
type: "string",
|
|
174
183
|
enum: [...profiles],
|
|
175
|
-
oneOf: profiles.map((
|
|
176
|
-
const: profile,
|
|
177
|
-
title: signedIn(profile) ? profile : `${profile} \u2014 not signed in`
|
|
178
|
-
})),
|
|
184
|
+
oneOf: profiles.map((one) => ({ const: one, title: signedIn(one) ? one : `${one} \u2014 not signed in` })),
|
|
179
185
|
description: `Which ${name} account, by its profile. If the owner did not name one, ask which \u2014 never guess.${states}`
|
|
180
186
|
},
|
|
181
187
|
...schema.properties
|
|
@@ -198,9 +204,14 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
|
|
|
198
204
|
const signedIn = /* @__PURE__ */ __name((profile) => options.signedIn?.(profile) ?? true, "signedIn");
|
|
199
205
|
const build = /* @__PURE__ */ __name(() => {
|
|
200
206
|
const profiles = [...options.profiles()].sort();
|
|
201
|
-
const server = new McpServer({ name: options.command, version: options.version }, {
|
|
207
|
+
const server = new McpServer({ name: options.command, version: options.version }, {
|
|
208
|
+
capabilities: { tools: {} },
|
|
209
|
+
// Read per session, as the profiles are: clients cut the instructions short, so this line comes first.
|
|
210
|
+
instructions: profiles.length === 0 && options.setup ? `${options.setup.charAt(0).toUpperCase()}${options.setup.slice(1)}.
|
|
211
|
+
${options.instructions}` : options.instructions
|
|
212
|
+
});
|
|
202
213
|
server.server.setRequestHandler("tools/list", async () => ({
|
|
203
|
-
tools: profiles.length === 0 ? [] :
|
|
214
|
+
tools: (profiles.length === 0 ? await options.catalogue?.() ?? [] : await tools(profiles)).map((one) => withProfile(one, profiles, options.name, signedIn))
|
|
204
215
|
}));
|
|
205
216
|
const callers = {
|
|
206
217
|
env: options.env ?? process.env,
|
|
@@ -210,6 +221,8 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
|
|
|
210
221
|
server.server.setRequestHandler("tools/call", async (request, ctx) => {
|
|
211
222
|
const { name, arguments: given = {}, _meta } = request.params;
|
|
212
223
|
const { profile, ...rest } = given;
|
|
224
|
+
if (profiles.length === 0)
|
|
225
|
+
return refusal("configuration_error", options.setup ?? `no ${options.command} profile on this computer yet.`);
|
|
213
226
|
if (typeof profile !== "string" || !profiles.includes(profile))
|
|
214
227
|
return refusal("validation_error", `${name} needs "profile", one of: ${profiles.join(", ")}. If the owner did not say which account, ask.`);
|
|
215
228
|
if (!signedIn(profile))
|
|
@@ -231,6 +244,34 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
|
|
|
231
244
|
}, "build");
|
|
232
245
|
return { build, close: /* @__PURE__ */ __name(() => children.close(), "close") };
|
|
233
246
|
}, "allProfilesServer");
|
|
247
|
+
var listedTools = /* @__PURE__ */ __name(async (server) => {
|
|
248
|
+
const [own, other] = InMemoryTransport.createLinkedPair();
|
|
249
|
+
const answers = /* @__PURE__ */ new Map();
|
|
250
|
+
other.onmessage = (message) => {
|
|
251
|
+
const { id, result, error } = message;
|
|
252
|
+
if (typeof id === "number")
|
|
253
|
+
answers.get(id)?.(result, error);
|
|
254
|
+
};
|
|
255
|
+
const ask = /* @__PURE__ */ __name((id, method, params) => new Promise((resolve, reject) => {
|
|
256
|
+
answers.set(id, (result, error) => error || !result ? reject(new Error(error?.message ?? `${method} had no answer`)) : resolve(result));
|
|
257
|
+
void other.send({ jsonrpc: "2.0", id, method, params });
|
|
258
|
+
}), "ask");
|
|
259
|
+
await server.connect(own);
|
|
260
|
+
try {
|
|
261
|
+
await ask(1, "initialize", {
|
|
262
|
+
protocolVersion: PROTOCOL,
|
|
263
|
+
capabilities: {},
|
|
264
|
+
clientInfo: { name: PROXY_CLIENT_NAME, version: "1" }
|
|
265
|
+
});
|
|
266
|
+
await other.send({ jsonrpc: "2.0", method: "notifications/initialized" });
|
|
267
|
+
const answer = await ask(2, "tools/list", {});
|
|
268
|
+
if (!Array.isArray(answer.tools))
|
|
269
|
+
throw new Error("the catalogue server listed no tools");
|
|
270
|
+
return answer.tools;
|
|
271
|
+
} finally {
|
|
272
|
+
await server.close();
|
|
273
|
+
}
|
|
274
|
+
}, "listedTools");
|
|
234
275
|
var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {}) => {
|
|
235
276
|
const { build, close } = allProfilesServer(options);
|
|
236
277
|
const own = io.stdin !== void 0 && io.stdin !== process.stdin;
|
|
@@ -249,7 +290,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
249
290
|
}, "serveAllProfilesOverStdio");
|
|
250
291
|
var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
251
292
|
const { build, close } = allProfilesServer(options);
|
|
252
|
-
const { serveOverHttp } = await import("./serve-
|
|
293
|
+
const { serveOverHttp } = await import("./serve-QAAF2LCW.js");
|
|
253
294
|
const listening = await serveOverHttp(build, {
|
|
254
295
|
...http,
|
|
255
296
|
appName: options.command,
|
|
@@ -272,6 +313,7 @@ var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
|
272
313
|
export {
|
|
273
314
|
CHILD_IDLE_MS,
|
|
274
315
|
allProfilesServer,
|
|
316
|
+
listedTools,
|
|
275
317
|
serveAllProfilesOverHttp,
|
|
276
318
|
serveAllProfilesOverStdio,
|
|
277
319
|
withProfile
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
Anthropic
|
|
5
|
-
} from "./chunk-XQUUANA2.js";
|
|
6
3
|
import {
|
|
7
4
|
EmptyAnswer,
|
|
8
5
|
checkedOptions,
|
|
9
6
|
messagesFor,
|
|
10
7
|
systemFor
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import
|
|
8
|
+
} from "./chunk-J5ULUTWE.js";
|
|
9
|
+
import {
|
|
10
|
+
Anthropic
|
|
11
|
+
} from "./chunk-XQUUANA2.js";
|
|
12
|
+
import "./chunk-7FXZKQAC.js";
|
|
13
13
|
import {
|
|
14
14
|
array,
|
|
15
15
|
literal,
|
|
@@ -19,14 +19,14 @@ import {
|
|
|
19
19
|
strictObject,
|
|
20
20
|
string,
|
|
21
21
|
unknown
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-YA44BG3N.js";
|
|
23
23
|
import "./chunk-Y5E2WNWB.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-HM6AMYHR.js";
|
|
25
25
|
import {
|
|
26
26
|
__name
|
|
27
27
|
} from "./chunk-ZVVMGPBJ.js";
|
|
28
28
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/models/anthropic.js
|
|
30
30
|
var options = strictObject({
|
|
31
31
|
stop_sequences: optional(array(string())),
|
|
32
32
|
thinking: optional(strictObject({ type: picklist(["disabled", "adaptive"]) })),
|
|
@@ -3,45 +3,59 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
PER_RUN,
|
|
5
5
|
envelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ILEKGH44.js";
|
|
7
7
|
import {
|
|
8
8
|
mcpUrlOf
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import
|
|
9
|
+
} from "./chunk-6B4WZVLN.js";
|
|
10
|
+
import {
|
|
11
|
+
skillResources
|
|
12
|
+
} from "./chunk-7KMI47AP.js";
|
|
13
|
+
import {
|
|
14
|
+
StdioServerTransport,
|
|
15
|
+
answeredWire,
|
|
16
|
+
serveStdio
|
|
17
|
+
} from "./chunk-RBV2AM52.js";
|
|
18
|
+
import "./chunk-CDGVYQXG.js";
|
|
19
|
+
import "./chunk-WZKM5I7B.js";
|
|
20
|
+
import "./chunk-YRAJFTFU.js";
|
|
11
21
|
import {
|
|
12
|
-
answered,
|
|
13
|
-
failed,
|
|
14
|
-
registerCommands,
|
|
15
22
|
runCommandForAgent,
|
|
16
23
|
toolsFromCommands
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import
|
|
19
|
-
|
|
20
|
-
skillResource
|
|
21
|
-
} from "./chunk-OWAJN74H.js";
|
|
22
|
-
import "./chunk-LB5FTCPZ.js";
|
|
24
|
+
} from "./chunk-ZX7HZDD6.js";
|
|
25
|
+
import "./chunk-EU4J6GCJ.js";
|
|
26
|
+
import "./chunk-XQNKAM26.js";
|
|
23
27
|
import {
|
|
24
28
|
appInstructions
|
|
25
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-RJNKM3CQ.js";
|
|
26
30
|
import {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
answered,
|
|
32
|
+
failed,
|
|
33
|
+
registerCommands
|
|
34
|
+
} from "./chunk-G662S2M4.js";
|
|
35
|
+
import {
|
|
36
|
+
agentJson
|
|
37
|
+
} from "./chunk-MCJYJIH5.js";
|
|
38
|
+
import "./chunk-4IASS7NQ.js";
|
|
39
|
+
import "./chunk-QFMKCU42.js";
|
|
40
|
+
import "./chunk-7PXAUMK5.js";
|
|
41
|
+
import "./chunk-YCIWSKOH.js";
|
|
42
|
+
import "./chunk-3KAJCOJP.js";
|
|
43
|
+
import "./chunk-RQHWSNX4.js";
|
|
44
|
+
import "./chunk-CFQQTDSA.js";
|
|
45
|
+
import "./chunk-HJDIMVFW.js";
|
|
46
|
+
import "./chunk-3EV2B7KZ.js";
|
|
31
47
|
import {
|
|
32
48
|
McpServer
|
|
33
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-PL5P7UKW.js";
|
|
50
|
+
import "./chunk-J5ULUTWE.js";
|
|
51
|
+
import "./chunk-CMGZXBJW.js";
|
|
52
|
+
import "./chunk-4U5ODZO7.js";
|
|
53
|
+
import "./chunk-RQJGX7F7.js";
|
|
34
54
|
import {
|
|
35
55
|
mcpHttpMarker
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-BF73DBAA.js";
|
|
40
|
-
import "./chunk-Y2P2LC5R.js";
|
|
41
|
-
import "./chunk-SDWYOYGN.js";
|
|
42
|
-
import "./chunk-RENCSP47.js";
|
|
43
|
-
import "./chunk-S6CHYNFE.js";
|
|
44
|
-
import "./chunk-XN5KH24X.js";
|
|
56
|
+
} from "./chunk-YQTRKNZQ.js";
|
|
57
|
+
import "./chunk-TARNPINT.js";
|
|
58
|
+
import "./chunk-GG634DR3.js";
|
|
45
59
|
import {
|
|
46
60
|
DEFAULT_OUTPUT_BYTES,
|
|
47
61
|
changesAuthorityAt,
|
|
@@ -52,48 +66,53 @@ import {
|
|
|
52
66
|
readOnlyLockOf,
|
|
53
67
|
readsOverMcpAt,
|
|
54
68
|
rootOf2 as rootOf
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import "./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-
|
|
69
|
+
} from "./chunk-QYCMB7JY.js";
|
|
70
|
+
import "./chunk-HF5QWKK2.js";
|
|
71
|
+
import "./chunk-UHGKN5US.js";
|
|
72
|
+
import "./chunk-WDEVKKAD.js";
|
|
73
|
+
import "./chunk-HKWZG7CZ.js";
|
|
74
|
+
import "./chunk-ZMYRPMAJ.js";
|
|
75
|
+
import "./chunk-NEDS4ORI.js";
|
|
76
|
+
import "./chunk-PQDQCCGG.js";
|
|
77
|
+
import "./chunk-DD2P67NP.js";
|
|
78
|
+
import "./chunk-EX4Z7CCO.js";
|
|
79
|
+
import "./chunk-DREU6TN6.js";
|
|
80
|
+
import "./chunk-ODQCRZX5.js";
|
|
81
|
+
import "./chunk-OO4OKMNB.js";
|
|
82
|
+
import "./chunk-TP2BCK2Z.js";
|
|
83
|
+
import "./chunk-V4O47JV6.js";
|
|
84
|
+
import "./chunk-L4RCWRWS.js";
|
|
85
|
+
import "./chunk-DZHEVVXA.js";
|
|
86
|
+
import "./chunk-6VARUB3J.js";
|
|
87
|
+
import "./chunk-UWDRU3R6.js";
|
|
88
|
+
import "./chunk-3ACF6TIV.js";
|
|
89
|
+
import "./chunk-YTI533XF.js";
|
|
90
|
+
import "./chunk-AXKIXVQA.js";
|
|
91
|
+
import "./chunk-OTP2HJ67.js";
|
|
92
|
+
import "./chunk-OOQFBRNR.js";
|
|
93
|
+
import "./chunk-Q5U2HIBJ.js";
|
|
94
|
+
import "./chunk-7YMLEWTX.js";
|
|
95
|
+
import "./chunk-635AFLZO.js";
|
|
96
|
+
import "./chunk-HVXOA4FO.js";
|
|
97
|
+
import "./chunk-AV2ZJ4WX.js";
|
|
79
98
|
import "./chunk-D72URWJE.js";
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
82
|
-
import "./chunk-
|
|
83
|
-
import "./chunk-
|
|
99
|
+
import "./chunk-ZYEU35MB.js";
|
|
100
|
+
import "./chunk-I3QZCQJT.js";
|
|
101
|
+
import "./chunk-2UNQTKRH.js";
|
|
102
|
+
import "./chunk-7FXZKQAC.js";
|
|
84
103
|
import {
|
|
85
104
|
mcpErrorResult
|
|
86
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-YA44BG3N.js";
|
|
87
106
|
import "./chunk-Y5E2WNWB.js";
|
|
88
107
|
import {
|
|
89
108
|
CliError
|
|
90
|
-
} from "./chunk-
|
|
91
|
-
import "./chunk-
|
|
109
|
+
} from "./chunk-HM6AMYHR.js";
|
|
110
|
+
import "./chunk-W7ICCFG5.js";
|
|
92
111
|
import {
|
|
93
112
|
__name
|
|
94
113
|
} from "./chunk-ZVVMGPBJ.js";
|
|
95
114
|
|
|
96
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
|
|
97
116
|
var EXCLUDED = [["mcp"]];
|
|
98
117
|
var aliasesOf = /* @__PURE__ */ __name((root, path) => {
|
|
99
118
|
let at = root;
|
|
@@ -174,7 +193,8 @@ var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
|
|
|
174
193
|
}, "run")
|
|
175
194
|
}
|
|
176
195
|
]));
|
|
177
|
-
const
|
|
196
|
+
const skills = options.skill ? skillResources(app, options.skill) : [];
|
|
197
|
+
const skill = skills[0];
|
|
178
198
|
const build = /* @__PURE__ */ __name(() => {
|
|
179
199
|
const server = new McpServer({ name: app.command, version: app.version }, {
|
|
180
200
|
instructions: appInstructions({
|
|
@@ -186,10 +206,8 @@ var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
|
|
|
186
206
|
})
|
|
187
207
|
});
|
|
188
208
|
registerCommands(server, app.command, commands, app.errors, void 0, app.messenger);
|
|
189
|
-
|
|
190
|
-
const { uri, name, title, description, mimeType, read } = skill;
|
|
209
|
+
for (const { uri, name, title, description, mimeType, read } of skills)
|
|
191
210
|
server.registerResource(name, uri, { title, description, mimeType }, read);
|
|
192
|
-
}
|
|
193
211
|
return server;
|
|
194
212
|
}, "build");
|
|
195
213
|
return { build, offered: Object.keys(commands) };
|
|
@@ -210,7 +228,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
|
|
|
210
228
|
var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
|
|
211
229
|
const { app } = options;
|
|
212
230
|
const { build } = createAppServer(command, context, options);
|
|
213
|
-
const { serveOverHttp } = await import("./serve-
|
|
231
|
+
const { serveOverHttp } = await import("./serve-QAAF2LCW.js");
|
|
214
232
|
const listening = await serveOverHttp(build, {
|
|
215
233
|
...http,
|
|
216
234
|
appName: app.command,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-W7ICCFG5.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.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/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,21 +3,21 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DFHUJTP5.js";
|
|
7
7
|
import {
|
|
8
8
|
refuseOwnerStoreInTests
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-ZYEU35MB.js";
|
|
10
|
+
import "./chunk-7FXZKQAC.js";
|
|
11
|
+
import "./chunk-YA44BG3N.js";
|
|
12
12
|
import {
|
|
13
13
|
importFrom
|
|
14
14
|
} from "./chunk-Y5E2WNWB.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-HM6AMYHR.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
18
|
} from "./chunk-ZVVMGPBJ.js";
|
|
19
19
|
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
|
|
21
21
|
var customised = false;
|
|
22
22
|
var ownLibrary = /* @__PURE__ */ __name(async () => {
|
|
23
23
|
try {
|